pub struct Bundletool;
Expand description

Bundletool

bundletool is the underlying tool that Android Studio, the Android Gradle plugin, and Google Play use to build an Android App Bundle, and convert an app bundle into the various APKs that are deployed to devices. Bundletool is also available to you as a command line tool, so you can build app bundles yourself and recreate Google Play’s server-side build of your app’s APKs.

Download bundletool

If you haven’t already done so, download bundletool from the [GitHub repository].

Install bundletool

In variable environments needs to create new variable BUNDLETOOL_PATH and add path to the bundletool

GitHub repository

Implementations

Generate an APK set for all device configurations your app supports from your app bundle

Generate AAB file from generated zip modules to specified path. Notice, that zip module must contents files in protobuf format

To measure the estimated download sizes of APKs in an APK set as they would be served compressed over-the-wire, use the get-size total

Extract device-specific APKs from an existing APK set If you have an existing APK set and you want to extract from it a subset of APKs that target a specific device configuration, you can use the extract-apks command and specify a device specification JSON

Use the install-apks command and specify the path of the APK set to deploy your app from an APK set

Generate and use device specification JSON files. Bundletool is capable of generating an APK set that targets a device configuration specified by a JSON file. To first generate a JSON file for a connected device, run the command

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.