mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-05 10:13:00 +02:00
13 lines
421 B
Rust
13 lines
421 B
Rust
use super::{ensure_init, with_config, Error, MobileTarget};
|
|
use crate::Result;
|
|
use cargo_mobile::os;
|
|
|
|
pub fn command() -> Result<()> {
|
|
with_config(|_, config, _metadata| {
|
|
ensure_init(config.project_dir(), MobileTarget::Android)
|
|
.map_err(|e| Error::ProjectNotInitialized(e.to_string()))?;
|
|
os::open_file_with("Android Studio", config.project_dir()).map_err(Error::OpenFailed)
|
|
})
|
|
.map_err(Into::into)
|
|
}
|