-
Notifications
You must be signed in to change notification settings - Fork 39
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
Support Android Application Bundles #52
Support Android Application Bundles #52
Conversation
@@ -13,7 +13,8 @@ class CordovaAction < Action | |||
keystore_alias: 'alias', | |||
build_number: 'versionCode', | |||
min_sdk_version: 'gradleArg=-PcdvMinSdkVersion', | |||
cordova_no_fetch: 'cordovaNoFetch' | |||
cordova_no_fetch: 'cordovaNoFetch', | |||
package_type: 'packageType' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type
makes more sense here, IMO. However, I figured it'd be easily conflated with the type
param used for iOS (CORDOVA_IOS_PACKAGE_TYPE).
android_package_type = params[:package_type] || 'apk' | ||
android_package_extension = android_package_type == 'bundle' ? '.aab' : '.apk' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default to building apk
files, unless package_type
specifies otherwise.
@Almouro Any thoughts on this? I'd love to hear what you think. |
Makes a lot of sense, thanks @colbymelvin for nicely taking care of this! |
@colbymelvin included in version 3.1.0 :) |
Thank you for this plugin, it's great! This PR addresses #47 by enabling the building of Android Application Bundles (.aab files) in a backwards-compatible manner.
Please LMK if I missed anything, or if you'd like any additional changes!