You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Bug Report
Capacitor Version
Platform(s)
Current Behavior
I'd like to build an APK (not AAB). So I set the following config and found that the
releaseType
has no effect.capacitor.config.ts
When running
npx cap build android
, it is still building an AAB.I think the reason is because the command line flag has a default option:
capacitor/cli/src/index.ts
Line 157 in dccb0a9
So when not setting the release type via command line flag, it is set to 'AAB' (the default option) and the value from the config file is never used.
Expected Behavior
Should build APK when
releaseType
is set to APK in config file and no command line flag is passed.Code Reproduction
Set
releaseType
incapacitor.config.ts
to 'APK' in any capacitor project.Run
npx cap build android
.Other Technical Details
npm --version
output: 8.19.2node --version
output: 16.18.0pod --version
output (iOS issues only):Additional Context
Using the command line flag works as expected:
npx cap build android --androidreleasetype APK
The text was updated successfully, but these errors were encountered: