I have an application react-nativewith directories iosand androidinside a shared directory. I want to be able to release (execute the lane) iOS or Android myself, so I configure fastlane initin each of the dir platforms (which created two fastlane/Fastfiledir in each platform). Android Fastfileroughly contains:
platform :android do
lane: release_android do
...
end
And iOS:
platform :ios do
lane: release_ios do
...
end
Now I also manually created a file fastlane/Fastfilein a generic dir that looks like this:
import '../ios/fastlane/Fastfile'
import '../android/fastlane/Fastfile'
lane :release_all do
release_android
release_ios
end
However, when I run fastlane release_allfrom the main directory, it splits into Could not find action or lane 'release_android'.
Any idea what I'm doing wrong here? Is it impossible to call a platform-specific lane from a common lane?
Environment
fastlane 1.96.0