Skip to content

xeemoo/bundle-tool-plugin

Repository files navigation

BundleToolPlugin

The tool of convert aab to apk and more, powered by bundletool.

License Workflow Version

Feature

  • generate universal apk from aab
  • calculate download size from aab

Quick start

  1. add maven repo in settings.gradle(.kts)
pluginManagement {
    repositories {
        maven { url 'https://raw.githubusercontent.com/xeemoo/bundle-tool-plugin/mvn-repo' }
    }
}
  1. configured in root project libs.versions.toml and build.gradle(.kts)
[versions]
bundleToolPlugin = "latest_version"
[libraries]
bundleToolPlugin = { group = "io.github.xeemoo", name = "bundletool", version.ref = "bundleToolPlugin" }
buildscript {
    dependencies {
        classpath libs.bundleToolPlugin
    }
}
  1. configured in application build.gradle(.kts)
plugins {
    id 'io.github.xeemoo.bundletool'
}

bundletool {
    enable true
    enableGetSize true
    deviceSpec "path/to/device_spec.json"
}
  1. exec gradlew :application_module:transformApkFromBundleForDebug

  2. after build, get output in application_module/build/intermediates/transformApkFromBundleForDebug folder

About

The tool of convert aab to apk

Resources

License

Stars

Watchers

Forks

Languages