fastlane-plugin-ionic
fastlane-plugin-ionic copied to clipboard
support bundle
To support latest bundle requirement for google play store here is extra option added
Is it possible to merge this pull request? App bundles will be mandatory for new apps starting from the second half of this year.
This would be a great option!
On it!
This PR is adding the --bundle parameter for build. Are you sure it's working as expected?
Running the command ionic cordova build android --bundle
still builds the apk file.
Instead, the ionic cordova build android -- -- --packageType=bundle
command should be used.
yes either as @andrey3diq said or go into platforms folder and do gradle buildRelease it has to be changed
Is there any documentation for ionic cordova build android --bundle
? I can’t see this anywhere. I’m only seeing ionic cordova build android -- -- --packageType=bundle
in any searches I do 🤷♂️
Hi @joshdholtz --bundle
is no valid argument as @andrey3diq mentioned. So the command you are using is the right one.
Here you see the Ionic v3 docs regarding Cordova builds: https://ionicframework.com/docs/v3/cli/cordova/build/
And here the cordova docs:
- Android: https://cordova.apache.org/docs/en/10.x/guide/platforms/android/#using-flags
- iOS: https://cordova.apache.org/docs/en/10.x/guide/platforms/ios/#using-flags
Any solutions to this?
In my current solution I make use of a build config file that specifies the packageType
option:
{
"android": {
"release": {
"packageType": "bundle"
}
}
}
This config file can be referenced using the cordova_build_config_file
option, like so:
ionic(
platform: 'android',
prod: true,
cordova_build_config_file: 'build_config.json',
)
Hope this helps!