pub struct Aapt2;Implementations§
Source§impl Aapt2
impl Aapt2
Sourcepub fn compile(self, o: &Path, manifest: &Path) -> Aapt2Compile
pub fn compile(self, o: &Path, manifest: &Path) -> Aapt2Compile
Compiles resources to be linked into an apk.
Sourcepub fn link(self, inputs: &[PathBuf], o: &Path, manifest: &Path) -> Aapt2Link
pub fn link(self, inputs: &[PathBuf], o: &Path, manifest: &Path) -> Aapt2Link
Links resources 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)
pub fn diff(self)
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) -> Aapt2Optimize
pub fn optimize(self) -> Aapt2Optimize
Preforms resource optimizations on an apk.
Sourcepub fn convert(self) -> Aapt2Convert
pub fn convert(self) -> Aapt2Convert
Converts an apk between binary and proto formats.
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> 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