-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Example of how to do that here:
https://developer.android.com/build/building-cmdline#bundletool-build
Web Archive: http://web.archive.org/web/20241005113630/https://developer.android.com/build/building-cmdline#bundletool-build
tldr:
- aapt2 link phase use protobuf format, ie. aapt2 link --proto-format --auto-add-overlay
- package zip file differently:
manifest/AndroidManifest.xml<- AndroidManifest.xml no longer in rootdex/...<- will need to moveclasses.dextodex/classes.dexres/...<- stays the sameroot/...,assets/..., andlib/...<- stays the sameresources.pb<- likely generated as part ofaapt2 link --proto-format
- pass zip to:
bundletool build-bundle --modules=base.zip --output=mybundle.aab - use
jarsignerfor AAB instead ofapksigner(only used for .apk files)
How should we approach this?
- Make
apk.installApkpass a flat to the internal function to say its anapk - Create new
apk.installAabto internally work differently. So we can still build APKs. - Aesthetics (low priority)
- Consider renaming
apk.zigto justartifact.zig, soandroid.Apkbecomesandroid.Artifact
- Consider renaming
Metadata
Metadata
Assignees
Labels
No labels