Skip to content

Commit 1c9f3db

Browse files
authored
chore: change tauri-mobile to cargo-mobile2 (tauri-apps#7953)
1 parent d735324 commit 1c9f3db

File tree

17 files changed

+687
-702
lines changed

17 files changed

+687
-702
lines changed

tooling/cli/Cargo.lock

Lines changed: 638 additions & 653 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tooling/cli/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ name = "cargo-tauri"
3939
path = "src/main.rs"
4040

4141
[dependencies]
42-
tauri-mobile = { version = "0.5.3", default-features = false }
42+
cargo-mobile2 = { version = "0.6", default-features = false }
4343
textwrap = { version = "0.11.0", features = [ "term_size" ] }
4444
jsonrpsee = { version = "0.16", features = [ "server" ] }
4545
jsonrpsee-core = "0.16"
@@ -106,15 +106,15 @@ libc = "0.2"
106106
default = [ "rustls" ]
107107
native-tls = [
108108
"tauri-bundler/native-tls",
109-
"tauri-mobile/native-tls",
109+
"cargo-mobile2/native-tls",
110110
"ureq/native-tls"
111111
]
112112
native-tls-vendored = [
113113
"native-tls",
114114
"tauri-bundler/native-tls-vendored",
115-
"tauri-mobile/openssl-vendored"
115+
"cargo-mobile2/openssl-vendored"
116116
]
117-
rustls = [ "tauri-bundler/rustls", "tauri-mobile/rustls", "ureq/tls" ]
117+
rustls = [ "tauri-bundler/rustls", "cargo-mobile2/rustls", "ureq/tls" ]
118118

119119
[profile.release-size-optimized]
120120
inherits = "release"

tooling/cli/src/info/ios.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use colored::Colorize;
99
pub fn items() -> Vec<SectionItem> {
1010
vec![SectionItem::new(
1111
|| {
12-
let teams = tauri_mobile::apple::teams::find_development_teams().unwrap_or_default();
12+
let teams = cargo_mobile2::apple::teams::find_development_teams().unwrap_or_default();
1313
Some((
1414
if teams.is_empty() {
1515
"Developer Teams: None".red().to_string()

tooling/cli/src/mobile/android.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33
// SPDX-License-Identifier: MIT
44

5-
use clap::{Parser, Subcommand};
6-
use std::{
7-
env::set_var,
8-
fs::{create_dir, create_dir_all, write},
9-
process::exit,
10-
thread::sleep,
11-
time::Duration,
12-
};
13-
use sublime_fuzzy::best_match;
14-
use tauri_mobile::{
5+
use cargo_mobile2::{
156
android::{
167
adb,
178
config::{Config as AndroidConfig, Metadata as AndroidMetadata, Raw as RawAndroidConfig},
@@ -25,6 +16,15 @@ use tauri_mobile::{
2516
os,
2617
util::prompt,
2718
};
19+
use clap::{Parser, Subcommand};
20+
use std::{
21+
env::set_var,
22+
fs::{create_dir, create_dir_all, write},
23+
process::exit,
24+
thread::sleep,
25+
time::Duration,
26+
};
27+
use sublime_fuzzy::best_match;
2828

2929
use super::{
3030
ensure_init, get_app,
@@ -159,7 +159,7 @@ pub fn get_config(
159159

160160
fn env() -> Result<Env> {
161161
let env = super::env()?;
162-
tauri_mobile::android::env::Env::from_env(env).map_err(Into::into)
162+
cargo_mobile2::android::env::Env::from_env(env).map_err(Into::into)
163163
}
164164

165165
fn delete_codegen_vars() {

tooling/cli/src/mobile/android/android_studio_script.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use super::{detect_target_ok, ensure_init, env, get_app, get_config, read_option
66
use crate::{helpers::config::get as get_tauri_config, Result};
77
use clap::{ArgAction, Parser};
88

9-
use tauri_mobile::{
9+
use cargo_mobile2::{
1010
android::target::Target,
1111
opts::Profile,
1212
target::{call_for_targets_with_fallback, TargetTrait},

tooling/cli/src/mobile/android/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use crate::{
2020
use clap::{ArgAction, Parser};
2121

2222
use anyhow::Context;
23-
use tauri_mobile::{
23+
use cargo_mobile2::{
2424
android::{aab, apk, config::Config as AndroidConfig, env::Env, target::Target},
2525
opts::{NoiseLevel, Profile},
2626
target::TargetTrait,

tooling/cli/src/mobile/android/dev.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use crate::{
2020
use clap::{ArgAction, Parser};
2121

2222
use anyhow::Context;
23-
use tauri_mobile::{
23+
use cargo_mobile2::{
2424
android::{
2525
config::{Config as AndroidConfig, Metadata as AndroidMetadata},
2626
device::Device,

tooling/cli/src/mobile/android/open.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use super::{ensure_init, env, get_app, get_config, inject_assets, MobileTarget};
66
use crate::{helpers::config::get as get_tauri_config, Result};
77

8-
use tauri_mobile::os;
8+
use cargo_mobile2::os;
99

1010
pub fn command() -> Result<()> {
1111
let tauri_config = get_tauri_config(tauri_utils::platform::Target::Android, None)?;

tooling/cli/src/mobile/android/project.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
use crate::{helpers::template, Result};
66
use anyhow::Context;
7-
use handlebars::Handlebars;
8-
use include_dir::{include_dir, Dir};
9-
use tauri_mobile::{
7+
use cargo_mobile2::{
108
android::{
119
config::{Config, Metadata},
1210
target::Target,
@@ -20,6 +18,8 @@ use tauri_mobile::{
2018
prefix_path,
2119
},
2220
};
21+
use handlebars::Handlebars;
22+
use include_dir::{include_dir, Dir};
2323

2424
use std::{
2525
ffi::OsStr,

tooling/cli/src/mobile/init.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
use super::{get_app, Target};
66
use crate::helpers::{config::get as get_tauri_config, template::JsonMap};
77
use crate::Result;
8-
use handlebars::{Context, Handlebars, Helper, HelperResult, Output, RenderContext, RenderError};
9-
use tauri_mobile::{
8+
use cargo_mobile2::{
109
android::{
1110
config::Config as AndroidConfig, env::Env as AndroidEnv, target::Target as AndroidTarget,
1211
},
@@ -18,6 +17,7 @@ use tauri_mobile::{
1817
cli::{Report, TextWrapper},
1918
},
2019
};
20+
use handlebars::{Context, Handlebars, Helper, HelperResult, Output, RenderContext, RenderError};
2121

2222
use std::{
2323
env::{current_dir, var, var_os},

0 commit comments

Comments
 (0)