Struct crossbundle_tools::tools::BuildBundle
source · [−]pub struct BuildBundle { /* private fields */ }Expand description
Build your app bundle using bundletool
To build your app bundle, you use the bundletool build-bundle command, as shown
below:
`bundletool build-bundle --modules=base.zip --output=mybundle.aab`Note
If you plan to publish the app bundle, you need to sign it using [jarsigner]. You
can not use apksigner to sign your app bundle.
Implementations
sourceimpl BuildBundle
impl BuildBundle
sourcepub fn new(modules: &[PathBuf], output: &Path) -> BuildBundle
pub fn new(modules: &[PathBuf], output: &Path) -> BuildBundle
Specifies the list of module ZIP files bundletool should use to build your app
bundle.
Specifies the path and filename for the output .aab file
sourcepub fn config(&mut self, config: &Path) -> &mut BuildBundle
pub fn config(&mut self, config: &Path) -> &mut BuildBundle
Specifies the path to an optional configuration file you can use to customize the
build process. To learn more, see the section about
customizing downstream APK generation
sourcepub fn metadata_file(&mut self, metadata_file: &Path) -> &mut BuildBundle
pub fn metadata_file(&mut self, metadata_file: &Path) -> &mut BuildBundle
Instructs bundletool to package an optional metadata file inside your app bundle. You can use this file to include data, such as ProGuard mappings or the complete list of your app’s DEX files, that may be useful to other steps in your toolchain or an app store.
target-bundle-path specifies a path relative to the root of the app bundle where
you would like the metadata file to be packaged, and local-file-path specifies
the path to the local metadata file itself
Trait Implementations
sourceimpl Debug for BuildBundle
impl Debug for BuildBundle
sourceimpl PartialEq<BuildBundle> for BuildBundle
impl PartialEq<BuildBundle> for BuildBundle
sourcepub fn eq(&self, other: &BuildBundle) -> bool
pub fn eq(&self, other: &BuildBundle) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcepub fn ne(&self, other: &BuildBundle) -> bool
pub fn ne(&self, other: &BuildBundle) -> bool
This method tests for !=.
sourceimpl PartialOrd<BuildBundle> for BuildBundle
impl PartialOrd<BuildBundle> for BuildBundle
sourcepub fn partial_cmp(&self, other: &BuildBundle) -> Option<Ordering>
pub fn partial_cmp(&self, other: &BuildBundle) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl StructuralPartialEq for BuildBundle
Auto Trait Implementations
impl RefUnwindSafe for BuildBundle
impl Send for BuildBundle
impl Sync for BuildBundle
impl Unpin for BuildBundle
impl UnwindSafe for BuildBundle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more