Bundletool is a command-line tool to manipulate Android App Bundles
resources.arsc
. Resources with collapsed names are only accessible by their ids. Developers may enable these optimizations in their BundleConfig. Configuration allows to exclude certain resources and/or resource types.{
"optimizations": {
"resourceOptimizations": {
"collapsedResourceNames": {
"collapseResourceNames": true,
"deduplicateResourceEntries": true,
"noCollapseResourceTypes": ["layout", "mipmap"]
}
}
}
}
{
"optimizations": {
"uncompressDexFiles": {
"enabled": false
}
}
}
or by including special marker file res/xml/uncompressed_dex_opt_out.xml
in the base module of your Android App Bundle.
build-apks
command for Android S devices and below.SDK_RUNTIME
dimension to get-size
command.--allow-shared-user-id
in add-transparency
command allows to add code transparency to applications with sharedUserId
;protobuf
and guava
libraries.{
"optimizations": {
"storeArchive": {
"enabled": false
}
}
}