refactor(android): rename BuildTask.kt command to android-studio-script (#4991)

This commit is contained in:
Lucas Fernandes Nogueira 2022-08-21 17:48:38 -03:00 committed by GitHub
parent 9890486321
commit 9bb81bc328
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -70,7 +70,7 @@ pub struct Cli {
}
#[derive(Debug, Parser)]
pub struct BuildOptions {
pub struct AndroidStudioScriptOptions {
/// Targets to build.
#[clap(
short,
@ -127,14 +127,14 @@ enum Commands {
Open,
Dev(DevOptions),
#[clap(hide(true))]
Build(BuildOptions),
AndroidStudioScript(AndroidStudioScriptOptions),
}
pub fn command(cli: Cli) -> Result<()> {
match cli.command {
Commands::Init(options) => init_command(options, MobileTarget::Android)?,
Commands::Open => open()?,
Commands::Build(options) => build(options)?,
Commands::AndroidStudioScript(options) => android_studio_script(options)?,
Commands::Dev(options) => dev(options)?,
}
@ -294,7 +294,7 @@ fn run(options: MobileOptions) -> Result<DevChild, Error> {
.map(|c| DevChild(Some(c)))
}
fn build(options: BuildOptions) -> Result<()> {
fn android_studio_script(options: AndroidStudioScriptOptions) -> Result<()> {
let profile = if options.release {
Profile::Release
} else {

View File

@ -81,7 +81,7 @@ impl Target {
fn ide_build_script_name(&self) -> &'static str {
match self {
Self::Android => "build",
Self::Android => "android-studio-script",
#[cfg(target_os = "macos")]
Self::Ios => "xcode-script",
}