-
Notifications
You must be signed in to change notification settings - Fork 997
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
APK filename and buildpath hardcoded in capacitor/cli #4740
Comments
Yeah, they are hardcoded because that's where capacitor apps get build with gradle command. |
Yes, we added productFlavours in gradle, but didn't touch the build part. |
Can you be more specific? |
Sure, just tell me what you want to see! partial build.gradle:
|
I have the same issue, we have several flavors and the path to our built APKs is not the one hardcoded so none of our flavors are building with the One solution would be to make this path customizable in the capacitor.config.json, or maybe add a |
I have opened a PR with solution 1 which solves the issue on my side (#4757), @jcesarmobile would something like this be acceptable? with my changes @mrambow could set in the capacitor config :
|
I've sent a similar PR that only adds |
Nice, I have tested my project with @capacitor/cli on your branch and it works as expected, I agree it's simpler to just set the flavor inside the config. |
Hi! Sorry to comment on a closed issue. I usually rename outputs apk with this gradle config:
This produces apk files like Capacitor could get final
I can make a PR if you want. What do you think? |
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,
we're using ionic 5 with capacitor 3 and having difficulties to get the livereload to work for our debug app.
We get following error from
capacitor run android --livereload
:native-run Caught fatal error: [Error: ENOENT: no such file or directory, open 'MyProjectPath\android\app\build\outputs\apk\debug\app-debug.apk']
After some digging (and failing to understand the gradle config build steps) I saw following lines in the capacitor run code:
capacitor/cli/src/android/run.ts
Line 32 in 9a6e74e
capacitor/cli/src/config.ts
Line 230 in 9a6e74e
Is there any possibility to change the name of the APK and the build path from the outside?
The text was updated successfully, but these errors were encountered: