pub struct Aapt2;
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. https://gerrit.pixelexperience.org/plugins/gitiles/frameworks_base/+/refs/tags/android-10.0.0_r2/tools/aapt2/cmd/Diff.cpp
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