-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect apkName variable in cli/src/run.ts and cli/src/config.ts for multi dimensional flavors #6703
Comments
I've changed my mind 😅 : #6704 |
This issue may need more information before it can be addressed. In particular, it will need a reliable Code Reproduction that demonstrates the issue. |
It looks like this issue didn't get the information it needed, so I'll close it for now. If I made a mistake, sorry! I am just a bot. Have a great day! |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Hi there !
I've just noticed a bug in the way the CLI handles multi-dimensional flavors on Android with Gradle 8+ (didn't try with earlier versions, but I don't see why it would be different)
https://github.com/ionic-team/capacitor/blob/d0ab34fb04d63d6feba496a7c2bd802b455861d6/cli/src/android/run.ts#L53C1-L53C1
Steps to reproduce
From a blank project, add this to build.gradle :
multi dimensional flavor configurations are now :
fooProd, fooBeta, fooAlpha, barProd, barBeta, barAlpha
the current code thus yields an apkName of, for example
app-fooProd-debug.apk
, while, for multi dimensional flavors, it should be :app-foo-prod-debug.apk
, resulting in aENOENT
error.Launching with Android Studio is fine
I would gladly implement the fix myself but i'm not used to working on CLI tools.
Cheers !
Julien
The text was updated successfully, but these errors were encountered: