Struct crossbundle_tools::types::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
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 · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more