Struct android_tools::aapt2::Aapt2
source · [−]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
sourceimpl 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 RefUnwindSafe for Aapt2
impl Send for Aapt2
impl Sync for Aapt2
impl Unpin for Aapt2
impl UnwindSafe for Aapt2
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