-
Notifications
You must be signed in to change notification settings - Fork 9
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.dex
todex/classes.dex
res/...
<- 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
jarsigner
for AAB instead ofapksigner
(only used for .apk files)
How should we approach this?
- Make
apk.installApk
pass a flat to the internal function to say its anapk
- Create new
apk.installAab
to internally work differently. So we can still build APKs. - Aesthetics (low priority)
- Consider renaming
apk.zig
to justartifact.zig
, soandroid.Apk
becomesandroid.Artifact
- Consider renaming
Metadata
Metadata
Assignees
Labels
No labels