Skip to content

Conversation

priitlatt
Copy link
Contributor

@priitlatt priitlatt commented Apr 11, 2025

This pull request introduces the ability to specify a custom Bundletool Java archive when running android-app-bundle tool actions, or specifying desired default bundletool path via Python API if the installation does not include data files. This allows users to use more recent version of bundletool than what is bundled together with the installation.

This change is to support some advanced use cases where the default bundletool may not suffice, such as requiring specific bug fixes or experimental features present in custom builds.

Changes to CLI actions:

  • All android-app-bundle actions accept optional argument --bundletool to specify Bundletool jar to be used. If not given, the default included jar will be used instead as it used to be.
  • New action android-app-bundle bundletool info to show information about used Bundletool (Java runtime, Bundletool path and Bundletool version).
  • New action group android-app-bundle bundletool with actions info and version was added to show information about the exact Bundeltool that is being used to carry out actions.
  • Action android-app-bundle bundletool-version is deprecated in favor of android-app-bundle bundletool version. Old version acts as an alias for the new one for the time being with a relevant deprecation message.
Screenshots of usage
  • Using included bundletool:
    Screenshot 2025-04-14 at 12 22 07

  • Using custom bundletool:
    Screenshot 2025-04-14 at 12 22 56

@priitlatt priitlatt added the enhancement New feature or request label Apr 14, 2025
@priitlatt priitlatt marked this pull request as ready for review April 14, 2025 08:52
Copy link
Contributor

@mikhail-tokarev mikhail-tokarev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@priitlatt priitlatt merged commit 18de07b into master Apr 14, 2025
13 checks passed
@priitlatt priitlatt deleted the feature/custom-bundletool branch April 14, 2025 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants