Struct android_tools::bundletool::GetSizeTotal
source · [−]pub struct GetSizeTotal { /* private fields */ }
Expand description
Measure the estimated download sizes of APKs in an APK set
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
sourceimpl 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
Trait Implementations
sourceimpl Default for GetSizeTotal
impl Default for GetSizeTotal
sourcefn default() -> GetSizeTotal
fn default() -> GetSizeTotal
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for GetSizeTotal
impl Send for GetSizeTotal
impl Sync for GetSizeTotal
impl Unpin for GetSizeTotal
impl UnwindSafe for GetSizeTotal
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more