Struct android_tools::aapt2::Aapt2Optimize [−][src]
pub struct Aapt2Optimize { /* fields omitted */ }
Implementations
Initialize struct Aapt2Diff then specifies path to the aapt2 link output APK and Path to the output directory (for splits)
Specifies path to XML configuration file
Print the multi APK artifacts and exit.
Comma separated list of the screen densities that the APK will be optimized for. All the resources that would be unused on devices of the given densities will be removed from the APK
Path to the resources.cfg file containing the list of resources and directives to
each resource. Format: type/resource_name#[directive][,directive]
Comma separated list of configurations to include. The default is all configurations
Split resources matching a set of configs out to a Split APK.
Syntax: path/to/output.apk;<config>[,<config>[...]].
On Windows, use a semicolon ā;ā separator instead
Comma separated list of artifacts to keep. If none are specified, all artifacts will be kept
Enables encoding sparse entries using a binary search tree. This decreases APK size at the cost of resource retrieval performance
Collapses resource names to a single value in the key string pool. Resources can be exempted using the āno_collapseā directive in a file specified by āresources-config-path
Shortens the paths of resources inside the APK
pub fn resource_path_shortening_map(
&mut self,
resource_path_shortening_map: &Path
) -> &mut Self
pub fn resource_path_shortening_map(
&mut self,
resource_path_shortening_map: &Path
) -> &mut Self
Path to output the map of old resource paths to shortened paths
Trait Implementations
Returns the ādefault valueā for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for Aapt2Optimize
impl Send for Aapt2Optimize
impl Sync for Aapt2Optimize
impl Unpin for Aapt2Optimize
impl UnwindSafe for Aapt2Optimize
Blanket Implementations
Mutably borrows from an owned value. Read more