pub struct AndroidBuildCommand {
pub shared: SharedBuildCommand,
pub target: Vec<AndroidTarget>,
pub aab: bool,
pub bundletool_install: bool,
pub sign_key_path: Option<PathBuf>,
pub sign_key_pass: Option<String>,
pub sign_key_alias: Option<String>,
}Expand description
Specifies flags and options needed to build application
Fields
target: Vec<AndroidTarget>Build for the given android architecture.
Supported targets are: armv7-linux-androideabi, aarch64-linux-android, i686-linux-android, x86_64-linux-android
aab: boolGenerating aab. By default crossbow generating apk
bundletool_install: boolsign_key_path: Option<PathBuf>Path to the signing key
sign_key_pass: Option<String>Signing key password
sign_key_alias: Option<String>Signing key alias
Implementations
sourceimpl AndroidBuildCommand
impl AndroidBuildCommand
pub fn run(&self, config: &Config) -> Result<()>
sourcepub fn execute_apk(
&self,
config: &Config,
context: &BuildContext
) -> Result<(AndroidManifest, AndroidSdk, PathBuf)>
pub fn execute_apk(
&self,
config: &Config,
context: &BuildContext
) -> Result<(AndroidManifest, AndroidSdk, PathBuf)>
Builds APK with aapt tool and signs it with apksigner
sourcepub fn execute_aab(
&self,
config: &Config,
context: &BuildContext
) -> Result<(AndroidManifest, AndroidSdk, PathBuf, String, AabKey)>
pub fn execute_aab(
&self,
config: &Config,
context: &BuildContext
) -> Result<(AndroidManifest, AndroidSdk, PathBuf, String, AabKey)>
Builds AAB with aapt2 tool and signs it with jarsigner
Trait Implementations
sourceimpl Args for AndroidBuildCommand
impl Args for AndroidBuildCommand
sourceimpl Clone for AndroidBuildCommand
impl Clone for AndroidBuildCommand
sourcefn clone(&self) -> AndroidBuildCommand
fn clone(&self) -> AndroidBuildCommand
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl CommandFactory for AndroidBuildCommand
impl CommandFactory for AndroidBuildCommand
sourcefn into_app<'b>() -> Command<'b>
fn into_app<'b>() -> Command<'b>
Replaced with `CommandFactory::command
Deprecated, replaced with CommandFactory::command
sourcefn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
Replaced with `CommandFactory::command_for_update
Deprecated, replaced with CommandFactory::command_for_update
sourcefn command_for_update<'help>() -> App<'help>
fn command_for_update<'help>() -> App<'help>
sourceimpl Debug for AndroidBuildCommand
impl Debug for AndroidBuildCommand
sourceimpl FromArgMatches for AndroidBuildCommand
impl FromArgMatches for AndroidBuildCommand
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
sourcefn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
Assign values from ArgMatches to self.
sourceimpl Parser for AndroidBuildCommand
impl Parser for AndroidBuildCommand
sourcefn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
sourcefn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
sourcefn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, exit on error
sourcefn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.
Auto Trait Implementations
impl RefUnwindSafe for AndroidBuildCommand
impl Send for AndroidBuildCommand
impl Sync for AndroidBuildCommand
impl Unpin for AndroidBuildCommand
impl UnwindSafe for AndroidBuildCommand
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more