Skip to content
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

Merged
merged 1 commit into from
Oct 28, 2020
Merged

Support Android Application Bundles #52

merged 1 commit into from
Oct 28, 2020

Conversation

colbymelvin
Copy link
Contributor

@colbymelvin colbymelvin commented Oct 1, 2020

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!

@@ -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'
Copy link
Contributor Author

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).

Comment on lines +125 to +126
android_package_type = params[:package_type] || 'apk'
android_package_extension = android_package_type == 'bundle' ? '.aab' : '.apk'
Copy link
Contributor Author

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.

@colbymelvin
Copy link
Contributor Author

@Almouro Any thoughts on this? I'd love to hear what you think.

@Almouro
Copy link
Member

Almouro commented Oct 28, 2020

Makes a lot of sense, thanks @colbymelvin for nicely taking care of this!

@Almouro Almouro merged commit 66f8fa4 into bamlab:master Oct 28, 2020
@Almouro
Copy link
Member

Almouro commented Oct 28, 2020

@colbymelvin included in version 3.1.0 :)

mlegenhausen pushed a commit to werk85/fastlane-plugin-cordova that referenced this pull request Nov 4, 2020
mlegenhausen pushed a commit to werk85/fastlane-plugin-cordova that referenced this pull request Nov 4, 2020
Almouro pushed a commit that referenced this pull request Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants