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 .aab production #47

Open
bdirito opened this issue Oct 9, 2019 · 3 comments
Open

support .aab production #47

bdirito opened this issue Oct 9, 2019 · 3 comments

Comments

@bdirito
Copy link

bdirito commented Oct 9, 2019

As of cordova-android 8.1 there is new support for producing Android Application Bundles (aab).

This was done as via apache/cordova-android#764

Documentation is ... minimal but the following does work

$ cordova build android --release -- --packageType=bundle
...
BUILD SUCCESSFUL in 6s
49 actionable tasks: 15 executed, 34 up-to-date
Built the following bundle(s): 
        [path]/platforms/android/app/build/outputs/bundle/release/app.aab

This plugin's type argument appears to be an ios only flag however.

@mlegenhausen
Copy link
Contributor

You can add a build.json to your cordova project with the following content

{
	"android": {
		"release": {
			"packageType": "bundle"
		}
	}
}

@booleanbetrayal
Copy link

@Almouro - Is there any plan on supporting this officially? Looks like CORDOVA_ANDROID_RELEASE_BUILD_PATH will always be assigned an .apk file extension, so some manual renaming will be needed in the interim.

@fortu42
Copy link

fortu42 commented Apr 23, 2020

+1 for official support and having the correct path in CORDOVA_ANDROID_RELEASE_BUILD_PATH

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

No branches or pull requests

4 participants