Open
Description
Did you verify this is a real problem by searching the NativeScript Forum and the other open issues in this repo?
yes.
Tell us about the problem
When specifying multiple flavors in the app.gradle
and thus more than one APK gets generated during build, the CLI prints a warning More than one .apk found in ... directory. Using the last one produced from build.
So depending on Gradle's internal workings when doing a tns run android
the APK that was built first is picked. Which may not be the right one in this case.
Would be great if the CLI would have an option to specify which flavor (or APK) to be used on tns run
Which platform(s) does your issue occur on?
macOS, Android build
Please provide the following version numbers that your issue occurs with:
- CLI: 4.0.0
- Cross-platform modules: tns-core-modules 4.0.1
- Runtime(s): tns-androd 4.0.1