The tool of convert aab to apk and more, powered by bundletool.
- generate
universal apk
from aab - calculate download size from aab
- add maven repo in
settings.gradle(.kts)
pluginManagement {
repositories {
maven { url 'https://raw.githubusercontent.com/xeemoo/bundle-tool-plugin/mvn-repo' }
}
}
- configured in root project
libs.versions.toml
andbuild.gradle(.kts)
[versions]
bundleToolPlugin = "latest_version"
[libraries]
bundleToolPlugin = { group = "io.github.xeemoo", name = "bundletool", version.ref = "bundleToolPlugin" }
buildscript {
dependencies {
classpath libs.bundleToolPlugin
}
}
- configured in application
build.gradle(.kts)
plugins {
id 'io.github.xeemoo.bundletool'
}
bundletool {
enable true
enableGetSize true
deviceSpec "path/to/device_spec.json"
}
-
exec
gradlew :application_module:transformApkFromBundleForDebug
-
after build, get output in
application_module/build/intermediates/transformApkFromBundleForDebug
folder