pub struct GetSizeTotal { /* private fields */ }
Expand description
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 command:
bundletool get-size total --apks=/MyApp/my_app.apks
You can modify the behavior of the get-size total command using the following flags:
Implementationsยง
Sourceยงimpl GetSizeTotal
impl GetSizeTotal
Sourcepub fn new(apks: &Path) -> Self
pub fn new(apks: &Path) -> Self
(Required) Specifies the path to the existing APK set file whose download size is measured.
Sourcepub fn device_spec(&mut self, device_spec: &Path) -> &mut Self
pub fn device_spec(&mut self, device_spec: &Path) -> &mut Self
Specifies the path to the device spec file (from get-device-spec or constructed manually) to use for matching. You can specify a partial path to evaluate a set of configurations.
Sourcepub fn dimensions(&mut self, dimensions: String) -> &mut Self
pub fn dimensions(&mut self, dimensions: String) -> &mut Self
Specifies the dimensions used when computing the size estimates. Accepts a comma-separated list of: SDK, ABI, SCREEN_DENSITY, and LANGUAGE. To measure across all dimensions, specify ALL.
Sourcepub fn instant(&mut self, instant: bool) -> &mut Self
pub fn instant(&mut self, instant: bool) -> &mut Self
Measures the download size of the instant-enabled APKs instead of the installable APKs. By default, bundletool measures the installable APK download sizes
Sourcepub fn modules(&mut self, modules: String) -> &mut Self
pub fn modules(&mut self, modules: String) -> &mut Self
Specifies a comma-separated list of modules in the APK set to consider in the measurement. The bundletool command automatically includes any dependent modules for the specified set. By default, the command measures the download size of all modules installed during the first download.