pub struct Aapt2;
Expand description
AAPT2
(Android Asset Packaging Tool) is a build tool that Android Studio
and Android Gradle Plugin use to compile and package your app’s resources.
[AAPT2
] parses, indexes, and compiles the resources into a binary format
that is optimized for the Android platform
Implementations§
Source§impl Aapt2
impl Aapt2
Sourcepub fn compile_incremental(
self,
res_path: &Path,
compiled_res: &Path,
) -> Aapt2Compile
pub fn compile_incremental( self, res_path: &Path, compiled_res: &Path, ) -> Aapt2Compile
Compiles resources incrementally from given resource path
Sourcepub fn compile_dir(self, res_dir: &Path, compiled_res: &Path) -> Aapt2Compile
pub fn compile_dir(self, res_dir: &Path, compiled_res: &Path) -> Aapt2Compile
Compiles resources from given resource dir
Sourcepub fn compile_zip(self, res_zip: &Path, compiled_res: &Path) -> Aapt2Compile
pub fn compile_zip(self, res_zip: &Path, compiled_res: &Path) -> Aapt2Compile
Compiles resources from given resource zip
Sourcepub fn link_inputs(
self,
inputs: &[PathBuf],
output_apk: &Path,
manifest: &Path,
) -> Aapt2Link
pub fn link_inputs( self, inputs: &[PathBuf], output_apk: &Path, manifest: &Path, ) -> Aapt2Link
Links given list of resources into an APK
Sourcepub fn link_compiled_res(
self,
compiled_res: Option<PathBuf>,
output_apk: &Path,
manifest: &Path,
) -> Aapt2Link
pub fn link_compiled_res( self, compiled_res: Option<PathBuf>, output_apk: &Path, manifest: &Path, ) -> Aapt2Link
Links resources from given /compiled_res folder into an APK
Sourcepub fn dump(self, subcommand: SubCommand, filename_apk: &Path) -> Aapt2Dump
pub fn dump(self, subcommand: SubCommand, filename_apk: &Path) -> Aapt2Dump
Used for printing information about the APK you generated using the link command
Sourcepub fn diff(self, file: &[PathBuf]) -> Aapt2Diff
pub fn diff(self, file: &[PathBuf]) -> Aapt2Diff
Prints the differences in resources of two APKs
Sourcepub fn optimize(self, output_apk: &Path, output_dir: &Path) -> Aapt2Optimize
pub fn optimize(self, output_apk: &Path, output_dir: &Path) -> Aapt2Optimize
Preforms resource optimizations on an APK
Sourcepub fn convert(self, o: &Path) -> Aapt2Convert
pub fn convert(self, o: &Path) -> Aapt2Convert
Converts an apk between binary and proto formats
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Aapt2
impl RefUnwindSafe for Aapt2
impl Send for Aapt2
impl Sync for Aapt2
impl Unpin for Aapt2
impl UnwindSafe for Aapt2
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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