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§
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
Trait Implementations§
Source§impl Default for GetSizeTotal
impl Default for GetSizeTotal
Source§fn default() -> GetSizeTotal
fn default() -> GetSizeTotal
Auto Trait Implementations§
impl Freeze for GetSizeTotal
impl RefUnwindSafe for GetSizeTotal
impl Send for GetSizeTotal
impl Sync for GetSizeTotal
impl Unpin for GetSizeTotal
impl UnwindSafe for GetSizeTotal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more