From b4622ea4d32720bc3bb2a8c740bb70cfe32fed93 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Thu, 11 Aug 2022 10:30:55 -0300 Subject: [PATCH 001/436] refactor(app): run setup and window creation when event loop is ready (#4914) --- .changes/config.json | 2 - .changes/refactor-setup.md | 5 +++ core/tauri/src/app.rs | 92 +++++++++++++++++++++++++++++--------- core/tauri/src/test/mod.rs | 16 ++++--- 4 files changed, 86 insertions(+), 29 deletions(-) create mode 100644 .changes/refactor-setup.md diff --git a/.changes/config.json b/.changes/config.json index eb8bdeb0c802..9376b807afb1 100644 --- a/.changes/config.json +++ b/.changes/config.json @@ -3,7 +3,6 @@ "timeout": 3600000, "pkgManagers": { "rust": { - "errorOnVersionRange": "^2.0.0-0", "version": true, "getPublishedVersion": "cargo search ${ pkgFile.pkg.package.name } --limit 1 | sed -nE \"s/^[^\\\"]*\\\"//; s/\\\".*//1p\"", "prepublish": [ @@ -78,7 +77,6 @@ ] }, "javascript": { - "errorOnVersionRange": "^2.0.0-0", "version": true, "getPublishedVersion": "npm view ${ pkgFile.pkg.name } version", "prepublish": [ diff --git a/.changes/refactor-setup.md b/.changes/refactor-setup.md new file mode 100644 index 000000000000..657cf32d2ad6 --- /dev/null +++ b/.changes/refactor-setup.md @@ -0,0 +1,5 @@ +--- +"tauri": major +--- + +**Breaking change:** The window creation and setup hook are now called when the event loop is ready. diff --git a/core/tauri/src/app.rs b/core/tauri/src/app.rs index 7084b0924f42..9e9e4a811318 100644 --- a/core/tauri/src/app.rs +++ b/core/tauri/src/app.rs @@ -40,6 +40,7 @@ use tauri_utils::PackageInfo; use std::{ collections::HashMap, + fmt, path::{Path, PathBuf}, sync::{mpsc::Sender, Arc, Weak}, }; @@ -526,9 +527,10 @@ impl ManagerBase for AppHandle { /// /// This type implements [`Manager`] which allows for manipulation of global application items. #[default_runtime(crate::Wry, wry)] -#[derive(Debug)] pub struct App { runtime: Option, + pending_windows: Option>>, + setup: Option>, manager: WindowManager, #[cfg(all(desktop, feature = "global-shortcut"))] global_shortcut_manager: R::GlobalShortcutManager, @@ -537,6 +539,22 @@ pub struct App { handle: AppHandle, } +impl fmt::Debug for App { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + let mut d = f.debug_struct("App"); + d.field("runtime", &self.runtime) + .field("manager", &self.manager) + .field("handle", &self.handle); + + #[cfg(all(desktop, feature = "global-shortcut"))] + d.field("global_shortcut_manager", &self.global_shortcut_manager); + #[cfg(feature = "clipboard")] + d.field("clipboard_manager", &self.clipboard_manager); + + d.finish() + } +} + impl Manager for App {} impl ManagerBase for App { fn manager(&self) -> &WindowManager { @@ -544,7 +562,11 @@ impl ManagerBase for App { } fn runtime(&self) -> RuntimeOrDispatch<'_, R> { - RuntimeOrDispatch::Runtime(self.runtime.as_ref().unwrap()) + if let Some(runtime) = self.runtime.as_ref() { + RuntimeOrDispatch::Runtime(runtime) + } else { + self.handle.runtime() + } } fn managed_app_handle(&self) -> AppHandle { @@ -775,6 +797,17 @@ impl App { let app_handle = self.handle(); let manager = self.manager.clone(); self.runtime.take().unwrap().run(move |event| match event { + RuntimeRunEvent::Ready => { + if let Err(e) = setup(&mut self) { + panic!("Failed to setup app: {}", e); + } + on_event_loop_event( + &app_handle, + RuntimeRunEvent::Ready, + &manager, + Some(&mut callback), + ); + } RuntimeRunEvent::Exit => { on_event_loop_event( &app_handle, @@ -1460,8 +1493,11 @@ impl Builder { #[cfg(feature = "clipboard")] let clipboard_manager = runtime.clipboard_manager(); + #[allow(unused_mut)] let mut app = App { runtime: Some(runtime), + pending_windows: Some(self.pending_windows), + setup: Some(self.setup), manager: manager.clone(), #[cfg(all(desktop, feature = "global-shortcut"))] global_shortcut_manager: global_shortcut_manager.clone(), @@ -1551,26 +1587,6 @@ impl Builder { app.manager.initialize_plugins(&app.handle())?; - let window_labels = self - .pending_windows - .iter() - .map(|p| p.label.clone()) - .collect::>(); - - for pending in self.pending_windows { - let pending = - app - .manager - .prepare_window(app.handle.clone(), pending, &window_labels, None)?; - let detached = app.runtime.as_ref().unwrap().create_window(pending)?; - let _window = app.manager.attach_window(app.handle(), detached); - } - - (self.setup)(&mut app).map_err(|e| crate::Error::Setup(e.into()))?; - - #[cfg(updater)] - app.run_updater(); - Ok(app) } @@ -1593,6 +1609,38 @@ unsafe impl HasRawDisplayHandle for App { } } +fn setup(app: &mut App) -> crate::Result<()> { + let pending_windows = app.pending_windows.take(); + if let Some(pending_windows) = pending_windows { + let window_labels = pending_windows + .iter() + .map(|p| p.label.clone()) + .collect::>(); + + for pending in pending_windows { + let pending = + app + .manager + .prepare_window(app.handle.clone(), pending, &window_labels, None)?; + let detached = if let RuntimeOrDispatch::RuntimeHandle(runtime) = app.handle().runtime() { + runtime.create_window(pending)? + } else { + // the AppHandle's runtime is always RuntimeOrDispatch::RuntimeHandle + unreachable!() + }; + let _window = app.manager.attach_window(app.handle(), detached); + } + } + + if let Some(setup) = app.setup.take() { + (setup)(app).map_err(|e| crate::Error::Setup(e.into()))?; + } + + #[cfg(updater)] + app.run_updater(); + Ok(()) +} + fn on_event_loop_event, RunEvent) + 'static>( app_handle: &AppHandle, event: RuntimeRunEvent, diff --git a/core/tauri/src/test/mod.rs b/core/tauri/src/test/mod.rs index 61aa59664e98..bf0bb33e074b 100644 --- a/core/tauri/src/test/mod.rs +++ b/core/tauri/src/test/mod.rs @@ -13,10 +13,10 @@ use std::{borrow::Cow, sync::Arc}; #[cfg(shell_scope)] use crate::ShellScopeConfig; -use crate::{Manager, Pattern}; +use crate::{Manager, Pattern, WindowBuilder}; use tauri_utils::{ assets::{AssetKey, Assets, CspHash}, - config::{CliConfig, Config, PatternKind, TauriConfig}, + config::{CliConfig, Config, PatternKind, TauriConfig, WindowUrl}, }; pub struct NoopAsset { @@ -46,7 +46,7 @@ pub fn mock_context(assets: A) -> crate::Context { package: Default::default(), tauri: TauriConfig { pattern: PatternKind::Brownfield, - windows: vec![Default::default()], + windows: Vec::new(), cli: Some(CliConfig { description: None, long_description: None, @@ -86,9 +86,15 @@ pub fn mock_context(assets: A) -> crate::Context { } pub fn mock_app() -> crate::App { - crate::Builder::::new() + let app = crate::Builder::::new() .build(mock_context(noop_assets())) - .unwrap() + .unwrap(); + + WindowBuilder::new(&app, "main", WindowUrl::App("index.html".into())) + .build() + .unwrap(); + + app } pub(crate) fn mock_invoke_context() -> crate::endpoints::InvokeContext { From 6aee91a181d08387746d33501a576e4645bd94b3 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Fri, 12 Aug 2022 14:11:14 -0300 Subject: [PATCH 002/436] feat(core): prepare for Android --- core/tauri/src/endpoints/operating_system.rs | 2 ++ core/tauri/src/pattern.rs | 2 +- examples/api/src-tauri/Cargo.toml | 1 + examples/api/src-tauri/mobile.toml | 2 +- examples/api/src-tauri/src/mobile.rs | 2 +- 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/core/tauri/src/endpoints/operating_system.rs b/core/tauri/src/endpoints/operating_system.rs index 1ab69608e32c..1b56791a59f9 100644 --- a/core/tauri/src/endpoints/operating_system.rs +++ b/core/tauri/src/endpoints/operating_system.rs @@ -78,6 +78,8 @@ fn os_type() -> &'static str { return "Darwin"; #[cfg(target_os = "ios")] return "iOS"; + #[cfg(target_os = "android")] + return "Android"; } #[cfg(os_all)] diff --git a/core/tauri/src/pattern.rs b/core/tauri/src/pattern.rs index 19b3713033ea..76f43e809806 100644 --- a/core/tauri/src/pattern.rs +++ b/core/tauri/src/pattern.rs @@ -86,7 +86,7 @@ pub(crate) struct PatternJavascript { #[allow(dead_code)] pub(crate) fn format_real_schema(schema: &str) -> String { - if cfg!(windows) { + if cfg!(windows) || cfg!(target_os = "android") { format!("https://{}.localhost", schema) } else { format!("{}://localhost", schema) diff --git a/examples/api/src-tauri/Cargo.toml b/examples/api/src-tauri/Cargo.toml index baae9446c40d..4cc4cbb061ea 100644 --- a/examples/api/src-tauri/Cargo.toml +++ b/examples/api/src-tauri/Cargo.toml @@ -30,6 +30,7 @@ features = [ "macos-private-api", "windows7-compat", "reqwest-client", + "reqwest-native-tls-vendored", "system-tray", "updater" ] diff --git a/examples/api/src-tauri/mobile.toml b/examples/api/src-tauri/mobile.toml index c74c1c2ac1e6..998b18530dd0 100644 --- a/examples/api/src-tauri/mobile.toml +++ b/examples/api/src-tauri/mobile.toml @@ -1,7 +1,7 @@ [app] name = "api" stylized-name = "Tauri API" -domain = "com.tauri" +domain = "tauri.studio" template-pack = "tauri" [apple] diff --git a/examples/api/src-tauri/src/mobile.rs b/examples/api/src-tauri/src/mobile.rs index beb20e20cd8a..73fe7a36d569 100644 --- a/examples/api/src-tauri/src/mobile.rs +++ b/examples/api/src-tauri/src/mobile.rs @@ -33,7 +33,7 @@ fn _start_app() { #[inline(never)] pub extern "C" fn start_app() { #[cfg(target_os = "android")] - android_fn!(com.tauri, api); + android_fn!(studio_tauri, api); _start_app() } From d14322de6821def21a97924a74b79b6867926d5e Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Sun, 14 Aug 2022 17:51:09 -0300 Subject: [PATCH 003/436] chore(deps): update to wry 0.20.2 refactor --- core/tauri-runtime-wry/Cargo.toml | 2 +- examples/api/src-tauri/Cargo.lock | 19 +++++++++++++++---- examples/api/src-tauri/src/mobile.rs | 4 ++-- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/core/tauri-runtime-wry/Cargo.toml b/core/tauri-runtime-wry/Cargo.toml index 5780814d4783..a0475d06ca8c 100644 --- a/core/tauri-runtime-wry/Cargo.toml +++ b/core/tauri-runtime-wry/Cargo.toml @@ -13,7 +13,7 @@ exclude = [ ".license_template", "CHANGELOG.md", "/target" ] readme = "README.md" [dependencies] -wry = { version = "0.20", default-features = false, features = [ "file-drop", "protocol" ] } +wry = { version = "0.20.2", default-features = false, features = [ "file-drop", "protocol" ] } tauri-runtime = { version = "0.10.2", path = "../tauri-runtime" } tauri-utils = { version = "1.0.3", path = "../tauri-utils" } uuid = { version = "1", features = [ "v4" ] } diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index b9dddd963805..6f0b89c6ad56 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -2075,6 +2075,15 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" +[[package]] +name = "openssl-src" +version = "111.22.0+1.1.1q" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f31f0d509d1c1ae9cada2f9539ff8f37933831fd5098879e482aa687d659853" +dependencies = [ + "cc", +] + [[package]] name = "openssl-sys" version = "0.9.75" @@ -2084,6 +2093,7 @@ dependencies = [ "autocfg", "cc", "libc", + "openssl-src", "pkg-config", "vcpkg", ] @@ -3089,9 +3099,9 @@ dependencies = [ [[package]] name = "tao" -version = "0.13.2" +version = "0.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ad691ca9fca6c2c76c09ffcddf6ae6593fba65d95477cf31780910ed272f5b8" +checksum = "a2093fa6bba3cc0c185b21c900de1b757e66637e78848cbcdda967b836d8c0ec" dependencies = [ "bitflags", "cairo-rs", @@ -4202,13 +4212,14 @@ dependencies = [ [[package]] name = "wry" -version = "0.20.1" +version = "0.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22a806297d9fae9fef5a9d52480e5edc5452f97ea9d15b55c8a58ab93c9582f1" +checksum = "ea48fb3b68ab76f62837bfcea63baed9a185dbec9c14d4e5d70033e22fefffd2" dependencies = [ "block", "cocoa", "core-graphics", + "crossbeam-channel", "gdk", "gio", "glib", diff --git a/examples/api/src-tauri/src/mobile.rs b/examples/api/src-tauri/src/mobile.rs index 73fe7a36d569..05c5bda021c6 100644 --- a/examples/api/src-tauri/src/mobile.rs +++ b/examples/api/src-tauri/src/mobile.rs @@ -1,5 +1,5 @@ #[cfg(target_os = "android")] -use tauri_runtime_wry::wry::application::{android_fn, platform::android::ndk_glue::*}; +use tauri_runtime_wry::wry::android_binding; #[cfg(target_os = "android")] fn init_logging(app_name: &str) { @@ -33,7 +33,7 @@ fn _start_app() { #[inline(never)] pub extern "C" fn start_app() { #[cfg(target_os = "android")] - android_fn!(studio_tauri, api); + android_binding!(studio_tauri, api, _start_app, tauri_runtime_wry::wry); _start_app() } From d3179b84b51f4b66afd06de2183f1999c7634c46 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Sun, 14 Aug 2022 20:54:14 -0300 Subject: [PATCH 004/436] chore(examples): readd gitignore rules for mobile api example --- examples/api/src-tauri/.gitignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/api/src-tauri/.gitignore b/examples/api/src-tauri/.gitignore index aba21e242c95..e5f47c4d3d32 100644 --- a/examples/api/src-tauri/.gitignore +++ b/examples/api/src-tauri/.gitignore @@ -1,3 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ + +# cargo-mobile +.cargo/ +/gen From d44f67f7afd30a81d53a973ec603b2a253150bde Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Mon, 15 Aug 2022 12:43:50 -0300 Subject: [PATCH 005/436] feat: add `android init` and `ios init` commands (#4942) --- .changes/mobile-init.md | 6 + tooling/cli/Cargo.lock | 642 +++++++++++++++++- tooling/cli/Cargo.toml | 8 + tooling/cli/src/helpers/template.rs | 68 +- tooling/cli/src/lib.rs | 7 + tooling/cli/src/mobile/android.rs | 36 + tooling/cli/src/mobile/android/project.rs | 184 +++++ tooling/cli/src/mobile/init.rs | 435 ++++++++++++ tooling/cli/src/mobile/ios.rs | 36 + tooling/cli/src/mobile/ios/project.rs | 193 ++++++ tooling/cli/src/mobile/mod.rs | 8 + .../templates/mobile/android/.editorconfig | 12 + .../cli/templates/mobile/android/.gitignore | 15 + .../templates/mobile/android/app/.gitignore | 1 + .../mobile/android/app/build.gradle.kts | 85 +++ .../mobile/android/app/proguard-rules.pro | 21 + .../android/app/src/main/AndroidManifest.xml | 23 + .../mobile/android/app/src/main/Ipc.kt | 18 + .../android/app/src/main/MainActivity.kt | 3 + .../app/src/main/RustWebChromeClient.kt | 26 + .../android/app/src/main/RustWebViewClient.kt | 24 + .../android/app/src/main/TauriActivity.kt | 71 ++ .../drawable-v24/ic_launcher_foreground.xml | 30 + .../res/drawable/ic_launcher_background.xml | 170 +++++ .../app/src/main/res/layout/activity_main.xml | 18 + .../res/mipmap-anydpi-v26/ic_launcher.xml | 5 + .../mipmap-anydpi-v26/ic_launcher_round.xml | 5 + .../src/main/res/mipmap-hdpi/ic_launcher.webp | Bin 0 -> 1404 bytes .../res/mipmap-hdpi/ic_launcher_round.webp | Bin 0 -> 2898 bytes .../src/main/res/mipmap-mdpi/ic_launcher.webp | Bin 0 -> 982 bytes .../res/mipmap-mdpi/ic_launcher_round.webp | Bin 0 -> 1772 bytes .../main/res/mipmap-xhdpi/ic_launcher.webp | Bin 0 -> 1900 bytes .../res/mipmap-xhdpi/ic_launcher_round.webp | Bin 0 -> 3918 bytes .../main/res/mipmap-xxhdpi/ic_launcher.webp | Bin 0 -> 2884 bytes .../res/mipmap-xxhdpi/ic_launcher_round.webp | Bin 0 -> 5914 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.webp | Bin 0 -> 3844 bytes .../res/mipmap-xxxhdpi/ic_launcher_round.webp | Bin 0 -> 7778 bytes .../app/src/main/res/values-night/themes.xml | 16 + .../app/src/main/res/values/colors.xml | 10 + .../app/src/main/res/values/strings.xml | 3 + .../app/src/main/res/values/themes.xml | 16 + .../templates/mobile/android/build.gradle.kts | 27 + .../mobile/android/buildSrc/build.gradle.kts | 27 + .../buildSrc/src/main/kotlin/BuildTask.kt | 54 ++ .../buildSrc/src/main/kotlin/RustPlugin.kt | 51 ++ .../mobile/android/gradle.properties | 23 + .../android/gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 59203 bytes .../gradle/wrapper/gradle-wrapper.properties | 6 + tooling/cli/templates/mobile/android/gradlew | 185 +++++ .../cli/templates/mobile/android/gradlew.bat | 89 +++ .../templates/mobile/android/settings.gradle | 3 + tooling/cli/templates/mobile/ios/.gitignore | 2 + .../templates/mobile/ios/ExportOptions.plist | 8 + tooling/cli/templates/mobile/ios/Podfile | 25 + .../Sources/{{app.name}}/bindings/bindings.h | 8 + .../mobile/ios/Sources/{{app.name}}/main.mm | 6 + tooling/cli/templates/mobile/ios/project.yml | 280 ++++++++ .../xcshareddata/WorkspaceSettings.xcsettings | 12 + 58 files changed, 2973 insertions(+), 28 deletions(-) create mode 100644 .changes/mobile-init.md create mode 100644 tooling/cli/src/mobile/android.rs create mode 100644 tooling/cli/src/mobile/android/project.rs create mode 100644 tooling/cli/src/mobile/init.rs create mode 100644 tooling/cli/src/mobile/ios.rs create mode 100644 tooling/cli/src/mobile/ios/project.rs create mode 100644 tooling/cli/src/mobile/mod.rs create mode 100644 tooling/cli/templates/mobile/android/.editorconfig create mode 100644 tooling/cli/templates/mobile/android/.gitignore create mode 100644 tooling/cli/templates/mobile/android/app/.gitignore create mode 100644 tooling/cli/templates/mobile/android/app/build.gradle.kts create mode 100644 tooling/cli/templates/mobile/android/app/proguard-rules.pro create mode 100644 tooling/cli/templates/mobile/android/app/src/main/AndroidManifest.xml create mode 100644 tooling/cli/templates/mobile/android/app/src/main/Ipc.kt create mode 100644 tooling/cli/templates/mobile/android/app/src/main/MainActivity.kt create mode 100644 tooling/cli/templates/mobile/android/app/src/main/RustWebChromeClient.kt create mode 100644 tooling/cli/templates/mobile/android/app/src/main/RustWebViewClient.kt create mode 100644 tooling/cli/templates/mobile/android/app/src/main/TauriActivity.kt create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/drawable/ic_launcher_background.xml create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/layout/activity_main.xml create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/values-night/themes.xml create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/values/colors.xml create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/values/strings.xml create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/values/themes.xml create mode 100644 tooling/cli/templates/mobile/android/build.gradle.kts create mode 100644 tooling/cli/templates/mobile/android/buildSrc/build.gradle.kts create mode 100644 tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/BuildTask.kt create mode 100644 tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/RustPlugin.kt create mode 100644 tooling/cli/templates/mobile/android/gradle.properties create mode 100644 tooling/cli/templates/mobile/android/gradle/wrapper/gradle-wrapper.jar create mode 100644 tooling/cli/templates/mobile/android/gradle/wrapper/gradle-wrapper.properties create mode 100755 tooling/cli/templates/mobile/android/gradlew create mode 100644 tooling/cli/templates/mobile/android/gradlew.bat create mode 100644 tooling/cli/templates/mobile/android/settings.gradle create mode 100644 tooling/cli/templates/mobile/ios/.gitignore create mode 100644 tooling/cli/templates/mobile/ios/ExportOptions.plist create mode 100644 tooling/cli/templates/mobile/ios/Podfile create mode 100644 tooling/cli/templates/mobile/ios/Sources/{{app.name}}/bindings/bindings.h create mode 100644 tooling/cli/templates/mobile/ios/Sources/{{app.name}}/main.mm create mode 100644 tooling/cli/templates/mobile/ios/project.yml create mode 100644 tooling/cli/templates/mobile/ios/{{app.name}}.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings diff --git a/.changes/mobile-init.md b/.changes/mobile-init.md new file mode 100644 index 000000000000..97c17f266548 --- /dev/null +++ b/.changes/mobile-init.md @@ -0,0 +1,6 @@ +--- +"cli.rs": minor +"cli.js": minor +--- + +Added `android init` and `ios init` commands. diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 92c3200f0c4d..7dc82570871b 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -58,6 +58,15 @@ dependencies = [ "memchr", ] +[[package]] +name = "ansi_term" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" +dependencies = [ + "winapi 0.3.9", +] + [[package]] name = "anyhow" version = "1.0.58" @@ -70,6 +79,12 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d67af77d68a931ecd5cbd8a3b5987d63a1d1d1278f7f6a60ae33db485cdebb69" +[[package]] +name = "arrayvec" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" + [[package]] name = "attohttpc" version = "0.22.0" @@ -112,6 +127,18 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a32fd6af2b5827bce66c29053ba0e7c42b9dcab01835835058558c10851a46b" +[[package]] +name = "bicycle" +version = "0.1.0" +source = "git+https://github.com/BrainiumLLC/bicycle?rev=28080e0c6fa4067d9dd1b0f2b7322b6b32178e1f#28080e0c6fa4067d9dd1b0f2b7322b6b32178e1f" +dependencies = [ + "handlebars 3.5.5", + "log", + "serde", + "serde_json", + "thiserror", +] + [[package]] name = "bit_field" version = "0.10.1" @@ -136,6 +163,12 @@ dependencies = [ "winapi 0.3.9", ] +[[package]] +name = "block" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a" + [[package]] name = "block-buffer" version = "0.7.3" @@ -166,6 +199,16 @@ dependencies = [ "byte-tools", ] +[[package]] +name = "bossy" +version = "0.2.1" +source = "git+https://github.com/lucasfernog/bossy?branch=fix/winapi-features#83ee04daddbc9b985b5f8dcf54d7229f0542d41d" +dependencies = [ + "libc", + "log", + "winapi 0.3.9", +] + [[package]] name = "bstr" version = "0.2.17" @@ -226,6 +269,48 @@ dependencies = [ "pkg-config", ] +[[package]] +name = "cargo-mobile" +version = "0.1.0" +source = "git+https://github.com/tauri-apps/cargo-mobile?branch=feat/library#d2b3f7248657c60dcc0669303329b802f04a6291" +dependencies = [ + "bicycle", + "bossy", + "cocoa", + "colored 1.9.3", + "const-utf16", + "core-foundation 0.7.0", + "deunicode", + "dunce", + "embed-resource", + "english-numbers", + "env_logger 0.7.1", + "freedesktop_entry_parser", + "heck 0.4.0", + "hit", + "home", + "ignore", + "indexmap", + "java-properties", + "lexical-core", + "log", + "objc", + "objc_id", + "once-cell-regex", + "openssl", + "path_abs", + "reserved-names", + "serde", + "serde_json", + "structopt", + "textwrap 0.11.0", + "thiserror", + "toml", + "ureq", + "windows 0.26.0", + "yes-or-no", +] + [[package]] name = "cc" version = "1.0.73" @@ -276,6 +361,21 @@ dependencies = [ "generic-array 0.14.5", ] +[[package]] +name = "clap" +version = "2.34.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c" +dependencies = [ + "ansi_term", + "atty", + "bitflags", + "strsim 0.8.0", + "textwrap 0.11.0", + "unicode-width", + "vec_map", +] + [[package]] name = "clap" version = "3.2.7" @@ -288,9 +388,9 @@ dependencies = [ "clap_lex", "indexmap", "once_cell", - "strsim", + "strsim 0.10.0", "termcolor", - "textwrap", + "textwrap 0.15.0", ] [[package]] @@ -299,7 +399,7 @@ version = "3.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "759bf187376e1afa7b85b959e6a664a3e7a95203415dba952ad19139e798f902" dependencies = [ - "heck", + "heck 0.4.0", "proc-macro-error", "proc-macro2", "quote", @@ -315,12 +415,38 @@ dependencies = [ "os_str_bytes", ] +[[package]] +name = "cocoa" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c49e86fc36d5704151f5996b7b3795385f50ce09e3be0f47a0cfde869681cf8" +dependencies = [ + "bitflags", + "block", + "core-foundation 0.7.0", + "core-graphics", + "foreign-types", + "libc", + "objc", +] + [[package]] name = "color_quant" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b" +[[package]] +name = "colored" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4ffc801dacf156c5854b9df4f425a626539c3a6ef7893cc0c5084a23f0b6c59" +dependencies = [ + "atty", + "lazy_static", + "winapi 0.3.9", +] + [[package]] name = "colored" version = "2.0.0" @@ -357,6 +483,12 @@ dependencies = [ "winapi 0.3.9", ] +[[package]] +name = "const-utf16" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90feefab165fe011746e3be2f0708b7b180fcbd9f5054ff81a454d7bd93d8285" + [[package]] name = "constant_time_eq" version = "0.1.5" @@ -375,22 +507,50 @@ version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fb4a24b1aaf0fd0ce8b45161144d6f42cd91677fd5940fd431183eb023b3a2b8" +[[package]] +name = "core-foundation" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57d24c7a13c43e870e37c1556b74555437870a04514f7685f5b354e090567171" +dependencies = [ + "core-foundation-sys 0.7.0", + "libc", +] + [[package]] name = "core-foundation" version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "194a7a9e6de53fa55116934067c844d9d749312f75c6f6d0980e8c252f8c2146" dependencies = [ - "core-foundation-sys", + "core-foundation-sys 0.8.3", "libc", ] +[[package]] +name = "core-foundation-sys" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3a71ab494c0b5b860bdc8407ae08978052417070c2ced38573a9157ad75b8ac" + [[package]] name = "core-foundation-sys" version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc" +[[package]] +name = "core-graphics" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3889374e6ea6ab25dba90bb5d96202f61108058361f6dc72e8b03e6f8bbe923" +dependencies = [ + "bitflags", + "core-foundation 0.7.0", + "foreign-types", + "libc", +] + [[package]] name = "cpufeatures" version = "0.2.2" @@ -550,7 +710,7 @@ dependencies = [ "ident_case", "proc-macro2", "quote", - "strsim", + "strsim 0.10.0", "syn", ] @@ -564,7 +724,7 @@ dependencies = [ "ident_case", "proc-macro2", "quote", - "strsim", + "strsim 0.10.0", "syn", ] @@ -622,6 +782,12 @@ dependencies = [ "syn", ] +[[package]] +name = "deunicode" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2c9736e15e7df1638a7f6eee92a6511615c738246a052af5ba86f039b65aede" + [[package]] name = "dialoguer" version = "0.10.1" @@ -689,6 +855,12 @@ dependencies = [ "dtoa", ] +[[package]] +name = "dunce" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "453440c271cf5577fd2a40e4942540cb7d0d2f85e27c8d07dd0023c925a67541" + [[package]] name = "dyn-clone" version = "1.0.6" @@ -701,12 +873,108 @@ version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" +[[package]] +name = "embed-resource" +version = "1.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc24ff8d764818e9ab17963b0593c535f077a513f565e75e4352d758bc4d8c0" +dependencies = [ + "cc", + "rustc_version", + "toml", + "vswhom", + "winreg", +] + [[package]] name = "encode_unicode" version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" +[[package]] +name = "encoding" +version = "0.2.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b0d943856b990d12d3b55b359144ff341533e516d94098b1d3fc1ac666d36ec" +dependencies = [ + "encoding-index-japanese", + "encoding-index-korean", + "encoding-index-simpchinese", + "encoding-index-singlebyte", + "encoding-index-tradchinese", +] + +[[package]] +name = "encoding-index-japanese" +version = "1.20141219.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04e8b2ff42e9a05335dbf8b5c6f7567e5591d0d916ccef4e0b1710d32a0d0c91" +dependencies = [ + "encoding_index_tests", +] + +[[package]] +name = "encoding-index-korean" +version = "1.20141219.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4dc33fb8e6bcba213fe2f14275f0963fd16f0a02c878e3095ecfdf5bee529d81" +dependencies = [ + "encoding_index_tests", +] + +[[package]] +name = "encoding-index-simpchinese" +version = "1.20141219.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d87a7194909b9118fc707194baa434a4e3b0fb6a5a757c73c3adb07aa25031f7" +dependencies = [ + "encoding_index_tests", +] + +[[package]] +name = "encoding-index-singlebyte" +version = "1.20141219.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3351d5acffb224af9ca265f435b859c7c01537c0849754d3db3fdf2bfe2ae84a" +dependencies = [ + "encoding_index_tests", +] + +[[package]] +name = "encoding-index-tradchinese" +version = "1.20141219.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd0e20d5688ce3cab59eb3ef3a2083a5c77bf496cb798dc6fcdb75f323890c18" +dependencies = [ + "encoding_index_tests", +] + +[[package]] +name = "encoding_index_tests" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a246d82be1c9d791c5dfde9a2bd045fc3cbba3fa2b11ad558f27d01712f00569" + +[[package]] +name = "english-numbers" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e4f5d6e192964d498b45abee72ca445e91909094bc8e8791259e82c2a0d1aa6" + +[[package]] +name = "env_logger" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36" +dependencies = [ + "atty", + "humantime 1.3.0", + "log", + "regex", + "termcolor", +] + [[package]] name = "env_logger" version = "0.9.0" @@ -714,7 +982,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3" dependencies = [ "atty", - "humantime", + "humantime 2.1.0", "log", "regex", "termcolor", @@ -838,6 +1106,16 @@ dependencies = [ "percent-encoding", ] +[[package]] +name = "freedesktop_entry_parser" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db9c27b72f19a99a895f8ca89e2d26e4ef31013376e56fdafef697627306c3e4" +dependencies = [ + "nom", + "thiserror", +] + [[package]] name = "fsevent" version = "0.4.0" @@ -992,6 +1270,20 @@ version = "1.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eabb4a44450da02c90444cf74558da904edde8fb4e9035a9a6a4e15445af0bd7" +[[package]] +name = "handlebars" +version = "3.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4498fc115fa7d34de968184e473529abb40eeb6be8bc5f7faba3d08c316cb3e3" +dependencies = [ + "log", + "pest", + "pest_derive", + "quick-error 2.0.1", + "serde", + "serde_json", +] + [[package]] name = "handlebars" version = "4.3.1" @@ -1012,6 +1304,15 @@ version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "db0d4cf898abf0081f964436dc980e96670a0f36863e4b83aaacdb65c9d7ccc3" +[[package]] +name = "heck" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" +dependencies = [ + "unicode-segmentation", +] + [[package]] name = "heck" version = "0.4.0" @@ -1033,6 +1334,18 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" +[[package]] +name = "hit" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a8b280c3c6e2a2a51b3dde2f1071b28afff0ebce59e29443b1b391e7efe32fd" +dependencies = [ + "bossy", + "log", + "once-cell-regex", + "thiserror", +] + [[package]] name = "hmac" version = "0.12.1" @@ -1042,6 +1355,15 @@ dependencies = [ "digest 0.10.3", ] +[[package]] +name = "home" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2456aef2e6b6a9784192ae780c0f15bc57df0e918585282325e8c8ac27737654" +dependencies = [ + "winapi 0.3.9", +] + [[package]] name = "html5ever" version = "0.25.2" @@ -1067,6 +1389,15 @@ dependencies = [ "itoa 1.0.2", ] +[[package]] +name = "humantime" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4f" +dependencies = [ + "quick-error 1.2.3", +] + [[package]] name = "humantime" version = "2.1.0" @@ -1241,6 +1572,17 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "112c678d4050afce233f4f2852bb2eb519230b3cf12f33585275537d7e41578d" +[[package]] +name = "java-properties" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1904d8654a1ef51034d02d5a9411b50bf91bea15b0ab644ae179d1325976263" +dependencies = [ + "encoding", + "lazy_static", + "regex", +] + [[package]] name = "jobserver" version = "0.1.24" @@ -1349,6 +1691,19 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7efd1d698db0759e6ef11a7cd44407407399a910c774dd804c64c032da7826ff" +[[package]] +name = "lexical-core" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6607c62aa161d23d17a9072cc5da0be67cdfc89d3afb1e8d9c842bebc2525ffe" +dependencies = [ + "arrayvec", + "bitflags", + "cfg-if 1.0.0", + "ryu", + "static_assertions", +] + [[package]] name = "libc" version = "0.2.126" @@ -1426,6 +1781,15 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4" +[[package]] +name = "malloc_buf" +version = "0.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb" +dependencies = [ + "libc", +] + [[package]] name = "maplit" version = "1.0.2" @@ -1473,6 +1837,12 @@ dependencies = [ "autocfg", ] +[[package]] +name = "minimal-lexical" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + [[package]] name = "minisign" version = "0.7.0" @@ -1661,6 +2031,16 @@ version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb" +[[package]] +name = "nom" +version = "7.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8903e5a29a317527874d0402f867152a3d21c908bb0b933e416c65e301d4c36" +dependencies = [ + "memchr", + "minimal-lexical", +] + [[package]] name = "notify" version = "4.0.17" @@ -1728,6 +2108,34 @@ dependencies = [ "libc", ] +[[package]] +name = "objc" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1" +dependencies = [ + "malloc_buf", +] + +[[package]] +name = "objc_id" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c92d4ddb4bd7b50d730c215ff871754d0da6b2178849f8a2a2ab69712d0c073b" +dependencies = [ + "objc", +] + +[[package]] +name = "once-cell-regex" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3de7e389a5043420c8f2b95ed03f3f104ad6f4c41f7d7e27298f033abc253e8" +dependencies = [ + "once_cell", + "regex", +] + [[package]] name = "once_cell" version = "1.13.0" @@ -1852,6 +2260,18 @@ dependencies = [ "subtle", ] +[[package]] +name = "path_abs" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05ef02f6342ac01d8a93b65f96db53fe68a92a15f41144f97fb00a9e669633c3" +dependencies = [ + "serde", + "serde_derive", + "std_prelude", + "stfu8", +] + [[package]] name = "pbkdf2" version = "0.10.1" @@ -2148,6 +2568,18 @@ dependencies = [ "url", ] +[[package]] +name = "quick-error" +version = "1.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" + +[[package]] +name = "quick-error" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3" + [[package]] name = "quote" version = "1.0.20" @@ -2308,6 +2740,14 @@ dependencies = [ "winapi 0.3.9", ] +[[package]] +name = "reserved-names" +version = "0.1.0" +source = "git+https://github.com/BrainiumLLC/reserved-names#cc46545db485b13851e9136280b7d8e5a95a9d18" +dependencies = [ + "thiserror", +] + [[package]] name = "ring" version = "0.16.20" @@ -2481,8 +2921,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2dc14f172faf8a0194a3aded622712b0de276821addc574fa54fc0a1167e10dc" dependencies = [ "bitflags", - "core-foundation", - "core-foundation-sys", + "core-foundation 0.9.3", + "core-foundation-sys 0.8.3", "libc", "security-framework-sys", ] @@ -2493,7 +2933,7 @@ version = "2.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0160a13a177a45bfb43ce71c01580998474f556ad854dcbca936dd2841a5c556" dependencies = [ - "core-foundation-sys", + "core-foundation-sys 0.8.3", "libc", ] @@ -2736,6 +3176,28 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + +[[package]] +name = "std_prelude" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8207e78455ffdf55661170876f88daf85356e4edd54e0a3dbc79586ca1e50cbe" + +[[package]] +name = "stfu8" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "019f0c664fd85d5a87dcfb62b40b691055392a35a6e59f4df83d4b770db7e876" +dependencies = [ + "lazy_static", + "regex", +] + [[package]] name = "string_cache" version = "0.8.4" @@ -2762,12 +3224,42 @@ dependencies = [ "quote", ] +[[package]] +name = "strsim" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" + [[package]] name = "strsim" version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" +[[package]] +name = "structopt" +version = "0.3.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c6b5c64445ba8094a6ab0c3cd2ad323e07171012d9c98b0b15651daf1787a10" +dependencies = [ + "clap 2.34.0", + "lazy_static", + "structopt-derive", +] + +[[package]] +name = "structopt-derive" +version = "0.4.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dcb5ae327f9cc13b68763b5749770cb9e048a99bd9dfdfa58d0cf05d5f64afe0" +dependencies = [ + "heck 0.3.3", + "proc-macro-error", + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "subtle" version = "2.4.1" @@ -2825,8 +3317,8 @@ dependencies = [ "bitness", "dirs-next", "glob", - "handlebars", - "heck", + "handlebars 4.3.1", + "heck 0.4.0", "hex", "icns", "image", @@ -2839,7 +3331,7 @@ dependencies = [ "serde", "serde_json", "sha2", - "strsim", + "strsim 0.10.0", "tar", "tauri-utils", "tempfile", @@ -2858,14 +3350,16 @@ version = "1.0.5" dependencies = [ "anyhow", "base64", - "clap", - "colored", + "bossy", + "cargo-mobile", + "clap 3.2.7", + "colored 2.0.0", "ctrlc", "dialoguer", - "env_logger", + "env_logger 0.9.0", "glob", - "handlebars", - "heck", + "handlebars 4.3.1", + "heck 0.4.0", "ignore", "include_dir", "json-patch", @@ -2888,6 +3382,8 @@ dependencies = [ "tauri-utils", "tempfile", "terminal_size 0.2.1", + "textwrap 0.11.0", + "thiserror", "toml", "toml_edit", "unicode-width", @@ -2917,7 +3413,7 @@ dependencies = [ "ctor", "getrandom 0.2.7", "glob", - "heck", + "heck 0.4.0", "html5ever", "json-patch", "json5", @@ -2934,7 +3430,7 @@ dependencies = [ "toml", "url", "walkdir", - "windows", + "windows 0.37.0", ] [[package]] @@ -2962,6 +3458,16 @@ dependencies = [ "utf-8", ] +[[package]] +name = "term_size" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e4129646ca0ed8f45d09b929036bafad5377103edd06e50bf574b353d2b08d9" +dependencies = [ + "libc", + "winapi 0.3.9", +] + [[package]] name = "termcolor" version = "1.1.3" @@ -2991,6 +3497,16 @@ dependencies = [ "windows-sys", ] +[[package]] +name = "textwrap" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" +dependencies = [ + "term_size", + "unicode-width", +] + [[package]] name = "textwrap" version = "0.15.0" @@ -3103,6 +3619,7 @@ version = "0.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8d82e1a7758622a465f8cee077614c73484dac5b836c02ff6a40d5d1010324d7" dependencies = [ + "indexmap", "serde", ] @@ -3168,6 +3685,12 @@ dependencies = [ "tinyvec", ] +[[package]] +name = "unicode-segmentation" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e8820f5d777f6224dc4be3632222971ac30164d4a258d595640799554ebfd99" + [[package]] name = "unicode-width" version = "0.1.9" @@ -3293,12 +3816,38 @@ version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" +[[package]] +name = "vec_map" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" + [[package]] name = "version_check" version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" +[[package]] +name = "vswhom" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be979b7f07507105799e854203b470ff7c78a1639e330a58f183b5fea574608b" +dependencies = [ + "libc", + "vswhom-sys", +] + +[[package]] +name = "vswhom-sys" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22025f6d8eb903ebf920ea6933b70b1e495be37e2cb4099e62c80454aaf57c39" +dependencies = [ + "cc", + "libc", +] + [[package]] name = "walkdir" version = "2.3.2" @@ -3460,6 +4009,19 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +[[package]] +name = "windows" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "347cdcaae1addebdff584aea1f9fbc0426dedbe1315f1dcf30c7a9876401cd25" +dependencies = [ + "windows_aarch64_msvc 0.26.0", + "windows_i686_gnu 0.26.0", + "windows_i686_msvc 0.26.0", + "windows_x86_64_gnu 0.26.0", + "windows_x86_64_msvc 0.26.0", +] + [[package]] name = "windows" version = "0.37.0" @@ -3503,6 +4065,12 @@ version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3263d25f1170419995b78ff10c06b949e8a986c35c208dc24333c64753a87169" +[[package]] +name = "windows_aarch64_msvc" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7758986b022add546ae53ccad31f4852ce6bd2e2c2d3cc2b1d7d06dea0b90da" + [[package]] name = "windows_aarch64_msvc" version = "0.36.1" @@ -3515,6 +4083,12 @@ version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2623277cb2d1c216ba3b578c0f3cf9cdebeddb6e66b1b218bb33596ea7769c3a" +[[package]] +name = "windows_i686_gnu" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29261214caab8e589f61031ba1ccd5c3c25e61db2118a3aec4459f58ff798726" + [[package]] name = "windows_i686_gnu" version = "0.36.1" @@ -3527,6 +4101,12 @@ version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3925fd0b0b804730d44d4b6278c50f9699703ec49bcd628020f46f4ba07d9e1" +[[package]] +name = "windows_i686_msvc" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43984fb3b944743142112ae926e7adeccb60f35bb81d43114f4d0fe2871f60ba" + [[package]] name = "windows_i686_msvc" version = "0.36.1" @@ -3539,6 +4119,12 @@ version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ce907ac74fe331b524c1298683efbf598bb031bc84d5e274db2083696d07c57c" +[[package]] +name = "windows_x86_64_gnu" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a80fc90e1ad19769e596a3f58d0776319059e21cac9069a5a2a791362ce7190" + [[package]] name = "windows_x86_64_gnu" version = "0.36.1" @@ -3551,6 +4137,12 @@ version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2babfba0828f2e6b32457d5341427dcbb577ceef556273229959ac23a10af33d" +[[package]] +name = "windows_x86_64_msvc" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc24ddac19a0cf02ad2b32d8897f202fc1a13ef285e2d4774e6610783cc8398f" + [[package]] name = "windows_x86_64_msvc" version = "0.36.1" @@ -3597,6 +4189,16 @@ version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d2d7d3948613f75c98fd9328cfdcc45acc4d360655289d0a7d4ec931392200a3" +[[package]] +name = "yes-or-no" +version = "0.1.0" +source = "git+https://github.com/BrainiumLLC/yes-or-no#71d932693601fcf93ff906b90ad61f85b52117c5" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "zeroize" version = "1.5.5" diff --git a/tooling/cli/Cargo.toml b/tooling/cli/Cargo.toml index c2a77100a487..8fd0c9263af9 100644 --- a/tooling/cli/Cargo.toml +++ b/tooling/cli/Cargo.toml @@ -26,7 +26,15 @@ include = [ name = "cargo-tauri" path = "src/main.rs" +[patch.crates-io] +bossy = { git = "https://github.com/lucasfernog/bossy", branch = "fix/winapi-features" } + [dependencies] +# cargo-mobile = { path = "../../../cargo-mobile/", default-features = false } +cargo-mobile = { git = "https://github.com/tauri-apps/cargo-mobile", branch = "feat/library", default-features = false } +bossy = "0.2" +textwrap = { version = "0.11.0", features = ["term_size"] } +thiserror = "1" clap = { version = "3.2", features = [ "derive" ] } anyhow = "1.0" tauri-bundler = { version = "1.0.5", path = "../bundler" } diff --git a/tooling/cli/src/helpers/template.rs b/tooling/cli/src/helpers/template.rs index 5ff775d17c79..4aa8b7343d86 100644 --- a/tooling/cli/src/helpers/template.rs +++ b/tooling/cli/src/helpers/template.rs @@ -3,22 +3,74 @@ // SPDX-License-Identifier: MIT use std::{ - collections::BTreeMap, fs::{create_dir_all, File}, io::Write, - path::Path, + path::{Path, PathBuf}, }; -use handlebars::Handlebars; +use handlebars::{to_json, Handlebars}; use include_dir::Dir; +use serde::Serialize; +use serde_json::value::{Map, Value as JsonValue}; -pub fn render>( +/// Map of template variable names and values. +#[derive(Clone, Debug)] +#[repr(transparent)] +pub struct JsonMap(Map); + +impl Default for JsonMap { + fn default() -> Self { + Self(Map::new()) + } +} + +impl JsonMap { + pub fn insert(&mut self, name: &str, value: impl Serialize) { + self.0.insert(name.to_owned(), to_json(value)); + } + + pub fn inner(&self) -> &Map { + &self.0 + } +} + +pub fn render, D: Serialize>( + handlebars: &Handlebars<'_>, + data: &D, + dir: &Dir<'_>, + out_dir: P, +) -> crate::Result<()> { + let out_dir = out_dir.as_ref(); + let mut created_dirs = Vec::new(); + render_with_generator( + handlebars, + data, + dir, + &out_dir, + &mut |file_path: &PathBuf| { + let path = out_dir.join(file_path); + let parent = path.parent().unwrap().to_path_buf(); + if !created_dirs.contains(&parent) { + create_dir_all(&parent)?; + created_dirs.push(parent); + } + File::create(path) + }, + ) +} + +pub fn render_with_generator< + P: AsRef, + D: Serialize, + F: FnMut(&PathBuf) -> std::io::Result, +>( handlebars: &Handlebars<'_>, - data: &BTreeMap<&str, serde_json::Value>, + data: &D, dir: &Dir<'_>, out_dir: P, + out_file_generator: &mut F, ) -> crate::Result<()> { - create_dir_all(out_dir.as_ref().join(dir.path()))?; + let out_dir = out_dir.as_ref(); for file in dir.files() { let mut file_path = file.path().to_path_buf(); // cargo for some reason ignores the /templates folder packaging when it has a Cargo.toml file inside @@ -28,7 +80,7 @@ pub fn render>( file_path.set_extension("toml"); } } - let mut output_file = File::create(out_dir.as_ref().join(file_path))?; + let mut output_file = out_file_generator(&file_path)?; if let Some(utf8) = file.contents_utf8() { handlebars .render_template_to_write(utf8, &data, &mut output_file) @@ -38,7 +90,7 @@ pub fn render>( } } for dir in dir.dirs() { - render(handlebars, data, dir, out_dir.as_ref())?; + render_with_generator(handlebars, data, dir, out_dir, out_file_generator)?; } Ok(()) } diff --git a/tooling/cli/src/lib.rs b/tooling/cli/src/lib.rs index f962940601ac..5fc4b6433e86 100644 --- a/tooling/cli/src/lib.rs +++ b/tooling/cli/src/lib.rs @@ -10,6 +10,7 @@ mod helpers; mod info; mod init; mod interface; +mod mobile; mod plugin; mod signer; @@ -66,6 +67,9 @@ enum Commands { Init(init::Options), Plugin(plugin::Cli), Signer(signer::Cli), + Android(mobile::android::Cli), + #[cfg(target_os = "macos")] + Ios(mobile::ios::Cli), } fn format_error(err: clap::Error) -> clap::Error { @@ -164,6 +168,9 @@ where Commands::Init(options) => init::command(options)?, Commands::Plugin(cli) => plugin::command(cli)?, Commands::Signer(cli) => signer::command(cli)?, + Commands::Android(cli) => mobile::android::command(cli)?, + #[cfg(target_os = "macos")] + Commands::Ios(cli) => mobile::ios::command(cli)?, } Ok(()) diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs new file mode 100644 index 000000000000..b3b3a2435489 --- /dev/null +++ b/tooling/cli/src/mobile/android.rs @@ -0,0 +1,36 @@ +// Copyright 2019-2021 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + +use clap::{Parser, Subcommand}; + +use super::init::{command as init_command, Options as InitOptions, Target as InitTarget}; +use crate::Result; + +pub(crate) mod project; + +#[derive(Parser)] +#[clap( + author, + version, + about = "Android commands", + subcommand_required(true), + arg_required_else_help(true) +)] +pub struct Cli { + #[clap(subcommand)] + command: Commands, +} + +#[derive(Subcommand)] +enum Commands { + Init(InitOptions), +} + +pub fn command(cli: Cli) -> Result<()> { + match cli.command { + Commands::Init(options) => init_command(options, InitTarget::Android)?, + } + + Ok(()) +} diff --git a/tooling/cli/src/mobile/android/project.rs b/tooling/cli/src/mobile/android/project.rs new file mode 100644 index 000000000000..b70771b07872 --- /dev/null +++ b/tooling/cli/src/mobile/android/project.rs @@ -0,0 +1,184 @@ +// Copyright 2019-2021 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + +use crate::helpers::template; +use cargo_mobile::{ + android::{ + config::{Config, Metadata}, + env::Env, + ndk, + target::Target, + }, + dot_cargo, os, + target::TargetTrait as _, + util::{ + self, + cli::{Report, TextWrapper}, + ln, prefix_path, + }, +}; +use handlebars::Handlebars; +use include_dir::{include_dir, Dir}; + +use std::{ + ffi::OsStr, + fs, + path::{Path, PathBuf}, +}; + +const TEMPLATE_DIR: Dir<'_> = include_dir!("templates/mobile/android"); + +#[derive(Debug, thiserror::Error)] +pub enum Error { + #[error("failed to run rustup: {0}")] + RustupFailed(bossy::Error), + #[error("failed to process template: {0}")] + TemplateProcessingFailed(String), + #[error("failed to create directory at {path}: {cause}")] + DirectoryCreationFailed { + path: PathBuf, + cause: std::io::Error, + }, + #[error("failed to symlink asset directory")] + AssetDirSymlinkFailed, + #[error(transparent)] + DotCargoGenFailed(ndk::MissingToolError), + #[error("failed to copy {src} to {dest}: {cause}")] + FileCopyFailed { + src: PathBuf, + dest: PathBuf, + cause: std::io::Error, + }, + #[error("asset source {0} is invalid")] + AssetSourceInvalid(PathBuf), +} + +pub fn gen( + config: &Config, + metadata: &Metadata, + env: &Env, + (handlebars, mut map): (Handlebars, template::JsonMap), + wrapper: &TextWrapper, + dot_cargo: &mut dot_cargo::DotCargo, +) -> Result<(), Error> { + println!("Installing Android toolchains..."); + Target::install_all().map_err(Error::RustupFailed)?; + println!("Generating Android Studio project..."); + let dest = config.project_dir(); + let asset_packs = metadata.asset_packs().unwrap_or_default(); + + map.insert( + "root-dir-rel", + Path::new(&os::replace_path_separator( + util::relativize_path(config.app().root_dir(), config.project_dir()).into_os_string(), + )), + ); + map.insert("root-dir", config.app().root_dir()); + map.insert("targets", Target::all().values().collect::>()); + map.insert("target-names", Target::all().keys().collect::>()); + map.insert( + "arches", + Target::all() + .values() + .map(|target| target.arch) + .collect::>(), + ); + map.insert("android-app-plugins", metadata.app_plugins()); + map.insert( + "android-project-dependencies", + metadata.project_dependencies(), + ); + map.insert("android-app-dependencies", metadata.app_dependencies()); + map.insert( + "android-app-dependencies-platform", + metadata.app_dependencies_platform(), + ); + map.insert( + "has-code", + metadata.project_dependencies().is_some() + || metadata.app_dependencies().is_some() + || metadata.app_dependencies_platform().is_some(), + ); + map.insert( + "asset-packs", + asset_packs + .iter() + .map(|p| p.name.as_str()) + .collect::>(), + ); + map.insert("windows", cfg!(windows)); + + let domain = config.app().reverse_domain().replace('.', "/"); + let package_path = format!("java/{}/{}", domain, config.app().name()); + + let mut created_dirs = Vec::new(); + template::render_with_generator( + &handlebars, + map.inner(), + &TEMPLATE_DIR, + &dest, + &mut |path| { + let path = if path.extension() == Some(OsStr::new("kt")) { + let parent = path.parent().unwrap(); + let file_name = path.file_name().unwrap(); + let out_dir = dest.join(parent).join(&package_path); + out_dir.join(file_name) + } else { + dest.join(path) + }; + + let parent = path.parent().unwrap().to_path_buf(); + if !created_dirs.contains(&parent) { + fs::create_dir_all(&parent)?; + created_dirs.push(parent); + } + + fs::File::create(path) + }, + ) + .map_err(|e| Error::TemplateProcessingFailed(e.to_string()))?; + + if !asset_packs.is_empty() { + Report::action_request( + "When running from Android Studio, you must first set your deployment option to \"APK from app bundle\".", + "Android Studio will not be able to find your asset packs otherwise. The option can be found under \"Run > Edit Configurations > Deploy\"." + ).print(wrapper); + } + + let source_dest = dest.join("app"); + for source in metadata.app_sources() { + let source_src = config.app().root_dir().join(&source); + let source_file = source_src + .file_name() + .ok_or_else(|| Error::AssetSourceInvalid(source_src.clone()))?; + fs::copy(&source_src, source_dest.join(source_file)).map_err(|cause| { + Error::FileCopyFailed { + src: source_src, + dest: source_dest.clone(), + cause, + } + })?; + } + + let dest = prefix_path(dest, "app/src/main/"); + fs::create_dir_all(&dest).map_err(|cause| Error::DirectoryCreationFailed { + path: dest.clone(), + cause, + })?; + os::ln::force_symlink_relative(config.app().asset_dir(), dest, ln::TargetStyle::Directory) + .map_err(|_| Error::AssetDirSymlinkFailed)?; + + { + for target in Target::all().values() { + dot_cargo.insert_target( + target.triple.to_owned(), + target + .generate_cargo_config(config, env) + .map_err(Error::DotCargoGenFailed)?, + ); + } + } + + Ok(()) +} diff --git a/tooling/cli/src/mobile/init.rs b/tooling/cli/src/mobile/init.rs new file mode 100644 index 000000000000..1089eff7130b --- /dev/null +++ b/tooling/cli/src/mobile/init.rs @@ -0,0 +1,435 @@ +// Copyright 2019-2021 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + +use crate::helpers::{app_paths::tauri_dir, template::JsonMap}; +use crate::Result; +use cargo_mobile::{ + android, + config::{ + self, + metadata::{self, Metadata}, + Config, + }, + dot_cargo, + init::{DOT_FIRST_INIT_CONTENTS, DOT_FIRST_INIT_FILE_NAME}, + opts, + os::code_command, + util::{ + self, + cli::{Report, TextWrapper}, + }, +}; +use clap::Parser; +use handlebars::{Context, Handlebars, Helper, HelperResult, Output, RenderContext, RenderError}; + +use std::{ + fs, io, + path::{Path, PathBuf}, +}; + +use opts::{NonInteractive, OpenInEditor, ReinstallDeps, SkipDevTools}; + +#[derive(Debug, Parser)] +#[clap(about = "Initializes a Tauri Android project")] +pub struct Options { + /// Skip prompting for values + #[clap(long)] + ci: bool, +} + +pub fn command(mut options: Options, target: Target) -> Result<()> { + options.ci = options.ci || std::env::var("CI").is_ok(); + + let wrapper = TextWrapper::with_splitter(textwrap::termwidth(), textwrap::NoHyphenation); + exec( + target, + &wrapper, + options.ci.into(), + SkipDevTools::No, + ReinstallDeps::Yes, + OpenInEditor::No, + tauri_dir(), + ) + .map_err(|e| anyhow::anyhow!("{:#}", e))?; + Ok(()) +} + +#[derive(Debug, thiserror::Error)] +pub enum Error { + #[error(transparent)] + ConfigLoadOrGen(config::LoadOrGenError), + #[error("failed to init first init file {path}: {cause}")] + DotFirstInitWrite { path: PathBuf, cause: io::Error }, + #[error("failed to create asset dir {asset_dir}: {cause}")] + AssetDirCreation { + asset_dir: PathBuf, + cause: io::Error, + }, + #[error("failed to install LLDB VS Code extension: {0}")] + LldbExtensionInstall(bossy::Error), + #[error(transparent)] + DotCargoLoad(dot_cargo::LoadError), + #[error(transparent)] + HostTargetTripleDetection(util::HostTargetTripleError), + #[error(transparent)] + Metadata(metadata::Error), + #[cfg(target_os = "macos")] + #[error(transparent)] + IosInit(super::ios::project::Error), + #[error(transparent)] + AndroidEnv(android::env::Error), + #[error(transparent)] + AndroidInit(super::android::project::Error), + #[error(transparent)] + DotCargoWrite(dot_cargo::WriteError), + #[error("failed to delete first init file {path}: {cause}")] + DotFirstInitDelete { path: PathBuf, cause: io::Error }, + #[error(transparent)] + OpenInEditor(util::OpenInEditorError), +} + +#[derive(PartialEq, Eq)] +pub enum Target { + Android, + #[cfg(target_os = "macos")] + Ios, +} + +pub fn exec( + target: Target, + wrapper: &TextWrapper, + non_interactive: NonInteractive, + skip_dev_tools: SkipDevTools, + #[allow(unused_variables)] reinstall_deps: ReinstallDeps, + open_in_editor: OpenInEditor, + cwd: impl AsRef, +) -> Result { + let cwd = cwd.as_ref(); + let (config, config_origin) = + Config::load_or_gen(cwd, non_interactive, wrapper).map_err(Error::ConfigLoadOrGen)?; + let dot_first_init_path = config.app().root_dir().join(DOT_FIRST_INIT_FILE_NAME); + let dot_first_init_exists = { + let dot_first_init_exists = dot_first_init_path.exists(); + if config_origin.freshly_minted() && !dot_first_init_exists { + // indicate first init is ongoing, so that if we error out and exit + // the next init will know to still use `WildWest` filtering + log::info!("creating first init dot file at {:?}", dot_first_init_path); + fs::write(&dot_first_init_path, DOT_FIRST_INIT_CONTENTS).map_err(|cause| { + Error::DotFirstInitWrite { + path: dot_first_init_path.clone(), + cause, + } + })?; + true + } else { + dot_first_init_exists + } + }; + + let asset_dir = config.app().asset_dir(); + if !asset_dir.is_dir() { + fs::create_dir_all(&asset_dir).map_err(|cause| Error::AssetDirCreation { asset_dir, cause })?; + } + if skip_dev_tools.no() && util::command_present("code").unwrap_or_default() { + let mut command = code_command(); + command.add_args(&["--install-extension", "vadimcn.vscode-lldb"]); + if non_interactive.yes() { + command.add_arg("--force"); + } + command + .run_and_wait() + .map_err(Error::LldbExtensionInstall)?; + } + let mut dot_cargo = dot_cargo::DotCargo::load(config.app()).map_err(Error::DotCargoLoad)?; + // Mysteriously, builds that don't specify `--target` seem to fight over + // the build cache with builds that use `--target`! This means that + // alternating between i.e. `cargo run` and `cargo apple run` would + // result in clean builds being made each time you switched... which is + // pretty nightmarish. Specifying `build.target` in `.cargo/config` + // fortunately has the same effect as specifying `--target`, so now we can + // `cargo run` with peace of mind! + // + // This behavior could be explained here: + // https://doc.rust-lang.org/cargo/reference/config.html#buildrustflags + dot_cargo + .set_default_target(util::host_target_triple().map_err(Error::HostTargetTripleDetection)?); + + let metadata = Metadata::load(config.app().root_dir()).map_err(Error::Metadata)?; + + // Generate Xcode project + #[cfg(target_os = "macos")] + if target == Target::Ios && metadata.apple().supported() { + super::ios::project::gen( + config.apple(), + metadata.apple(), + handlebars(&config), + wrapper, + non_interactive, + skip_dev_tools, + reinstall_deps, + ) + .map_err(Error::IosInit)?; + } else { + println!("Skipping iOS init, since it's marked as unsupported in your Cargo.toml metadata"); + } + + // Generate Android Studio project + if target == Target::Android && metadata.android().supported() { + match android::env::Env::new() { + Ok(env) => super::android::project::gen( + config.android(), + metadata.android(), + &env, + handlebars(&config), + wrapper, + &mut dot_cargo, + ) + .map_err(Error::AndroidInit)?, + Err(err) => { + if err.sdk_or_ndk_issue() { + Report::action_request( + " to initialize Android environment; Android support won't be usable until you fix the issue below and re-run `cargo mobile init`!", + err, + ) + .print(wrapper); + } else { + return Err(Error::AndroidEnv(err)); + } + } + } + } else { + println!("Skipping Android init, since it's marked as unsupported in your Cargo.toml metadata"); + } + + dot_cargo + .write(config.app()) + .map_err(Error::DotCargoWrite)?; + if dot_first_init_exists { + log::info!("deleting first init dot file at {:?}", dot_first_init_path); + fs::remove_file(&dot_first_init_path).map_err(|cause| Error::DotFirstInitDelete { + path: dot_first_init_path, + cause, + })?; + } + Report::victory( + "Project generated successfully!", + "Make cool apps! 🌻 🐕 🎉", + ) + .print(wrapper); + if open_in_editor.yes() { + util::open_in_editor(cwd).map_err(Error::OpenInEditor)?; + } + Ok(config) +} + +fn handlebars(config: &Config) -> (Handlebars<'static>, JsonMap) { + let mut h = Handlebars::new(); + h.register_escape_fn(handlebars::no_escape); + + h.register_helper("html-escape", Box::new(html_escape)); + h.register_helper("join", Box::new(join)); + h.register_helper("quote-and-join", Box::new(quote_and_join)); + h.register_helper( + "quote-and-join-colon-prefix", + Box::new(quote_and_join_colon_prefix), + ); + h.register_helper("snake-case", Box::new(snake_case)); + h.register_helper("reverse-domain", Box::new(reverse_domain)); + h.register_helper( + "reverse-domain-snake-case", + Box::new(reverse_domain_snake_case), + ); + // don't mix these up or very bad things will happen to all of us + h.register_helper("prefix-path", Box::new(prefix_path)); + h.register_helper("unprefix-path", Box::new(unprefix_path)); + + let mut map = JsonMap::default(); + map.insert("app", config.app()); + #[cfg(target_os = "macos")] + map.insert("apple", config.apple()); + map.insert("android", config.android()); + + (h, map) +} + +fn get_str<'a>(helper: &'a Helper) -> &'a str { + helper + .param(0) + .and_then(|v| v.value().as_str()) + .unwrap_or("") +} + +fn get_str_array<'a>( + helper: &'a Helper, + formatter: impl Fn(&str) -> String, +) -> Option> { + helper.param(0).and_then(|v| { + v.value().as_array().and_then(|arr| { + arr + .iter() + .map(|val| { + val.as_str().map( + #[allow(clippy::redundant_closure)] + |s| formatter(s), + ) + }) + .collect() + }) + }) +} + +fn html_escape( + helper: &Helper, + _: &Handlebars, + _ctx: &Context, + _: &mut RenderContext, + out: &mut dyn Output, +) -> HelperResult { + out + .write(&handlebars::html_escape(get_str(helper))) + .map_err(Into::into) +} + +fn join( + helper: &Helper, + _: &Handlebars, + _: &Context, + _: &mut RenderContext, + out: &mut dyn Output, +) -> HelperResult { + out + .write( + &get_str_array(helper, |s| s.to_string()) + .ok_or_else(|| RenderError::new("`join` helper wasn't given an array"))? + .join(", "), + ) + .map_err(Into::into) +} + +fn quote_and_join( + helper: &Helper, + _: &Handlebars, + _: &Context, + _: &mut RenderContext, + out: &mut dyn Output, +) -> HelperResult { + out + .write( + &get_str_array(helper, |s| format!("{:?}", s)) + .ok_or_else(|| RenderError::new("`quote-and-join` helper wasn't given an array"))? + .join(", "), + ) + .map_err(Into::into) +} + +fn quote_and_join_colon_prefix( + helper: &Helper, + _: &Handlebars, + _: &Context, + _: &mut RenderContext, + out: &mut dyn Output, +) -> HelperResult { + out + .write( + &get_str_array(helper, |s| format!("{:?}", format!(":{}", s))) + .ok_or_else(|| { + RenderError::new("`quote-and-join-colon-prefix` helper wasn't given an array") + })? + .join(", "), + ) + .map_err(Into::into) +} + +fn snake_case( + helper: &Helper, + _: &Handlebars, + _: &Context, + _: &mut RenderContext, + out: &mut dyn Output, +) -> HelperResult { + use heck::ToSnekCase as _; + out + .write(&get_str(helper).to_snek_case()) + .map_err(Into::into) +} + +fn reverse_domain( + helper: &Helper, + _: &Handlebars, + _: &Context, + _: &mut RenderContext, + out: &mut dyn Output, +) -> HelperResult { + out + .write(&util::reverse_domain(get_str(helper))) + .map_err(Into::into) +} + +fn reverse_domain_snake_case( + helper: &Helper, + _: &Handlebars, + _: &Context, + _: &mut RenderContext, + out: &mut dyn Output, +) -> HelperResult { + use heck::ToSnekCase as _; + out + .write(&util::reverse_domain(get_str(helper)).to_snek_case()) + .map_err(Into::into) +} + +fn app_root(ctx: &Context) -> Result<&str, RenderError> { + let app_root = ctx + .data() + .get("app") + .ok_or_else(|| RenderError::new("`app` missing from template data."))? + .get("root-dir") + .ok_or_else(|| RenderError::new("`app.root-dir` missing from template data."))?; + app_root + .as_str() + .ok_or_else(|| RenderError::new("`app.root-dir` contained invalid UTF-8.")) +} + +fn prefix_path( + helper: &Helper, + _: &Handlebars, + ctx: &Context, + _: &mut RenderContext, + out: &mut dyn Output, +) -> HelperResult { + out + .write( + util::prefix_path(app_root(ctx)?, get_str(helper)) + .to_str() + .ok_or_else(|| { + RenderError::new( + "Either the `app.root-dir` or the specified path contained invalid UTF-8.", + ) + })?, + ) + .map_err(Into::into) +} + +fn unprefix_path( + helper: &Helper, + _: &Handlebars, + ctx: &Context, + _: &mut RenderContext, + out: &mut dyn Output, +) -> HelperResult { + out + .write( + util::unprefix_path(app_root(ctx)?, get_str(helper)) + .map_err(|_| { + RenderError::new("Attempted to unprefix a path that wasn't in the app root dir.") + })? + .to_str() + .ok_or_else(|| { + RenderError::new( + "Either the `app.root-dir` or the specified path contained invalid UTF-8.", + ) + })?, + ) + .map_err(Into::into) +} diff --git a/tooling/cli/src/mobile/ios.rs b/tooling/cli/src/mobile/ios.rs new file mode 100644 index 000000000000..0b10b2d648b1 --- /dev/null +++ b/tooling/cli/src/mobile/ios.rs @@ -0,0 +1,36 @@ +// Copyright 2019-2021 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + +use clap::{Parser, Subcommand}; + +use super::init::{command as init_command, Options as InitOptions, Target as InitTarget}; +use crate::Result; + +pub(crate) mod project; + +#[derive(Parser)] +#[clap( + author, + version, + about = "iOS commands", + subcommand_required(true), + arg_required_else_help(true) +)] +pub struct Cli { + #[clap(subcommand)] + command: Commands, +} + +#[derive(Subcommand)] +enum Commands { + Init(InitOptions), +} + +pub fn command(cli: Cli) -> Result<()> { + match cli.command { + Commands::Init(options) => init_command(options, InitTarget::Ios)?, + } + + Ok(()) +} diff --git a/tooling/cli/src/mobile/ios/project.rs b/tooling/cli/src/mobile/ios/project.rs new file mode 100644 index 000000000000..b743151ada68 --- /dev/null +++ b/tooling/cli/src/mobile/ios/project.rs @@ -0,0 +1,193 @@ +// Copyright 2019-2021 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + +use crate::helpers::template; +use cargo_mobile::{ + apple::{ + config::{Config, Metadata}, + deps, rust_version_check, + target::Target, + }, + opts, + target::TargetTrait as _, + util::{self, cli::TextWrapper, ln}, +}; +use handlebars::Handlebars; +use include_dir::{include_dir, Dir}; +use std::{ + ffi::OsString, + fs::{create_dir_all, File}, + path::{Component, PathBuf}, +}; + +const TEMPLATE_DIR: Dir<'_> = include_dir!("templates/mobile/ios"); + +#[derive(Debug, thiserror::Error)] +pub enum Error { + #[error(transparent)] + Rustup(bossy::Error), + #[error(transparent)] + RustVersionCheck(util::RustVersionError), + #[error("failed to install Apple dependencies: {0}")] + DepsInstall(deps::Error), + #[error("failed to process template: {0}")] + TemplateProcessing(String), + #[error("failed to symlink asset directory")] + AssetDirSymlink, + #[error("failed to create directory at {path}: {cause}")] + DirectoryCreation { + path: PathBuf, + cause: std::io::Error, + }, + #[error("failed to run `xcodegen`: {0}")] + Xcodegen(bossy::Error), + #[error("failed to run `pod install`: {0}")] + PodInstall(bossy::Error), +} + +// unprefixed app_root seems pretty dangerous!! +// TODO: figure out what cargo-mobile meant by that +pub fn gen( + config: &Config, + metadata: &Metadata, + (handlebars, mut map): (Handlebars, template::JsonMap), + wrapper: &TextWrapper, + non_interactive: opts::NonInteractive, + skip_dev_tools: opts::SkipDevTools, + reinstall_deps: opts::ReinstallDeps, +) -> Result<(), Error> { + println!("Installing iOS toolchains..."); + Target::install_all().map_err(Error::Rustup)?; + rust_version_check(wrapper).map_err(Error::RustVersionCheck)?; + + deps::install_all(wrapper, non_interactive, skip_dev_tools, reinstall_deps) + .map_err(Error::DepsInstall)?; + + let dest = config.project_dir(); + let rel_prefix = util::relativize_path(config.app().root_dir(), &dest); + let source_dirs = vec![rel_prefix.join("src")]; + + let asset_catalogs = metadata.ios().asset_catalogs().unwrap_or_default(); + let ios_pods = metadata.ios().pods().unwrap_or_default(); + let macos_pods = metadata.macos().pods().unwrap_or_default(); + + let default_archs = [String::from("arm64"), String::from("x86_64")]; + + map.insert("file-groups", &source_dirs); + map.insert("ios-frameworks", metadata.ios().frameworks()); + map.insert( + "ios-valid-archs", + metadata.ios().valid_archs().unwrap_or(&default_archs), + ); + map.insert("ios-vendor-frameworks", metadata.ios().vendor_frameworks()); + map.insert("ios-vendor-sdks", metadata.ios().vendor_sdks()); + map.insert("macos-frameworks", metadata.macos().frameworks()); + map.insert( + "macos-vendor-frameworks", + metadata.macos().vendor_frameworks(), + ); + map.insert("macos-vendor-sdks", metadata.macos().vendor_frameworks()); + map.insert("asset-catalogs", asset_catalogs); + map.insert("ios-pods", ios_pods); + map.insert("macos-pods", macos_pods); + map.insert( + "ios-additional-targets", + metadata.ios().additional_targets(), + ); + map.insert( + "macos-additional-targets", + metadata.macos().additional_targets(), + ); + map.insert("ios-pre-build-scripts", metadata.ios().pre_build_scripts()); + map.insert( + "ios-post-compile-scripts", + metadata.ios().post_compile_scripts(), + ); + map.insert( + "ios-post-build-scripts", + metadata.ios().post_build_scripts(), + ); + map.insert( + "macos-pre-build-scripts", + metadata.macos().pre_build_scripts(), + ); + map.insert( + "macos-post-compile-scripts", + metadata.macos().post_compile_scripts(), + ); + map.insert( + "macos-post-build-scripts", + metadata.macos().post_build_scripts(), + ); + map.insert( + "ios-command-line-arguments", + metadata.ios().command_line_arguments(), + ); + map.insert( + "macos-command-line-arguments", + metadata.macos().command_line_arguments(), + ); + + let mut created_dirs = Vec::new(); + template::render_with_generator( + &handlebars, + map.inner(), + &TEMPLATE_DIR, + &dest, + &mut |path| { + let mut components: Vec<_> = path.components().collect(); + let mut new_component = None; + for component in &mut components { + if let Component::Normal(c) = component { + let c = c.to_string_lossy(); + if c.contains("{{app.name}}") { + new_component.replace(OsString::from( + &c.replace("{{app.name}}", config.app().name()), + )); + *component = Component::Normal(new_component.as_ref().unwrap()); + break; + } + } + } + let path = dest.join(components.iter().collect::()); + + let parent = path.parent().unwrap().to_path_buf(); + if !created_dirs.contains(&parent) { + create_dir_all(&parent)?; + created_dirs.push(parent); + } + + File::create(path) + }, + ) + .map_err(|e| Error::TemplateProcessing(e.to_string()))?; + + ln::force_symlink_relative(config.app().asset_dir(), &dest, ln::TargetStyle::Directory) + .map_err(|_| Error::AssetDirSymlink)?; + + // Create all asset catalog directories if they don't already exist + for dir in asset_catalogs { + std::fs::create_dir_all(dir).map_err(|cause| Error::DirectoryCreation { + path: dest.clone(), + cause, + })?; + } + + // Note that Xcode doesn't always reload the project nicely; reopening is + // often necessary. + println!("Generating Xcode project..."); + bossy::Command::impure("xcodegen") + .with_args(&["generate", "--spec"]) + .with_arg(dest.join("project.yml")) + .run_and_wait() + .map_err(Error::Xcodegen)?; + + if !ios_pods.is_empty() || !macos_pods.is_empty() { + bossy::Command::impure_parse("pod install") + .with_arg(format!("--project-directory={}", dest.display())) + .run_and_wait() + .map_err(Error::PodInstall)?; + } + Ok(()) +} diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs new file mode 100644 index 000000000000..83baa249cff6 --- /dev/null +++ b/tooling/cli/src/mobile/mod.rs @@ -0,0 +1,8 @@ +// Copyright 2019-2021 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + +pub mod android; +mod init; +#[cfg(target_os = "macos")] +pub mod ios; diff --git a/tooling/cli/templates/mobile/android/.editorconfig b/tooling/cli/templates/mobile/android/.editorconfig new file mode 100644 index 000000000000..ebe51d3bfa47 --- /dev/null +++ b/tooling/cli/templates/mobile/android/.editorconfig @@ -0,0 +1,12 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = false +insert_final_newline = false \ No newline at end of file diff --git a/tooling/cli/templates/mobile/android/.gitignore b/tooling/cli/templates/mobile/android/.gitignore new file mode 100644 index 000000000000..aa724b77071a --- /dev/null +++ b/tooling/cli/templates/mobile/android/.gitignore @@ -0,0 +1,15 @@ +*.iml +.gradle +/local.properties +/.idea/caches +/.idea/libraries +/.idea/modules.xml +/.idea/workspace.xml +/.idea/navEditor.xml +/.idea/assetWizardSettings.xml +.DS_Store +/build +/captures +.externalNativeBuild +.cxx +local.properties diff --git a/tooling/cli/templates/mobile/android/app/.gitignore b/tooling/cli/templates/mobile/android/app/.gitignore new file mode 100644 index 000000000000..42afabfd2abe --- /dev/null +++ b/tooling/cli/templates/mobile/android/app/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/tooling/cli/templates/mobile/android/app/build.gradle.kts b/tooling/cli/templates/mobile/android/app/build.gradle.kts new file mode 100644 index 000000000000..13906b47c2de --- /dev/null +++ b/tooling/cli/templates/mobile/android/app/build.gradle.kts @@ -0,0 +1,85 @@ +plugins { + id("com.android.application") + id("org.jetbrains.kotlin.android") + id("rustPlugin") + {{~#each android-app-plugins}} + id("{{this}}"){{/each}} +} + +android { + compileSdk = 31 + defaultConfig { + applicationId = "{{reverse-domain app.domain}}.{{snake-case app.name}}" + minSdk = {{android.min-sdk-version}} + targetSdk = 31 + versionCode = 1 + versionName = "1.0" + } + sourceSets.getByName("main") { + {{#if android.vulkan-validation}}// Vulkan validation layers + val ndkHome = System.getenv("NDK_HOME") + jniLibs.srcDir("${ndkHome}/sources/third_party/vulkan/src/build-android/jniLibs") + {{/if}} + } + buildTypes { + getByName("debug") { + isDebuggable = true + isJniDebuggable = true + isMinifyEnabled = false + packagingOptions { + {{~#each targets}} + + jniLibs.keepDebugSymbols.add("*/{{this.abi}}/*.so") + {{/each}} + } + } + getByName("release") { + isMinifyEnabled = false + proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro") + } + } + flavorDimensions.add("abi") + productFlavors { + {{~#each targets}} + + create("{{this.arch}}") { + dimension = "abi" + ndk { + abiFilters += listOf("{{this.abi}}") + } + } + {{/each}} + } + + assetPacks += mutableSetOf({{quote-and-join-colon-prefix asset-packs}}) +} + +rust { + rootDirRel = "{{root-dir-rel}}" + targets = listOf({{quote-and-join target-names}}) + arches = listOf({{quote-and-join arches}}) +} + +dependencies { + {{~#each android-app-dependencies-platform}} + implementation(platform("{{this}}")){{/each}} + {{~#each android-app-dependencies}} + implementation("{{this}}"){{/each}} + implementation("androidx.webkit:webkit:1.4.0") + implementation("androidx.appcompat:appcompat:1.4.1") + implementation("com.google.android.material:material:1.6.0") + implementation("androidx.constraintlayout:constraintlayout:2.1.3") + testImplementation("junit:junit:4.13.2") + androidTestImplementation("androidx.test.ext:junit:1.1.3") + androidTestImplementation("androidx.test.espresso:espresso-core:3.4.0") +} + +afterEvaluate { + android.applicationVariants.all { + val buildType = "${buildType.name.capitalize()}" + productFlavors.forEach { + val archAndBuildType = name.capitalize() + tasks["merge${archAndBuildType}JniLibFolders"].dependsOn(tasks["rustBuild${archAndBuildType}"]) + } + } +} diff --git a/tooling/cli/templates/mobile/android/app/proguard-rules.pro b/tooling/cli/templates/mobile/android/app/proguard-rules.pro new file mode 100644 index 000000000000..481bb4348141 --- /dev/null +++ b/tooling/cli/templates/mobile/android/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/tooling/cli/templates/mobile/android/app/src/main/AndroidManifest.xml b/tooling/cli/templates/mobile/android/app/src/main/AndroidManifest.xml new file mode 100644 index 000000000000..cf42dcd2cb4e --- /dev/null +++ b/tooling/cli/templates/mobile/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + diff --git a/tooling/cli/templates/mobile/android/app/src/main/Ipc.kt b/tooling/cli/templates/mobile/android/app/src/main/Ipc.kt new file mode 100644 index 000000000000..f2bb26f1575a --- /dev/null +++ b/tooling/cli/templates/mobile/android/app/src/main/Ipc.kt @@ -0,0 +1,18 @@ +package {{reverse-domain app.domain}}.{{snake-case app.name}} + +import android.webkit.* + +class Ipc { + @JavascriptInterface + fun postMessage(message: String) { + this.ipc(message) + } + + companion object { + init { + System.loadLibrary("{{snake-case app.name}}") + } + } + + private external fun ipc(message: String) +} diff --git a/tooling/cli/templates/mobile/android/app/src/main/MainActivity.kt b/tooling/cli/templates/mobile/android/app/src/main/MainActivity.kt new file mode 100644 index 000000000000..187d1996cab7 --- /dev/null +++ b/tooling/cli/templates/mobile/android/app/src/main/MainActivity.kt @@ -0,0 +1,3 @@ +package {{reverse-domain app.domain}}.{{snake-case app.name}} + +class MainActivity : TauriActivity() {} diff --git a/tooling/cli/templates/mobile/android/app/src/main/RustWebChromeClient.kt b/tooling/cli/templates/mobile/android/app/src/main/RustWebChromeClient.kt new file mode 100644 index 000000000000..d810e18a910a --- /dev/null +++ b/tooling/cli/templates/mobile/android/app/src/main/RustWebChromeClient.kt @@ -0,0 +1,26 @@ +package {{reverse-domain app.domain}}.{{snake-case app.name}} + +import android.webkit.* + +class RustWebChromeClient: WebChromeClient() { + private var loadedUrl: String? = null + + override fun onProgressChanged(view: WebView, progress: Int) { + var url = view.url ?: "" + if (url.endsWith("##")) { + url = url.dropLast(2) + } + if (loadedUrl != url) { + loadedUrl = url + runInitializationScripts() + } + } + + companion object { + init { + System.loadLibrary("{{snake-case app.name}}") + } + } + + private external fun runInitializationScripts() +} diff --git a/tooling/cli/templates/mobile/android/app/src/main/RustWebViewClient.kt b/tooling/cli/templates/mobile/android/app/src/main/RustWebViewClient.kt new file mode 100644 index 000000000000..c6c65fa951e4 --- /dev/null +++ b/tooling/cli/templates/mobile/android/app/src/main/RustWebViewClient.kt @@ -0,0 +1,24 @@ +package {{reverse-domain app.domain}}.{{snake-case app.name}} + +import android.webkit.* + +class RustWebViewClient: WebViewClient() { + override fun shouldOverrideUrlLoading(view: WebView?, request: WebResourceRequest?): Boolean { + return false + } + + override fun shouldInterceptRequest( + view: WebView, + request: WebResourceRequest + ): WebResourceResponse? { + return handleRequest(request) + } + + companion object { + init { + System.loadLibrary("{{snake-case app.name}}") + } + } + + private external fun handleRequest(request: WebResourceRequest): WebResourceResponse? +} diff --git a/tooling/cli/templates/mobile/android/app/src/main/TauriActivity.kt b/tooling/cli/templates/mobile/android/app/src/main/TauriActivity.kt new file mode 100644 index 000000000000..84b13f949a8d --- /dev/null +++ b/tooling/cli/templates/mobile/android/app/src/main/TauriActivity.kt @@ -0,0 +1,71 @@ +package {{reverse-domain app.domain}}.{{snake-case app.name}} + +import android.os.Bundle +import androidx.appcompat.app.AppCompatActivity + +abstract class TauriActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + create(this) + } + + override fun onStart() { + super.onStart() + start() + } + + override fun onResume() { + super.onResume() + resume() + } + + override fun onPause() { + super.onPause() + pause() + } + + override fun onStop() { + super.onStop() + stop() + } + + override fun onWindowFocusChanged(hasFocus: Boolean) { + super.onWindowFocusChanged(hasFocus) + focus(hasFocus) + } + + override fun onSaveInstanceState(outState: Bundle) { + super.onSaveInstanceState(outState) + save() + } + + override fun onDestroy() { + super.onDestroy() + destroy() + } + + override fun onLowMemory() { + super.onLowMemory() + memory() + } + + fun getAppClass(name: String): Class<*> { + return Class.forName(name) + } + + companion object { + init { + System.loadLibrary("{{snake-case app.name}}") + } + } + + private external fun create(activity: TauriActivity) + private external fun start() + private external fun resume() + private external fun pause() + private external fun stop() + private external fun save() + private external fun destroy() + private external fun memory() + private external fun focus(focus: Boolean) +} diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/tooling/cli/templates/mobile/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 000000000000..2b068d11462a --- /dev/null +++ b/tooling/cli/templates/mobile/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/drawable/ic_launcher_background.xml b/tooling/cli/templates/mobile/android/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 000000000000..07d5da9cbf14 --- /dev/null +++ b/tooling/cli/templates/mobile/android/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/layout/activity_main.xml b/tooling/cli/templates/mobile/android/app/src/main/res/layout/activity_main.xml new file mode 100644 index 000000000000..4fc244418b5f --- /dev/null +++ b/tooling/cli/templates/mobile/android/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,18 @@ + + + + + + \ No newline at end of file diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 000000000000..eca70cfe52ea --- /dev/null +++ b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 000000000000..eca70cfe52ea --- /dev/null +++ b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp new file mode 100644 index 0000000000000000000000000000000000000000..c209e78ecd372343283f4157dcfd918ec5165bb3 GIT binary patch literal 1404 zcmV-?1%vuhNk&F=1pok7MM6+kP&il$0000G0000-002h-06|PpNX!5L00Dqw+t%{r zzW2vH!KF=w&cMnnN@{whkTw+#mAh0SV?YL=)3MimFYCWp#fpdtz~8$hD5VPuQgtcN zXl<@<#Cme5f5yr2h%@8TWh?)bSK`O z^Z@d={gn7J{iyxL_y_%J|L>ep{dUxUP8a{byupH&!UNR*OutO~0{*T4q5R6@ApLF! z5{w?Z150gC7#>(VHFJZ-^6O@PYp{t!jH(_Z*nzTK4 zkc{fLE4Q3|mA2`CWQ3{8;gxGizgM!zccbdQoOLZc8hThi-IhN90RFT|zlxh3Ty&VG z?Fe{#9RrRnxzsu|Lg2ddugg7k%>0JeD+{XZ7>Z~{=|M+sh1MF7~ zz>To~`~LVQe1nNoR-gEzkpe{Ak^7{{ZBk2i_<+`Bq<^GB!RYG+z)h;Y3+<{zlMUYd zrd*W4w&jZ0%kBuDZ1EW&KLpyR7r2=}fF2%0VwHM4pUs}ZI2egi#DRMYZPek*^H9YK zay4Iy3WXFG(F14xYsoDA|KXgGc5%2DhmQ1gFCkrgHBm!lXG8I5h*uf{rn48Z!_@ z4Bk6TJAB2CKYqPjiX&mWoW>OPFGd$wqroa($ne7EUK;#3VYkXaew%Kh^3OrMhtjYN?XEoY`tRPQsAkH-DSL^QqyN0>^ zmC>{#F14jz4GeW{pJoRpLFa_*GI{?T93^rX7SPQgT@LbLqpNA}<@2wH;q493)G=1Y z#-sCiRNX~qf3KgiFzB3I>4Z%AfS(3$`-aMIBU+6?gbgDb!)L~A)je+;fR0jWLL-Fu z4)P{c7{B4Hp91&%??2$v9iRSFnuckHUm}or9seH6 z>%NbT+5*@L5(I9j@06@(!{ZI?U0=pKn8uwIg&L{JV14+8s2hnvbRrU|hZCd}IJu7*;;ECgO%8_*W Kmw_-CKmY()leWbG literal 0 HcmV?d00001 diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp new file mode 100644 index 0000000000000000000000000000000000000000..b2dfe3d1ba5cf3ee31b3ecc1ced89044a1f3b7a9 GIT binary patch literal 2898 zcmV-Y3$650Nk&FW3jhFDMM6+kP&il$0000G0000-002h-06|PpNWB9900E$G+qN-D z+81ABX7q?;bwx%xBg?kcwr$(C-Tex-ZCkHUw(Y9#+`E5-zuONG5fgw~E2WDng@Bc@ z24xy+R1n%~6xI#u9vJ8zREI)sb<&Il(016}Z~V1n^PU3-_H17A*Bf^o)&{_uBv}Py zulRfeE8g(g6HFhk_?o_;0@tz?1I+l+Y#Q*;RVC?(ud`_cU-~n|AX-b`JHrOIqn(-t&rOg-o`#C zh0LPxmbOAEb;zHTu!R3LDh1QO zZTf-|lJNUxi-PpcbRjw3n~n-pG;$+dIF6eqM5+L();B2O2tQ~|p{PlpNcvDbd1l%c zLtXn%lu(3!aNK!V#+HNn_D3lp z2%l+hK-nsj|Bi9;V*WIcQRTt5j90A<=am+cc`J zTYIN|PsYAhJ|=&h*4wI4ebv-C=Be#u>}%m;a{IGmJDU`0snWS&$9zdrT(z8#{OZ_Y zxwJx!ZClUi%YJjD6Xz@OP8{ieyJB=tn?>zaI-4JN;rr`JQbb%y5h2O-?_V@7pG_+y z(lqAsqYr!NyVb0C^|uclHaeecG)Sz;WV?rtoqOdAAN{j%?Uo%owya(F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$^8dsC6VI!$oKDKiXdJt{mGkyA`+Gwd4D-^1qtNTUK)`N*=NTG-6}=5k6suNfdLt*dt8D| z%H#$k)z#ZRcf|zDWB|pn<3+7Nz>?WW9WdkO5(a^m+D4WRJ9{wc>Y}IN)2Kbgn;_O? zGqdr&9~|$Y0tP=N(k7^Eu;iO*w+f%W`20BNo)=Xa@M_)+o$4LXJyiw{F?a633SC{B zl~9FH%?^Rm*LVz`lkULs)%idDX^O)SxQol(3jDRyBVR!7d`;ar+D7do)jQ}m`g$TevUD5@?*P8)voa?kEe@_hl{_h8j&5eB-5FrYW&*FHVt$ z$kRF9Nstj%KRzpjdd_9wO=4zO8ritN*NPk_9avYrsF(!4))tm{Ga#OY z(r{0buexOzu7+rw8E08Gxd`LTOID{*AC1m*6Nw@osfB%0oBF5sf<~wH1kL;sd zo)k6^VyRFU`)dt*iX^9&QtWbo6yE8XXH?`ztvpiOLgI3R+=MOBQ9=rMVgi<*CU%+d1PQQ0a1U=&b0vkF207%xU0ssI2 literal 0 HcmV?d00001 diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp new file mode 100644 index 0000000000000000000000000000000000000000..4f0f1d64e58ba64d180ce43ee13bf9a17835fbca GIT binary patch literal 982 zcmV;{11bDcNk&G_0{{S5MM6+kP&il$0000G0000l001ul06|PpNU8t;00Dqo+t#w^ z^1csucXz7-Qrhzl9HuHB%l>&>1tG2^vb*E&k^T3$FG1eQZ51g$uv4V+kI`0<^1Z@N zk?Jjh$olyC%l>)Xq;7!>{iBj&BjJ`P&$fsCfpve_epJOBkTF?nu-B7D!hO=2ZR}

C%4 zc_9eOXvPbC4kzU8YowIA8cW~Uv|eB&yYwAObSwL2vY~UYI7NXPvf3b+c^?wcs~_t{ ze_m66-0)^{JdOMKPwjpQ@Sna!*?$wTZ~su*tNv7o!gXT!GRgivP}ec?5>l1!7<(rT zds|8x(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-{#!I1g(;+44xw~=* zxvNz35vfsQE)@)Zsp*6_GjYD};Squ83<_?^SbALb{a`j<0Gn%6JY!zhp=Fg}Ga2|8 z52e1WU%^L1}15Ex0fF$e@eCT(()_P zvV?CA%#Sy08_U6VPt4EtmVQraWJX` zh=N|WQ>LgrvF~R&qOfB$!%D3cGv?;Xh_z$z7k&s4N)$WYf*k=|*jCEkO19{h_(%W4 zPuOqbCw`SeAX*R}UUsbVsgtuG?xs(#Ikx9`JZoQFz0n*7ZG@Fv@kZk`gzO$HoA9kN z8U5{-yY zvV{`&WKU2$mZeoBmiJrEdzUZAv1sRxpePdg1)F*X^Y)zp^Y*R;;z~vOv-z&)&G)JQ{m!C9cmziu1^nHA z`#`0c>@PnQ9CJKgC5NjJD8HM3|KC(g5nnCq$n0Gsu_DXk36@ql%npEye|?%RmG)

FJ$wK}0tWNB{uH;AM~i literal 0 HcmV?d00001 diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp new file mode 100644 index 0000000000000000000000000000000000000000..948a3070fe34c611c42c0d3ad3013a0dce358be0 GIT binary patch literal 1900 zcmV-y2b1_xNk&Fw2LJ$9MM6+kP&il$0000G0001A003VA06|PpNH75a00DqwTbm-~ zullQTcXxO9ki!OCRx^i?oR|n!<8G0=kI^!JSjFi-LL*`V;ET0H2IXfU0*i>o6o6Gy zRq6Ap5(_{XLdXcL-MzlN`ugSdZY_`jXhcENAu)N_0?GhF))9R;E`!bo9p?g?SRgw_ zEXHhFG$0{qYOqhdX<(wE4N@es3VIo$%il%6xP9gjiBri+2pI6aY4 zJbgh-Ud|V%3O!IcHKQx1FQH(_*TK;1>FQWbt^$K1zNn^cczkBs=QHCYZ8b&l!UV{K z{L0$KCf_&KR^}&2Fe|L&?1I7~pBENnCtCuH3sjcx6$c zwqkNkru);ie``q+_QI;IYLD9OV0ZxkuyBz|5<$1BH|vtey$>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YaXv#sY(c--|X zEB+TVyZ%Ie4L$gi#Fc++`h6%vzsS$pjz9aLt+ZL(g;n$Dzy5=m=_TV(3H8^C{r0xd zp#a%}ht55dOq?yhwYPrtp-m1xXp;4X;)NhxxUpgP%XTLmO zcjaFva^}dP3$&sfFTIR_jC=2pHh9kpI@2(6V*GQo7Ws)`j)hd+tr@P~gR*2gO@+1? zG<`_tB+LJuF|SZ9tIec;h%}}6WClT`L>HSW?E{Hp1h^+mlbf_$9zA>!ug>NALJsO{ mU%z=YwVD?}XMya)Bp;vlyE5&E_6!fzx9pwrdz474!~g(M6R?N? literal 0 HcmV?d00001 diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp new file mode 100644 index 0000000000000000000000000000000000000000..1b9a6956b3acdc11f40ce2bb3f6efbd845cc243f GIT binary patch literal 3918 zcmV-U53%r4Nk&FS4*&pHMM6+kP&il$0000G0001A003VA06|PpNSy@$00HoY|G(*G z+qV7x14$dSO^Re!iqt-AAIE9iwr$(CZQJL$blA4B`>;C3fBY6Q8_YSjb2%a=fc}4E zrSzssacq<^nmW|Rs93PJni30R<8w<(bK_$LO4L?!_OxLl$}K$MUEllnMK|rg=f3;y z*?;3j|Nh>)p0JQ3A~rf(MibH2r+)3cyV1qF&;8m{w-S*y+0mM){KTK^M5}ksc`qX3 zy>rf^b>~l>SSHds8(I@hz3&PD@LmEs4&prkT=BjsBCXTMhN$_)+kvnl0bLKW5rEsj z*d#KXGDB4P&>etx0X+`R19yC=LS)j!mgs5M0L~+o-T~Jl!p!AJxnGAhV%~rhYUL4hlWhgES3Kb5oA&X z{}?3OBSS-{!v$nCIGj->(-TAG)8LR{htr41^gxsT8yqt2@DEG6Yl`Uma3Nd4;YUoW zTbkYl3CMU5ypMF3EIkYmWL|*BknM`0+Kq6CpvO(y$#j94e+q{vI{Zp8cV_6RK!`&C zob$*5Q|$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2Pe9DNL>3g5FEIvp1jzP&2K#z~j%g6!7B;^zF+o95?fV{3mnB8*RMhCDNp>Am-3e@jNfMj?jHV$MWjk!DDKP zkAz$Y?Sr)!GUOX}qTQ5aMh|wq1uq}~joWyKl=b_LboM#wi{CMuz5x6BKlA-qy++cM01D3b7`uD z#l6M4pI;JCypO8JZ6?U&wNxR!{4oB_ zlV!x9+-&Qy6{%MQ{~yoZGkKiTSC`YS_j22~G;xUV855g2&C(zm^V!(wpcm@zn{%!g z4}JGo(sGZ1O~to-}le

UmY2RIYtNPVDpE$%vda+HD#3m z&VuXJ{BK&Qe+rBa7eq}Q(bq|tn(RrJAk|ztj2(i{d>nmQnM?;HF2k&9sA6up5tmjl z7lySlzMbifH17-m-Lwa_F&e7nOH?ESi3#ckR3tsM+jsck3`oG!uMS}|eAwVXv>}qxwq?QY%QJ0}r@^;fhuUA9W z*BVl>TGo&N004@xSiwDUXUvp51sVmqO3m)=B55aPwf@0=e}cN+$-BdKxY`YrT_4)0 z_d10#i44Q*rFr8MC>*)v$EJvz``(pb{e&*6k+b zsMz%($|1+8hn8c2?P(l@;Rb&CsZeYoCI3?2!LqjbwPXW3z4G$Qfj=cT5Yb%vY0(AX oeb?AaKtwrnc|$|zzw9vfvn^aJJ!zd)XFXqqy0000001=f@-~a#s literal 0 HcmV?d00001 diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/values-night/themes.xml b/tooling/cli/templates/mobile/android/app/src/main/res/values-night/themes.xml new file mode 100644 index 000000000000..73c60177cdb8 --- /dev/null +++ b/tooling/cli/templates/mobile/android/app/src/main/res/values-night/themes.xml @@ -0,0 +1,16 @@ + + + + diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/values/colors.xml b/tooling/cli/templates/mobile/android/app/src/main/res/values/colors.xml new file mode 100644 index 000000000000..f8c6127d3276 --- /dev/null +++ b/tooling/cli/templates/mobile/android/app/src/main/res/values/colors.xml @@ -0,0 +1,10 @@ + + + #FFBB86FC + #FF6200EE + #FF3700B3 + #FF03DAC5 + #FF018786 + #FF000000 + #FFFFFFFF + \ No newline at end of file diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/values/strings.xml b/tooling/cli/templates/mobile/android/app/src/main/res/values/strings.xml new file mode 100644 index 000000000000..d7c29c74f3ea --- /dev/null +++ b/tooling/cli/templates/mobile/android/app/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + qoo + \ No newline at end of file diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/values/themes.xml b/tooling/cli/templates/mobile/android/app/src/main/res/values/themes.xml new file mode 100644 index 000000000000..16a259052470 --- /dev/null +++ b/tooling/cli/templates/mobile/android/app/src/main/res/values/themes.xml @@ -0,0 +1,16 @@ + + + + diff --git a/tooling/cli/templates/mobile/android/build.gradle.kts b/tooling/cli/templates/mobile/android/build.gradle.kts new file mode 100644 index 000000000000..f45e9c35ae51 --- /dev/null +++ b/tooling/cli/templates/mobile/android/build.gradle.kts @@ -0,0 +1,27 @@ +// Top-level build file where you can add configuration options common to all sub-projects/modules. +buildscript { + repositories { + google() + mavenCentral() + } + dependencies { + classpath("com.android.tools.build:gradle:7.0.2") + classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10") + {{~#each android-project-dependencies}} + classpath("{{this}}"){{/each}} + // NOTE: Do not place your application dependencies here; they belong + // in the individual module build.gradle files + } +} + +allprojects { + repositories { + google() + mavenCentral() + } +} + +tasks.register("clean").configure { + delete("build") +} + diff --git a/tooling/cli/templates/mobile/android/buildSrc/build.gradle.kts b/tooling/cli/templates/mobile/android/buildSrc/build.gradle.kts new file mode 100644 index 000000000000..b0d0d4e6568d --- /dev/null +++ b/tooling/cli/templates/mobile/android/buildSrc/build.gradle.kts @@ -0,0 +1,27 @@ +plugins { + `kotlin-dsl` +} + +kotlinDslPluginOptions { + experimentalWarning.set(false) +} + +gradlePlugin { + plugins { + create("pluginsForCoolKids") { + id = "rustPlugin" + implementationClass = "{{reverse-domain app.domain}}.RustPlugin" + } + } +} + +repositories { + google() + mavenCentral() +} + +dependencies { + compileOnly(gradleApi()) + implementation("com.android.tools.build:gradle:7.0.2") +} + diff --git a/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/BuildTask.kt b/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/BuildTask.kt new file mode 100644 index 000000000000..454531d0a9d0 --- /dev/null +++ b/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/BuildTask.kt @@ -0,0 +1,54 @@ +package {{reverse-domain app.domain}} + +import com.android.build.gradle.* +import java.io.File +import org.gradle.api.DefaultTask +import org.gradle.api.GradleException +import org.gradle.api.Project +import org.gradle.api.logging.LogLevel +import org.gradle.api.tasks.Input +import org.gradle.api.tasks.InputDirectory +import org.gradle.api.tasks.PathSensitive +import org.gradle.api.tasks.PathSensitivity +import org.gradle.api.tasks.TaskAction + +open class BuildTask : DefaultTask() { + @InputDirectory + @PathSensitive(PathSensitivity.RELATIVE) + var rootDirRel: File? = null + @Input + var target: String? = null + @Input + var release: Boolean? = null + + @TaskAction + fun build() { + val rootDirRel = rootDirRel + if (rootDirRel == null) { + throw GradleException("rootDirRel cannot be null") + } + val target = target + if (target == null) { + throw GradleException("target cannot be null") + } + val release = release + if (release == null) { + throw GradleException("release cannot be null") + } + project.exec { + workingDir(File(project.getProjectDir(), rootDirRel.getPath())) + executable("cargo") + args(listOf("android", "build")) + if (project.logger.isEnabled(LogLevel.DEBUG)) { + args("-vv") + } else if (project.logger.isEnabled(LogLevel.INFO)) { + args("-v") + } + if (release) { + args("--release") + } + args("${target}") + }.assertNormalExitValue() + } +} + diff --git a/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/RustPlugin.kt b/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/RustPlugin.kt new file mode 100644 index 000000000000..86b86cd4fa81 --- /dev/null +++ b/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/RustPlugin.kt @@ -0,0 +1,51 @@ +package {{reverse-domain app.domain}} + +import com.android.build.gradle.* +import java.io.File +import org.gradle.api.DefaultTask +import org.gradle.api.GradleException +import org.gradle.api.Plugin +import org.gradle.api.Project + +const val TASK_GROUP = "rust" + +open class Config { + var rootDirRel: String? = null + var targets: List? = null + var arches: List? = null +} + +open class RustPlugin : Plugin { + internal lateinit var config: Config + + override fun apply(project: Project) { + config = project.extensions.create("rust", Config::class.java) + project.afterEvaluate { + if (config.targets == null) { + throw GradleException("targets cannot be null") + } + if (config.arches == null) { + throw GradleException("arches cannot be null") + } + for (profile in listOf("debug", "release")) { + val buildTask = project.tasks.maybeCreate("rustBuild${profile.capitalize()}", DefaultTask::class.java).apply { + group = TASK_GROUP + description = "Build dynamic library in ${profile} mode for all targets" + } + for (targetPair in config.targets!!.withIndex()) { + val targetName = targetPair.value + val targetArch = config.arches!![targetPair.index] + val targetBuildTask = project.tasks.maybeCreate("rustBuild${targetArch.capitalize()}${profile.capitalize()}", BuildTask::class.java).apply { + group = TASK_GROUP + description = "Build dynamic library in ${profile} mode for $targetArch" + rootDirRel = File(config.rootDirRel) + target = targetName + release = profile == "release" + } + buildTask.dependsOn(targetBuildTask) + project.tasks.findByName("preBuild")?.mustRunAfter(targetBuildTask) + } + } + } + } +} diff --git a/tooling/cli/templates/mobile/android/gradle.properties b/tooling/cli/templates/mobile/android/gradle.properties new file mode 100644 index 000000000000..cd0519bb2a94 --- /dev/null +++ b/tooling/cli/templates/mobile/android/gradle.properties @@ -0,0 +1,23 @@ +# Project-wide Gradle settings. +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +# org.gradle.parallel=true +# AndroidX package structure to make it clearer which packages are bundled with the +# Android operating system, and which are packaged with your app"s APK +# https://developer.android.com/topic/libraries/support-library/androidx-rn +android.useAndroidX=true +# Kotlin code style for this project: "official" or "obsolete": +kotlin.code.style=official +# Enables namespacing of each library's R class so that its R class includes only the +# resources declared in the library itself and none from the library's dependencies, +# thereby reducing the size of the R class for that library +android.nonTransitiveRClass=true \ No newline at end of file diff --git a/tooling/cli/templates/mobile/android/gradle/wrapper/gradle-wrapper.jar b/tooling/cli/templates/mobile/android/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000000000000000000000000000000000..e708b1c023ec8b20f512888fe07c5bd3ff77bb8f GIT binary patch literal 59203 zcma&O1CT9Y(k9%tZQHhO+qUh#ZQHhO+qmuS+qP|E@9xZO?0h@l{(r>DQ>P;GjjD{w zH}lENr;dU&FbEU?00aa80D$0M0RRB{U*7-#kbjS|qAG&4l5%47zyJ#WrfA#1$1Ctx zf&Z_d{GW=lf^w2#qRJ|CvSJUi(^E3iv~=^Z(zH}F)3Z%V3`@+rNB7gTVU{Bb~90p|f+0(v;nz01EG7yDMX9@S~__vVgv%rS$+?IH+oZ03D5zYrv|^ zC1J)SruYHmCki$jLBlTaE5&dFG9-kq3!^i>^UQL`%gn6)jz54$WDmeYdsBE9;PqZ_ zoGd=P4+|(-u4U1dbAVQrFWoNgNd;0nrghPFbQrJctO>nwDdI`Q^i0XJDUYm|T|RWc zZ3^Qgo_Qk$%Fvjj-G}1NB#ZJqIkh;kX%V{THPqOyiq)d)0+(r9o(qKlSp*hmK#iIY zA^)Vr$-Hz<#SF=0@tL@;dCQsm`V9s1vYNq}K1B)!XSK?=I1)tX+bUV52$YQu*0%fnWEukW>mxkz+%3-S!oguE8u#MGzST8_Dy^#U?fA@S#K$S@9msUiX!gd_ow>08w5)nX{-KxqMOo7d?k2&?Vf z&diGDtZr(0cwPe9z9FAUSD9KC)7(n^lMWuayCfxzy8EZsns%OEblHFSzP=cL6}?J| z0U$H!4S_TVjj<`6dy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WN7a3Cf^@L%!& zN$?|!!9j2c)j$~+R6n#891w-z8(!oBpL2K=+%a$r2|~8-(vQj5_XT`<0Ksf;oP+tz z9CObS!0m)Tgg`K#xBM8B(|Z)Wb&DYL{WTYv`;A=q6~Nnx2+!lTIXtj8J7dZE!P_{z z#f8w6F}^!?^KE#+ZDv+xd5O&3EmomZzsv?>E-~ygGum45fk!SBN&|eo1rKw^?aZJ4 E2O(~oYXATM literal 0 HcmV?d00001 diff --git a/tooling/cli/templates/mobile/android/gradle/wrapper/gradle-wrapper.properties b/tooling/cli/templates/mobile/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 000000000000..543ef62a1a76 --- /dev/null +++ b/tooling/cli/templates/mobile/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Tue May 10 19:22:52 CST 2022 +distributionBase=GRADLE_USER_HOME +distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip +distributionPath=wrapper/dists +zipStorePath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME diff --git a/tooling/cli/templates/mobile/android/gradlew b/tooling/cli/templates/mobile/android/gradlew new file mode 100755 index 000000000000..4f906e0c811f --- /dev/null +++ b/tooling/cli/templates/mobile/android/gradlew @@ -0,0 +1,185 @@ +#!/usr/bin/env sh + +# +# Copyright 2015 the original author or authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin or MSYS, switch paths to Windows format before running java +if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=`expr $i + 1` + done + case $i in + 0) set -- ;; + 1) set -- "$args0" ;; + 2) set -- "$args0" "$args1" ;; + 3) set -- "$args0" "$args1" "$args2" ;; + 4) set -- "$args0" "$args1" "$args2" "$args3" ;; + 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=`save "$@"` + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +exec "$JAVACMD" "$@" diff --git a/tooling/cli/templates/mobile/android/gradlew.bat b/tooling/cli/templates/mobile/android/gradlew.bat new file mode 100644 index 000000000000..ac1b06f93825 --- /dev/null +++ b/tooling/cli/templates/mobile/android/gradlew.bat @@ -0,0 +1,89 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/tooling/cli/templates/mobile/android/settings.gradle b/tooling/cli/templates/mobile/android/settings.gradle new file mode 100644 index 000000000000..74680c9c1bd6 --- /dev/null +++ b/tooling/cli/templates/mobile/android/settings.gradle @@ -0,0 +1,3 @@ +include ':app' +{{~#each asset-packs}} +include ':{{this}}'{{/each}} diff --git a/tooling/cli/templates/mobile/ios/.gitignore b/tooling/cli/templates/mobile/ios/.gitignore new file mode 100644 index 000000000000..6aecd276af55 --- /dev/null +++ b/tooling/cli/templates/mobile/ios/.gitignore @@ -0,0 +1,2 @@ +xcuserdata/ +build/ diff --git a/tooling/cli/templates/mobile/ios/ExportOptions.plist b/tooling/cli/templates/mobile/ios/ExportOptions.plist new file mode 100644 index 000000000000..b69cf1de8f5c --- /dev/null +++ b/tooling/cli/templates/mobile/ios/ExportOptions.plist @@ -0,0 +1,8 @@ + + + + + method + development + + diff --git a/tooling/cli/templates/mobile/ios/Podfile b/tooling/cli/templates/mobile/ios/Podfile new file mode 100644 index 000000000000..0c0df4e64628 --- /dev/null +++ b/tooling/cli/templates/mobile/ios/Podfile @@ -0,0 +1,25 @@ +# Uncomment the next line to define a global platform for your project + +target '{{app.name}}_iOS' do +platform :ios, '{{apple.ios-version}}' + # Pods for {{app.name}}_iOS + {{~#each ios-pods}} + pod '{{this.name}}'{{#if this.version}}, '{{this.version}}'{{/if}}{{/each}} +end + +target '{{app.name}}_macOS' do +platform :osx, '{{apple.macos-version}}' + # Pods for {{app.name}}_macOS + {{~#each macos-pods}} + pod '{{this.name}}'{{#if this.version}}, '{{this.version}}'{{/if}}{{/each}} +end + +# Delete the deployment target for iOS and macOS, causing it to be inherited from the Podfile +post_install do |installer| + installer.pods_project.targets.each do |target| + target.build_configurations.each do |config| + config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET' + config.build_settings.delete 'MACOSX_DEPLOYMENT_TARGET' + end + end +end diff --git a/tooling/cli/templates/mobile/ios/Sources/{{app.name}}/bindings/bindings.h b/tooling/cli/templates/mobile/ios/Sources/{{app.name}}/bindings/bindings.h new file mode 100644 index 000000000000..51522007b6a5 --- /dev/null +++ b/tooling/cli/templates/mobile/ios/Sources/{{app.name}}/bindings/bindings.h @@ -0,0 +1,8 @@ +#pragma once + +namespace ffi { + extern "C" { + void start_app(); + } +} + diff --git a/tooling/cli/templates/mobile/ios/Sources/{{app.name}}/main.mm b/tooling/cli/templates/mobile/ios/Sources/{{app.name}}/main.mm new file mode 100644 index 000000000000..7793a9d5cfae --- /dev/null +++ b/tooling/cli/templates/mobile/ios/Sources/{{app.name}}/main.mm @@ -0,0 +1,6 @@ +#include "bindings/bindings.h" + +int main(int argc, char * argv[]) { + ffi::start_app(); + return 0; +} diff --git a/tooling/cli/templates/mobile/ios/project.yml b/tooling/cli/templates/mobile/ios/project.yml new file mode 100644 index 000000000000..b4e3a5ddacfc --- /dev/null +++ b/tooling/cli/templates/mobile/ios/project.yml @@ -0,0 +1,280 @@ +name: {{app.name}} +options: + bundleIdPrefix: {{reverse-domain app.domain}} + deploymentTarget: + iOS: {{apple.ios-version}} + macOS: {{apple.macos-version}} +fileGroups: [{{join file-groups}}] +configs: + debug: debug + release: release +settingGroups: + app: + base: + PRODUCT_NAME: {{app.name}} + PRODUCT_BUNDLE_IDENTIFIER: {{reverse-domain app.domain}}.{{app.name}} + DEVELOPMENT_TEAM: {{apple.development-team}} +targetTemplates: + app: + type: application + sources: + - path: Sources + scheme: + environmentVariables: + RUST_BACKTRACE: full + RUST_LOG: info + settings: + groups: [app] +targets: + {{app.name}}_iOS: + type: application + platform: iOS + sources: + - path: Sources + - path: {{app.asset-dir}} + buildPhase: resources + type: folder + {{~#each asset-catalogs}} + - {{prefix-path this}}{{/each}} + {{~#each ios-additional-targets}} + - path: {{prefix-path this}}{{/each}} + info: + path: {{app.name}}_iOS/Info.plist + properties: + LSRequiresIPhoneOS: true + UILaunchStoryboardName: LaunchScreen + UIRequiredDeviceCapabilities: [arm64, metal] + UISupportedInterfaceOrientations: + - UIInterfaceOrientationPortrait + - UIInterfaceOrientationLandscapeLeft + - UIInterfaceOrientationLandscapeRight + UISupportedInterfaceOrientations~ipad: + - UIInterfaceOrientationPortrait + - UIInterfaceOrientationPortraitUpsideDown + - UIInterfaceOrientationLandscapeLeft + - UIInterfaceOrientationLandscapeRight + CFBundleShortVersionString: {{apple.bundle-version-short}} + CFBundleVersion: {{apple.bundle-version}} + {{~#each apple.plist-pairs}} + {{this.key}}: {{this.value}}{{/each}} + scheme: + environmentVariables: + RUST_BACKTRACE: full + RUST_LOG: info + {{~#if ios-command-line-arguments}} + commandLineArguments: + {{~#each ios-command-line-arguments}} + "{{this}}": true + {{/each}}{{~/if}} + settings: + base: + ENABLE_BITCODE: false + ARCHS: [{{join ios-valid-archs}}] + VALID_ARCHS: {{~#each ios-valid-archs}} {{this}} {{/each}} + LIBRARY_SEARCH_PATHS[sdk=iphoneos*]: $(inherited) "{{prefix-path "target/aarch64-apple-ios/$(CONFIGURATION)"}}" + LIBRARY_SEARCH_PATHS[sdk=iphonesimulator*]: $(inherited) "{{prefix-path "target/x86_64-apple-ios/$(CONFIGURATION)"}}" + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES: true + groups: [app] + dependencies: + - target: lib_{{app.name}}_iOS + embed: false + link: false + - framework: lib{{snake-case app.name}}.a + embed: false + {{~#each ios-vendor-frameworks}} + - framework: {{prefix-path this}}{{/each}} + {{~#each ios-vendor-sdks}} + - sdk: {{prefix-path this}}{{/each}} + - sdk: CoreGraphics.framework + - sdk: Metal.framework + - sdk: MetalKit.framework + - sdk: QuartzCore.framework + - sdk: Security.framework + - sdk: UIKit.framework + {{~#each ios-frameworks}} + - sdk: {{this}}.framework{{/each}} + - sdk: WebKit.framework + {{~#if ios-pre-build-scripts}} + preBuildScripts: + {{~#each ios-pre-build-scripts}}{{#if this.path}} + - path {{this.path}}{{/if}}{{#if this.script}} + - script: {{this.script}}{{/if}}{{#if this.name}} + name: {{this.name}}{{/if}}{{#if this.input-files}} + inputFiles: {{~#each this.input-files}} + - {{this}}{{/each}}{{/if}}{{#if this.output-files}} + outputFiles: {{~#each this.output-files}} + - {{this}}{{/each}}{{/if}}{{#if this.input-file-lists}} + inputFileLists: {{~#each this.output-files}} + - {{this}}{{/each}}{{/if}}{{#if this.output-file-lists}} + outputFileLists: {{~#each this.output-files}} + - {{this}}{{/each}}{{/if}}{{#if this.shell}} + shell: {{this.shell}}{{/if}}{{#if this.show-env-vars}} + showEnvVars: {{this.show_env_vars}}{{/if}}{{#if this.run-only-when-installing}} + runOnlyWhenInstalling: {{this.run-only-when-installing}}{{/if}}{{#if this.based-on-dependency-analysis}} + basedOnDependencyAnalysis: {{this.based-on-dependency-analysis}}{{/if}}{{#if this.discovered-dependency-file}} + discoveredDependencyFile: {{this.discovered-dependency-file}}{{/if}} + {{~/each~}} + {{~/if~}} + {{~#if ios-post-compile-scripts}} + postCompileScripts: + {{~#each ios-post-compile-scripts}}{{#if this.path}} + - path {{this.path}}{{/if}}{{#if this.script}} + - script: {{this.script}}{{/if}}{{#if this.name}} + name: {{this.name}}{{/if}}{{#if this.input-files}} + inputFiles: {{~#each this.input-files}} + - {{this}}{{/each}}{{/if}}{{#if this.output-files}} + outputFiles: {{~#each this.output-files}} + - {{this}}{{/each}}{{/if}}{{#if this.input-file-lists}} + inputFileLists: {{~#each this.output-files}} + - {{this}}{{/each}}{{/if}}{{#if this.output-file-lists}} + outputFileLists: {{~#each this.output-files}} + - {{this}}{{/each}}{{/if}}{{#if this.shell}} + shell: {{this.shell}}{{/if}}{{#if this.show-env-vars}} + showEnvVars: {{this.show_env_vars}}{{/if}}{{#if this.run-only-when-installing}} + runOnlyWhenInstalling: {{this.run-only-when-installing}}{{/if}}{{#if this.based-on-dependency-analysis}} + basedOnDependencyAnalysis: {{this.based-on-dependency-analysis}}{{/if}}{{#if this.discovered-dependency-file}} + discoveredDependencyFile: {{this.discovered-dependency-file}}{{/if}} + {{~/each~}} + {{~/if~}} + {{~#if ios-post-build-scripts}} + postBuildScripts: + {{~#each ios-post-build-scripts}}{{#if this.path}} + - path {{this.path}}{{/if}}{{#if this.script}} + - script: {{this.script}}{{/if}}{{#if this.name}} + name: {{this.name}}{{/if}}{{#if this.input-files}} + inputFiles: {{~#each this.input-files}} + - {{this}}{{/each}}{{/if}}{{#if this.output-files}} + outputFiles: {{~#each this.output-files}} + - {{this}}{{/each}}{{/if}}{{#if this.input-file-lists}} + inputFileLists: {{~#each this.output-files}} + - {{this}}{{/each}}{{/if}}{{#if this.output-file-lists}} + outputFileLists: {{~#each this.output-files}} + - {{this}}{{/each}}{{/if}}{{#if this.shell}} + shell: {{this.shell}}{{/if}}{{#if this.show-env-vars}} + showEnvVars: {{this.show_env_vars}}{{/if}}{{#if this.run-only-when-installing}} + runOnlyWhenInstalling: {{this.run-only-when-installing}}{{/if}}{{#if this.based-on-dependency-analysis}} + basedOnDependencyAnalysis: {{this.based-on-dependency-analysis}}{{/if}}{{#if this.discovered-dependency-file}} + discoveredDependencyFile: {{this.discovered-dependency-file}}{{/if}} + {{~/each~}} + {{~/if}} + + {{app.name}}_macOS: + type: application + platform: macOS + sources: Sources + {{~#each macos-additional-targets}} + - path: {{prefix-path this}}{{/each}} + info: + path: {{app.name}}_macOS/Info.plist + properties: + NSHighResolutionCapable: true + scheme: + environmentVariables: + RUST_BACKTRACE: full + RUST_LOG: info + {{~#if ios-command-line-arguments}} + commandLineArguments: + {{~#each ios-command-line-arguments}} + "{{this}}": true + {{/each}}{{~/if}} + settings: + base: + LIBRARY_SEARCH_PATHS: $(inherited) "{{prefix-path "target/x86_64-apple-darwin/$(CONFIGURATION)"}}" + groups: [app] + dependencies: + - target: lib_{{app.name}}_macOS + embed: false + link: false + - framework: lib{{snake-case app.name}}.a + embed: false + {{~#each macos-vendor-frameworks}} + - framework: {{prefix-path this}}{{/each}} + {{~#each macos-vendor-sdks}} + - sdk: {{prefix-path this}}{{/each}} + - sdk: Metal.framework + {{~#each macos-frameworks}} + - sdk: {{this}}.framework{{/each}} + {{~#if macos-pre-build-scripts}} + preBuildScripts: + {{~#each macos-pre-build-scripts}}{{#if this.path}} + - path {{this.path}}{{/if}}{{#if this.script}} + - script: {{this.script}}{{/if}}{{#if this.name}} + name: {{this.name}}{{/if}}{{#if this.input-files}} + inputFiles: {{~#each this.input-files}} + - {{this}}{{/each}}{{/if}}{{#if this.output-files}} + outputFiles: {{~#each this.output-files}} + - {{this}}{{/each}}{{/if}}{{#if this.input-file-lists}} + inputFileLists: {{~#each this.output-files}} + - {{this}}{{/each}}{{/if}}{{#if this.output-file-lists}} + outputFileLists: {{~#each this.output-files}} + - {{this}}{{/each}}{{/if}}{{#if this.shell}} + shell: {{this.shell}}{{/if}}{{#if this.show-env-vars}} + showEnvVars: {{this.show_env_vars}}{{/if}}{{#if this.run-only-when-installing}} + runOnlyWhenInstalling: {{this.run-only-when-installing}}{{/if}}{{#if this.based-on-dependency-analysis}} + basedOnDependencyAnalysis: {{this.based-on-dependency-analysis}}{{/if}}{{#if this.discovered-dependency-file}} + discoveredDependencyFile: {{this.discovered-dependency-file}}{{/if}} + {{~/each~}} + {{~/if~}} + {{#if macos-post-compile-scripts}} + postCompileScripts: + {{~#each macos-post-compile-scripts}}{{#if this.path}} + - path {{this.path}}{{/if}}{{#if this.script}} + - script: {{this.script}}{{/if}}{{#if this.name}} + name: {{this.name}}{{/if}}{{#if this.input-files}} + inputFiles: {{~#each this.input-files}} + - {{this}}{{/each}}{{/if}}{{#if this.output-files}} + outputFiles: {{~#each this.output-files}} + - {{this}}{{/each}}{{/if}}{{#if this.input-file-lists}} + inputFileLists: {{~#each this.output-files}} + - {{this}}{{/each}}{{/if}}{{#if this.output-file-lists}} + outputFileLists: {{~#each this.output-files}} + - {{this}}{{/each}}{{/if}}{{#if this.shell}} + shell: {{this.shell}}{{/if}}{{#if this.show-env-vars}} + showEnvVars: {{this.show_env_vars}}{{/if}}{{#if this.run-only-when-installing}} + runOnlyWhenInstalling: {{this.run-only-when-installing}}{{/if}}{{#if this.based-on-dependency-analysis}} + basedOnDependencyAnalysis: {{this.based-on-dependency-analysis}}{{/if}}{{#if this.discovered-dependency-file}} + discoveredDependencyFile: {{this.discovered-dependency-file}}{{/if}} + {{~/each~}} + {{~/if~}} + {{#if macos-post-build-scripts}} + postBuildScripts: + {{~#each macos-post-build-scripts}}{{#if this.path}} + - path {{this.path}}{{/if}}{{#if this.script}} + - script: {{this.script}}{{/if}}{{#if this.name}} + name: {{this.name}}{{/if}}{{#if this.input-files}} + inputFiles: {{~#each this.input-files}} + - {{this}}{{/each}}{{/if}}{{#if this.output-files}} + outputFiles: {{~#each this.output-files}} + - {{this}}{{/each}}{{/if}}{{#if this.input-file-lists}} + inputFileLists: {{~#each this.output-files}} + - {{this}}{{/each}}{{/if}}{{#if this.output-file-lists}} + outputFileLists: {{~#each this.output-files}} + - {{this}}{{/each}}{{/if}}{{#if this.shell}} + shell: {{this.shell}}{{/if}}{{#if this.show-env-vars}} + showEnvVars: {{this.show_env_vars}}{{/if}}{{#if this.run-only-when-installing}} + runOnlyWhenInstalling: {{this.run-only-when-installing}}{{/if}}{{#if this.based-on-dependency-analysis}} + basedOnDependencyAnalysis: {{this.based-on-dependency-analysis}}{{/if}}{{#if this.discovered-dependency-file}} + discoveredDependencyFile: {{this.discovered-dependency-file}}{{/if}} + {{~/each~}} + {{~/if}} + + lib_{{app.name}}_iOS: + type: "" + platform: iOS + settings: + ENABLE_BITCODE: false + ARCHS: [{{join ios-valid-archs}}] + VALID_ARCHS: {{~#each ios-valid-archs}} {{this}} {{/each}} + legacy: + toolPath: ${HOME}/.cargo/bin/cargo-apple + arguments: xcode-script -v --platform ${PLATFORM_DISPLAY_NAME:?} --sdk-root ${SDKROOT:?} --configuration ${CONFIGURATION:?} ${FORCE_COLOR} ${ARCHS:?} + passSettings: false # prevents evil linker errors + workingDirectory: $(SRCROOT)/.. + lib_{{app.name}}_macOS: + type: "" + platform: macOS + legacy: + toolPath: ${HOME}/.cargo/bin/cargo-apple + arguments: xcode-script -v --platform ${PLATFORM_DISPLAY_NAME:?} --sdk-root ${SDKROOT:?} --configuration ${CONFIGURATION:?} ${FORCE_COLOR} ${ARCHS:?} + passSettings: false + workingDirectory: $(SRCROOT)/.. diff --git a/tooling/cli/templates/mobile/ios/{{app.name}}.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/tooling/cli/templates/mobile/ios/{{app.name}}.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 000000000000..0225e8973168 --- /dev/null +++ b/tooling/cli/templates/mobile/ios/{{app.name}}.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,12 @@ + + + + +{{#if apple.use-legacy-build-system}} + BuildSystemType + Original + DisableBuildSystemDeprecationDiagnostic + +{{/if}} + + From a9f8ac7f965c6d5920ca9b0b5791944c9e798c63 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Mon, 15 Aug 2022 13:24:26 -0300 Subject: [PATCH 006/436] fix(examples): set API lib crate-type --- examples/api/src-tauri/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/api/src-tauri/Cargo.toml b/examples/api/src-tauri/Cargo.toml index fd20408f238d..c4d4d321aef8 100644 --- a/examples/api/src-tauri/Cargo.toml +++ b/examples/api/src-tauri/Cargo.toml @@ -6,6 +6,9 @@ edition = "2021" rust-version = "1.57" license = "Apache-2.0 OR MIT" +[lib] +crate-type = ["staticlib", "cdylib", "rlib"] + [build-dependencies] tauri-build = { path = "../../../core/tauri-build", features = ["codegen", "isolation"] } From a9c8e565c6495961940877df7090f307be16b554 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Mon, 15 Aug 2022 13:38:17 -0300 Subject: [PATCH 007/436] feat: add `android open` and `ios open` commands (#4946) --- .changes/mobile-open.md | 6 ++++ tooling/cli/Cargo.lock | 2 +- tooling/cli/Cargo.toml | 2 +- tooling/cli/src/mobile/android.rs | 54 +++++++++++++++++++++++++++++-- tooling/cli/src/mobile/init.rs | 8 +---- tooling/cli/src/mobile/ios.rs | 54 +++++++++++++++++++++++++++++-- tooling/cli/src/mobile/mod.rs | 41 +++++++++++++++++++++++ 7 files changed, 154 insertions(+), 13 deletions(-) create mode 100644 .changes/mobile-open.md diff --git a/.changes/mobile-open.md b/.changes/mobile-open.md new file mode 100644 index 000000000000..d504ac24a960 --- /dev/null +++ b/.changes/mobile-open.md @@ -0,0 +1,6 @@ +--- +"cli.rs": minor +"cli.js": minor +--- + +Added `android open` and `ios open` commands. diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 7dc82570871b..0945082a6e2e 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -272,7 +272,7 @@ dependencies = [ [[package]] name = "cargo-mobile" version = "0.1.0" -source = "git+https://github.com/tauri-apps/cargo-mobile?branch=feat/library#d2b3f7248657c60dcc0669303329b802f04a6291" +source = "git+https://github.com/tauri-apps/cargo-mobile?branch=feat/library#c1365b7e90d341d67cf40f4d2f5532e932631907" dependencies = [ "bicycle", "bossy", diff --git a/tooling/cli/Cargo.toml b/tooling/cli/Cargo.toml index 8fd0c9263af9..777d4d53f09c 100644 --- a/tooling/cli/Cargo.toml +++ b/tooling/cli/Cargo.toml @@ -30,7 +30,7 @@ path = "src/main.rs" bossy = { git = "https://github.com/lucasfernog/bossy", branch = "fix/winapi-features" } [dependencies] -# cargo-mobile = { path = "../../../cargo-mobile/", default-features = false } +#cargo-mobile = { path = "../../../cargo-mobile/", default-features = false } cargo-mobile = { git = "https://github.com/tauri-apps/cargo-mobile", branch = "feat/library", default-features = false } bossy = "0.2" textwrap = { version = "0.11.0", features = ["term_size"] } diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index b3b3a2435489..59dd3eba15a9 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -2,13 +2,37 @@ // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT +use cargo_mobile::{ + android::config::{Config as AndroidConfig, Metadata as AndroidMetadata}, + config::{metadata::Metadata, Config}, + os, + util::cli::TextWrapper, +}; use clap::{Parser, Subcommand}; -use super::init::{command as init_command, Options as InitOptions, Target as InitTarget}; +use super::{ + ensure_init, + init::{command as init_command, Options as InitOptions}, + Target, +}; use crate::Result; pub(crate) mod project; +#[derive(Debug, thiserror::Error)] +enum Error { + #[error("{0}")] + ProjectNotInitialized(String), + #[error(transparent)] + ConfigFailed(cargo_mobile::config::LoadOrGenError), + #[error(transparent)] + MetadataFailed(cargo_mobile::config::metadata::Error), + #[error("Android is marked as unsupported in your configuration file")] + Unsupported, + #[error(transparent)] + OpenFailed(os::OpenFileError), +} + #[derive(Parser)] #[clap( author, @@ -25,12 +49,38 @@ pub struct Cli { #[derive(Subcommand)] enum Commands { Init(InitOptions), + Open, } pub fn command(cli: Cli) -> Result<()> { match cli.command { - Commands::Init(options) => init_command(options, InitTarget::Android)?, + Commands::Init(options) => init_command(options, Target::Android)?, + Commands::Open => open()?, + } + + Ok(()) +} + +fn with_config( + wrapper: &TextWrapper, + f: impl FnOnce(&AndroidConfig, &AndroidMetadata) -> Result<(), Error>, +) -> Result<(), Error> { + let (config, _origin) = + Config::load_or_gen(".", true.into(), wrapper).map_err(Error::ConfigFailed)?; + let metadata = Metadata::load(config.app().root_dir()).map_err(Error::MetadataFailed)?; + if metadata.android().supported() { + f(config.android(), metadata.android()) + } else { + Err(Error::Unsupported) } +} +fn open() -> Result<()> { + let wrapper = TextWrapper::with_splitter(textwrap::termwidth(), textwrap::NoHyphenation); + with_config(&wrapper, |config, _metadata| { + ensure_init(config.project_dir(), Target::Android) + .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; + os::open_file_with("Android Studio", config.project_dir()).map_err(Error::OpenFailed) + })?; Ok(()) } diff --git a/tooling/cli/src/mobile/init.rs b/tooling/cli/src/mobile/init.rs index 1089eff7130b..1fdd9e67b116 100644 --- a/tooling/cli/src/mobile/init.rs +++ b/tooling/cli/src/mobile/init.rs @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT +use super::Target; use crate::helpers::{app_paths::tauri_dir, template::JsonMap}; use crate::Result; use cargo_mobile::{ @@ -89,13 +90,6 @@ pub enum Error { OpenInEditor(util::OpenInEditorError), } -#[derive(PartialEq, Eq)] -pub enum Target { - Android, - #[cfg(target_os = "macos")] - Ios, -} - pub fn exec( target: Target, wrapper: &TextWrapper, diff --git a/tooling/cli/src/mobile/ios.rs b/tooling/cli/src/mobile/ios.rs index 0b10b2d648b1..ff781d302d71 100644 --- a/tooling/cli/src/mobile/ios.rs +++ b/tooling/cli/src/mobile/ios.rs @@ -2,13 +2,37 @@ // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT +use cargo_mobile::{ + apple::config::{Config as AppleConfig, Metadata as AppleMetadata}, + config::{metadata::Metadata, Config}, + os, + util::cli::TextWrapper, +}; use clap::{Parser, Subcommand}; -use super::init::{command as init_command, Options as InitOptions, Target as InitTarget}; +use super::{ + ensure_init, + init::{command as init_command, Options as InitOptions}, + Target, +}; use crate::Result; pub(crate) mod project; +#[derive(Debug, thiserror::Error)] +enum Error { + #[error("{0}")] + ProjectNotInitialized(String), + #[error(transparent)] + ConfigFailed(cargo_mobile::config::LoadOrGenError), + #[error(transparent)] + MetadataFailed(cargo_mobile::config::metadata::Error), + #[error("iOS is marked as unsupported in your configuration file")] + Unsupported, + #[error(transparent)] + OpenFailed(os::OpenFileError), +} + #[derive(Parser)] #[clap( author, @@ -25,12 +49,38 @@ pub struct Cli { #[derive(Subcommand)] enum Commands { Init(InitOptions), + Open, } pub fn command(cli: Cli) -> Result<()> { match cli.command { - Commands::Init(options) => init_command(options, InitTarget::Ios)?, + Commands::Init(options) => init_command(options, Target::Ios)?, + Commands::Open => open()?, + } + + Ok(()) +} + +fn with_config( + wrapper: &TextWrapper, + f: impl FnOnce(&AppleConfig, &AppleMetadata) -> Result<(), Error>, +) -> Result<(), Error> { + let (config, _origin) = + Config::load_or_gen(".", true.into(), wrapper).map_err(Error::ConfigFailed)?; + let metadata = Metadata::load(config.app().root_dir()).map_err(Error::MetadataFailed)?; + if metadata.apple().supported() { + f(config.apple(), metadata.apple()) + } else { + Err(Error::Unsupported) } +} +fn open() -> Result<()> { + let wrapper = TextWrapper::with_splitter(textwrap::termwidth(), textwrap::NoHyphenation); + with_config(&wrapper, |config, _metadata| { + ensure_init(config.project_dir(), Target::Ios) + .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; + os::open_file_with("Xcode", config.project_dir()).map_err(Error::OpenFailed) + })?; Ok(()) } diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index 83baa249cff6..16ea4040a75f 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -2,7 +2,48 @@ // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT +use anyhow::{bail, Result}; +use std::path::PathBuf; + pub mod android; mod init; #[cfg(target_os = "macos")] pub mod ios; + +#[derive(PartialEq, Eq)] +pub enum Target { + Android, + #[cfg(target_os = "macos")] + Ios, +} + +impl Target { + fn ide_name(&self) -> &'static str { + match self { + Self::Android => "Android Studio", + #[cfg(target_os = "macos")] + Self::Ios => "Xcode", + } + } + + fn command_name(&self) -> &'static str { + match self { + Self::Android => "android", + #[cfg(target_os = "macos")] + Self::Ios => "ios", + } + } +} + +fn ensure_init(project_dir: PathBuf, target: Target) -> Result<()> { + if !project_dir.exists() { + bail!( + "{} project directory {} doesn't exist. Please run `tauri {} init` and try again.", + target.ide_name(), + project_dir.display(), + target.command_name(), + ) + } else { + Ok(()) + } +} From 3f655d62808520d06e24f875a84e96f1872f7186 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Tue, 16 Aug 2022 09:44:55 -0300 Subject: [PATCH 008/436] refactor: pull mobile config from tauri config instead of mobile.toml (#4948) --- core/tauri-utils/src/config.rs | 20 +- core/tauri/src/test/mod.rs | 1 + examples/api/src-tauri/mobile.toml | 8 - tooling/cli/Cargo.lock | 2 +- tooling/cli/Cargo.toml | 4 +- tooling/cli/schema.json | 24 +++ tooling/cli/src/mobile/android.rs | 143 ++++++++++--- tooling/cli/src/mobile/android/project.rs | 6 +- tooling/cli/src/mobile/init.rs | 105 ++++------ tooling/cli/src/mobile/ios.rs | 192 +++++++++++++++--- tooling/cli/src/mobile/mod.rs | 89 ++++++++ .../buildSrc/src/main/kotlin/BuildTask.kt | 6 +- tooling/cli/templates/mobile/ios/project.yml | 12 +- 13 files changed, 476 insertions(+), 136 deletions(-) delete mode 100644 examples/api/src-tauri/mobile.toml diff --git a/core/tauri-utils/src/config.rs b/core/tauri-utils/src/config.rs index 7810d376b188..5e6a7209111c 100644 --- a/core/tauri-utils/src/config.rs +++ b/core/tauri-utils/src/config.rs @@ -2085,6 +2085,9 @@ pub struct TauriConfig { /// MacOS private API configuration. Enables the transparent background API and sets the `fullScreenEnabled` preference to `true`. #[serde(rename = "macOSPrivateApi", alias = "macos-private-api", default)] pub macos_private_api: bool, + /// iOS configuration. + #[serde(rename = "iOS", default)] + pub ios: IosConfig, } impl TauriConfig { @@ -2354,6 +2357,18 @@ fn default_dialog() -> bool { true } +/// General configuration for the iOS target. +#[skip_serializing_none] +#[derive(Debug, Default, PartialEq, Eq, Clone, Deserialize, Serialize)] +#[cfg_attr(feature = "schema", derive(JsonSchema))] +#[serde(rename_all = "camelCase", deny_unknown_fields)] +pub struct IosConfig { + /// The development team. This value is required for iOS development because code signing is enforced. + /// The `APPLE_DEVELOPMENT_TEAM` environment variable can be set to overwrite it. + #[serde(alias = "development-team")] + pub development_team: Option, +} + /// Defines the URL or assets to embed in the application. #[derive(Debug, PartialEq, Eq, Clone, Deserialize, Serialize)] #[cfg_attr(feature = "schema", derive(JsonSchema))] @@ -3443,6 +3458,7 @@ mod build { let system_tray = opt_lit(self.system_tray.as_ref()); let allowlist = &self.allowlist; let macos_private_api = self.macos_private_api; + let ios = quote!(Default::default()); literal_struct!( tokens, @@ -3455,7 +3471,8 @@ mod build { security, system_tray, allowlist, - macos_private_api + macos_private_api, + ios ); } } @@ -3553,6 +3570,7 @@ mod test { allowlist: AllowlistConfig::default(), system_tray: None, macos_private_api: false, + ios: Default::default(), }; // create a build config diff --git a/core/tauri/src/test/mod.rs b/core/tauri/src/test/mod.rs index bf0bb33e074b..9f4357b36efe 100644 --- a/core/tauri/src/test/mod.rs +++ b/core/tauri/src/test/mod.rs @@ -61,6 +61,7 @@ pub fn mock_context(assets: A) -> crate::Context { updater: Default::default(), system_tray: None, macos_private_api: false, + ios: Default::default(), }, build: Default::default(), plugins: Default::default(), diff --git a/examples/api/src-tauri/mobile.toml b/examples/api/src-tauri/mobile.toml deleted file mode 100644 index 998b18530dd0..000000000000 --- a/examples/api/src-tauri/mobile.toml +++ /dev/null @@ -1,8 +0,0 @@ -[app] -name = "api" -stylized-name = "Tauri API" -domain = "tauri.studio" -template-pack = "tauri" - -[apple] -development-team = "0" diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 0945082a6e2e..646219416486 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -272,7 +272,7 @@ dependencies = [ [[package]] name = "cargo-mobile" version = "0.1.0" -source = "git+https://github.com/tauri-apps/cargo-mobile?branch=feat/library#c1365b7e90d341d67cf40f4d2f5532e932631907" +source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#32de2201d4a607c2d4b910cc2a33d052fe852bd8" dependencies = [ "bicycle", "bossy", diff --git a/tooling/cli/Cargo.toml b/tooling/cli/Cargo.toml index 777d4d53f09c..9c2b987ab36f 100644 --- a/tooling/cli/Cargo.toml +++ b/tooling/cli/Cargo.toml @@ -30,8 +30,8 @@ path = "src/main.rs" bossy = { git = "https://github.com/lucasfernog/bossy", branch = "fix/winapi-features" } [dependencies] -#cargo-mobile = { path = "../../../cargo-mobile/", default-features = false } -cargo-mobile = { git = "https://github.com/tauri-apps/cargo-mobile", branch = "feat/library", default-features = false } +# cargo-mobile = { path = "../../../cargo-mobile/", default-features = false } +cargo-mobile = { git = "https://github.com/tauri-apps/cargo-mobile", branch = "dev", default-features = false } bossy = "0.2" textwrap = { version = "0.11.0", features = ["term_size"] } thiserror = "1" diff --git a/tooling/cli/schema.json b/tooling/cli/schema.json index 60ab3fc4f15b..91ec0a3995fe 100644 --- a/tooling/cli/schema.json +++ b/tooling/cli/schema.json @@ -144,6 +144,7 @@ "wix": null } }, + "iOS": {}, "macOSPrivateApi": false, "pattern": { "use": "brownfield" @@ -426,6 +427,15 @@ "description": "MacOS private API configuration. Enables the transparent background API and sets the `fullScreenEnabled` preference to `true`.", "default": false, "type": "boolean" + }, + "iOS": { + "description": "iOS configuration.", + "default": {}, + "allOf": [ + { + "$ref": "#/definitions/IosConfig" + } + ] } }, "additionalProperties": false @@ -2418,6 +2428,20 @@ }, "additionalProperties": false }, + "IosConfig": { + "description": "General configuration for the iOS target.", + "type": "object", + "properties": { + "developmentTeam": { + "description": "The development team. This value is required for iOS development because code signing is enforced. The `APPLE_DEVELOPMENT_TEAM` environment variable can be set to overwrite it.", + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + }, "BuildConfig": { "description": "The Build configuration object.", "type": "object", diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index 59dd3eba15a9..ba3f7f0304f6 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -3,34 +3,45 @@ // SPDX-License-Identifier: MIT use cargo_mobile::{ - android::config::{Config as AndroidConfig, Metadata as AndroidMetadata}, - config::{metadata::Metadata, Config}, + android::{ + adb, + config::{Config as AndroidConfig, Metadata as AndroidMetadata}, + device::Device, + env::{Env, Error as EnvError}, + target::{BuildError, Target}, + }, + device::PromptError, + opts::{NoiseLevel, Profile}, os, - util::cli::TextWrapper, + target::call_for_targets_with_fallback, + util::prompt, }; use clap::{Parser, Subcommand}; use super::{ - ensure_init, + ensure_init, get_config, get_metadata, init::{command as init_command, Options as InitOptions}, - Target, + Target as MobileTarget, }; +use crate::helpers::config::get as get_tauri_config; use crate::Result; pub(crate) mod project; #[derive(Debug, thiserror::Error)] enum Error { + #[error(transparent)] + EnvInitFailed(EnvError), + #[error("invalid tauri configuration: {0}")] + InvalidTauriConfig(String), #[error("{0}")] ProjectNotInitialized(String), #[error(transparent)] - ConfigFailed(cargo_mobile::config::LoadOrGenError), - #[error(transparent)] - MetadataFailed(cargo_mobile::config::metadata::Error), - #[error("Android is marked as unsupported in your configuration file")] - Unsupported, - #[error(transparent)] OpenFailed(os::OpenFileError), + #[error(transparent)] + BuildFailed(BuildError), + #[error("{0}")] + TargetInvalid(String), } #[derive(Parser)] @@ -46,41 +57,125 @@ pub struct Cli { command: Commands, } +#[derive(Debug, Parser)] +pub struct BuildOptions { + /// Targets to build. + #[clap( + short, + long = "target", + multiple_occurrences(true), + multiple_values(true), + value_parser(clap::builder::PossibleValuesParser::new(["aarch64", "armv7", "i686", "x86_64"])) + )] + targets: Option>, + /// Builds with the debug flag + #[clap(short, long)] + debug: bool, +} + #[derive(Subcommand)] enum Commands { Init(InitOptions), + /// Open project in Android Studio Open, + #[clap(hide(true))] + Build(BuildOptions), } pub fn command(cli: Cli) -> Result<()> { match cli.command { - Commands::Init(options) => init_command(options, Target::Android)?, + Commands::Init(options) => init_command(options, MobileTarget::Android)?, Commands::Open => open()?, + Commands::Build(options) => build(options)?, } Ok(()) } fn with_config( - wrapper: &TextWrapper, f: impl FnOnce(&AndroidConfig, &AndroidMetadata) -> Result<(), Error>, ) -> Result<(), Error> { - let (config, _origin) = - Config::load_or_gen(".", true.into(), wrapper).map_err(Error::ConfigFailed)?; - let metadata = Metadata::load(config.app().root_dir()).map_err(Error::MetadataFailed)?; - if metadata.android().supported() { - f(config.android(), metadata.android()) - } else { - Err(Error::Unsupported) - } + let tauri_config = + get_tauri_config(None).map_err(|e| Error::InvalidTauriConfig(e.to_string()))?; + let tauri_config_guard = tauri_config.lock().unwrap(); + let tauri_config_ = tauri_config_guard.as_ref().unwrap(); + let config = get_config(tauri_config_); + let metadata = get_metadata(tauri_config_); + f(config.android(), metadata.android()) } fn open() -> Result<()> { - let wrapper = TextWrapper::with_splitter(textwrap::termwidth(), textwrap::NoHyphenation); - with_config(&wrapper, |config, _metadata| { - ensure_init(config.project_dir(), Target::Android) + 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) })?; Ok(()) } + +fn build(options: BuildOptions) -> Result<()> { + let profile = if options.debug { + Profile::Debug + } else { + Profile::Release + }; + + fn device_prompt<'a>(env: &'_ Env) -> Result, PromptError> { + let device_list = + adb::device_list(env).map_err(|cause| PromptError::detection_failed("Android", cause))?; + if !device_list.is_empty() { + let index = if device_list.len() > 1 { + prompt::list( + concat!("Detected ", "Android", " devices"), + device_list.iter(), + "device", + None, + "Device", + ) + .map_err(|cause| PromptError::prompt_failed("Android", cause))? + } else { + 0 + }; + let device = device_list.into_iter().nth(index).unwrap(); + println!( + "Detected connected device: {} with target {:?}", + device, + device.target().triple, + ); + Ok(device) + } else { + Err(PromptError::none_detected("Android")) + } + } + + fn detect_target_ok<'a>(env: &Env) -> Option<&'a Target<'a>> { + device_prompt(env).map(|device| device.target()).ok() + } + + with_config(|config, metadata| { + ensure_init(config.project_dir(), MobileTarget::Android) + .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; + + let env = Env::new().map_err(Error::EnvInitFailed)?; + + call_for_targets_with_fallback( + options.targets.unwrap_or_default().iter(), + &detect_target_ok, + &env, + |target: &Target| { + target + .build( + config, + metadata, + &env, + NoiseLevel::Polite, + true.into(), + profile, + ) + .map_err(Error::BuildFailed) + }, + ) + .map_err(|e| Error::TargetInvalid(e.to_string()))? + })?; + Ok(()) +} diff --git a/tooling/cli/src/mobile/android/project.rs b/tooling/cli/src/mobile/android/project.rs index b70771b07872..0d4c504f72ba 100644 --- a/tooling/cli/src/mobile/android/project.rs +++ b/tooling/cli/src/mobile/android/project.rs @@ -71,7 +71,11 @@ pub fn gen( map.insert( "root-dir-rel", Path::new(&os::replace_path_separator( - util::relativize_path(config.app().root_dir(), config.project_dir()).into_os_string(), + util::relativize_path( + config.app().root_dir(), + config.project_dir().join(config.app().name()), + ) + .into_os_string(), )), ); map.insert("root-dir", config.app().root_dir()); diff --git a/tooling/cli/src/mobile/init.rs b/tooling/cli/src/mobile/init.rs index 1fdd9e67b116..326c72fad248 100644 --- a/tooling/cli/src/mobile/init.rs +++ b/tooling/cli/src/mobile/init.rs @@ -2,19 +2,13 @@ // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT -use super::Target; -use crate::helpers::{app_paths::tauri_dir, template::JsonMap}; +use super::{get_config, get_metadata, Target}; +use crate::helpers::{app_paths::tauri_dir, config::get as get_tauri_config, template::JsonMap}; use crate::Result; use cargo_mobile::{ android, - config::{ - self, - metadata::{self, Metadata}, - Config, - }, - dot_cargo, - init::{DOT_FIRST_INIT_CONTENTS, DOT_FIRST_INIT_FILE_NAME}, - opts, + config::Config, + dot_cargo, opts, os::code_command, util::{ self, @@ -58,10 +52,8 @@ pub fn command(mut options: Options, target: Target) -> Result<()> { #[derive(Debug, thiserror::Error)] pub enum Error { - #[error(transparent)] - ConfigLoadOrGen(config::LoadOrGenError), - #[error("failed to init first init file {path}: {cause}")] - DotFirstInitWrite { path: PathBuf, cause: io::Error }, + #[error("invalid tauri configuration: {0}")] + InvalidTauriConfig(String), #[error("failed to create asset dir {asset_dir}: {cause}")] AssetDirCreation { asset_dir: PathBuf, @@ -73,8 +65,6 @@ pub enum Error { DotCargoLoad(dot_cargo::LoadError), #[error(transparent)] HostTargetTripleDetection(util::HostTargetTripleError), - #[error(transparent)] - Metadata(metadata::Error), #[cfg(target_os = "macos")] #[error(transparent)] IosInit(super::ios::project::Error), @@ -84,8 +74,6 @@ pub enum Error { AndroidInit(super::android::project::Error), #[error(transparent)] DotCargoWrite(dot_cargo::WriteError), - #[error("failed to delete first init file {path}: {cause}")] - DotFirstInitDelete { path: PathBuf, cause: io::Error }, #[error(transparent)] OpenInEditor(util::OpenInEditorError), } @@ -100,26 +88,13 @@ pub fn exec( cwd: impl AsRef, ) -> Result { let cwd = cwd.as_ref(); - let (config, config_origin) = - Config::load_or_gen(cwd, non_interactive, wrapper).map_err(Error::ConfigLoadOrGen)?; - let dot_first_init_path = config.app().root_dir().join(DOT_FIRST_INIT_FILE_NAME); - let dot_first_init_exists = { - let dot_first_init_exists = dot_first_init_path.exists(); - if config_origin.freshly_minted() && !dot_first_init_exists { - // indicate first init is ongoing, so that if we error out and exit - // the next init will know to still use `WildWest` filtering - log::info!("creating first init dot file at {:?}", dot_first_init_path); - fs::write(&dot_first_init_path, DOT_FIRST_INIT_CONTENTS).map_err(|cause| { - Error::DotFirstInitWrite { - path: dot_first_init_path.clone(), - cause, - } - })?; - true - } else { - dot_first_init_exists - } - }; + let tauri_config = + get_tauri_config(None).map_err(|e| Error::InvalidTauriConfig(e.to_string()))?; + let tauri_config_guard = tauri_config.lock().unwrap(); + let tauri_config_ = tauri_config_guard.as_ref().unwrap(); + + let config = get_config(tauri_config_); + let metadata = get_metadata(tauri_config_); let asset_dir = config.app().asset_dir(); if !asset_dir.is_dir() { @@ -149,33 +124,24 @@ pub fn exec( dot_cargo .set_default_target(util::host_target_triple().map_err(Error::HostTargetTripleDetection)?); - let metadata = Metadata::load(config.app().root_dir()).map_err(Error::Metadata)?; - - // Generate Xcode project - #[cfg(target_os = "macos")] - if target == Target::Ios && metadata.apple().supported() { - super::ios::project::gen( - config.apple(), - metadata.apple(), - handlebars(&config), - wrapper, - non_interactive, - skip_dev_tools, - reinstall_deps, - ) - .map_err(Error::IosInit)?; - } else { - println!("Skipping iOS init, since it's marked as unsupported in your Cargo.toml metadata"); - } + let (handlebars, mut map) = handlebars(&config); + // TODO: make this a relative path + map.insert( + "tauri-binary", + std::env::args_os() + .next() + .unwrap_or_else(|| std::ffi::OsString::from("cargo")) + .to_string_lossy(), + ); // Generate Android Studio project - if target == Target::Android && metadata.android().supported() { + if target == Target::Android { match android::env::Env::new() { Ok(env) => super::android::project::gen( config.android(), metadata.android(), &env, - handlebars(&config), + (handlebars, map), wrapper, &mut dot_cargo, ) @@ -193,19 +159,26 @@ pub fn exec( } } } else { - println!("Skipping Android init, since it's marked as unsupported in your Cargo.toml metadata"); + // Generate Xcode project + #[cfg(target_os = "macos")] + if target == Target::Ios { + super::ios::project::gen( + config.apple(), + metadata.apple(), + (handlebars, map), + wrapper, + non_interactive, + skip_dev_tools, + reinstall_deps, + ) + .map_err(Error::IosInit)?; + } } dot_cargo .write(config.app()) .map_err(Error::DotCargoWrite)?; - if dot_first_init_exists { - log::info!("deleting first init dot file at {:?}", dot_first_init_path); - fs::remove_file(&dot_first_init_path).map_err(|cause| Error::DotFirstInitDelete { - path: dot_first_init_path, - cause, - })?; - } + Report::victory( "Project generated successfully!", "Make cool apps! 🌻 🐕 🎉", diff --git a/tooling/cli/src/mobile/ios.rs b/tooling/cli/src/mobile/ios.rs index ff781d302d71..fcd568512414 100644 --- a/tooling/cli/src/mobile/ios.rs +++ b/tooling/cli/src/mobile/ios.rs @@ -2,35 +2,50 @@ // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT +use crate::helpers::config::get as get_tauri_config; use cargo_mobile::{ - apple::config::{Config as AppleConfig, Metadata as AppleMetadata}, - config::{metadata::Metadata, Config}, - os, - util::cli::TextWrapper, + apple::{ + config::{Config as AppleConfig, Metadata as AppleMetadata}, + target::{CompileLibError, Target}, + }, + env::{Env, Error as EnvError}, + opts::{NoiseLevel, Profile}, + os, util, }; use clap::{Parser, Subcommand}; use super::{ - ensure_init, + ensure_init, get_config, get_metadata, init::{command as init_command, Options as InitOptions}, - Target, + Target as MobileTarget, }; use crate::Result; +use std::{collections::HashMap, ffi::OsStr, path::PathBuf}; pub(crate) mod project; #[derive(Debug, thiserror::Error)] enum Error { + #[error(transparent)] + EnvInitFailed(EnvError), + #[error("invalid tauri configuration: {0}")] + InvalidTauriConfig(String), #[error("{0}")] ProjectNotInitialized(String), #[error(transparent)] - ConfigFailed(cargo_mobile::config::LoadOrGenError), + OpenFailed(os::OpenFileError), #[error(transparent)] - MetadataFailed(cargo_mobile::config::metadata::Error), - #[error("iOS is marked as unsupported in your configuration file")] - Unsupported, + NoHomeDir(util::NoHomeDir), + #[error("SDK root provided by Xcode was invalid. {sdk_root} doesn't exist or isn't a directory")] + SdkRootInvalid { sdk_root: PathBuf }, + #[error("Include dir was invalid. {include_dir} doesn't exist or isn't a directory")] + IncludeDirInvalid { include_dir: PathBuf }, + #[error("macOS SDK root was invalid. {macos_sdk_root} doesn't exist or isn't a directory")] + MacosSdkRootInvalid { macos_sdk_root: PathBuf }, + #[error("Arch specified by Xcode was invalid. {arch} isn't a known arch")] + ArchInvalid { arch: String }, #[error(transparent)] - OpenFailed(os::OpenFileError), + CompileLibFailed(CompileLibError), } #[derive(Parser)] @@ -46,41 +61,170 @@ pub struct Cli { command: Commands, } +#[derive(Debug, Parser)] +pub struct XcodeScriptOptions { + /// Value of `PLATFORM_DISPLAY_NAME` env var + #[clap(long)] + platform: String, + /// Value of `SDKROOT` env var + #[clap(long)] + sdk_root: PathBuf, + /// Value of `CONFIGURATION` env var + #[clap(long)] + configuration: String, + /// Value of `FORCE_COLOR` env var + #[clap(long)] + force_color: bool, + /// Value of `ARCHS` env var + #[clap(index = 1, required = true)] + arches: Vec, +} + #[derive(Subcommand)] enum Commands { Init(InitOptions), Open, + #[clap(hide(true))] + XcodeScript(XcodeScriptOptions), } pub fn command(cli: Cli) -> Result<()> { match cli.command { - Commands::Init(options) => init_command(options, Target::Ios)?, + Commands::Init(options) => init_command(options, MobileTarget::Ios)?, Commands::Open => open()?, + Commands::XcodeScript(options) => xcode_script(options)?, } Ok(()) } fn with_config( - wrapper: &TextWrapper, f: impl FnOnce(&AppleConfig, &AppleMetadata) -> Result<(), Error>, ) -> Result<(), Error> { - let (config, _origin) = - Config::load_or_gen(".", true.into(), wrapper).map_err(Error::ConfigFailed)?; - let metadata = Metadata::load(config.app().root_dir()).map_err(Error::MetadataFailed)?; - if metadata.apple().supported() { - f(config.apple(), metadata.apple()) - } else { - Err(Error::Unsupported) - } + let tauri_config = + get_tauri_config(None).map_err(|e| Error::InvalidTauriConfig(e.to_string()))?; + let tauri_config_guard = tauri_config.lock().unwrap(); + let tauri_config_ = tauri_config_guard.as_ref().unwrap(); + let config = get_config(tauri_config_); + let metadata = get_metadata(tauri_config_); + f(config.apple(), metadata.apple()) } fn open() -> Result<()> { - let wrapper = TextWrapper::with_splitter(textwrap::termwidth(), textwrap::NoHyphenation); - with_config(&wrapper, |config, _metadata| { - ensure_init(config.project_dir(), Target::Ios) + with_config(|config, _metadata| { + ensure_init(config.project_dir(), MobileTarget::Ios) .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; os::open_file_with("Xcode", config.project_dir()).map_err(Error::OpenFailed) })?; Ok(()) } + +fn xcode_script(options: XcodeScriptOptions) -> Result<()> { + fn macos_from_platform(platform: &str) -> bool { + platform == "macOS" + } + + fn profile_from_configuration(configuration: &str) -> Profile { + if configuration == "release" { + Profile::Release + } else { + Profile::Debug + } + } + + let profile = profile_from_configuration(&options.configuration); + let macos = macos_from_platform(&options.platform); + + with_config(|config, metadata| { + let env = Env::new().map_err(Error::EnvInitFailed)?; + // The `PATH` env var Xcode gives us is missing any additions + // made by the user's profile, so we'll manually add cargo's + // `PATH`. + let env = env.prepend_to_path( + util::home_dir() + .map_err(Error::NoHomeDir)? + .join(".cargo/bin"), + ); + + if !options.sdk_root.is_dir() { + return Err(Error::SdkRootInvalid { + sdk_root: options.sdk_root, + }); + } + let include_dir = options.sdk_root.join("usr/include"); + if !include_dir.is_dir() { + return Err(Error::IncludeDirInvalid { include_dir }); + } + + let mut host_env = HashMap::<&str, &OsStr>::new(); + + // Host flags that are used by build scripts + let (macos_isysroot, library_path) = { + let macos_sdk_root = options + .sdk_root + .join("../../../../MacOSX.platform/Developer/SDKs/MacOSX.sdk"); + if !macos_sdk_root.is_dir() { + return Err(Error::MacosSdkRootInvalid { macos_sdk_root }); + } + ( + format!("-isysroot {}", macos_sdk_root.display()), + format!("{}/usr/lib", macos_sdk_root.display()), + ) + }; + host_env.insert("MAC_FLAGS", macos_isysroot.as_ref()); + host_env.insert("CFLAGS_x86_64_apple_darwin", macos_isysroot.as_ref()); + host_env.insert("CXXFLAGS_x86_64_apple_darwin", macos_isysroot.as_ref()); + + host_env.insert( + "OBJC_INCLUDE_PATH_x86_64_apple_darwin", + include_dir.as_os_str(), + ); + + host_env.insert("RUST_BACKTRACE", "1".as_ref()); + + let macos_target = Target::macos(); + + let isysroot = format!("-isysroot {}", options.sdk_root.display()); + + for arch in options.arches { + // Set target-specific flags + let triple = match arch.as_str() { + "arm64" => "aarch64_apple_ios", + "x86_64" => "x86_64_apple_ios", + _ => return Err(Error::ArchInvalid { arch }), + }; + let cflags = format!("CFLAGS_{}", triple); + let cxxflags = format!("CFLAGS_{}", triple); + let objc_include_path = format!("OBJC_INCLUDE_PATH_{}", triple); + let mut target_env = host_env.clone(); + target_env.insert(cflags.as_ref(), isysroot.as_ref()); + target_env.insert(cxxflags.as_ref(), isysroot.as_ref()); + target_env.insert(objc_include_path.as_ref(), include_dir.as_ref()); + // Prevents linker errors in build scripts and proc macros: + // https://github.com/signalapp/libsignal-client/commit/02899cac643a14b2ced7c058cc15a836a2165b6d + target_env.insert("LIBRARY_PATH", library_path.as_ref()); + + let target = if macos { + &macos_target + } else { + Target::for_arch(&arch).ok_or_else(|| Error::ArchInvalid { + arch: arch.to_owned(), + })? + }; + target + .compile_lib( + config, + metadata, + NoiseLevel::Polite, + true.into(), + profile, + &env, + target_env, + ) + .map_err(Error::CompileLibFailed)?; + } + Ok(()) + })?; + + Ok(()) +} diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index 16ea4040a75f..6aced9de5d1b 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -2,7 +2,16 @@ // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT +use crate::helpers::{app_paths::tauri_dir, config::Config as TauriConfig}; use anyhow::{bail, Result}; +#[cfg(target_os = "macos")] +use cargo_mobile::apple::config::{ + Metadata as AppleMetadata, Platform as ApplePlatform, Raw as RawAppleConfig, +}; +use cargo_mobile::{ + android::config::{Metadata as AndroidMetadata, Raw as RawAndroidConfig}, + config::{app::Raw as RawAppConfig, metadata::Metadata, Config, Raw}, +}; use std::path::PathBuf; pub mod android; @@ -35,6 +44,86 @@ impl Target { } } +fn get_metadata(_config: &TauriConfig) -> Metadata { + Metadata { + #[cfg(target_os = "macos")] + apple: AppleMetadata { + supported: true, + ios: ApplePlatform { + features: None, + frameworks: None, + valid_archs: None, + vendor_frameworks: None, + vendor_sdks: None, + asset_catalogs: None, + pods: None, + additional_targets: None, + pre_build_scripts: None, + post_compile_scripts: None, + post_build_scripts: None, + command_line_arguments: None, + }, + macos: Default::default(), + }, + android: AndroidMetadata { + supported: true, + features: None, + app_sources: None, + app_plugins: None, + project_dependencies: None, + app_dependencies: None, + app_dependencies_platform: None, + asset_packs: None, + }, + } +} + +fn get_config(config: &TauriConfig) -> Config { + let mut s = config.tauri.bundle.identifier.rsplit('.'); + let app_name = s.next().unwrap_or("app").to_string(); + let mut domain = String::new(); + for w in s { + domain.push_str(w); + domain.push('.'); + } + domain.pop(); + let raw = Raw { + app: RawAppConfig { + name: app_name, + stylized_name: config.package.product_name.clone(), + domain, + asset_dir: None, + template_pack: None, + }, + #[cfg(target_os = "macos")] + apple: Some(RawAppleConfig { + development_team: std::env::var("APPLE_DEVELOPMENT_TEAM") + .ok() + .or_else(|| config.tauri.ios.development_team.clone()) + .expect("you must set `tauri > iOS > developmentTeam` config value or the `APPLE_DEVELOPMENT_TEAM` environment variable"), + project_dir: None, + ios_no_default_features: None, + ios_features: None, + macos_no_default_features: None, + macos_features: None, + bundle_version: None, + bundle_version_short: None, + ios_version: None, + macos_version: None, + use_legacy_build_system: None, + plist_pairs: None, + }), + android: Some(RawAndroidConfig { + min_sdk_version: None, + vulkan_validation: None, + project_dir: None, + no_default_features: None, + features: None, + }), + }; + Config::from_raw(tauri_dir(), raw).unwrap() +} + fn ensure_init(project_dir: PathBuf, target: Target) -> Result<()> { if !project_dir.exists() { bail!( diff --git a/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/BuildTask.kt b/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/BuildTask.kt index 454531d0a9d0..9796cc8c3504 100644 --- a/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/BuildTask.kt +++ b/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/BuildTask.kt @@ -37,8 +37,8 @@ open class BuildTask : DefaultTask() { } project.exec { workingDir(File(project.getProjectDir(), rootDirRel.getPath())) - executable("cargo") - args(listOf("android", "build")) + executable("{{ tauri-binary }}") + args(listOf("tauri", "android", "build")) if (project.logger.isEnabled(LogLevel.DEBUG)) { args("-vv") } else if (project.logger.isEnabled(LogLevel.INFO)) { @@ -47,7 +47,7 @@ open class BuildTask : DefaultTask() { if (release) { args("--release") } - args("${target}") + args(listOf("--target", "${target}")) }.assertNormalExitValue() } } diff --git a/tooling/cli/templates/mobile/ios/project.yml b/tooling/cli/templates/mobile/ios/project.yml index b4e3a5ddacfc..54bd3bb23c73 100644 --- a/tooling/cli/templates/mobile/ios/project.yml +++ b/tooling/cli/templates/mobile/ios/project.yml @@ -266,15 +266,15 @@ targets: ARCHS: [{{join ios-valid-archs}}] VALID_ARCHS: {{~#each ios-valid-archs}} {{this}} {{/each}} legacy: - toolPath: ${HOME}/.cargo/bin/cargo-apple - arguments: xcode-script -v --platform ${PLATFORM_DISPLAY_NAME:?} --sdk-root ${SDKROOT:?} --configuration ${CONFIGURATION:?} ${FORCE_COLOR} ${ARCHS:?} + toolPath: {{ tauri-binary }} + arguments: ios xcode-script -v --platform ${PLATFORM_DISPLAY_NAME:?} --sdk-root ${SDKROOT:?} --configuration ${CONFIGURATION:?} ${FORCE_COLOR} ${ARCHS:?} passSettings: false # prevents evil linker errors - workingDirectory: $(SRCROOT)/.. + workingDirectory: $(SRCROOT)/../.. lib_{{app.name}}_macOS: type: "" platform: macOS legacy: - toolPath: ${HOME}/.cargo/bin/cargo-apple - arguments: xcode-script -v --platform ${PLATFORM_DISPLAY_NAME:?} --sdk-root ${SDKROOT:?} --configuration ${CONFIGURATION:?} ${FORCE_COLOR} ${ARCHS:?} + toolPath: {{ tauri-binary }} + arguments: ios xcode-script -v --platform ${PLATFORM_DISPLAY_NAME:?} --sdk-root ${SDKROOT:?} --configuration ${CONFIGURATION:?} ${FORCE_COLOR} ${ARCHS:?} passSettings: false - workingDirectory: $(SRCROOT)/.. + workingDirectory: $(SRCROOT)/../.. From e20145cccce58ec435571dfccf1019183c37a2dc Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Tue, 16 Aug 2022 11:48:01 -0300 Subject: [PATCH 009/436] fix(examples): change API example domain, export mobile mod --- examples/api/src-tauri/src/lib.rs | 5 +++++ examples/api/src-tauri/src/mobile.rs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/api/src-tauri/src/lib.rs b/examples/api/src-tauri/src/lib.rs index 75a4298cf57e..651bb94ec492 100644 --- a/examples/api/src-tauri/src/lib.rs +++ b/examples/api/src-tauri/src/lib.rs @@ -9,6 +9,11 @@ mod cmd; +#[cfg(mobile)] +mod mobile; +#[cfg(mobile)] +pub use mobile::*; + use serde::Serialize; use tauri::{window::WindowBuilder, App, AppHandle, RunEvent, WindowUrl}; diff --git a/examples/api/src-tauri/src/mobile.rs b/examples/api/src-tauri/src/mobile.rs index 05c5bda021c6..8d47ad0ed5be 100644 --- a/examples/api/src-tauri/src/mobile.rs +++ b/examples/api/src-tauri/src/mobile.rs @@ -33,7 +33,7 @@ fn _start_app() { #[inline(never)] pub extern "C" fn start_app() { #[cfg(target_os = "android")] - android_binding!(studio_tauri, api, _start_app, tauri_runtime_wry::wry); + android_binding!(com_tauri, api, _start_app, tauri_runtime_wry::wry); _start_app() } From a3680ef2bc0d1712835a69f2df8016830b362438 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Wed, 17 Aug 2022 16:40:04 -0300 Subject: [PATCH 010/436] feat(cli): skip dev tools installation on mobile init --- tooling/cli/src/mobile/init.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooling/cli/src/mobile/init.rs b/tooling/cli/src/mobile/init.rs index 326c72fad248..54bb1ff01173 100644 --- a/tooling/cli/src/mobile/init.rs +++ b/tooling/cli/src/mobile/init.rs @@ -41,7 +41,7 @@ pub fn command(mut options: Options, target: Target) -> Result<()> { target, &wrapper, options.ci.into(), - SkipDevTools::No, + SkipDevTools::Yes, ReinstallDeps::Yes, OpenInEditor::No, tauri_dir(), From f445f374a3642254d41ef224b4672081e66fb985 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Thu, 18 Aug 2022 11:31:07 -0300 Subject: [PATCH 011/436] feat(android): update project dependencies --- .../templates/mobile/android/app/build.gradle.kts | 12 +++++------- .../cli/templates/mobile/android/build.gradle.kts | 2 +- .../mobile/android/buildSrc/build.gradle.kts | 2 +- .../android/gradle/wrapper/gradle-wrapper.properties | 2 +- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/tooling/cli/templates/mobile/android/app/build.gradle.kts b/tooling/cli/templates/mobile/android/app/build.gradle.kts index 13906b47c2de..cc33f0d8b57b 100644 --- a/tooling/cli/templates/mobile/android/app/build.gradle.kts +++ b/tooling/cli/templates/mobile/android/app/build.gradle.kts @@ -7,11 +7,11 @@ plugins { } android { - compileSdk = 31 + compileSdk = 33 defaultConfig { applicationId = "{{reverse-domain app.domain}}.{{snake-case app.name}}" minSdk = {{android.min-sdk-version}} - targetSdk = 31 + targetSdk = 33 versionCode = 1 versionName = "1.0" } @@ -66,9 +66,8 @@ dependencies { {{~#each android-app-dependencies}} implementation("{{this}}"){{/each}} implementation("androidx.webkit:webkit:1.4.0") - implementation("androidx.appcompat:appcompat:1.4.1") - implementation("com.google.android.material:material:1.6.0") - implementation("androidx.constraintlayout:constraintlayout:2.1.3") + implementation("androidx.appcompat:appcompat:1.5.0") + implementation("com.google.android.material:material:1.6.1") testImplementation("junit:junit:4.13.2") androidTestImplementation("androidx.test.ext:junit:1.1.3") androidTestImplementation("androidx.test.espresso:espresso-core:3.4.0") @@ -76,8 +75,7 @@ dependencies { afterEvaluate { android.applicationVariants.all { - val buildType = "${buildType.name.capitalize()}" - productFlavors.forEach { + productFlavors.forEach { _ -> val archAndBuildType = name.capitalize() tasks["merge${archAndBuildType}JniLibFolders"].dependsOn(tasks["rustBuild${archAndBuildType}"]) } diff --git a/tooling/cli/templates/mobile/android/build.gradle.kts b/tooling/cli/templates/mobile/android/build.gradle.kts index f45e9c35ae51..8751beac14f6 100644 --- a/tooling/cli/templates/mobile/android/build.gradle.kts +++ b/tooling/cli/templates/mobile/android/build.gradle.kts @@ -5,7 +5,7 @@ buildscript { mavenCentral() } dependencies { - classpath("com.android.tools.build:gradle:7.0.2") + classpath("com.android.tools.build:gradle:7.2.2") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10") {{~#each android-project-dependencies}} classpath("{{this}}"){{/each}} diff --git a/tooling/cli/templates/mobile/android/buildSrc/build.gradle.kts b/tooling/cli/templates/mobile/android/buildSrc/build.gradle.kts index b0d0d4e6568d..f3753b206894 100644 --- a/tooling/cli/templates/mobile/android/buildSrc/build.gradle.kts +++ b/tooling/cli/templates/mobile/android/buildSrc/build.gradle.kts @@ -22,6 +22,6 @@ repositories { dependencies { compileOnly(gradleApi()) - implementation("com.android.tools.build:gradle:7.0.2") + implementation("com.android.tools.build:gradle:7.2.2") } diff --git a/tooling/cli/templates/mobile/android/gradle/wrapper/gradle-wrapper.properties b/tooling/cli/templates/mobile/android/gradle/wrapper/gradle-wrapper.properties index 543ef62a1a76..5303f9c743a2 100644 --- a/tooling/cli/templates/mobile/android/gradle/wrapper/gradle-wrapper.properties +++ b/tooling/cli/templates/mobile/android/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ #Tue May 10 19:22:52 CST 2022 distributionBase=GRADLE_USER_HOME -distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip distributionPath=wrapper/dists zipStorePath=wrapper/dists zipStoreBase=GRADLE_USER_HOME From 6f0615044d09ec58393a7ebca5e45bb175e20db3 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Sat, 20 Aug 2022 16:53:07 -0300 Subject: [PATCH 012/436] feat(cli): add `android dev` and `ios dev` commands (#4982) --- .changes/cli-mobile-dev.md | 6 + .changes/codegen-mobile-devurl.md | 5 + .changes/dev-proxy.md | 5 + core/tauri-codegen/Cargo.toml | 2 + core/tauri-codegen/src/context.rs | 19 +- core/tauri-codegen/src/embedded_assets.rs | 1 + core/tauri-utils/src/config.rs | 2 +- core/tauri/Cargo.toml | 4 +- core/tauri/src/manager.rs | 89 +++-- examples/api/dist/assets/index.js | 44 +-- examples/api/package.json | 7 +- examples/api/src-tauri/Cargo.lock | 37 +- examples/api/src-tauri/Cargo.toml | 2 - examples/api/src-tauri/tauri.conf.json | 4 +- examples/api/vite.config.js | 34 +- examples/api/yarn.lock | 361 +++++++++-------- tooling/cli/Cargo.lock | 135 ++----- tooling/cli/Cargo.toml | 5 +- tooling/cli/schema.json | 2 +- tooling/cli/src/build.rs | 3 +- tooling/cli/src/dev.rs | 21 +- tooling/cli/src/helpers/flock.rs | 363 ++++++++++++++++++ tooling/cli/src/helpers/mod.rs | 1 + tooling/cli/src/interface/mod.rs | 12 +- tooling/cli/src/interface/rust.rs | 188 ++++----- tooling/cli/src/interface/rust/desktop.rs | 35 +- tooling/cli/src/lib.rs | 26 +- tooling/cli/src/mobile/android.rs | 265 ++++++++++--- tooling/cli/src/mobile/android/project.rs | 29 +- tooling/cli/src/mobile/init.rs | 126 +++--- tooling/cli/src/mobile/ios.rs | 230 +++++++++-- tooling/cli/src/mobile/ios/project.rs | 8 +- tooling/cli/src/mobile/mod.rs | 172 +++++++-- .../mobile/android/app/build.gradle.kts | 14 +- .../android/app/src/main/AndroidManifest.xml | 3 - .../android/app/src/main/MainActivity.kt | 2 +- .../app/src/main/RustWebChromeClient.kt | 2 +- .../mipmap-anydpi-v26/ic_launcher_round.xml | 5 - .../res/mipmap-hdpi/ic_launcher_round.webp | Bin 2898 -> 0 bytes .../res/mipmap-mdpi/ic_launcher_round.webp | Bin 1772 -> 0 bytes .../res/mipmap-xhdpi/ic_launcher_round.webp | Bin 3918 -> 0 bytes .../res/mipmap-xxhdpi/ic_launcher_round.webp | Bin 5914 -> 0 bytes .../res/mipmap-xxxhdpi/ic_launcher_round.webp | Bin 7778 -> 0 bytes .../app/src/main/res/values/strings.xml | 2 +- .../mobile/android/buildSrc/build.gradle.kts | 4 - .../buildSrc/src/main/kotlin/BuildTask.kt | 21 +- .../buildSrc/src/main/kotlin/RustPlugin.kt | 24 +- 47 files changed, 1629 insertions(+), 691 deletions(-) create mode 100644 .changes/cli-mobile-dev.md create mode 100644 .changes/codegen-mobile-devurl.md create mode 100644 .changes/dev-proxy.md create mode 100644 tooling/cli/src/helpers/flock.rs delete mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml delete mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp delete mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp delete mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp delete mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp delete mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp diff --git a/.changes/cli-mobile-dev.md b/.changes/cli-mobile-dev.md new file mode 100644 index 000000000000..bd0df7aa9680 --- /dev/null +++ b/.changes/cli-mobile-dev.md @@ -0,0 +1,6 @@ +--- +"cli.rs": minor +"cli.js": minor +--- + +Added `android dev` and `ios dev` commands. diff --git a/.changes/codegen-mobile-devurl.md b/.changes/codegen-mobile-devurl.md new file mode 100644 index 000000000000..da7c8812d2a3 --- /dev/null +++ b/.changes/codegen-mobile-devurl.md @@ -0,0 +1,5 @@ +--- +"tauri-codegen": patch +--- + +Change `devPath` URL to use the local IP address on iOS and Android. diff --git a/.changes/dev-proxy.md b/.changes/dev-proxy.md new file mode 100644 index 000000000000..3e4e883162b0 --- /dev/null +++ b/.changes/dev-proxy.md @@ -0,0 +1,5 @@ +--- +"tauri": major +--- + +**Breaking change:** Use the custom protocol as a proxy to the development server on all platforms except Linux. diff --git a/core/tauri-codegen/Cargo.toml b/core/tauri-codegen/Cargo.toml index 590465c8f63e..b2b08da1535d 100644 --- a/core/tauri-codegen/Cargo.toml +++ b/core/tauri-codegen/Cargo.toml @@ -29,6 +29,8 @@ semver = "1" ico = "0.1" png = "0.17" json-patch = "0.2" +local-ip-address = "0.4" +url = "2" [target."cfg(target_os = \"macos\")".dependencies] plist = "1" diff --git a/core/tauri-codegen/src/context.rs b/core/tauri-codegen/src/context.rs index d5e5cd5789ab..28264dbce8ea 100644 --- a/core/tauri-codegen/src/context.rs +++ b/core/tauri-codegen/src/context.rs @@ -122,7 +122,7 @@ enum Target { pub fn context_codegen(data: ContextData) -> Result { let ContextData { dev, - config, + mut config, config_parent, root, } = data; @@ -155,6 +155,23 @@ pub fn context_codegen(data: ContextData) -> Result d == "localhost", + Some(url::Host::Ipv4(i)) => { + i == std::net::Ipv4Addr::LOCALHOST || i == std::net::Ipv4Addr::UNSPECIFIED + } + _ => false, + }; + if localhost { + if let Ok(ip) = local_ip_address::local_ip() { + url.set_host(Some(&ip.to_string())).unwrap(); + } + } + } + } + let mut options = AssetOptions::new(config.tauri.pattern.clone()) .freeze_prototype(config.tauri.security.freeze_prototype) .dangerous_disable_asset_csp_modification( diff --git a/core/tauri-codegen/src/embedded_assets.rs b/core/tauri-codegen/src/embedded_assets.rs index a5983fa6e0ed..7e2437efc167 100644 --- a/core/tauri-codegen/src/embedded_assets.rs +++ b/core/tauri-codegen/src/embedded_assets.rs @@ -431,6 +431,7 @@ impl ToTokens for EmbeddedAssets { // we expect phf related items to be in path when generating the path code tokens.append_all(quote! {{ + #[allow(unused_imports)] use ::tauri::utils::assets::{CspHash, EmbeddedAssets, phf, phf::phf_map}; EmbeddedAssets::new(phf_map! { #assets }, &[#global_hashes], phf_map! { #html_hashes }) }}); diff --git a/core/tauri-utils/src/config.rs b/core/tauri-utils/src/config.rs index 5e6a7209111c..0545b04ce5dd 100644 --- a/core/tauri-utils/src/config.rs +++ b/core/tauri-utils/src/config.rs @@ -2364,7 +2364,7 @@ fn default_dialog() -> bool { #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct IosConfig { /// The development team. This value is required for iOS development because code signing is enforced. - /// The `APPLE_DEVELOPMENT_TEAM` environment variable can be set to overwrite it. + /// The `TAURI_APPLE_DEVELOPMENT_TEAM` environment variable can be set to overwrite it. #[serde(alias = "development-team")] pub development_team: Option, } diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml index d11edae250c1..879245f65856 100644 --- a/core/tauri/Cargo.toml +++ b/core/tauri/Cargo.toml @@ -75,7 +75,7 @@ base64 = { version = "0.13", optional = true } clap = { version = "3", optional = true } reqwest = { version = "0.11", features = [ "json", "stream" ], optional = true } bytes = { version = "1", features = [ "serde" ], optional = true } -attohttpc = { version = "0.20", features = [ "compress", "json", "form" ], optional = true } +attohttpc = { version = "0.20", features = [ "compress", "json", "form" ] } open = { version = "3.0", optional = true } shared_child = { version = "1.0", optional = true } os_pipe = { version = "1.0", optional = true } @@ -146,7 +146,7 @@ updater = [ "dialog-ask", "fs-extract-api" ] -http-api = [ "attohttpc" ] +http-api = [ ] http-multipart = [ "attohttpc/multipart-form", "reqwest/multipart" ] shell-open-api = [ "open", "regex", "tauri-macros/shell-scope" ] fs-extract-api = [ "zip" ] diff --git a/core/tauri/src/manager.rs b/core/tauri/src/manager.rs index 673fb3c6be1a..1f670d2352e0 100644 --- a/core/tauri/src/manager.rs +++ b/core/tauri/src/manager.rs @@ -142,11 +142,6 @@ fn set_csp( Csp::DirectiveMap(csp).to_string() } -#[cfg(target_os = "linux")] -fn set_html_csp(html: &str, csp: &str) -> String { - html.replacen(tauri_utils::html::CSP_TOKEN, csp, 1) -} - // inspired by https://github.com/rust-lang/rust/blob/1be5c8f90912c446ecbdc405cbc4a89f9acd20fd/library/alloc/src/str.rs#L260-L297 fn replace_with_callback String>( original: &str, @@ -374,7 +369,13 @@ impl WindowManager { /// Get the origin as it will be seen in the webview. fn get_browser_origin(&self) -> String { match self.base_path() { - AppUrl::Url(WindowUrl::External(url)) => url.origin().ascii_serialization(), + AppUrl::Url(WindowUrl::External(url)) => { + if cfg!(dev) && !cfg!(target_os = "linux") { + format_real_schema("tauri") + } else { + url.origin().ascii_serialization() + } + } _ => format_real_schema("tauri"), } } @@ -820,8 +821,12 @@ impl WindowManager { >, ) -> Box Result> + Send + Sync> { + #[cfg(dev)] + let url = self.get_url().into_owned(); + #[cfg(not(dev))] let manager = self.clone(); let window_origin = window_origin.to_string(); + Box::new(move |request| { let path = request .uri() @@ -834,32 +839,47 @@ impl WindowManager { // the `strip_prefix` only returns None when a request is made to `https://tauri.$P` on Windows // where `$P` is not `localhost/*` .unwrap_or_else(|| "".to_string()); - let asset = manager.get_asset(path)?; - let mut builder = HttpResponseBuilder::new() - .header("Access-Control-Allow-Origin", &window_origin) - .mimetype(&asset.mime_type); - if let Some(csp) = &asset.csp_header { - builder = builder.header("Content-Security-Policy", csp); - } - let mut response = builder.body(asset.bytes)?; - if let Some(handler) = &web_resource_request_handler { - handler(request, &mut response); - // if it's an HTML file, we need to set the CSP meta tag on Linux - #[cfg(target_os = "linux")] - if let Some(response_csp) = response.headers().get("Content-Security-Policy") { - let response_csp = String::from_utf8_lossy(response_csp.as_bytes()); - let body = set_html_csp(&String::from_utf8_lossy(response.body()), &response_csp); - *response.body_mut() = body.as_bytes().to_vec(); - } - } else { - #[cfg(target_os = "linux")] - { - if let Some(csp) = &asset.csp_header { - let body = set_html_csp(&String::from_utf8_lossy(response.body()), csp); - *response.body_mut() = body.as_bytes().to_vec(); + let mut builder = + HttpResponseBuilder::new().header("Access-Control-Allow-Origin", &window_origin); + + #[cfg(dev)] + let mut response = { + let mut url = url.clone(); + url.set_path(&path); + match attohttpc::get(url.as_str()).send() { + Ok(r) => { + for (name, value) in r.headers() { + builder = builder.header(name, value); + } + builder.status(r.status()).body(r.bytes()?)? + } + Err(e) => { + debug_eprintln!("Failed to request {}: {}", url.path(), e); + return Err(Box::new(e)); } } + }; + + #[cfg(not(dev))] + let mut response = { + let asset = manager.get_asset(path)?; + builder = builder.mimetype(&asset.mime_type); + if let Some(csp) = &asset.csp_header { + builder = builder.header("Content-Security-Policy", csp); + } + builder.body(asset.bytes)? + }; + if let Some(handler) = &web_resource_request_handler { + handler(request, &mut response); + } + // if it's an HTML file, we need to set the CSP meta tag on Linux + #[cfg(all(not(dev), target_os = "linux"))] + if let Some(response_csp) = response.headers().get("Content-Security-Policy") { + let response_csp = String::from_utf8_lossy(response_csp.as_bytes()); + let html = String::from_utf8_lossy(response.body()); + let body = html.replacen(tauri_utils::html::CSP_TOKEN, &response_csp, 1); + *response.body_mut() = body.as_bytes().to_vec(); } Ok(response) }) @@ -1061,7 +1081,10 @@ impl WindowManager { #[allow(unused_mut)] // mut url only for the data-url parsing let (is_local, mut url) = match &pending.webview_attributes.url { WindowUrl::App(path) => { + #[cfg(target_os = "linux")] let url = self.get_url(); + #[cfg(not(target_os = "linux"))] + let url: Cow<'_, Url> = Cow::Owned(Url::parse("tauri://localhost").unwrap()); ( true, // ignore "index.html" just to simplify the url @@ -1078,7 +1101,13 @@ impl WindowManager { } WindowUrl::External(url) => { let config_url = self.get_url(); - (config_url.make_relative(url).is_some(), url.clone()) + let is_local = config_url.make_relative(url).is_some(); + let mut url = url.clone(); + if is_local && !cfg!(target_os = "linux") { + url.set_scheme("tauri").unwrap(); + url.set_host(Some("localhost")).unwrap(); + } + (is_local, url) } _ => unimplemented!(), }; diff --git a/examples/api/dist/assets/index.js b/examples/api/dist/assets/index.js index 7ed23367835e..52f29c45bf7a 100644 --- a/examples/api/dist/assets/index.js +++ b/examples/api/dist/assets/index.js @@ -1,44 +1,44 @@ -const Zl=function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerpolicy&&(l.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?l.credentials="include":o.crossorigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}};Zl();function J(){}function vl(t){return t()}function Io(){return Object.create(null)}function pe(t){t.forEach(vl)}function $l(t){return typeof t=="function"}function ke(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Un;function er(t,e){return Un||(Un=document.createElement("a")),Un.href=e,t===Un.href}function tr(t){return Object.keys(t).length===0}function nr(t,...e){if(t==null)return J;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function _l(t,e,n){t.$$.on_destroy.push(nr(e,n))}function r(t,e){t.appendChild(e)}function m(t,e,n){t.insertBefore(e,n||null)}function h(t){t.parentNode.removeChild(t)}function dt(t,e){for(let n=0;nt.removeEventListener(e,n,i)}function Xn(t){return function(e){return e.preventDefault(),t.call(this,e)}}function a(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function se(t){return t===""?null:+t}function or(t){return Array.from(t.childNodes)}function Z(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function G(t,e){t.value=e==null?"":e}function zt(t,e){for(let n=0;n{Vn.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}function Kn(t){t&&t.c()}function Vt(t,e,n,i){const{fragment:o,on_mount:l,on_destroy:u,after_update:f}=t.$$;o&&o.m(e,n),i||Lt(()=>{const c=l.map(vl).filter($l);u?u.push(...c):pe(c),t.$$.on_mount=[]}),f.forEach(Lt)}function Gt(t,e){const n=t.$$;n.fragment!==null&&(pe(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ar(t,e){t.$$.dirty[0]===-1&&(Ut.push(t),sr(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const g=y.length?y[0]:_;return p.ctx&&o(p.ctx[k],p.ctx[k]=g)&&(!p.skip_bound&&p.bound[k]&&p.bound[k](g),d&&ar(t,k)),_}):[],p.update(),d=!0,pe(p.before_update),p.fragment=i?i(p.ctx):!1,e.target){if(e.hydrate){const k=or(e.target);p.fragment&&p.fragment.l(k),k.forEach(h)}else p.fragment&&p.fragment.c();e.intro&&Ee(t.$$.fragment),Vt(t,e.target,e.anchor,e.customElement),gl()}qt(c)}class Se{$destroy(){Gt(this,1),this.$destroy=J}$on(e,n){const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const o=i.indexOf(n);o!==-1&&i.splice(o,1)}}$set(e){this.$$set&&!tr(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Ct=[];function yl(t,e=J){let n;const i=new Set;function o(f){if(ke(t,f)&&(t=f,n)){const c=!Ct.length;for(const p of i)p[1](),Ct.push(p,t);if(c){for(let p=0;p{i.delete(p),i.size===0&&(n(),n=null)}}return{set:o,update:l,subscribe:u}}var Ei=function(t,e){return Ei=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},Ei(t,e)};function ji(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Ei(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var ue=function(){return ue=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0&&o[o.length-1])||d[0]!==6&&d[0]!==2)){u=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]{for(const l of o)if(l.type==="childList")for(const a of l.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerpolicy&&(l.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?l.credentials="include":o.crossorigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function J(){}function vl(t){return t()}function Io(){return Object.create(null)}function pe(t){t.forEach(vl)}function xl(t){return typeof t=="function"}function ke(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Un;function $l(t,e){return Un||(Un=document.createElement("a")),Un.href=e,t===Un.href}function er(t){return Object.keys(t).length===0}function tr(t,...e){if(t==null)return J;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function _l(t,e,n){t.$$.on_destroy.push(tr(e,n))}function r(t,e){t.appendChild(e)}function m(t,e,n){t.insertBefore(e,n||null)}function h(t){t.parentNode.removeChild(t)}function dt(t,e){for(let n=0;nt.removeEventListener(e,n,i)}function Xn(t){return function(e){return e.preventDefault(),t.call(this,e)}}function u(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function se(t){return t===""?null:+t}function ir(t){return Array.from(t.childNodes)}function x(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function G(t,e){t.value=e==null?"":e}function zt(t,e){for(let n=0;n{Vn.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}function Kn(t){t&&t.c()}function Vt(t,e,n,i){const{fragment:o,on_mount:l,on_destroy:a,after_update:f}=t.$$;o&&o.m(e,n),i||Lt(()=>{const c=l.map(vl).filter(xl);a?a.push(...c):pe(c),t.$$.on_mount=[]}),f.forEach(Lt)}function Gt(t,e){const n=t.$$;n.fragment!==null&&(pe(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ur(t,e){t.$$.dirty[0]===-1&&(Ut.push(t),rr(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const g=y.length?y[0]:_;return p.ctx&&o(p.ctx[w],p.ctx[w]=g)&&(!p.skip_bound&&p.bound[w]&&p.bound[w](g),d&&ur(t,w)),_}):[],p.update(),d=!0,pe(p.before_update),p.fragment=i?i(p.ctx):!1,e.target){if(e.hydrate){const w=ir(e.target);p.fragment&&p.fragment.l(w),w.forEach(h)}else p.fragment&&p.fragment.c();e.intro&&Ee(t.$$.fragment),Vt(t,e.target,e.anchor,e.customElement),gl()}qt(c)}class Se{$destroy(){Gt(this,1),this.$destroy=J}$on(e,n){const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const o=i.indexOf(n);o!==-1&&i.splice(o,1)}}$set(e){this.$$set&&!er(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Ct=[];function yl(t,e=J){let n;const i=new Set;function o(f){if(ke(t,f)&&(t=f,n)){const c=!Ct.length;for(const p of i)p[1](),Ct.push(p,t);if(c){for(let p=0;p{i.delete(p),i.size===0&&(n(),n=null)}}return{set:o,update:l,subscribe:a}}var Ei=function(t,e){return Ei=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},Ei(t,e)};function ji(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Ei(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var ue=function(){return ue=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0&&o[o.length-1])||d[0]!==6&&d[0]!==2)){a=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]@tauri-apps/api package. It's used as the main validation app, serving as the test bed of our +`;function El(){return M(this,void 0,void 0,function(){return T(this,function(t){return[2,P({__tauriModule:"Os",message:{cmd:"platform"}})]})})}function mr(){return M(this,void 0,void 0,function(){return T(this,function(t){return[2,P({__tauriModule:"Os",message:{cmd:"version"}})]})})}function vr(){return M(this,void 0,void 0,function(){return T(this,function(t){return[2,P({__tauriModule:"Os",message:{cmd:"osType"}})]})})}function _r(){return M(this,void 0,void 0,function(){return T(this,function(t){return[2,P({__tauriModule:"Os",message:{cmd:"arch"}})]})})}function br(){return M(this,void 0,void 0,function(){return T(this,function(t){return[2,P({__tauriModule:"Os",message:{cmd:"tempdir"}})]})})}Object.freeze({__proto__:null,EOL:hr,platform:El,version:mr,type:vr,arch:_r,tempdir:br});function Wl(){return M(this,void 0,void 0,function(){return T(this,function(t){return[2,P({__tauriModule:"App",message:{cmd:"getAppVersion"}})]})})}function Dl(){return M(this,void 0,void 0,function(){return T(this,function(t){return[2,P({__tauriModule:"App",message:{cmd:"getAppName"}})]})})}function jl(){return M(this,void 0,void 0,function(){return T(this,function(t){return[2,P({__tauriModule:"App",message:{cmd:"getTauriVersion"}})]})})}Object.freeze({__proto__:null,getName:Dl,getVersion:Wl,getTauriVersion:jl});function Rl(t){return t===void 0&&(t=0),M(this,void 0,void 0,function(){return T(this,function(e){return[2,P({__tauriModule:"Process",message:{cmd:"exit",exitCode:t}})]})})}function Fi(){return M(this,void 0,void 0,function(){return T(this,function(t){return[2,P({__tauriModule:"Process",message:{cmd:"relaunch"}})]})})}Object.freeze({__proto__:null,exit:Rl,relaunch:Fi});function gr(t){let e,n,i,o,l,a,f,c,p,d,w,_,y,g,b,L,W,U,j,q,A,S,z,D,C,N;return{c(){e=s("p"),e.innerHTML=`This is a demo of Tauri's API capabilities using the @tauri-apps/api package. It's used as the main validation app, serving as the test bed of our development process. In the future, this app will be used on Tauri's integration - tests.`,n=v(),i=s("br"),o=v(),l=s("br"),u=v(),f=s("pre"),c=E("App name: "),p=s("code"),d=E(t[2]),k=E(` + tests.`,n=v(),i=s("br"),o=v(),l=s("br"),a=v(),f=s("pre"),c=E("App name: "),p=s("code"),d=E(t[2]),w=E(` App version: `),_=s("code"),y=E(t[0]),g=E(` Tauri version: `),b=s("code"),L=E(t[1]),W=E(` -`),U=v(),j=s("br"),q=v(),A=s("div"),S=s("button"),S.textContent="Close application",z=v(),D=s("button"),D.textContent="Relaunch application",a(S,"class","btn"),a(D,"class","btn"),a(A,"class","flex flex-wrap gap-1 shadow-")},m(B,Y){m(B,e,Y),m(B,n,Y),m(B,i,Y),m(B,o,Y),m(B,l,Y),m(B,u,Y),m(B,f,Y),r(f,c),r(f,p),r(p,d),r(f,k),r(f,_),r(_,y),r(f,g),r(f,b),r(b,L),r(f,W),m(B,U,Y),m(B,j,Y),m(B,q,Y),m(B,A,Y),r(A,S),r(A,z),r(A,D),C||(N=[O(S,"click",t[3]),O(D,"click",t[4])],C=!0)},p(B,[Y]){Y&4&&Z(d,B[2]),Y&1&&Z(y,B[0]),Y&2&&Z(L,B[1])},i:J,o:J,d(B){B&&h(e),B&&h(n),B&&h(i),B&&h(o),B&&h(l),B&&h(u),B&&h(f),B&&h(U),B&&h(j),B&&h(q),B&&h(A),C=!1,pe(N)}}}function wr(t,e,n){let i="0.0.0",o="0.0.0",l="Unknown";Dl().then(c=>{n(2,l=c)}),Wl().then(c=>{n(0,i=c)}),jl().then(c=>{n(1,o=c)});async function u(){await Rl()}async function f(){await Fi()}return[i,o,l,u,f]}class kr extends Se{constructor(e){super(),Ce(this,e,wr,yr,ke,{})}}function Hl(){return M(this,void 0,void 0,function(){return T(this,function(t){return[2,P({__tauriModule:"Cli",message:{cmd:"cliMatches"}})]})})}Object.freeze({__proto__:null,getMatches:Hl});function Mr(t){let e,n,i,o,l,u,f,c,p,d,k,_,y;return{c(){e=s("p"),e.innerHTML=`This binary can be run from the terminal and takes the following arguments: +`),U=v(),j=s("br"),q=v(),A=s("div"),S=s("button"),S.textContent="Close application",z=v(),D=s("button"),D.textContent="Relaunch application",u(S,"class","btn"),u(D,"class","btn"),u(A,"class","flex flex-wrap gap-1 shadow-")},m(B,Y){m(B,e,Y),m(B,n,Y),m(B,i,Y),m(B,o,Y),m(B,l,Y),m(B,a,Y),m(B,f,Y),r(f,c),r(f,p),r(p,d),r(f,w),r(f,_),r(_,y),r(f,g),r(f,b),r(b,L),r(f,W),m(B,U,Y),m(B,j,Y),m(B,q,Y),m(B,A,Y),r(A,S),r(A,z),r(A,D),C||(N=[O(S,"click",t[3]),O(D,"click",t[4])],C=!0)},p(B,[Y]){Y&4&&x(d,B[2]),Y&1&&x(y,B[0]),Y&2&&x(L,B[1])},i:J,o:J,d(B){B&&h(e),B&&h(n),B&&h(i),B&&h(o),B&&h(l),B&&h(a),B&&h(f),B&&h(U),B&&h(j),B&&h(q),B&&h(A),C=!1,pe(N)}}}function yr(t,e,n){let i="0.0.0",o="0.0.0",l="Unknown";Dl().then(c=>{n(2,l=c)}),Wl().then(c=>{n(0,i=c)}),jl().then(c=>{n(1,o=c)});async function a(){await Rl()}async function f(){await Fi()}return[i,o,l,a,f]}class wr extends Se{constructor(e){super(),Ce(this,e,yr,gr,ke,{})}}function Hl(){return M(this,void 0,void 0,function(){return T(this,function(t){return[2,P({__tauriModule:"Cli",message:{cmd:"cliMatches"}})]})})}Object.freeze({__proto__:null,getMatches:Hl});function kr(t){let e,n,i,o,l,a,f,c,p,d,w,_,y;return{c(){e=s("p"),e.innerHTML=`This binary can be run from the terminal and takes the following arguments:

  --config <PATH>
   --theme <light|dark|system>
   --verbose
- Additionally, it has a update --background subcommand.`,n=v(),i=s("br"),o=v(),l=s("div"),l.textContent="Note that the arguments are only parsed, not implemented.",u=v(),f=s("br"),c=v(),p=s("br"),d=v(),k=s("button"),k.textContent="Get matches",a(l,"class","note"),a(k,"class","btn"),a(k,"id","cli-matches")},m(g,b){m(g,e,b),m(g,n,b),m(g,i,b),m(g,o,b),m(g,l,b),m(g,u,b),m(g,f,b),m(g,c,b),m(g,p,b),m(g,d,b),m(g,k,b),_||(y=O(k,"click",t[0]),_=!0)},p:J,i:J,o:J,d(g){g&&h(e),g&&h(n),g&&h(i),g&&h(o),g&&h(l),g&&h(u),g&&h(f),g&&h(c),g&&h(p),g&&h(d),g&&h(k),_=!1,y()}}}function Tr(t,e,n){let{onMessage:i}=e;function o(){Hl().then(i).catch(i)}return t.$$set=l=>{"onMessage"in l&&n(1,i=l.onMessage)},[o,i]}class Cr extends Se{constructor(e){super(),Ce(this,e,Tr,Mr,ke,{onMessage:1})}}function Xt(t,e){return M(this,void 0,void 0,function(){return T(this,function(n){return[2,Hi(t,null,e)]})})}function Fl(t,e){return M(this,void 0,void 0,function(){return T(this,function(n){return[2,Sl(t,null,e)]})})}function ni(t,e){return M(this,void 0,void 0,function(){return T(this,function(n){return[2,Cl(t,void 0,e)]})})}Object.freeze({__proto__:null,listen:Xt,once:Fl,emit:ni});function Sr(t){let e,n,i,o,l,u,f,c;return{c(){e=s("div"),n=s("button"),n.textContent="Call Log API",i=v(),o=s("button"),o.textContent="Call Request (async) API",l=v(),u=s("button"),u.textContent="Send event to Rust",a(n,"class","btn"),a(n,"id","log"),a(o,"class","btn"),a(o,"id","request"),a(u,"class","btn"),a(u,"id","event")},m(p,d){m(p,e,d),r(e,n),r(e,i),r(e,o),r(e,l),r(e,u),f||(c=[O(n,"click",t[0]),O(o,"click",t[1]),O(u,"click",t[2])],f=!0)},p:J,i:J,o:J,d(p){p&&h(e),f=!1,pe(c)}}}function zr(t,e,n){let{onMessage:i}=e,o;at(async()=>{o=await Xt("rust-event",i)}),Di(()=>{o&&o()});function l(){xn("log_operation",{event:"tauri-click",payload:"this payload is optional because we used Option in Rust"})}function u(){xn("perform_request",{endpoint:"dummy endpoint arg",body:{id:5,name:"test"}}).then(i).catch(i)}function f(){ni("js-event","this is the payload string")}return t.$$set=c=>{"onMessage"in c&&n(3,i=c.onMessage)},[l,u,f,i]}class Lr extends Se{constructor(e){super(),Ce(this,e,zr,Sr,ke,{onMessage:3})}}function Ii(t){return t===void 0&&(t={}),M(this,void 0,void 0,function(){return T(this,function(e){return typeof t=="object"&&Object.freeze(t),[2,P({__tauriModule:"Dialog",message:{cmd:"openDialog",options:t}})]})})}function Il(t){return t===void 0&&(t={}),M(this,void 0,void 0,function(){return T(this,function(e){return typeof t=="object"&&Object.freeze(t),[2,P({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:t}})]})})}function Ar(t,e){var n;return M(this,void 0,void 0,function(){var i;return T(this,function(o){return i=typeof e=="string"?{title:e}:e,[2,P({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:t.toString(),title:(n=i==null?void 0:i.title)===null||n===void 0?void 0:n.toString(),type:i==null?void 0:i.type}})]})})}function Ul(t,e){var n;return M(this,void 0,void 0,function(){var i;return T(this,function(o){return i=typeof e=="string"?{title:e}:e,[2,P({__tauriModule:"Dialog",message:{cmd:"askDialog",message:t.toString(),title:(n=i==null?void 0:i.title)===null||n===void 0?void 0:n.toString(),type:i==null?void 0:i.type}})]})})}function Pr(t,e){var n;return M(this,void 0,void 0,function(){var i;return T(this,function(o){return i=typeof e=="string"?{title:e}:e,[2,P({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:t.toString(),title:(n=i==null?void 0:i.title)===null||n===void 0?void 0:n.toString(),type:i==null?void 0:i.type}})]})})}Object.freeze({__proto__:null,open:Ii,save:Il,message:Ar,ask:Ul,confirm:Pr});var Pt;function Or(t,e){return e===void 0&&(e={}),M(this,void 0,void 0,function(){return T(this,function(n){return[2,P({__tauriModule:"Fs",message:{cmd:"readTextFile",path:t,options:e}})]})})}function Ui(t,e){return e===void 0&&(e={}),M(this,void 0,void 0,function(){var n;return T(this,function(i){switch(i.label){case 0:return[4,P({__tauriModule:"Fs",message:{cmd:"readFile",path:t,options:e}})];case 1:return n=i.sent(),[2,Uint8Array.from(n)]}})})}function Wi(t,e,n){return M(this,void 0,void 0,function(){var i,o;return T(this,function(l){return typeof n=="object"&&Object.freeze(n),typeof t=="object"&&Object.freeze(t),i={path:"",contents:""},o=n,typeof t=="string"?i.path=t:(i.path=t.path,i.contents=t.contents),typeof e=="string"?i.contents=e!=null?e:"":o=e,[2,P({__tauriModule:"Fs",message:{cmd:"writeFile",path:i.path,contents:Array.from(new TextEncoder().encode(i.contents)),options:o}})]})})}function Er(t,e,n){return M(this,void 0,void 0,function(){var i,o;return T(this,function(l){return typeof n=="object"&&Object.freeze(n),typeof t=="object"&&Object.freeze(t),i={path:"",contents:[]},o=n,typeof t=="string"?i.path=t:(i.path=t.path,i.contents=t.contents),e&&"dir"in e?o=e:typeof t=="string"&&(i.contents=e!=null?e:[]),[2,P({__tauriModule:"Fs",message:{cmd:"writeFile",path:i.path,contents:Array.from(i.contents instanceof ArrayBuffer?new Uint8Array(i.contents):i.contents),options:o}})]})})}function Nl(t,e){return e===void 0&&(e={}),M(this,void 0,void 0,function(){return T(this,function(n){return[2,P({__tauriModule:"Fs",message:{cmd:"readDir",path:t,options:e}})]})})}function Wr(t,e){return e===void 0&&(e={}),M(this,void 0,void 0,function(){return T(this,function(n){return[2,P({__tauriModule:"Fs",message:{cmd:"createDir",path:t,options:e}})]})})}function Dr(t,e){return e===void 0&&(e={}),M(this,void 0,void 0,function(){return T(this,function(n){return[2,P({__tauriModule:"Fs",message:{cmd:"removeDir",path:t,options:e}})]})})}function jr(t,e,n){return n===void 0&&(n={}),M(this,void 0,void 0,function(){return T(this,function(i){return[2,P({__tauriModule:"Fs",message:{cmd:"copyFile",source:t,destination:e,options:n}})]})})}function Rr(t,e){return e===void 0&&(e={}),M(this,void 0,void 0,function(){return T(this,function(n){return[2,P({__tauriModule:"Fs",message:{cmd:"removeFile",path:t,options:e}})]})})}function Hr(t,e,n){return n===void 0&&(n={}),M(this,void 0,void 0,function(){return T(this,function(i){return[2,P({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:t,newPath:e,options:n}})]})})}(function(t){t[t.Audio=1]="Audio",t[t.Cache=2]="Cache",t[t.Config=3]="Config",t[t.Data=4]="Data",t[t.LocalData=5]="LocalData",t[t.Desktop=6]="Desktop",t[t.Document=7]="Document",t[t.Download=8]="Download",t[t.Executable=9]="Executable",t[t.Font=10]="Font",t[t.Home=11]="Home",t[t.Picture=12]="Picture",t[t.Public=13]="Public",t[t.Runtime=14]="Runtime",t[t.Template=15]="Template",t[t.Video=16]="Video",t[t.Resource=17]="Resource",t[t.App=18]="App",t[t.Log=19]="Log",t[t.Temp=20]="Temp"})(Pt||(Pt={}));Object.freeze({__proto__:null,get BaseDirectory(){return Pt},get Dir(){return Pt},readTextFile:Or,readBinaryFile:Ui,writeTextFile:Wi,writeFile:Wi,writeBinaryFile:Er,readDir:Nl,createDir:Wr,removeDir:Dr,copyFile:jr,removeFile:Rr,renameFile:Hr});function Fr(t){let e,n,i,o,l,u,f,c,p,d,k,_,y,g,b,L,W,U,j,q,A,S,z,D;return{c(){e=s("div"),n=s("input"),i=v(),o=s("input"),l=v(),u=s("br"),f=v(),c=s("div"),p=s("input"),d=v(),k=s("label"),k.textContent="Multiple",_=v(),y=s("div"),g=s("input"),b=v(),L=s("label"),L.textContent="Directory",W=v(),U=s("br"),j=v(),q=s("button"),q.textContent="Open dialog",A=v(),S=s("button"),S.textContent="Open save dialog",a(n,"class","input"),a(n,"id","dialog-default-path"),a(n,"placeholder","Default path"),a(o,"class","input"),a(o,"id","dialog-filter"),a(o,"placeholder","Extensions filter, comma-separated"),a(e,"class","flex gap-2 children:grow"),a(p,"type","checkbox"),a(p,"id","dialog-multiple"),a(k,"for","dialog-multiple"),a(g,"type","checkbox"),a(g,"id","dialog-directory"),a(L,"for","dialog-directory"),a(q,"class","btn"),a(q,"id","open-dialog"),a(S,"class","btn"),a(S,"id","save-dialog")},m(C,N){m(C,e,N),r(e,n),G(n,t[0]),r(e,i),r(e,o),G(o,t[1]),m(C,l,N),m(C,u,N),m(C,f,N),m(C,c,N),r(c,p),p.checked=t[2],r(c,d),r(c,k),m(C,_,N),m(C,y,N),r(y,g),g.checked=t[3],r(y,b),r(y,L),m(C,W,N),m(C,U,N),m(C,j,N),m(C,q,N),m(C,A,N),m(C,S,N),z||(D=[O(n,"input",t[8]),O(o,"input",t[9]),O(p,"change",t[10]),O(g,"change",t[11]),O(q,"click",t[4]),O(S,"click",t[5])],z=!0)},p(C,[N]){N&1&&n.value!==C[0]&&G(n,C[0]),N&2&&o.value!==C[1]&&G(o,C[1]),N&4&&(p.checked=C[2]),N&8&&(g.checked=C[3])},i:J,o:J,d(C){C&&h(e),C&&h(l),C&&h(u),C&&h(f),C&&h(c),C&&h(_),C&&h(y),C&&h(W),C&&h(U),C&&h(j),C&&h(q),C&&h(A),C&&h(S),z=!1,pe(D)}}}function Ir(t,e){var n=new Blob([t],{type:"application/octet-binary"}),i=new FileReader;i.onload=function(o){var l=o.target.result;e(l.substr(l.indexOf(",")+1))},i.readAsDataURL(n)}function Ur(t,e,n){let{onMessage:i}=e,{insecureRenderHtml:o}=e,l=null,u=null,f=!1,c=!1;function p(){Ii({title:"My wonderful open dialog",defaultPath:l,filters:u?[{name:"Tauri Example",extensions:u.split(",").map(b=>b.trim())}]:[],multiple:f,directory:c}).then(function(b){if(Array.isArray(b))i(b);else{var L=b,W=L.match(/\S+\.\S+$/g);Ui(L).then(function(U){W&&(L.includes(".png")||L.includes(".jpg"))?Ir(new Uint8Array(U),function(j){var q="data:image/png;base64,"+j;o('')}):i(b)}).catch(i(b))}}).catch(i)}function d(){Il({title:"My wonderful save dialog",defaultPath:l,filters:u?[{name:"Tauri Example",extensions:u.split(",").map(b=>b.trim())}]:[]}).then(i).catch(i)}function k(){l=this.value,n(0,l)}function _(){u=this.value,n(1,u)}function y(){f=this.checked,n(2,f)}function g(){c=this.checked,n(3,c)}return t.$$set=b=>{"onMessage"in b&&n(6,i=b.onMessage),"insecureRenderHtml"in b&&n(7,o=b.insecureRenderHtml)},[l,u,f,c,p,d,i,o,k,_,y,g]}class Nr extends Se{constructor(e){super(),Ce(this,e,Ur,Fr,ke,{onMessage:6,insecureRenderHtml:7})}}function qo(t,e,n){const i=t.slice();return i[9]=e[n],i}function Bo(t){let e,n=t[9][0]+"",i,o;return{c(){e=s("option"),i=E(n),e.__value=o=t[9][1],e.value=e.__value},m(l,u){m(l,e,u),r(e,i)},p:J,d(l){l&&h(e)}}}function qr(t){let e,n,i,o,l,u,f,c,p,d,k,_,y,g,b,L,W,U,j,q=t[2],A=[];for(let S=0;SisNaN(parseInt(_))).map(_=>[_,Pt[_]]);function c(){const _=l.match(/\S+\.\S+$/g),y={dir:Vo()};(_?Ui(l,y):Nl(l,y)).then(function(b){if(_)if(l.includes(".png")||l.includes(".jpg"))Br(new Uint8Array(b),function(L){const W="data:image/png;base64,"+L;o('')});else{const L=String.fromCharCode.apply(null,b);o(''),setTimeout(()=>{const W=document.getElementById("file-response");W.value=L,document.getElementById("file-save").addEventListener("click",function(){Wi(l,W.value,{dir:Vo()}).catch(i)})})}else i(b)}).catch(i)}function p(){n(1,u.src=wl(l),u)}function d(){l=this.value,n(0,l)}function k(_){Yn[_?"unshift":"push"](()=>{u=_,n(1,u)})}return t.$$set=_=>{"onMessage"in _&&n(5,i=_.onMessage),"insecureRenderHtml"in _&&n(6,o=_.insecureRenderHtml)},[l,u,f,c,p,i,o,d,k]}class Gr extends Se{constructor(e){super(),Ce(this,e,Vr,qr,ke,{onMessage:5,insecureRenderHtml:6})}}var Ot;(function(t){t[t.JSON=1]="JSON",t[t.Text=2]="Text",t[t.Binary=3]="Binary"})(Ot||(Ot={}));var Jn=function(){function t(e,n){this.type=e,this.payload=n}return t.form=function(e){var n={};for(var i in e){var o=e[i],l=void 0;l=typeof o=="string"?o:o instanceof Uint8Array||Array.isArray(o)?Array.from(o):typeof o.file=="string"?{file:o.file,mime:o.mime,fileName:o.fileName}:{file:Array.from(o.file),mime:o.mime,fileName:o.fileName},n[i]=l}return new t("Form",n)},t.json=function(e){return new t("Json",e)},t.text=function(e){return new t("Text",e)},t.bytes=function(e){return new t("Bytes",Array.from(e instanceof ArrayBuffer?new Uint8Array(e):e))},t}(),ql=function(t){this.url=t.url,this.status=t.status,this.ok=this.status>=200&&this.status<300,this.headers=t.headers,this.rawHeaders=t.rawHeaders,this.data=t.data},Bl=function(){function t(e){this.id=e}return t.prototype.drop=function(){return M(this,void 0,void 0,function(){return T(this,function(e){return[2,P({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})]})})},t.prototype.request=function(e){return M(this,void 0,void 0,function(){var n;return T(this,function(i){return(n=!e.responseType||e.responseType===Ot.JSON)&&(e.responseType=Ot.Text),[2,P({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:e}}).then(function(o){var l=new ql(o);if(n){try{l.data=JSON.parse(l.data)}catch(u){if(l.ok&&l.data==="")l.data={};else if(l.ok)throw Error("Failed to parse response `".concat(l.data,"` as JSON: ").concat(u,";\n try setting the `responseType` option to `ResponseType.Text` or `ResponseType.Binary` if the API does not return a JSON response."))}return l}return l})]})})},t.prototype.get=function(e,n){return M(this,void 0,void 0,function(){return T(this,function(i){return[2,this.request(ue({method:"GET",url:e},n))]})})},t.prototype.post=function(e,n,i){return M(this,void 0,void 0,function(){return T(this,function(o){return[2,this.request(ue({method:"POST",url:e,body:n},i))]})})},t.prototype.put=function(e,n,i){return M(this,void 0,void 0,function(){return T(this,function(o){return[2,this.request(ue({method:"PUT",url:e,body:n},i))]})})},t.prototype.patch=function(e,n){return M(this,void 0,void 0,function(){return T(this,function(i){return[2,this.request(ue({method:"PATCH",url:e},n))]})})},t.prototype.delete=function(e,n){return M(this,void 0,void 0,function(){return T(this,function(i){return[2,this.request(ue({method:"DELETE",url:e},n))]})})},t}();function Zn(t){return M(this,void 0,void 0,function(){return T(this,function(e){return[2,P({__tauriModule:"Http",message:{cmd:"createClient",options:t}}).then(function(n){return new Bl(n)})]})})}var Ai=null;function Jr(t,e){var n;return M(this,void 0,void 0,function(){return T(this,function(i){switch(i.label){case 0:return Ai!==null?[3,2]:[4,Zn()];case 1:Ai=i.sent(),i.label=2;case 2:return[2,Ai.request(ue({url:t,method:(n=e==null?void 0:e.method)!==null&&n!==void 0?n:"GET"},e))]}})})}Object.freeze({__proto__:null,getClient:Zn,fetch:Jr,Body:Jn,Client:Bl,Response:ql,get ResponseType(){return Ot}});function Go(t,e,n){const i=t.slice();return i[12]=e[n],i[14]=n,i}function Jo(t){let e,n,i,o,l,u,f,c,p,d,k,_,y,g,b,L,W,U=t[5],j=[];for(let z=0;zFe(j[z],1,1,()=>{j[z]=null});let A=!t[3]&&xo(),S=!t[3]&&t[8]&&Qo();return{c(){e=s("span"),n=s("span"),i=E(t[6]),o=v(),l=s("ul");for(let z=0;z{d[g]=null}),ti(),l=d[o],l?l.p(_,y):(l=d[o]=p[o](_),l.c()),Ee(l,1),l.m(e,u))},i(_){f||(Ee(l),f=!0)},o(_){Fe(l),f=!1},d(_){_&&h(e),c&&c.d(),d[o].d()}}}function xo(t){let e;return{c(){e=s("span"),e.textContent=",",a(e,"class","comma svelte-gbh3pt")},m(n,i){m(n,e,i)},d(n){n&&h(e)}}}function Qo(t){let e;return{c(){e=s("span"),e.textContent=",",a(e,"class","comma svelte-gbh3pt")},m(n,i){m(n,e,i)},d(n){n&&h(e)}}}function Kr(t){let e,n,i=t[5].length&&Jo(t);return{c(){i&&i.c(),e=$n()},m(o,l){i&&i.m(o,l),m(o,e,l),n=!0},p(o,[l]){o[5].length?i?(i.p(o,l),l&32&&Ee(i,1)):(i=Jo(o),i.c(),Ee(i,1),i.m(e.parentNode,e)):i&&(ei(),Fe(i,1,1,()=>{i=null}),ti())},i(o){n||(Ee(i),n=!0)},o(o){Fe(i),n=!1},d(o){i&&i.d(o),o&&h(e)}}}const xr="...";function Qr(t,e,n){let{json:i}=e,{depth:o=1/0}=e,{_lvl:l=0}=e,{_last:u=!0}=e;const f=b=>b===null?"null":typeof b;let c,p,d,k,_;const y=b=>{switch(f(b)){case"string":return`"${b}"`;case"function":return"f () {...}";case"symbol":return b.toString();default:return b}},g=()=>{n(8,_=!_)};return t.$$set=b=>{"json"in b&&n(0,i=b.json),"depth"in b&&n(1,o=b.depth),"_lvl"in b&&n(2,l=b._lvl),"_last"in b&&n(3,u=b._last)},t.$$.update=()=>{t.$$.dirty&17&&(n(5,c=f(i)==="object"?Object.keys(i):[]),n(4,p=Array.isArray(i)),n(6,d=p?"[":"{"),n(7,k=p?"]":"}")),t.$$.dirty&6&&n(8,_=ot[9].call(n)),a(k,"class","input h-auto w-100%"),a(k,"id","request-body"),a(k,"placeholder","Request body"),a(k,"rows","5"),a(b,"class","btn"),a(b,"id","make-request"),a(S,"class","input"),a(D,"class","input"),a(A,"class","flex gap-2 children:grow"),a($,"type","checkbox"),a(x,"class","btn"),a(x,"type","button")},m(R,V){m(R,e,V),r(e,n),r(n,i),r(n,o),r(n,l),r(n,u),r(n,f),zt(n,t[0]),r(e,c),r(e,p),r(e,d),r(e,k),G(k,t[1]),r(e,_),r(e,y),r(e,g),r(e,b),m(R,L,V),m(R,W,V),m(R,U,V),m(R,j,V),m(R,q,V),m(R,A,V),r(A,S),G(S,t[2]),r(A,z),r(A,D),G(D,t[3]),m(R,C,V),m(R,N,V),m(R,B,V),m(R,Y,V),r(Y,$),$.checked=t[5],r(Y,_e),m(R,te,V),m(R,oe,V),m(R,K,V),m(R,be,V),m(R,H,V),m(R,x,V),m(R,le,V),m(R,ae,V),m(R,ee,V),m(R,ve,V),m(R,re,V),Vt(ge,R,V),ne=!0,Me||(Le=[O(n,"change",t[9]),O(k,"input",t[10]),O(e,"submit",Xn(t[6])),O(S,"input",t[11]),O(D,"input",t[12]),O($,"change",t[13]),O(x,"click",t[7])],Me=!0)},p(R,[V]){V&1&&zt(n,R[0]),V&2&&G(k,R[1]),V&4&&S.value!==R[2]&&G(S,R[2]),V&8&&D.value!==R[3]&&G(D,R[3]),V&32&&($.checked=R[5]);const Re={};V&16&&(Re.json=R[4]),ge.$set(Re)},i(R){ne||(Ee(ge.$$.fragment,R),ne=!0)},o(R){Fe(ge.$$.fragment,R),ne=!1},d(R){R&&h(e),R&&h(L),R&&h(W),R&&h(U),R&&h(j),R&&h(q),R&&h(A),R&&h(C),R&&h(N),R&&h(B),R&&h(Y),R&&h(te),R&&h(oe),R&&h(K),R&&h(be),R&&h(H),R&&h(x),R&&h(le),R&&h(ae),R&&h(ee),R&&h(ve),R&&h(re),Gt(ge,R),Me=!1,pe(Le)}}}function $r(t,e,n){let i="GET",o="",{onMessage:l}=e;async function u(){const W=await Zn().catch(q=>{throw l(q),q}),j={url:"http://localhost:3003",method:i||"GET"||"GET"};o.startsWith("{")&&o.endsWith("}")||o.startsWith("[")&&o.endsWith("]")?j.body=Jn.json(JSON.parse(o)):o!==""&&(j.body=Jn.text(o)),W.request(j).then(l).catch(l)}let f="baz",c="qux",p=null,d=!0;async function k(){const W=await Zn().catch(U=>{throw l(U),U});n(4,p=await W.request({url:"http://localhost:3003",method:"POST",body:Jn.form({foo:f,bar:c}),headers:d?{"Content-Type":"multipart/form-data"}:void 0,responseType:Ot.Text}))}function _(){i=Pi(this),n(0,i)}function y(){o=this.value,n(1,o)}function g(){f=this.value,n(2,f)}function b(){c=this.value,n(3,c)}function L(){d=this.checked,n(5,d)}return t.$$set=W=>{"onMessage"in W&&n(8,l=W.onMessage)},[i,o,f,c,p,d,u,k,l,_,y,g,b,L]}class es extends Se{constructor(e){super(),Ce(this,e,$r,Zr,ke,{onMessage:8})}}function ts(t){let e,n,i;return{c(){e=s("button"),e.textContent="Send test notification",a(e,"class","btn"),a(e,"id","notification")},m(o,l){m(o,e,l),n||(i=O(e,"click",ns),n=!0)},p:J,i:J,o:J,d(o){o&&h(e),n=!1,i()}}}function ns(){new Notification("Notification title",{body:"This is the notification body"})}function is(t,e,n){let{onMessage:i}=e;return t.$$set=o=>{"onMessage"in o&&n(0,i=o.onMessage)},[i]}class os extends Se{constructor(e){super(),Ce(this,e,is,ts,ke,{onMessage:0})}}function Zo(t,e,n){const i=t.slice();return i[65]=e[n],i}function $o(t,e,n){const i=t.slice();return i[68]=e[n],i}function el(t){let e,n,i,o,l,u,f=Object.keys(t[1]),c=[];for(let p=0;pt[38].call(i))},m(p,d){m(p,e,d),m(p,n,d),m(p,i,d),r(i,o);for(let k=0;kupdate --background subcommand.`,n=v(),i=s("br"),o=v(),l=s("div"),l.textContent="Note that the arguments are only parsed, not implemented.",a=v(),f=s("br"),c=v(),p=s("br"),d=v(),w=s("button"),w.textContent="Get matches",u(l,"class","note"),u(w,"class","btn"),u(w,"id","cli-matches")},m(g,b){m(g,e,b),m(g,n,b),m(g,i,b),m(g,o,b),m(g,l,b),m(g,a,b),m(g,f,b),m(g,c,b),m(g,p,b),m(g,d,b),m(g,w,b),_||(y=O(w,"click",t[0]),_=!0)},p:J,i:J,o:J,d(g){g&&h(e),g&&h(n),g&&h(i),g&&h(o),g&&h(l),g&&h(a),g&&h(f),g&&h(c),g&&h(p),g&&h(d),g&&h(w),_=!1,y()}}}function Mr(t,e,n){let{onMessage:i}=e;function o(){Hl().then(i).catch(i)}return t.$$set=l=>{"onMessage"in l&&n(1,i=l.onMessage)},[o,i]}class Tr extends Se{constructor(e){super(),Ce(this,e,Mr,kr,ke,{onMessage:1})}}function Xt(t,e){return M(this,void 0,void 0,function(){return T(this,function(n){return[2,Hi(t,null,e)]})})}function Fl(t,e){return M(this,void 0,void 0,function(){return T(this,function(n){return[2,Sl(t,null,e)]})})}function ni(t,e){return M(this,void 0,void 0,function(){return T(this,function(n){return[2,Cl(t,void 0,e)]})})}Object.freeze({__proto__:null,listen:Xt,once:Fl,emit:ni});function Cr(t){let e,n,i,o,l,a,f,c;return{c(){e=s("div"),n=s("button"),n.textContent="Call Log API",i=v(),o=s("button"),o.textContent="Call Request (async) API",l=v(),a=s("button"),a.textContent="Send event to Rust",u(n,"class","btn"),u(n,"id","log"),u(o,"class","btn"),u(o,"id","request"),u(a,"class","btn"),u(a,"id","event")},m(p,d){m(p,e,d),r(e,n),r(e,i),r(e,o),r(e,l),r(e,a),f||(c=[O(n,"click",t[0]),O(o,"click",t[1]),O(a,"click",t[2])],f=!0)},p:J,i:J,o:J,d(p){p&&h(e),f=!1,pe(c)}}}function Sr(t,e,n){let{onMessage:i}=e,o;at(async()=>{o=await Xt("rust-event",i)}),Di(()=>{o&&o()});function l(){Qn("log_operation",{event:"tauri-click",payload:"this payload is optional because we used Option in Rust"})}function a(){Qn("perform_request",{endpoint:"dummy endpoint arg",body:{id:5,name:"test"}}).then(i).catch(i)}function f(){ni("js-event","this is the payload string")}return t.$$set=c=>{"onMessage"in c&&n(3,i=c.onMessage)},[l,a,f,i]}class zr extends Se{constructor(e){super(),Ce(this,e,Sr,Cr,ke,{onMessage:3})}}function Ii(t){return t===void 0&&(t={}),M(this,void 0,void 0,function(){return T(this,function(e){return typeof t=="object"&&Object.freeze(t),[2,P({__tauriModule:"Dialog",message:{cmd:"openDialog",options:t}})]})})}function Il(t){return t===void 0&&(t={}),M(this,void 0,void 0,function(){return T(this,function(e){return typeof t=="object"&&Object.freeze(t),[2,P({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:t}})]})})}function Lr(t,e){var n;return M(this,void 0,void 0,function(){var i;return T(this,function(o){return i=typeof e=="string"?{title:e}:e,[2,P({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:t.toString(),title:(n=i==null?void 0:i.title)===null||n===void 0?void 0:n.toString(),type:i==null?void 0:i.type}})]})})}function Ul(t,e){var n;return M(this,void 0,void 0,function(){var i;return T(this,function(o){return i=typeof e=="string"?{title:e}:e,[2,P({__tauriModule:"Dialog",message:{cmd:"askDialog",message:t.toString(),title:(n=i==null?void 0:i.title)===null||n===void 0?void 0:n.toString(),type:i==null?void 0:i.type}})]})})}function Ar(t,e){var n;return M(this,void 0,void 0,function(){var i;return T(this,function(o){return i=typeof e=="string"?{title:e}:e,[2,P({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:t.toString(),title:(n=i==null?void 0:i.title)===null||n===void 0?void 0:n.toString(),type:i==null?void 0:i.type}})]})})}Object.freeze({__proto__:null,open:Ii,save:Il,message:Lr,ask:Ul,confirm:Ar});var Pt;function Pr(t,e){return e===void 0&&(e={}),M(this,void 0,void 0,function(){return T(this,function(n){return[2,P({__tauriModule:"Fs",message:{cmd:"readTextFile",path:t,options:e}})]})})}function Ui(t,e){return e===void 0&&(e={}),M(this,void 0,void 0,function(){var n;return T(this,function(i){switch(i.label){case 0:return[4,P({__tauriModule:"Fs",message:{cmd:"readFile",path:t,options:e}})];case 1:return n=i.sent(),[2,Uint8Array.from(n)]}})})}function Wi(t,e,n){return M(this,void 0,void 0,function(){var i,o;return T(this,function(l){return typeof n=="object"&&Object.freeze(n),typeof t=="object"&&Object.freeze(t),i={path:"",contents:""},o=n,typeof t=="string"?i.path=t:(i.path=t.path,i.contents=t.contents),typeof e=="string"?i.contents=e!=null?e:"":o=e,[2,P({__tauriModule:"Fs",message:{cmd:"writeFile",path:i.path,contents:Array.from(new TextEncoder().encode(i.contents)),options:o}})]})})}function Or(t,e,n){return M(this,void 0,void 0,function(){var i,o;return T(this,function(l){return typeof n=="object"&&Object.freeze(n),typeof t=="object"&&Object.freeze(t),i={path:"",contents:[]},o=n,typeof t=="string"?i.path=t:(i.path=t.path,i.contents=t.contents),e&&"dir"in e?o=e:typeof t=="string"&&(i.contents=e!=null?e:[]),[2,P({__tauriModule:"Fs",message:{cmd:"writeFile",path:i.path,contents:Array.from(i.contents instanceof ArrayBuffer?new Uint8Array(i.contents):i.contents),options:o}})]})})}function Nl(t,e){return e===void 0&&(e={}),M(this,void 0,void 0,function(){return T(this,function(n){return[2,P({__tauriModule:"Fs",message:{cmd:"readDir",path:t,options:e}})]})})}function Er(t,e){return e===void 0&&(e={}),M(this,void 0,void 0,function(){return T(this,function(n){return[2,P({__tauriModule:"Fs",message:{cmd:"createDir",path:t,options:e}})]})})}function Wr(t,e){return e===void 0&&(e={}),M(this,void 0,void 0,function(){return T(this,function(n){return[2,P({__tauriModule:"Fs",message:{cmd:"removeDir",path:t,options:e}})]})})}function Dr(t,e,n){return n===void 0&&(n={}),M(this,void 0,void 0,function(){return T(this,function(i){return[2,P({__tauriModule:"Fs",message:{cmd:"copyFile",source:t,destination:e,options:n}})]})})}function jr(t,e){return e===void 0&&(e={}),M(this,void 0,void 0,function(){return T(this,function(n){return[2,P({__tauriModule:"Fs",message:{cmd:"removeFile",path:t,options:e}})]})})}function Rr(t,e,n){return n===void 0&&(n={}),M(this,void 0,void 0,function(){return T(this,function(i){return[2,P({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:t,newPath:e,options:n}})]})})}(function(t){t[t.Audio=1]="Audio",t[t.Cache=2]="Cache",t[t.Config=3]="Config",t[t.Data=4]="Data",t[t.LocalData=5]="LocalData",t[t.Desktop=6]="Desktop",t[t.Document=7]="Document",t[t.Download=8]="Download",t[t.Executable=9]="Executable",t[t.Font=10]="Font",t[t.Home=11]="Home",t[t.Picture=12]="Picture",t[t.Public=13]="Public",t[t.Runtime=14]="Runtime",t[t.Template=15]="Template",t[t.Video=16]="Video",t[t.Resource=17]="Resource",t[t.App=18]="App",t[t.Log=19]="Log",t[t.Temp=20]="Temp"})(Pt||(Pt={}));Object.freeze({__proto__:null,get BaseDirectory(){return Pt},get Dir(){return Pt},readTextFile:Pr,readBinaryFile:Ui,writeTextFile:Wi,writeFile:Wi,writeBinaryFile:Or,readDir:Nl,createDir:Er,removeDir:Wr,copyFile:Dr,removeFile:jr,renameFile:Rr});function Hr(t){let e,n,i,o,l,a,f,c,p,d,w,_,y,g,b,L,W,U,j,q,A,S,z,D;return{c(){e=s("div"),n=s("input"),i=v(),o=s("input"),l=v(),a=s("br"),f=v(),c=s("div"),p=s("input"),d=v(),w=s("label"),w.textContent="Multiple",_=v(),y=s("div"),g=s("input"),b=v(),L=s("label"),L.textContent="Directory",W=v(),U=s("br"),j=v(),q=s("button"),q.textContent="Open dialog",A=v(),S=s("button"),S.textContent="Open save dialog",u(n,"class","input"),u(n,"id","dialog-default-path"),u(n,"placeholder","Default path"),u(o,"class","input"),u(o,"id","dialog-filter"),u(o,"placeholder","Extensions filter, comma-separated"),u(e,"class","flex gap-2 children:grow"),u(p,"type","checkbox"),u(p,"id","dialog-multiple"),u(w,"for","dialog-multiple"),u(g,"type","checkbox"),u(g,"id","dialog-directory"),u(L,"for","dialog-directory"),u(q,"class","btn"),u(q,"id","open-dialog"),u(S,"class","btn"),u(S,"id","save-dialog")},m(C,N){m(C,e,N),r(e,n),G(n,t[0]),r(e,i),r(e,o),G(o,t[1]),m(C,l,N),m(C,a,N),m(C,f,N),m(C,c,N),r(c,p),p.checked=t[2],r(c,d),r(c,w),m(C,_,N),m(C,y,N),r(y,g),g.checked=t[3],r(y,b),r(y,L),m(C,W,N),m(C,U,N),m(C,j,N),m(C,q,N),m(C,A,N),m(C,S,N),z||(D=[O(n,"input",t[8]),O(o,"input",t[9]),O(p,"change",t[10]),O(g,"change",t[11]),O(q,"click",t[4]),O(S,"click",t[5])],z=!0)},p(C,[N]){N&1&&n.value!==C[0]&&G(n,C[0]),N&2&&o.value!==C[1]&&G(o,C[1]),N&4&&(p.checked=C[2]),N&8&&(g.checked=C[3])},i:J,o:J,d(C){C&&h(e),C&&h(l),C&&h(a),C&&h(f),C&&h(c),C&&h(_),C&&h(y),C&&h(W),C&&h(U),C&&h(j),C&&h(q),C&&h(A),C&&h(S),z=!1,pe(D)}}}function Fr(t,e){var n=new Blob([t],{type:"application/octet-binary"}),i=new FileReader;i.onload=function(o){var l=o.target.result;e(l.substr(l.indexOf(",")+1))},i.readAsDataURL(n)}function Ir(t,e,n){let{onMessage:i}=e,{insecureRenderHtml:o}=e,l=null,a=null,f=!1,c=!1;function p(){Ii({title:"My wonderful open dialog",defaultPath:l,filters:a?[{name:"Tauri Example",extensions:a.split(",").map(b=>b.trim())}]:[],multiple:f,directory:c}).then(function(b){if(Array.isArray(b))i(b);else{var L=b,W=L.match(/\S+\.\S+$/g);Ui(L).then(function(U){W&&(L.includes(".png")||L.includes(".jpg"))?Fr(new Uint8Array(U),function(j){var q="data:image/png;base64,"+j;o('')}):i(b)}).catch(i(b))}}).catch(i)}function d(){Il({title:"My wonderful save dialog",defaultPath:l,filters:a?[{name:"Tauri Example",extensions:a.split(",").map(b=>b.trim())}]:[]}).then(i).catch(i)}function w(){l=this.value,n(0,l)}function _(){a=this.value,n(1,a)}function y(){f=this.checked,n(2,f)}function g(){c=this.checked,n(3,c)}return t.$$set=b=>{"onMessage"in b&&n(6,i=b.onMessage),"insecureRenderHtml"in b&&n(7,o=b.insecureRenderHtml)},[l,a,f,c,p,d,i,o,w,_,y,g]}class Ur extends Se{constructor(e){super(),Ce(this,e,Ir,Hr,ke,{onMessage:6,insecureRenderHtml:7})}}function qo(t,e,n){const i=t.slice();return i[9]=e[n],i}function Bo(t){let e,n=t[9][0]+"",i;return{c(){e=s("option"),i=E(n),e.__value=t[9][1],e.value=e.__value},m(o,l){m(o,e,l),r(e,i)},p:J,d(o){o&&h(e)}}}function Nr(t){let e,n,i,o,l,a,f,c,p,d,w,_,y,g,b,L,W,U,j,q=t[2],A=[];for(let S=0;SisNaN(parseInt(_))).map(_=>[_,Pt[_]]);function c(){const _=l.match(/\S+\.\S+$/g),y={dir:Vo()};(_?Ui(l,y):Nl(l,y)).then(function(b){if(_)if(l.includes(".png")||l.includes(".jpg"))qr(new Uint8Array(b),function(L){const W="data:image/png;base64,"+L;o('')});else{const L=String.fromCharCode.apply(null,b);o(''),setTimeout(()=>{const W=document.getElementById("file-response");W.value=L,document.getElementById("file-save").addEventListener("click",function(){Wi(l,W.value,{dir:Vo()}).catch(i)})})}else i(b)}).catch(i)}function p(){n(1,a.src=wl(l),a)}function d(){l=this.value,n(0,l)}function w(_){Yn[_?"unshift":"push"](()=>{a=_,n(1,a)})}return t.$$set=_=>{"onMessage"in _&&n(5,i=_.onMessage),"insecureRenderHtml"in _&&n(6,o=_.insecureRenderHtml)},[l,a,f,c,p,i,o,d,w]}class Vr extends Se{constructor(e){super(),Ce(this,e,Br,Nr,ke,{onMessage:5,insecureRenderHtml:6})}}var Ot;(function(t){t[t.JSON=1]="JSON",t[t.Text=2]="Text",t[t.Binary=3]="Binary"})(Ot||(Ot={}));var Jn=function(){function t(e,n){this.type=e,this.payload=n}return t.form=function(e){var n={};for(var i in e){var o=e[i],l=void 0;l=typeof o=="string"?o:o instanceof Uint8Array||Array.isArray(o)?Array.from(o):typeof o.file=="string"?{file:o.file,mime:o.mime,fileName:o.fileName}:{file:Array.from(o.file),mime:o.mime,fileName:o.fileName},n[i]=l}return new t("Form",n)},t.json=function(e){return new t("Json",e)},t.text=function(e){return new t("Text",e)},t.bytes=function(e){return new t("Bytes",Array.from(e instanceof ArrayBuffer?new Uint8Array(e):e))},t}(),ql=function(t){this.url=t.url,this.status=t.status,this.ok=this.status>=200&&this.status<300,this.headers=t.headers,this.rawHeaders=t.rawHeaders,this.data=t.data},Bl=function(){function t(e){this.id=e}return t.prototype.drop=function(){return M(this,void 0,void 0,function(){return T(this,function(e){return[2,P({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})]})})},t.prototype.request=function(e){return M(this,void 0,void 0,function(){var n;return T(this,function(i){return(n=!e.responseType||e.responseType===Ot.JSON)&&(e.responseType=Ot.Text),[2,P({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:e}}).then(function(o){var l=new ql(o);if(n){try{l.data=JSON.parse(l.data)}catch(a){if(l.ok&&l.data==="")l.data={};else if(l.ok)throw Error("Failed to parse response `".concat(l.data,"` as JSON: ").concat(a,";\n try setting the `responseType` option to `ResponseType.Text` or `ResponseType.Binary` if the API does not return a JSON response."))}return l}return l})]})})},t.prototype.get=function(e,n){return M(this,void 0,void 0,function(){return T(this,function(i){return[2,this.request(ue({method:"GET",url:e},n))]})})},t.prototype.post=function(e,n,i){return M(this,void 0,void 0,function(){return T(this,function(o){return[2,this.request(ue({method:"POST",url:e,body:n},i))]})})},t.prototype.put=function(e,n,i){return M(this,void 0,void 0,function(){return T(this,function(o){return[2,this.request(ue({method:"PUT",url:e,body:n},i))]})})},t.prototype.patch=function(e,n){return M(this,void 0,void 0,function(){return T(this,function(i){return[2,this.request(ue({method:"PATCH",url:e},n))]})})},t.prototype.delete=function(e,n){return M(this,void 0,void 0,function(){return T(this,function(i){return[2,this.request(ue({method:"DELETE",url:e},n))]})})},t}();function xn(t){return M(this,void 0,void 0,function(){return T(this,function(e){return[2,P({__tauriModule:"Http",message:{cmd:"createClient",options:t}}).then(function(n){return new Bl(n)})]})})}var Ai=null;function Gr(t,e){var n;return M(this,void 0,void 0,function(){return T(this,function(i){switch(i.label){case 0:return Ai!==null?[3,2]:[4,xn()];case 1:Ai=i.sent(),i.label=2;case 2:return[2,Ai.request(ue({url:t,method:(n=e==null?void 0:e.method)!==null&&n!==void 0?n:"GET"},e))]}})})}Object.freeze({__proto__:null,getClient:xn,fetch:Gr,Body:Jn,Client:Bl,Response:ql,get ResponseType(){return Ot}});function Go(t,e,n){const i=t.slice();return i[12]=e[n],i[14]=n,i}function Jo(t){let e,n,i,o,l,a,f,c,p,d,w,_,y,g,b,L,W,U=t[5],j=[];for(let z=0;zFe(j[z],1,1,()=>{j[z]=null});let A=!t[3]&&Qo(),S=!t[3]&&t[8]&&Zo();return{c(){e=s("span"),n=s("span"),i=E(t[6]),o=v(),l=s("ul");for(let z=0;z{d[g]=null}),ti(),l=d[o],l?l.p(_,y):(l=d[o]=p[o](_),l.c()),Ee(l,1),l.m(e,a))},i(_){f||(Ee(l),f=!0)},o(_){Fe(l),f=!1},d(_){_&&h(e),c&&c.d(),d[o].d()}}}function Qo(t){let e;return{c(){e=s("span"),e.textContent=",",u(e,"class","comma svelte-gbh3pt")},m(n,i){m(n,e,i)},d(n){n&&h(e)}}}function Zo(t){let e;return{c(){e=s("span"),e.textContent=",",u(e,"class","comma svelte-gbh3pt")},m(n,i){m(n,e,i)},d(n){n&&h(e)}}}function Yr(t){let e,n,i=t[5].length&&Jo(t);return{c(){i&&i.c(),e=$n()},m(o,l){i&&i.m(o,l),m(o,e,l),n=!0},p(o,[l]){o[5].length?i?(i.p(o,l),l&32&&Ee(i,1)):(i=Jo(o),i.c(),Ee(i,1),i.m(e.parentNode,e)):i&&(ei(),Fe(i,1,1,()=>{i=null}),ti())},i(o){n||(Ee(i),n=!0)},o(o){Fe(i),n=!1},d(o){i&&i.d(o),o&&h(e)}}}const Kr="...";function Qr(t,e,n){let{json:i}=e,{depth:o=1/0}=e,{_lvl:l=0}=e,{_last:a=!0}=e;const f=b=>b===null?"null":typeof b;let c,p,d,w,_;const y=b=>{switch(f(b)){case"string":return`"${b}"`;case"function":return"f () {...}";case"symbol":return b.toString();default:return b}},g=()=>{n(8,_=!_)};return t.$$set=b=>{"json"in b&&n(0,i=b.json),"depth"in b&&n(1,o=b.depth),"_lvl"in b&&n(2,l=b._lvl),"_last"in b&&n(3,a=b._last)},t.$$.update=()=>{t.$$.dirty&17&&(n(5,c=f(i)==="object"?Object.keys(i):[]),n(4,p=Array.isArray(i)),n(6,d=p?"[":"{"),n(7,w=p?"]":"}")),t.$$.dirty&6&&n(8,_=ot[9].call(n)),u(w,"class","input h-auto w-100%"),u(w,"id","request-body"),u(w,"placeholder","Request body"),u(w,"rows","5"),u(b,"class","btn"),u(b,"id","make-request"),u(S,"class","input"),u(D,"class","input"),u(A,"class","flex gap-2 children:grow"),u($,"type","checkbox"),u(Q,"class","btn"),u(Q,"type","button")},m(R,V){m(R,e,V),r(e,n),r(n,i),r(n,o),r(n,l),r(n,a),r(n,f),zt(n,t[0]),r(e,c),r(e,p),r(e,d),r(e,w),G(w,t[1]),r(e,_),r(e,y),r(e,g),r(e,b),m(R,L,V),m(R,W,V),m(R,U,V),m(R,j,V),m(R,q,V),m(R,A,V),r(A,S),G(S,t[2]),r(A,z),r(A,D),G(D,t[3]),m(R,C,V),m(R,N,V),m(R,B,V),m(R,Y,V),r(Y,$),$.checked=t[5],r(Y,_e),m(R,te,V),m(R,oe,V),m(R,K,V),m(R,be,V),m(R,H,V),m(R,Q,V),m(R,le,V),m(R,ae,V),m(R,ee,V),m(R,ve,V),m(R,re,V),Vt(ge,R,V),ne=!0,Me||(Le=[O(n,"change",t[9]),O(w,"input",t[10]),O(e,"submit",Xn(t[6])),O(S,"input",t[11]),O(D,"input",t[12]),O($,"change",t[13]),O(Q,"click",t[7])],Me=!0)},p(R,[V]){V&1&&zt(n,R[0]),V&2&&G(w,R[1]),V&4&&S.value!==R[2]&&G(S,R[2]),V&8&&D.value!==R[3]&&G(D,R[3]),V&32&&($.checked=R[5]);const Re={};V&16&&(Re.json=R[4]),ge.$set(Re)},i(R){ne||(Ee(ge.$$.fragment,R),ne=!0)},o(R){Fe(ge.$$.fragment,R),ne=!1},d(R){R&&h(e),R&&h(L),R&&h(W),R&&h(U),R&&h(j),R&&h(q),R&&h(A),R&&h(C),R&&h(N),R&&h(B),R&&h(Y),R&&h(te),R&&h(oe),R&&h(K),R&&h(be),R&&h(H),R&&h(Q),R&&h(le),R&&h(ae),R&&h(ee),R&&h(ve),R&&h(re),Gt(ge,R),Me=!1,pe(Le)}}}function xr(t,e,n){let i="GET",o="",{onMessage:l}=e;async function a(){const W=await xn().catch(q=>{throw l(q),q}),j={url:"http://localhost:3003",method:i||"GET"||"GET"};o.startsWith("{")&&o.endsWith("}")||o.startsWith("[")&&o.endsWith("]")?j.body=Jn.json(JSON.parse(o)):o!==""&&(j.body=Jn.text(o)),W.request(j).then(l).catch(l)}let f="baz",c="qux",p=null,d=!0;async function w(){const W=await xn().catch(U=>{throw l(U),U});n(4,p=await W.request({url:"http://localhost:3003",method:"POST",body:Jn.form({foo:f,bar:c}),headers:d?{"Content-Type":"multipart/form-data"}:void 0,responseType:Ot.Text}))}function _(){i=Pi(this),n(0,i)}function y(){o=this.value,n(1,o)}function g(){f=this.value,n(2,f)}function b(){c=this.value,n(3,c)}function L(){d=this.checked,n(5,d)}return t.$$set=W=>{"onMessage"in W&&n(8,l=W.onMessage)},[i,o,f,c,p,d,a,w,l,_,y,g,b,L]}class $r extends Se{constructor(e){super(),Ce(this,e,xr,Zr,ke,{onMessage:8})}}function es(t){let e,n,i;return{c(){e=s("button"),e.textContent="Send test notification",u(e,"class","btn"),u(e,"id","notification")},m(o,l){m(o,e,l),n||(i=O(e,"click",ts),n=!0)},p:J,i:J,o:J,d(o){o&&h(e),n=!1,i()}}}function ts(){new Notification("Notification title",{body:"This is the notification body"})}function ns(t,e,n){let{onMessage:i}=e;return t.$$set=o=>{"onMessage"in o&&n(0,i=o.onMessage)},[i]}class is extends Se{constructor(e){super(),Ce(this,e,ns,es,ke,{onMessage:0})}}function xo(t,e,n){const i=t.slice();return i[65]=e[n],i}function $o(t,e,n){const i=t.slice();return i[68]=e[n],i}function el(t){let e,n,i,o,l,a,f=Object.keys(t[1]),c=[];for(let p=0;pt[38].call(i))},m(p,d){m(p,e,d),m(p,n,d),m(p,i,d),r(i,o);for(let w=0;wt[55].call(Ne)),a(Qe,"class","input"),a(Qe,"type","number"),a(Ze,"class","input"),a(Ze,"type","number"),a(Ue,"class","flex gap-2"),a($e,"class","input grow"),a($e,"id","title"),a(Ft,"class","btn"),a(Ft,"type","submit"),a(st,"class","flex gap-1"),a(et,"class","input grow"),a(et,"id","url"),a(It,"class","btn"),a(It,"id","open-url"),a(ut,"class","flex gap-1"),a(rt,"class","flex flex-col gap-1")},m(w,I){m(w,e,I),m(w,n,I),m(w,i,I),r(i,o),r(i,l),r(i,u),r(i,f),r(i,c),r(i,p),r(i,d),r(i,k),r(i,_),m(w,y,I),m(w,g,I),m(w,b,I),m(w,L,I),r(L,W),r(W,U),r(W,j),j.checked=t[3],r(L,q),r(L,A),r(A,S),r(A,z),z.checked=t[2],r(L,D),r(L,C),r(C,N),r(C,B),B.checked=t[4],r(L,Y),r(L,$),r($,_e),r($,te),te.checked=t[5],r(L,oe),r(L,K),r(K,be),r(K,H),H.checked=t[6],m(w,x,I),m(w,le,I),m(w,ae,I),m(w,ee,I),r(ee,ve),r(ve,re),r(re,ge),r(re,ne),G(ne,t[13]),r(ve,Me),r(ve,Le),r(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),r(xe,Pn),r(xe,ko),r(xe,On),r(On,Mo),r(On,_i),r(xe,To),r(xe,Wn),r(Wn,Co),r(Wn,bi),m(w,gi,I),m(w,yi,I),m(w,wi,I),m(w,Ht,I),m(w,ki,I),m(w,lt,I),r(lt,jn),r(jn,kt),kt.checked=t[15],r(jn,So),r(lt,zo),r(lt,Rn),r(Rn,Mt),Mt.checked=t[16],r(Rn,Lo),m(w,Mi,I),m(w,Ue,I),r(Ue,Hn),r(Hn,Ao),r(Hn,Ne);for(let we=0;we=1,d,k,_,y=p&&el(t),g=t[1][t[0]]&&nl(t);return{c(){e=s("div"),n=s("div"),i=s("input"),o=v(),l=s("button"),l.textContent="New window",u=v(),f=s("br"),c=v(),y&&y.c(),d=v(),g&&g.c(),a(i,"class","input grow"),a(i,"type","text"),a(i,"placeholder","New Window label.."),a(l,"class","btn"),a(n,"class","flex gap-1"),a(e,"class","flex flex-col children:grow gap-2")},m(b,L){m(b,e,L),r(e,n),r(n,i),G(i,t[20]),r(n,o),r(n,l),r(e,u),r(e,f),r(e,c),y&&y.m(e,null),r(e,d),g&&g.m(e,null),k||(_=[O(i,"input",t[37]),O(l,"click",t[34])],k=!0)},p(b,L){L[0]&1048576&&i.value!==b[20]&&G(i,b[20]),L[0]&2&&(p=Object.keys(b[1]).length>=1),p?y?y.p(b,L):(y=el(b),y.c(),y.m(e,d)):y&&(y.d(1),y=null),b[1][b[0]]?g?g.p(b,L):(g=nl(b),g.c(),g.m(e,null)):g&&(g.d(1),g=null)},i:J,o:J,d(b){b&&h(e),y&&y.d(),g&&g.d(),k=!1,pe(_)}}}function rs(t,e,n){let i=qe.label;const o={[qe.label]:qe},l=["default","crosshair","hand","arrow","move","text","wait","help","progress","notAllowed","contextMenu","cell","verticalText","alias","copy","noDrop","grab","grabbing","allScroll","zoomIn","zoomOut","eResize","nResize","neResize","nwResize","sResize","seResize","swResize","wResize","ewResize","nsResize","neswResize","nwseResize","colResize","rowResize"];let{onMessage:u}=e,f,c="https://tauri.app",p=!0,d=!1,k=!0,_=!1,y=!1,g=null,b=null,L=null,W=null,U=null,j=null,q=null,A=null,S=1,z=new ft(q,A),D=new ft(q,A),C=new St(g,b),N=new St(g,b),B,Y,$=!1,_e=!0,te=null,oe=null,K="default",be="Awesome Tauri Example!";function H(){Ri(c)}function x(){o[i].setTitle(be)}function le(){o[i].hide(),setTimeout(o[i].show,2e3)}function ae(){o[i].minimize(),setTimeout(o[i].unminimize,2e3)}function ee(){Ii({multiple:!1}).then(Q=>{typeof Q=="string"&&o[i].setIcon(Q)})}function ve(){if(!f)return;const Q=new At(f);n(1,o[f]=Q,o),Q.once("tauri://error",function(){u("Error creating new webview")})}function re(){o[i].innerSize().then(Q=>{n(25,C=Q),n(7,g=C.width),n(8,b=C.height)}),o[i].outerSize().then(Q=>{n(26,N=Q)})}function ge(){o[i].innerPosition().then(Q=>{n(23,z=Q)}),o[i].outerPosition().then(Q=>{n(24,D=Q),n(13,q=D.x),n(14,A=D.y)})}async function ne(Q){!Q||(B&&B(),Y&&Y(),Y=await Q.listen("tauri://move",ge),B=await Q.listen("tauri://resize",re))}async function Me(){await o[i].minimize(),await o[i].requestUserAttention(Jt.Critical),await new Promise(Q=>setTimeout(Q,3e3)),await o[i].requestUserAttention(null)}function Le(){f=this.value,n(20,f)}function R(){i=Pi(this),n(0,i),n(1,o)}const V=()=>o[i].center();function Re(){d=this.checked,n(3,d)}function Ae(){p=this.checked,n(2,p)}function Te(){k=this.checked,n(4,k)}function ce(){_=this.checked,n(5,_)}function he(){y=this.checked,n(6,y)}function fe(){q=se(this.value),n(13,q)}function Pe(){A=se(this.value),n(14,A)}function tt(){g=se(this.value),n(7,g)}function me(){b=se(this.value),n(8,b)}function de(){L=se(this.value),n(9,L)}function F(){W=se(this.value),n(10,W)}function ie(){U=se(this.value),n(11,U)}function X(){j=se(this.value),n(12,j)}function ye(){$=this.checked,n(15,$)}function Yt(){_e=this.checked,n(16,_e)}function ht(){K=Pi(this),n(19,K),n(28,l)}function Kt(){te=se(this.value),n(17,te)}function He(){oe=se(this.value),n(18,oe)}function xt(){be=this.value,n(27,be)}function Be(){c=this.value,n(21,c)}return t.$$set=Q=>{"onMessage"in Q&&n(36,u=Q.onMessage)},t.$$.update=()=>{var Q,Et,We,Wt,nt,Dt,De,mt,vt,_t,Oe,Ie,je,it,jt,ot,Rt;t.$$.dirty[0]&3&&(o[i],ge(),re()),t.$$.dirty[0]&7&&((Q=o[i])==null||Q.setResizable(p)),t.$$.dirty[0]&11&&(d?(Et=o[i])==null||Et.maximize():(We=o[i])==null||We.unmaximize()),t.$$.dirty[0]&19&&((Wt=o[i])==null||Wt.setDecorations(k)),t.$$.dirty[0]&35&&((nt=o[i])==null||nt.setAlwaysOnTop(_)),t.$$.dirty[0]&67&&((Dt=o[i])==null||Dt.setFullscreen(y)),t.$$.dirty[0]&387&&g&&b&&((De=o[i])==null||De.setSize(new St(g,b))),t.$$.dirty[0]&1539&&(L&&W?(mt=o[i])==null||mt.setMinSize(new Qn(L,W)):(vt=o[i])==null||vt.setMinSize(null)),t.$$.dirty[0]&6147&&(U>800&&j>400?(_t=o[i])==null||_t.setMaxSize(new Qn(U,j)):(Oe=o[i])==null||Oe.setMaxSize(null)),t.$$.dirty[0]&24579&&q!==null&&A!==null&&((Ie=o[i])==null||Ie.setPosition(new ft(q,A))),t.$$.dirty[0]&3&&((je=o[i])==null||je.scaleFactor().then(bt=>n(22,S=bt))),t.$$.dirty[0]&3&&ne(o[i]),t.$$.dirty[0]&32771&&((it=o[i])==null||it.setCursorGrab($)),t.$$.dirty[0]&65539&&((jt=o[i])==null||jt.setCursorVisible(_e)),t.$$.dirty[0]&524291&&((ot=o[i])==null||ot.setCursorIcon(K)),t.$$.dirty[0]&393219&&te!==null&&oe!==null&&((Rt=o[i])==null||Rt.setCursorPosition(new ft(te,oe)))},[i,o,p,d,k,_,y,g,b,L,W,U,j,q,A,$,_e,te,oe,K,f,c,S,z,D,C,N,be,l,H,x,le,ae,ee,ve,Me,u,Le,R,V,Re,Ae,Te,ce,he,fe,Pe,tt,me,de,F,ie,X,ye,Yt,ht,Kt,He,xt,Be]}class ss extends Se{constructor(e){super(),Ce(this,e,rs,ls,ke,{onMessage:36},null,[-1,-1,-1])}}function Gl(t,e){return M(this,void 0,void 0,function(){return T(this,function(n){return[2,P({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:t,handler:pt(e)}})]})})}function us(t,e){return M(this,void 0,void 0,function(){return T(this,function(n){return[2,P({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:t,handler:pt(e)}})]})})}function as(t){return M(this,void 0,void 0,function(){return T(this,function(e){return[2,P({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:t}})]})})}function Jl(t){return M(this,void 0,void 0,function(){return T(this,function(e){return[2,P({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:t}})]})})}function Xl(){return M(this,void 0,void 0,function(){return T(this,function(t){return[2,P({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})]})})}Object.freeze({__proto__:null,register:Gl,registerAll:us,isRegistered:as,unregister:Jl,unregisterAll:Xl});function ol(t,e,n){const i=t.slice();return i[9]=e[n],i}function ll(t){let e,n=t[9]+"",i,o,l,u,f;function c(){return t[8](t[9])}return{c(){e=s("div"),i=E(n),o=v(),l=s("button"),l.textContent="Unregister",a(l,"class","btn"),a(l,"type","button"),a(e,"class","flex justify-between")},m(p,d){m(p,e,d),r(e,i),r(e,o),r(e,l),u||(f=O(l,"click",c),u=!0)},p(p,d){t=p,d&2&&n!==(n=t[9]+"")&&Z(i,n)},d(p){p&&h(e),u=!1,f()}}}function rl(t){let e,n,i,o,l;return{c(){e=s("br"),n=v(),i=s("button"),i.textContent="Unregister all",a(i,"class","btn"),a(i,"type","button")},m(u,f){m(u,e,f),m(u,n,f),m(u,i,f),o||(l=O(i,"click",t[5]),o=!0)},p:J,d(u){u&&h(e),u&&h(n),u&&h(i),o=!1,l()}}}function cs(t){let e,n,i,o,l,u,f,c,p,d,k,_=t[1],y=[];for(let b=0;b<_.length;b+=1)y[b]=ll(ol(t,_,b));let g=t[1].length>1&&rl(t);return{c(){e=s("div"),n=s("input"),i=v(),o=s("button"),o.textContent="Register",l=v(),u=s("br"),f=v(),c=s("div");for(let b=0;b1?g?g.p(b,L):(g=rl(b),g.c(),g.m(c,null)):g&&(g.d(1),g=null)},i:J,o:J,d(b){b&&h(e),b&&h(l),b&&h(u),b&&h(f),b&&h(c),dt(y,b),g&&g.d(),d=!1,pe(k)}}}function fs(t,e,n){let i,{onMessage:o}=e;const l=yl([]);_l(t,l,_=>n(1,i=_));let u="CmdOrControl+X";function f(){const _=u;Gl(_,()=>{o(`Shortcut ${_} triggered`)}).then(()=>{l.update(y=>[...y,_]),o(`Shortcut ${_} registered successfully`)}).catch(o)}function c(_){const y=_;Jl(y).then(()=>{l.update(g=>g.filter(b=>b!==y)),o(`Shortcut ${y} unregistered`)}).catch(o)}function p(){Xl().then(()=>{l.update(()=>[]),o("Unregistered all shortcuts")}).catch(o)}function d(){u=this.value,n(0,u)}const k=_=>c(_);return t.$$set=_=>{"onMessage"in _&&n(6,o=_.onMessage)},[u,i,l,f,c,p,o,d,k]}class ds extends Se{constructor(e){super(),Ce(this,e,fs,cs,ke,{onMessage:6})}}function sl(t){let e,n,i,o,l,u,f;return{c(){e=s("br"),n=v(),i=s("input"),o=v(),l=s("button"),l.textContent="Write",a(i,"class","input"),a(i,"placeholder","write to stdin"),a(l,"class","btn")},m(c,p){m(c,e,p),m(c,n,p),m(c,i,p),G(i,t[4]),m(c,o,p),m(c,l,p),u||(f=[O(i,"input",t[14]),O(l,"click",t[8])],u=!0)},p(c,p){p&16&&i.value!==c[4]&&G(i,c[4])},d(c){c&&h(e),c&&h(n),c&&h(i),c&&h(o),c&&h(l),u=!1,pe(f)}}}function ps(t){let e,n,i,o,l,u,f,c,p,d,k,_,y,g,b,L,W,U,j,q,A,S,z,D,C=t[5]&&sl(t);return{c(){e=s("div"),n=s("div"),i=E(`Script: - `),o=s("input"),l=v(),u=s("div"),f=E(`Encoding: - `),c=s("input"),p=v(),d=s("div"),k=E(`Working directory: + `),Ne=s("select");for(let k=0;kt[55].call(Ne)),u(Ze,"class","input"),u(Ze,"type","number"),u(xe,"class","input"),u(xe,"type","number"),u(Ue,"class","flex gap-2"),u($e,"class","input grow"),u($e,"id","title"),u(Ft,"class","btn"),u(Ft,"type","submit"),u(st,"class","flex gap-1"),u(et,"class","input grow"),u(et,"id","url"),u(It,"class","btn"),u(It,"id","open-url"),u(ut,"class","flex gap-1"),u(rt,"class","flex flex-col gap-1")},m(k,I){m(k,e,I),m(k,n,I),m(k,i,I),r(i,o),r(i,l),r(i,a),r(i,f),r(i,c),r(i,p),r(i,d),r(i,w),r(i,_),m(k,y,I),m(k,g,I),m(k,b,I),m(k,L,I),r(L,W),r(W,U),r(W,j),j.checked=t[3],r(L,q),r(L,A),r(A,S),r(A,z),z.checked=t[2],r(L,D),r(L,C),r(C,N),r(C,B),B.checked=t[4],r(L,Y),r(L,$),r($,_e),r($,te),te.checked=t[5],r(L,oe),r(L,K),r(K,be),r(K,H),H.checked=t[6],m(k,Q,I),m(k,le,I),m(k,ae,I),m(k,ee,I),r(ee,ve),r(ve,re),r(re,ge),r(re,ne),G(ne,t[13]),r(ve,Me),r(ve,Le),r(Le,R),r(Le,V),G(V,t[14]),r(ee,Re),r(ee,Ae),r(Ae,Te),r(Te,ce),r(Te,he),G(he,t[7]),r(Ae,fe),r(Ae,Pe),r(Pe,tt),r(Pe,me),G(me,t[8]),r(ee,de),r(ee,F),r(F,ie),r(ie,X),r(ie,ye),G(ye,t[9]),r(F,Yt),r(F,ht),r(ht,Kt),r(ht,He),G(He,t[10]),r(ee,Qt),r(ee,Be),r(Be,Z),r(Z,Et),r(Z,We),G(We,t[11]),r(Be,Wt),r(Be,nt),r(nt,Dt),r(nt,De),G(De,t[12]),m(k,mt,I),m(k,vt,I),m(k,_t,I),m(k,Oe,I),r(Oe,Ie),r(Ie,je),r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),l.textContent="New window",a=v(),f=s("br"),c=v(),y&&y.c(),d=v(),g&&g.c(),u(i,"class","input grow"),u(i,"type","text"),u(i,"placeholder","New Window label.."),u(l,"class","btn"),u(n,"class","flex gap-1"),u(e,"class","flex flex-col children:grow gap-2")},m(b,L){m(b,e,L),r(e,n),r(n,i),G(i,t[20]),r(n,o),r(n,l),r(e,a),r(e,f),r(e,c),y&&y.m(e,null),r(e,d),g&&g.m(e,null),w||(_=[O(i,"input",t[37]),O(l,"click",t[34])],w=!0)},p(b,L){L[0]&1048576&&i.value!==b[20]&&G(i,b[20]),L[0]&2&&(p=Object.keys(b[1]).length>=1),p?y?y.p(b,L):(y=el(b),y.c(),y.m(e,d)):y&&(y.d(1),y=null),b[1][b[0]]?g?g.p(b,L):(g=nl(b),g.c(),g.m(e,null)):g&&(g.d(1),g=null)},i:J,o:J,d(b){b&&h(e),y&&y.d(),g&&g.d(),w=!1,pe(_)}}}function ls(t,e,n){let i=qe.label;const o={[qe.label]:qe},l=["default","crosshair","hand","arrow","move","text","wait","help","progress","notAllowed","contextMenu","cell","verticalText","alias","copy","noDrop","grab","grabbing","allScroll","zoomIn","zoomOut","eResize","nResize","neResize","nwResize","sResize","seResize","swResize","wResize","ewResize","nsResize","neswResize","nwseResize","colResize","rowResize"];let{onMessage:a}=e,f,c="https://tauri.app",p=!0,d=!1,w=!0,_=!1,y=!1,g=null,b=null,L=null,W=null,U=null,j=null,q=null,A=null,S=1,z=new ft(q,A),D=new ft(q,A),C=new St(g,b),N=new St(g,b),B,Y,$=!1,_e=!0,te=null,oe=null,K="default",be="Awesome Tauri Example!";function H(){Ri(c)}function Q(){o[i].setTitle(be)}function le(){o[i].hide(),setTimeout(o[i].show,2e3)}function ae(){o[i].minimize(),setTimeout(o[i].unminimize,2e3)}function ee(){Ii({multiple:!1}).then(Z=>{typeof Z=="string"&&o[i].setIcon(Z)})}function ve(){if(!f)return;const Z=new At(f);n(1,o[f]=Z,o),Z.once("tauri://error",function(){a("Error creating new webview")})}function re(){o[i].innerSize().then(Z=>{n(25,C=Z),n(7,g=C.width),n(8,b=C.height)}),o[i].outerSize().then(Z=>{n(26,N=Z)})}function ge(){o[i].innerPosition().then(Z=>{n(23,z=Z)}),o[i].outerPosition().then(Z=>{n(24,D=Z),n(13,q=D.x),n(14,A=D.y)})}async function ne(Z){!Z||(B&&B(),Y&&Y(),Y=await Z.listen("tauri://move",ge),B=await Z.listen("tauri://resize",re))}async function Me(){await o[i].minimize(),await o[i].requestUserAttention(Jt.Critical),await new Promise(Z=>setTimeout(Z,3e3)),await o[i].requestUserAttention(null)}function Le(){f=this.value,n(20,f)}function R(){i=Pi(this),n(0,i),n(1,o)}const V=()=>o[i].center();function Re(){d=this.checked,n(3,d)}function Ae(){p=this.checked,n(2,p)}function Te(){w=this.checked,n(4,w)}function ce(){_=this.checked,n(5,_)}function he(){y=this.checked,n(6,y)}function fe(){q=se(this.value),n(13,q)}function Pe(){A=se(this.value),n(14,A)}function tt(){g=se(this.value),n(7,g)}function me(){b=se(this.value),n(8,b)}function de(){L=se(this.value),n(9,L)}function F(){W=se(this.value),n(10,W)}function ie(){U=se(this.value),n(11,U)}function X(){j=se(this.value),n(12,j)}function ye(){$=this.checked,n(15,$)}function Yt(){_e=this.checked,n(16,_e)}function ht(){K=Pi(this),n(19,K),n(28,l)}function Kt(){te=se(this.value),n(17,te)}function He(){oe=se(this.value),n(18,oe)}function Qt(){be=this.value,n(27,be)}function Be(){c=this.value,n(21,c)}return t.$$set=Z=>{"onMessage"in Z&&n(36,a=Z.onMessage)},t.$$.update=()=>{var Z,Et,We,Wt,nt,Dt,De,mt,vt,_t,Oe,Ie,je,it,jt,ot,Rt;t.$$.dirty[0]&3&&(o[i],ge(),re()),t.$$.dirty[0]&7&&((Z=o[i])==null||Z.setResizable(p)),t.$$.dirty[0]&11&&(d?(Et=o[i])==null||Et.maximize():(We=o[i])==null||We.unmaximize()),t.$$.dirty[0]&19&&((Wt=o[i])==null||Wt.setDecorations(w)),t.$$.dirty[0]&35&&((nt=o[i])==null||nt.setAlwaysOnTop(_)),t.$$.dirty[0]&67&&((Dt=o[i])==null||Dt.setFullscreen(y)),t.$$.dirty[0]&387&&g&&b&&((De=o[i])==null||De.setSize(new St(g,b))),t.$$.dirty[0]&1539&&(L&&W?(mt=o[i])==null||mt.setMinSize(new Zn(L,W)):(vt=o[i])==null||vt.setMinSize(null)),t.$$.dirty[0]&6147&&(U>800&&j>400?(_t=o[i])==null||_t.setMaxSize(new Zn(U,j)):(Oe=o[i])==null||Oe.setMaxSize(null)),t.$$.dirty[0]&24579&&q!==null&&A!==null&&((Ie=o[i])==null||Ie.setPosition(new ft(q,A))),t.$$.dirty[0]&3&&((je=o[i])==null||je.scaleFactor().then(bt=>n(22,S=bt))),t.$$.dirty[0]&3&&ne(o[i]),t.$$.dirty[0]&32771&&((it=o[i])==null||it.setCursorGrab($)),t.$$.dirty[0]&65539&&((jt=o[i])==null||jt.setCursorVisible(_e)),t.$$.dirty[0]&524291&&((ot=o[i])==null||ot.setCursorIcon(K)),t.$$.dirty[0]&393219&&te!==null&&oe!==null&&((Rt=o[i])==null||Rt.setCursorPosition(new ft(te,oe)))},[i,o,p,d,w,_,y,g,b,L,W,U,j,q,A,$,_e,te,oe,K,f,c,S,z,D,C,N,be,l,H,Q,le,ae,ee,ve,Me,a,Le,R,V,Re,Ae,Te,ce,he,fe,Pe,tt,me,de,F,ie,X,ye,Yt,ht,Kt,He,Qt,Be]}class rs extends Se{constructor(e){super(),Ce(this,e,ls,os,ke,{onMessage:36},null,[-1,-1,-1])}}function Gl(t,e){return M(this,void 0,void 0,function(){return T(this,function(n){return[2,P({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:t,handler:pt(e)}})]})})}function ss(t,e){return M(this,void 0,void 0,function(){return T(this,function(n){return[2,P({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:t,handler:pt(e)}})]})})}function us(t){return M(this,void 0,void 0,function(){return T(this,function(e){return[2,P({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:t}})]})})}function Jl(t){return M(this,void 0,void 0,function(){return T(this,function(e){return[2,P({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:t}})]})})}function Xl(){return M(this,void 0,void 0,function(){return T(this,function(t){return[2,P({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})]})})}Object.freeze({__proto__:null,register:Gl,registerAll:ss,isRegistered:us,unregister:Jl,unregisterAll:Xl});function ol(t,e,n){const i=t.slice();return i[9]=e[n],i}function ll(t){let e,n=t[9]+"",i,o,l,a,f;function c(){return t[8](t[9])}return{c(){e=s("div"),i=E(n),o=v(),l=s("button"),l.textContent="Unregister",u(l,"class","btn"),u(l,"type","button"),u(e,"class","flex justify-between")},m(p,d){m(p,e,d),r(e,i),r(e,o),r(e,l),a||(f=O(l,"click",c),a=!0)},p(p,d){t=p,d&2&&n!==(n=t[9]+"")&&x(i,n)},d(p){p&&h(e),a=!1,f()}}}function rl(t){let e,n,i,o,l;return{c(){e=s("br"),n=v(),i=s("button"),i.textContent="Unregister all",u(i,"class","btn"),u(i,"type","button")},m(a,f){m(a,e,f),m(a,n,f),m(a,i,f),o||(l=O(i,"click",t[5]),o=!0)},p:J,d(a){a&&h(e),a&&h(n),a&&h(i),o=!1,l()}}}function as(t){let e,n,i,o,l,a,f,c,p,d,w,_=t[1],y=[];for(let b=0;b<_.length;b+=1)y[b]=ll(ol(t,_,b));let g=t[1].length>1&&rl(t);return{c(){e=s("div"),n=s("input"),i=v(),o=s("button"),o.textContent="Register",l=v(),a=s("br"),f=v(),c=s("div");for(let b=0;b1?g?g.p(b,L):(g=rl(b),g.c(),g.m(c,null)):g&&(g.d(1),g=null)},i:J,o:J,d(b){b&&h(e),b&&h(l),b&&h(a),b&&h(f),b&&h(c),dt(y,b),g&&g.d(),d=!1,pe(w)}}}function cs(t,e,n){let i,{onMessage:o}=e;const l=yl([]);_l(t,l,_=>n(1,i=_));let a="CmdOrControl+X";function f(){const _=a;Gl(_,()=>{o(`Shortcut ${_} triggered`)}).then(()=>{l.update(y=>[...y,_]),o(`Shortcut ${_} registered successfully`)}).catch(o)}function c(_){const y=_;Jl(y).then(()=>{l.update(g=>g.filter(b=>b!==y)),o(`Shortcut ${y} unregistered`)}).catch(o)}function p(){Xl().then(()=>{l.update(()=>[]),o("Unregistered all shortcuts")}).catch(o)}function d(){a=this.value,n(0,a)}const w=_=>c(_);return t.$$set=_=>{"onMessage"in _&&n(6,o=_.onMessage)},[a,i,l,f,c,p,o,d,w]}class fs extends Se{constructor(e){super(),Ce(this,e,cs,as,ke,{onMessage:6})}}function sl(t){let e,n,i,o,l,a,f;return{c(){e=s("br"),n=v(),i=s("input"),o=v(),l=s("button"),l.textContent="Write",u(i,"class","input"),u(i,"placeholder","write to stdin"),u(l,"class","btn")},m(c,p){m(c,e,p),m(c,n,p),m(c,i,p),G(i,t[4]),m(c,o,p),m(c,l,p),a||(f=[O(i,"input",t[14]),O(l,"click",t[8])],a=!0)},p(c,p){p&16&&i.value!==c[4]&&G(i,c[4])},d(c){c&&h(e),c&&h(n),c&&h(i),c&&h(o),c&&h(l),a=!1,pe(f)}}}function ds(t){let e,n,i,o,l,a,f,c,p,d,w,_,y,g,b,L,W,U,j,q,A,S,z,D,C=t[5]&&sl(t);return{c(){e=s("div"),n=s("div"),i=E(`Script: + `),o=s("input"),l=v(),a=s("div"),f=E(`Encoding: + `),c=s("input"),p=v(),d=s("div"),w=E(`Working directory: `),_=s("input"),y=v(),g=s("div"),b=E(`Arguments: - `),L=s("input"),W=v(),U=s("div"),j=s("button"),j.textContent="Run",q=v(),A=s("button"),A.textContent="Kill",S=v(),C&&C.c(),a(o,"class","grow input"),a(n,"class","flex items-center gap-1"),a(c,"class","grow input"),a(u,"class","flex items-center gap-1"),a(_,"class","grow input"),a(_,"placeholder","Working directory"),a(d,"class","flex items-center gap-1"),a(L,"class","grow input"),a(L,"placeholder","Environment variables"),a(g,"class","flex items-center gap-1"),a(j,"class","btn"),a(A,"class","btn"),a(U,"class","flex children:grow gap-1"),a(e,"class","flex flex-col childre:grow gap-1")},m(N,B){m(N,e,B),r(e,n),r(n,i),r(n,o),G(o,t[0]),r(e,l),r(e,u),r(u,f),r(u,c),G(c,t[3]),r(e,p),r(e,d),r(d,k),r(d,_),G(_,t[1]),r(e,y),r(e,g),r(g,b),r(g,L),G(L,t[2]),r(e,W),r(e,U),r(U,j),r(U,q),r(U,A),r(e,S),C&&C.m(e,null),z||(D=[O(o,"input",t[10]),O(c,"input",t[11]),O(_,"input",t[12]),O(L,"input",t[13]),O(j,"click",t[6]),O(A,"click",t[7])],z=!0)},p(N,[B]){B&1&&o.value!==N[0]&&G(o,N[0]),B&8&&c.value!==N[3]&&G(c,N[3]),B&2&&_.value!==N[1]&&G(_,N[1]),B&4&&L.value!==N[2]&&G(L,N[2]),N[5]?C?C.p(N,B):(C=sl(N),C.c(),C.m(e,null)):C&&(C.d(1),C=null)},i:J,o:J,d(N){N&&h(e),C&&C.d(),z=!1,pe(D)}}}function hs(t,e,n){const i=navigator.userAgent.includes("Windows");let o=i?"cmd":"sh",l=i?["/C"]:["-c"],{onMessage:u}=e,f='echo "hello world"',c=null,p="SOMETHING=value ANOTHER=2",d="",k="",_;function y(){return p.split(" ").reduce((S,z)=>{let[D,C]=z.split("=");return{...S,[D]:C}},{})}function g(){n(5,_=null);const S=new Ml(o,[...l,f],{cwd:c||null,env:y(),encoding:d});S.on("close",z=>{u(`command finished with code ${z.code} and signal ${z.signal}`),n(5,_=null)}),S.on("error",z=>u(`command error: "${z}"`)),S.stdout.on("data",z=>u(`command stdout: "${z}"`)),S.stderr.on("data",z=>u(`command stderr: "${z}"`)),S.spawn().then(z=>{n(5,_=z)}).catch(u)}function b(){_.kill().then(()=>u("killed child process")).catch(u)}function L(){_.write(k).catch(u)}function W(){f=this.value,n(0,f)}function U(){d=this.value,n(3,d)}function j(){c=this.value,n(1,c)}function q(){p=this.value,n(2,p)}function A(){k=this.value,n(4,k)}return t.$$set=S=>{"onMessage"in S&&n(9,u=S.onMessage)},[f,c,p,d,k,_,g,b,L,u,W,U,j,q,A]}class ms extends Se{constructor(e){super(),Ce(this,e,hs,ps,ke,{onMessage:9})}}function Ni(t){return M(this,void 0,void 0,function(){return T(this,function(e){return[2,Xt("tauri://update-status",function(n){t(n==null?void 0:n.payload)})]})})}function Yl(){return M(this,void 0,void 0,function(){function t(){e&&e(),e=void 0}var e;return T(this,function(n){return[2,new Promise(function(i,o){Ni(function(l){return l.error?(t(),o(l.error)):l.status==="DONE"?(t(),i()):void 0}).then(function(l){e=l}).catch(function(l){throw t(),l}),ni("tauri://update-install").catch(function(l){throw t(),l})})]})})}function Kl(){return M(this,void 0,void 0,function(){function t(){e&&e(),e=void 0}var e;return T(this,function(n){return[2,new Promise(function(i,o){Fl("tauri://update-available",function(l){var u;u=l==null?void 0:l.payload,t(),i({manifest:u,shouldUpdate:!0})}).catch(function(l){throw t(),l}),Ni(function(l){return l.error?(t(),o(l.error)):l.status==="UPTODATE"?(t(),i({shouldUpdate:!1})):void 0}).then(function(l){e=l}).catch(function(l){throw t(),l}),ni("tauri://update").catch(function(l){throw t(),l})})]})})}Object.freeze({__proto__:null,onUpdaterEvent:Ni,installUpdate:Yl,checkUpdate:Kl});function vs(t){let e;return{c(){e=s("button"),e.innerHTML='
',a(e,"class","btn text-accentText dark:text-darkAccentText flex items-center justify-center")},m(n,i){m(n,e,i)},p:J,d(n){n&&h(e)}}}function _s(t){let e,n,i;return{c(){e=s("button"),e.textContent="Install update",a(e,"class","btn")},m(o,l){m(o,e,l),n||(i=O(e,"click",t[4]),n=!0)},p:J,d(o){o&&h(e),n=!1,i()}}}function bs(t){let e,n,i;return{c(){e=s("button"),e.textContent="Check update",a(e,"class","btn")},m(o,l){m(o,e,l),n||(i=O(e,"click",t[3]),n=!0)},p:J,d(o){o&&h(e),n=!1,i()}}}function gs(t){let e;function n(l,u){return!l[0]&&!l[2]?bs:!l[1]&&l[2]?_s:vs}let i=n(t),o=i(t);return{c(){e=s("div"),o.c(),a(e,"class","flex children:grow children:h10")},m(l,u){m(l,e,u),o.m(e,null)},p(l,[u]){i===(i=n(l))&&o?o.p(l,u):(o.d(1),o=i(l),o&&(o.c(),o.m(e,null)))},i:J,o:J,d(l){l&&h(e),o.d()}}}function ys(t,e,n){let{onMessage:i}=e,o;at(async()=>{o=await Xt("tauri://update-status",i)}),Di(()=>{o&&o()});let l,u,f;async function c(){n(0,l=!0);try{const{shouldUpdate:d,manifest:k}=await Kl();i(`Should update: ${d}`),i(k),n(2,f=d)}catch(d){i(d)}finally{n(0,l=!1)}}async function p(){n(1,u=!0);try{await Yl(),i("Installation complete, restart required."),await Fi()}catch(d){i(d)}finally{n(1,u=!1)}}return t.$$set=d=>{"onMessage"in d&&n(5,i=d.onMessage)},[l,u,f,c,p,i]}class ws extends Se{constructor(e){super(),Ce(this,e,ys,gs,ke,{onMessage:5})}}function xl(t){return M(this,void 0,void 0,function(){return T(this,function(e){return[2,P({__tauriModule:"Clipboard",message:{cmd:"writeText",data:t}})]})})}function Ql(){return M(this,void 0,void 0,function(){return T(this,function(t){return[2,P({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})]})})}Object.freeze({__proto__:null,writeText:xl,readText:Ql});function ks(t){let e,n,i,o,l,u,f,c;return{c(){e=s("div"),n=s("input"),i=v(),o=s("button"),o.textContent="Write",l=v(),u=s("button"),u.textContent="Read",a(n,"class","grow input"),a(n,"placeholder","Text to write to the clipboard"),a(o,"class","btn"),a(o,"type","button"),a(u,"class","btn"),a(u,"type","button"),a(e,"class","flex gap-1")},m(p,d){m(p,e,d),r(e,n),G(n,t[0]),r(e,i),r(e,o),r(e,l),r(e,u),f||(c=[O(n,"input",t[4]),O(o,"click",t[1]),O(u,"click",t[2])],f=!0)},p(p,[d]){d&1&&n.value!==p[0]&&G(n,p[0])},i:J,o:J,d(p){p&&h(e),f=!1,pe(c)}}}function Ms(t,e,n){let{onMessage:i}=e,o="clipboard message";function l(){xl(o).then(()=>{i("Wrote to the clipboard")}).catch(i)}function u(){Ql().then(c=>{i(`Clipboard contents: ${c}`)}).catch(i)}function f(){o=this.value,n(0,o)}return t.$$set=c=>{"onMessage"in c&&n(3,i=c.onMessage)},[o,l,u,i,f]}class Ts extends Se{constructor(e){super(),Ce(this,e,Ms,ks,ke,{onMessage:3})}}function Cs(t){let e;return{c(){e=s("div"),e.innerHTML=`
Not available for Linux
- `,a(e,"class","flex flex-col gap-2")},m(n,i){m(n,e,i)},p:J,i:J,o:J,d(n){n&&h(e)}}}function Ss(t,e,n){let{onMessage:i}=e;const o=window.constraints={audio:!0,video:!0};function l(f){const c=document.querySelector("video"),p=f.getVideoTracks();i("Got stream with constraints:",o),i(`Using video device: ${p[0].label}`),window.stream=f,c.srcObject=f}function u(f){if(f.name==="ConstraintNotSatisfiedError"){const c=o.video;i(`The resolution ${c.width.exact}x${c.height.exact} px is not supported by your device.`)}else f.name==="PermissionDeniedError"&&i("Permissions have not been granted to use your camera and microphone, you need to allow the page access to your devices in order for the demo to work.");i(`getUserMedia error: ${f.name}`,f)}return at(async()=>{try{const f=await navigator.mediaDevices.getUserMedia(o);l(f)}catch(f){u(f)}}),Di(()=>{window.stream.getTracks().forEach(function(f){f.stop()})}),t.$$set=f=>{"onMessage"in f&&n(0,i=f.onMessage)},[i]}class zs extends Se{constructor(e){super(),Ce(this,e,Ss,Cs,ke,{onMessage:0})}}function ul(t,e,n){const i=t.slice();return i[32]=e[n],i}function al(t,e,n){const i=t.slice();return i[35]=e[n],i}function cl(t){let e,n,i,o,l,u,f,c,p,d,k,_,y,g,b;function L(S,z){return S[3]?As:Ls}let W=L(t),U=W(t);function j(S,z){return S[2]?Os:Ps}let q=j(t),A=q(t);return{c(){e=s("div"),n=s("span"),n.textContent="Tauri API Validation",i=v(),o=s("span"),l=s("span"),U.c(),f=v(),c=s("span"),c.innerHTML='
',p=v(),d=s("span"),A.c(),_=v(),y=s("span"),y.innerHTML='
',a(n,"class","lt-sm:pl-10 text-darkPrimaryText"),a(l,"title",u=t[3]?"Switch to Light mode":"Switch to Dark mode"),a(l,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),a(c,"title","Minimize"),a(c,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),a(d,"title",k=t[2]?"Restore":"Maximize"),a(d,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),a(y,"title","Close"),a(y,"class","hover:bg-red-700 dark:hover:bg-red-700 hover:text-darkPrimaryText active:bg-red-700/90 dark:active:bg-red-700/90 active:text-darkPrimaryText "),a(o,"class","h-100% children:h-100% children:w-12 children:inline-flex children:items-center children:justify-center"),a(e,"class","w-screen select-none h-8 pl-2 flex justify-between items-center absolute text-primaryText dark:text-darkPrimaryText"),a(e,"data-tauri-drag-region","")},m(S,z){m(S,e,z),r(e,n),r(e,i),r(e,o),r(o,l),U.m(l,null),r(o,f),r(o,c),r(o,p),r(o,d),A.m(d,null),r(o,_),r(o,y),g||(b=[O(l,"click",t[12]),O(c,"click",t[9]),O(d,"click",t[10]),O(y,"click",t[11])],g=!0)},p(S,z){W!==(W=L(S))&&(U.d(1),U=W(S),U&&(U.c(),U.m(l,null))),z[0]&8&&u!==(u=S[3]?"Switch to Light mode":"Switch to Dark mode")&&a(l,"title",u),q!==(q=j(S))&&(A.d(1),A=q(S),A&&(A.c(),A.m(d,null))),z[0]&4&&k!==(k=S[2]?"Restore":"Maximize")&&a(d,"title",k)},d(S){S&&h(e),U.d(),A.d(),g=!1,pe(b)}}}function Ls(t){let e;return{c(){e=s("div"),a(e,"class","i-ph-moon")},m(n,i){m(n,e,i)},d(n){n&&h(e)}}}function As(t){let e;return{c(){e=s("div"),a(e,"class","i-ph-sun")},m(n,i){m(n,e,i)},d(n){n&&h(e)}}}function Ps(t){let e;return{c(){e=s("div"),a(e,"class","i-codicon-chrome-maximize")},m(n,i){m(n,e,i)},d(n){n&&h(e)}}}function Os(t){let e;return{c(){e=s("div"),a(e,"class","i-codicon-chrome-restore")},m(n,i){m(n,e,i)},d(n){n&&h(e)}}}function Es(t){let e;return{c(){e=s("span"),a(e,"class","i-codicon-menu animate-duration-300ms animate-fade-in")},m(n,i){m(n,e,i)},d(n){n&&h(e)}}}function Ws(t){let e;return{c(){e=s("span"),a(e,"class","i-codicon-close animate-duration-300ms animate-fade-in")},m(n,i){m(n,e,i)},d(n){n&&h(e)}}}function fl(t){let e,n,i,o,l,u,f,c,p;function d(y,g){return y[3]?js:Ds}let k=d(t),_=k(t);return{c(){e=s("a"),_.c(),n=v(),i=s("br"),o=v(),l=s("div"),u=v(),f=s("br"),a(e,"href","##"),a(e,"class","nv justify-between h-8"),a(l,"class","bg-white/5 h-2px")},m(y,g){m(y,e,g),_.m(e,null),m(y,n,g),m(y,i,g),m(y,o,g),m(y,l,g),m(y,u,g),m(y,f,g),c||(p=O(e,"click",t[12]),c=!0)},p(y,g){k!==(k=d(y))&&(_.d(1),_=k(y),_&&(_.c(),_.m(e,null)))},d(y){y&&h(e),_.d(),y&&h(n),y&&h(i),y&&h(o),y&&h(l),y&&h(u),y&&h(f),c=!1,p()}}}function Ds(t){let e,n;return{c(){e=E(`Switch to Dark mode - `),n=s("div"),a(n,"class","i-ph-moon")},m(i,o){m(i,e,o),m(i,n,o)},d(i){i&&h(e),i&&h(n)}}}function js(t){let e,n;return{c(){e=E(`Switch to Light mode - `),n=s("div"),a(n,"class","i-ph-sun")},m(i,o){m(i,e,o),m(i,n,o)},d(i){i&&h(e),i&&h(n)}}}function Rs(t){let e,n,i,o,l,u=t[35].label+"",f,c,p,d;function k(){return t[20](t[35])}return{c(){e=s("a"),n=s("div"),o=v(),l=s("p"),f=E(u),a(n,"class",i=t[35].icon+" mr-2"),a(e,"href","##"),a(e,"class",c="nv "+(t[1]===t[35]?"nv_selected":""))},m(_,y){m(_,e,y),r(e,n),r(e,o),r(e,l),r(l,f),p||(d=O(e,"click",k),p=!0)},p(_,y){t=_,y[0]&2&&c!==(c="nv "+(t[1]===t[35]?"nv_selected":""))&&a(e,"class",c)},d(_){_&&h(e),p=!1,d()}}}function dl(t){let e,n=t[35]&&Rs(t);return{c(){n&&n.c(),e=$n()},m(i,o){n&&n.m(i,o),m(i,e,o)},p(i,o){i[35]&&n.p(i,o)},d(i){n&&n.d(i),i&&h(e)}}}function pl(t){let e,n=t[32].html+"",i;return{c(){e=new lr(!1),i=$n(),e.a=i},m(o,l){e.m(n,o,l),m(o,i,l)},p(o,l){l[0]&64&&n!==(n=o[32].html+"")&&e.p(n)},d(o){o&&h(i),o&&e.d()}}}function Hs(t){let e,n,i,o,l,u,f,c,p,d,k,_,y,g,b,L,W,U,j,q,A,S,z,D,C,N,B,Y=t[1].label+"",$,_e,te,oe,K,be,H,x,le,ae,ee,ve,re,ge,ne,Me,Le,R,V=t[5]&&cl(t);function Re(F,ie){return F[0]?Ws:Es}let Ae=Re(t),Te=Ae(t),ce=!t[5]&&fl(t),he=t[7],fe=[];for(let F=0;F`,k=v(),_=s("a"),_.innerHTML=`Github + `),L=s("input"),W=v(),U=s("div"),j=s("button"),j.textContent="Run",q=v(),A=s("button"),A.textContent="Kill",S=v(),C&&C.c(),u(o,"class","grow input"),u(n,"class","flex items-center gap-1"),u(c,"class","grow input"),u(a,"class","flex items-center gap-1"),u(_,"class","grow input"),u(_,"placeholder","Working directory"),u(d,"class","flex items-center gap-1"),u(L,"class","grow input"),u(L,"placeholder","Environment variables"),u(g,"class","flex items-center gap-1"),u(j,"class","btn"),u(A,"class","btn"),u(U,"class","flex children:grow gap-1"),u(e,"class","flex flex-col childre:grow gap-1")},m(N,B){m(N,e,B),r(e,n),r(n,i),r(n,o),G(o,t[0]),r(e,l),r(e,a),r(a,f),r(a,c),G(c,t[3]),r(e,p),r(e,d),r(d,w),r(d,_),G(_,t[1]),r(e,y),r(e,g),r(g,b),r(g,L),G(L,t[2]),r(e,W),r(e,U),r(U,j),r(U,q),r(U,A),r(e,S),C&&C.m(e,null),z||(D=[O(o,"input",t[10]),O(c,"input",t[11]),O(_,"input",t[12]),O(L,"input",t[13]),O(j,"click",t[6]),O(A,"click",t[7])],z=!0)},p(N,[B]){B&1&&o.value!==N[0]&&G(o,N[0]),B&8&&c.value!==N[3]&&G(c,N[3]),B&2&&_.value!==N[1]&&G(_,N[1]),B&4&&L.value!==N[2]&&G(L,N[2]),N[5]?C?C.p(N,B):(C=sl(N),C.c(),C.m(e,null)):C&&(C.d(1),C=null)},i:J,o:J,d(N){N&&h(e),C&&C.d(),z=!1,pe(D)}}}function ps(t,e,n){const i=navigator.userAgent.includes("Windows");let o=i?"cmd":"sh",l=i?["/C"]:["-c"],{onMessage:a}=e,f='echo "hello world"',c=null,p="SOMETHING=value ANOTHER=2",d="",w="",_;function y(){return p.split(" ").reduce((S,z)=>{let[D,C]=z.split("=");return{...S,[D]:C}},{})}function g(){n(5,_=null);const S=new Ml(o,[...l,f],{cwd:c||null,env:y(),encoding:d});S.on("close",z=>{a(`command finished with code ${z.code} and signal ${z.signal}`),n(5,_=null)}),S.on("error",z=>a(`command error: "${z}"`)),S.stdout.on("data",z=>a(`command stdout: "${z}"`)),S.stderr.on("data",z=>a(`command stderr: "${z}"`)),S.spawn().then(z=>{n(5,_=z)}).catch(a)}function b(){_.kill().then(()=>a("killed child process")).catch(a)}function L(){_.write(w).catch(a)}function W(){f=this.value,n(0,f)}function U(){d=this.value,n(3,d)}function j(){c=this.value,n(1,c)}function q(){p=this.value,n(2,p)}function A(){w=this.value,n(4,w)}return t.$$set=S=>{"onMessage"in S&&n(9,a=S.onMessage)},[f,c,p,d,w,_,g,b,L,a,W,U,j,q,A]}class hs extends Se{constructor(e){super(),Ce(this,e,ps,ds,ke,{onMessage:9})}}function Ni(t){return M(this,void 0,void 0,function(){return T(this,function(e){return[2,Xt("tauri://update-status",function(n){t(n==null?void 0:n.payload)})]})})}function Yl(){return M(this,void 0,void 0,function(){function t(){e&&e(),e=void 0}var e;return T(this,function(n){return[2,new Promise(function(i,o){Ni(function(l){return l.error?(t(),o(l.error)):l.status==="DONE"?(t(),i()):void 0}).then(function(l){e=l}).catch(function(l){throw t(),l}),ni("tauri://update-install").catch(function(l){throw t(),l})})]})})}function Kl(){return M(this,void 0,void 0,function(){function t(){e&&e(),e=void 0}var e;return T(this,function(n){return[2,new Promise(function(i,o){Fl("tauri://update-available",function(l){var a;a=l==null?void 0:l.payload,t(),i({manifest:a,shouldUpdate:!0})}).catch(function(l){throw t(),l}),Ni(function(l){return l.error?(t(),o(l.error)):l.status==="UPTODATE"?(t(),i({shouldUpdate:!1})):void 0}).then(function(l){e=l}).catch(function(l){throw t(),l}),ni("tauri://update").catch(function(l){throw t(),l})})]})})}Object.freeze({__proto__:null,onUpdaterEvent:Ni,installUpdate:Yl,checkUpdate:Kl});function ms(t){let e;return{c(){e=s("button"),e.innerHTML='
',u(e,"class","btn text-accentText dark:text-darkAccentText flex items-center justify-center")},m(n,i){m(n,e,i)},p:J,d(n){n&&h(e)}}}function vs(t){let e,n,i;return{c(){e=s("button"),e.textContent="Install update",u(e,"class","btn")},m(o,l){m(o,e,l),n||(i=O(e,"click",t[4]),n=!0)},p:J,d(o){o&&h(e),n=!1,i()}}}function _s(t){let e,n,i;return{c(){e=s("button"),e.textContent="Check update",u(e,"class","btn")},m(o,l){m(o,e,l),n||(i=O(e,"click",t[3]),n=!0)},p:J,d(o){o&&h(e),n=!1,i()}}}function bs(t){let e;function n(l,a){return!l[0]&&!l[2]?_s:!l[1]&&l[2]?vs:ms}let i=n(t),o=i(t);return{c(){e=s("div"),o.c(),u(e,"class","flex children:grow children:h10")},m(l,a){m(l,e,a),o.m(e,null)},p(l,[a]){i===(i=n(l))&&o?o.p(l,a):(o.d(1),o=i(l),o&&(o.c(),o.m(e,null)))},i:J,o:J,d(l){l&&h(e),o.d()}}}function gs(t,e,n){let{onMessage:i}=e,o;at(async()=>{o=await Xt("tauri://update-status",i)}),Di(()=>{o&&o()});let l,a,f;async function c(){n(0,l=!0);try{const{shouldUpdate:d,manifest:w}=await Kl();i(`Should update: ${d}`),i(w),n(2,f=d)}catch(d){i(d)}finally{n(0,l=!1)}}async function p(){n(1,a=!0);try{await Yl(),i("Installation complete, restart required."),await Fi()}catch(d){i(d)}finally{n(1,a=!1)}}return t.$$set=d=>{"onMessage"in d&&n(5,i=d.onMessage)},[l,a,f,c,p,i]}class ys extends Se{constructor(e){super(),Ce(this,e,gs,bs,ke,{onMessage:5})}}function Ql(t){return M(this,void 0,void 0,function(){return T(this,function(e){return[2,P({__tauriModule:"Clipboard",message:{cmd:"writeText",data:t}})]})})}function Zl(){return M(this,void 0,void 0,function(){return T(this,function(t){return[2,P({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})]})})}Object.freeze({__proto__:null,writeText:Ql,readText:Zl});function ws(t){let e,n,i,o,l,a,f,c;return{c(){e=s("div"),n=s("input"),i=v(),o=s("button"),o.textContent="Write",l=v(),a=s("button"),a.textContent="Read",u(n,"class","grow input"),u(n,"placeholder","Text to write to the clipboard"),u(o,"class","btn"),u(o,"type","button"),u(a,"class","btn"),u(a,"type","button"),u(e,"class","flex gap-1")},m(p,d){m(p,e,d),r(e,n),G(n,t[0]),r(e,i),r(e,o),r(e,l),r(e,a),f||(c=[O(n,"input",t[4]),O(o,"click",t[1]),O(a,"click",t[2])],f=!0)},p(p,[d]){d&1&&n.value!==p[0]&&G(n,p[0])},i:J,o:J,d(p){p&&h(e),f=!1,pe(c)}}}function ks(t,e,n){let{onMessage:i}=e,o="clipboard message";function l(){Ql(o).then(()=>{i("Wrote to the clipboard")}).catch(i)}function a(){Zl().then(c=>{i(`Clipboard contents: ${c}`)}).catch(i)}function f(){o=this.value,n(0,o)}return t.$$set=c=>{"onMessage"in c&&n(3,i=c.onMessage)},[o,l,a,i,f]}class Ms extends Se{constructor(e){super(),Ce(this,e,ks,ws,ke,{onMessage:3})}}function Ts(t){let e;return{c(){e=s("div"),e.innerHTML=`
Not available for Linux
+ `,u(e,"class","flex flex-col gap-2")},m(n,i){m(n,e,i)},p:J,i:J,o:J,d(n){n&&h(e)}}}function Cs(t,e,n){let{onMessage:i}=e;const o=window.constraints={audio:!0,video:!0};function l(f){const c=document.querySelector("video"),p=f.getVideoTracks();i("Got stream with constraints:",o),i(`Using video device: ${p[0].label}`),window.stream=f,c.srcObject=f}function a(f){if(f.name==="ConstraintNotSatisfiedError"){const c=o.video;i(`The resolution ${c.width.exact}x${c.height.exact} px is not supported by your device.`)}else f.name==="PermissionDeniedError"&&i("Permissions have not been granted to use your camera and microphone, you need to allow the page access to your devices in order for the demo to work.");i(`getUserMedia error: ${f.name}`,f)}return at(async()=>{try{const f=await navigator.mediaDevices.getUserMedia(o);l(f)}catch(f){a(f)}}),Di(()=>{window.stream.getTracks().forEach(function(f){f.stop()})}),t.$$set=f=>{"onMessage"in f&&n(0,i=f.onMessage)},[i]}class Ss extends Se{constructor(e){super(),Ce(this,e,Cs,Ts,ke,{onMessage:0})}}function ul(t,e,n){const i=t.slice();return i[32]=e[n],i}function al(t,e,n){const i=t.slice();return i[35]=e[n],i}function cl(t){let e,n,i,o,l,a,f,c,p,d,w,_,y,g,b;function L(S,z){return S[3]?Ls:zs}let W=L(t),U=W(t);function j(S,z){return S[2]?Ps:As}let q=j(t),A=q(t);return{c(){e=s("div"),n=s("span"),n.textContent="Tauri API Validation",i=v(),o=s("span"),l=s("span"),U.c(),f=v(),c=s("span"),c.innerHTML='
',p=v(),d=s("span"),A.c(),_=v(),y=s("span"),y.innerHTML='
',u(n,"class","lt-sm:pl-10 text-darkPrimaryText"),u(l,"title",a=t[3]?"Switch to Light mode":"Switch to Dark mode"),u(l,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),u(c,"title","Minimize"),u(c,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),u(d,"title",w=t[2]?"Restore":"Maximize"),u(d,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),u(y,"title","Close"),u(y,"class","hover:bg-red-700 dark:hover:bg-red-700 hover:text-darkPrimaryText active:bg-red-700/90 dark:active:bg-red-700/90 active:text-darkPrimaryText "),u(o,"class","h-100% children:h-100% children:w-12 children:inline-flex children:items-center children:justify-center"),u(e,"class","w-screen select-none h-8 pl-2 flex justify-between items-center absolute text-primaryText dark:text-darkPrimaryText"),u(e,"data-tauri-drag-region","")},m(S,z){m(S,e,z),r(e,n),r(e,i),r(e,o),r(o,l),U.m(l,null),r(o,f),r(o,c),r(o,p),r(o,d),A.m(d,null),r(o,_),r(o,y),g||(b=[O(l,"click",t[12]),O(c,"click",t[9]),O(d,"click",t[10]),O(y,"click",t[11])],g=!0)},p(S,z){W!==(W=L(S))&&(U.d(1),U=W(S),U&&(U.c(),U.m(l,null))),z[0]&8&&a!==(a=S[3]?"Switch to Light mode":"Switch to Dark mode")&&u(l,"title",a),q!==(q=j(S))&&(A.d(1),A=q(S),A&&(A.c(),A.m(d,null))),z[0]&4&&w!==(w=S[2]?"Restore":"Maximize")&&u(d,"title",w)},d(S){S&&h(e),U.d(),A.d(),g=!1,pe(b)}}}function zs(t){let e;return{c(){e=s("div"),u(e,"class","i-ph-moon")},m(n,i){m(n,e,i)},d(n){n&&h(e)}}}function Ls(t){let e;return{c(){e=s("div"),u(e,"class","i-ph-sun")},m(n,i){m(n,e,i)},d(n){n&&h(e)}}}function As(t){let e;return{c(){e=s("div"),u(e,"class","i-codicon-chrome-maximize")},m(n,i){m(n,e,i)},d(n){n&&h(e)}}}function Ps(t){let e;return{c(){e=s("div"),u(e,"class","i-codicon-chrome-restore")},m(n,i){m(n,e,i)},d(n){n&&h(e)}}}function Os(t){let e;return{c(){e=s("span"),u(e,"class","i-codicon-menu animate-duration-300ms animate-fade-in")},m(n,i){m(n,e,i)},d(n){n&&h(e)}}}function Es(t){let e;return{c(){e=s("span"),u(e,"class","i-codicon-close animate-duration-300ms animate-fade-in")},m(n,i){m(n,e,i)},d(n){n&&h(e)}}}function fl(t){let e,n,i,o,l,a,f,c,p;function d(y,g){return y[3]?Ds:Ws}let w=d(t),_=w(t);return{c(){e=s("a"),_.c(),n=v(),i=s("br"),o=v(),l=s("div"),a=v(),f=s("br"),u(e,"href","##"),u(e,"class","nv justify-between h-8"),u(l,"class","bg-white/5 h-2px")},m(y,g){m(y,e,g),_.m(e,null),m(y,n,g),m(y,i,g),m(y,o,g),m(y,l,g),m(y,a,g),m(y,f,g),c||(p=O(e,"click",t[12]),c=!0)},p(y,g){w!==(w=d(y))&&(_.d(1),_=w(y),_&&(_.c(),_.m(e,null)))},d(y){y&&h(e),_.d(),y&&h(n),y&&h(i),y&&h(o),y&&h(l),y&&h(a),y&&h(f),c=!1,p()}}}function Ws(t){let e,n;return{c(){e=E(`Switch to Dark mode + `),n=s("div"),u(n,"class","i-ph-moon")},m(i,o){m(i,e,o),m(i,n,o)},d(i){i&&h(e),i&&h(n)}}}function Ds(t){let e,n;return{c(){e=E(`Switch to Light mode + `),n=s("div"),u(n,"class","i-ph-sun")},m(i,o){m(i,e,o),m(i,n,o)},d(i){i&&h(e),i&&h(n)}}}function js(t){let e,n,i,o,l=t[35].label+"",a,f,c,p;function d(){return t[20](t[35])}return{c(){e=s("a"),n=s("div"),i=v(),o=s("p"),a=E(l),u(n,"class",t[35].icon+" mr-2"),u(e,"href","##"),u(e,"class",f="nv "+(t[1]===t[35]?"nv_selected":""))},m(w,_){m(w,e,_),r(e,n),r(e,i),r(e,o),r(o,a),c||(p=O(e,"click",d),c=!0)},p(w,_){t=w,_[0]&2&&f!==(f="nv "+(t[1]===t[35]?"nv_selected":""))&&u(e,"class",f)},d(w){w&&h(e),c=!1,p()}}}function dl(t){let e,n=t[35]&&js(t);return{c(){n&&n.c(),e=$n()},m(i,o){n&&n.m(i,o),m(i,e,o)},p(i,o){i[35]&&n.p(i,o)},d(i){n&&n.d(i),i&&h(e)}}}function pl(t){let e,n=t[32].html+"",i;return{c(){e=new or(!1),i=$n(),e.a=i},m(o,l){e.m(n,o,l),m(o,i,l)},p(o,l){l[0]&64&&n!==(n=o[32].html+"")&&e.p(n)},d(o){o&&h(i),o&&e.d()}}}function Rs(t){let e,n,i,o,l,a,f,c,p,d,w,_,y,g,b,L,W,U,j,q,A,S,z,D,C,N,B,Y=t[1].label+"",$,_e,te,oe,K,be,H,Q,le,ae,ee,ve,re,ge,ne,Me,Le,R,V=t[5]&&cl(t);function Re(F,ie){return F[0]?Es:Os}let Ae=Re(t),Te=Ae(t),ce=!t[5]&&fl(t),he=t[7],fe=[];for(let F=0;F`,w=v(),_=s("a"),_.innerHTML=`Github `,y=v(),g=s("a"),g.innerHTML=`Source - `,b=v(),L=s("br"),W=v(),U=s("div"),j=v(),q=s("br"),A=v(),S=s("div");for(let F=0;F',ge=v(),ne=s("div");for(let F=0;F{Gt(X,1)}),ti()}Pe?(K=new Pe(tt(F)),Kn(K.$$.fragment),Ee(K.$$.fragment,1),Vt(K,oe,null)):K=null}if(ie[0]&64){me=F[6];let X;for(X=0;X{await confirm("Are you sure?")||H.preventDefault()}),qe.onFileDropEvent(H=>{W(`File drop: ${JSON.stringify(H.payload)}`)});const o=navigator.userAgent.toLowerCase(),l=o.includes("android")||o.includes("iphone"),u=[{label:"Welcome",component:kr,icon:"i-ph-hand-waving"},{label:"Communication",component:Lr,icon:"i-codicon-radio-tower"},!l&&{label:"CLI",component:Cr,icon:"i-codicon-terminal"},!l&&{label:"Dialog",component:Nr,icon:"i-codicon-multiple-windows"},{label:"File system",component:Gr,icon:"i-codicon-files"},{label:"HTTP",component:es,icon:"i-ph-globe-hemisphere-west"},!l&&{label:"Notifications",component:os,icon:"i-codicon-bell-dot"},!l&&{label:"Window",component:ss,icon:"i-codicon-window"},!l&&{label:"Shortcuts",component:ds,icon:"i-codicon-record-keys"},{label:"Shell",component:ms,icon:"i-codicon-terminal-bash"},!l&&{label:"Updater",component:ws,icon:"i-codicon-cloud-download"},!l&&{label:"Clipboard",component:Ts,icon:"i-codicon-clippy"},{label:"WebRTC",component:zs,icon:"i-ph-broadcast"}];let f=u[0];function c(H){n(1,f=H)}let p;at(async()=>{const H=Nt();n(2,p=await H.isMaximized()),Xt("tauri://resize",async()=>{n(2,p=await H.isMaximized())})});function d(){Nt().minimize()}async function k(){const H=Nt();await H.isMaximized()?H.unmaximize():H.maximize()}let _=!1;async function y(){_||(_=await Ul("Are you sure that you want to close this window?",{title:"Tauri API"}),_&&Nt().close())}let g;at(()=>{n(3,g=localStorage&&localStorage.getItem("theme")=="dark"),ml(g)});function b(){n(3,g=!g),ml(g)}let L=yl([]);_l(t,L,H=>n(6,i=H));function W(H){L.update(x=>[{html:`
[${new Date().toLocaleTimeString()}]: `+(typeof H=="string"?H:JSON.stringify(H,null,1))+"
"},...x])}function U(H){L.update(x=>[{html:`
[${new Date().toLocaleTimeString()}]: `+H+"
"},...x])}function j(){L.update(()=>[])}let q,A,S;function z(H){S=H.clientY;const x=window.getComputedStyle(q);A=parseInt(x.height,10);const le=ee=>{const ve=ee.clientY-S,re=A-ve;n(4,q.style.height=`${re{document.removeEventListener("mouseup",ae),document.removeEventListener("mousemove",le)};document.addEventListener("mouseup",ae),document.addEventListener("mousemove",le)}let D;at(async()=>{n(5,D=await El()==="win32")});let C=!1,N,B,Y=!1,$=0,_e=0;const te=(H,x,le)=>Math.min(Math.max(x,H),le);at(()=>{n(18,N=document.querySelector("#sidebar")),B=document.querySelector("#sidebarToggle"),document.addEventListener("click",H=>{B.contains(H.target)?n(0,C=!C):C&&!N.contains(H.target)&&n(0,C=!1)}),document.addEventListener("touchstart",H=>{if(B.contains(H.target))return;const x=H.touches[0].clientX;(0{if(Y){const x=H.touches[0].clientX;_e=x;const le=(x-$)/10;N.style.setProperty("--translate-x",`-${te(0,C?0-le:18.75-le,18.75)}rem`)}}),document.addEventListener("touchend",()=>{if(Y){const H=(_e-$)/10;n(0,C=C?H>-(18.75/2):H>18.75/2)}Y=!1})});const oe=()=>Ri("https://tauri.app/"),K=H=>{c(H),n(0,C=!1)};function be(H){Yn[H?"unshift":"push"](()=>{q=H,n(4,q)})}return t.$$.update=()=>{if(t.$$.dirty[0]&1){const H=document.querySelector("#sidebar");H&&Fs(H,C)}},[C,f,p,g,q,D,i,u,c,d,k,y,b,L,W,U,j,z,N,oe,K,be]}class Us extends Se{constructor(e){super(),Ce(this,e,Is,Hs,ke,{},null,[-1,-1])}}new Us({target:document.querySelector("#app")}); + `,b=v(),L=s("br"),W=v(),U=s("div"),j=v(),q=s("br"),A=v(),S=s("div");for(let F=0;F',ge=v(),ne=s("div");for(let F=0;F{Gt(X,1)}),ti()}Pe?(K=new Pe(tt(F)),Kn(K.$$.fragment),Ee(K.$$.fragment,1),Vt(K,oe,null)):K=null}if(ie[0]&64){me=F[6];let X;for(X=0;X{await confirm("Are you sure?")||H.preventDefault()}),qe.onFileDropEvent(H=>{W(`File drop: ${JSON.stringify(H.payload)}`)});const o=navigator.userAgent.toLowerCase(),l=o.includes("android")||o.includes("iphone"),a=[{label:"Welcome",component:wr,icon:"i-ph-hand-waving"},{label:"Communication",component:zr,icon:"i-codicon-radio-tower"},!l&&{label:"CLI",component:Tr,icon:"i-codicon-terminal"},!l&&{label:"Dialog",component:Ur,icon:"i-codicon-multiple-windows"},{label:"File system",component:Vr,icon:"i-codicon-files"},{label:"HTTP",component:$r,icon:"i-ph-globe-hemisphere-west"},!l&&{label:"Notifications",component:is,icon:"i-codicon-bell-dot"},!l&&{label:"Window",component:rs,icon:"i-codicon-window"},!l&&{label:"Shortcuts",component:fs,icon:"i-codicon-record-keys"},{label:"Shell",component:hs,icon:"i-codicon-terminal-bash"},!l&&{label:"Updater",component:ys,icon:"i-codicon-cloud-download"},!l&&{label:"Clipboard",component:Ms,icon:"i-codicon-clippy"},{label:"WebRTC",component:Ss,icon:"i-ph-broadcast"}];let f=a[0];function c(H){n(1,f=H)}let p;at(async()=>{const H=Nt();n(2,p=await H.isMaximized()),Xt("tauri://resize",async()=>{n(2,p=await H.isMaximized())})});function d(){Nt().minimize()}async function w(){const H=Nt();await H.isMaximized()?H.unmaximize():H.maximize()}let _=!1;async function y(){_||(_=await Ul("Are you sure that you want to close this window?",{title:"Tauri API"}),_&&Nt().close())}let g;at(()=>{n(3,g=localStorage&&localStorage.getItem("theme")=="dark"),ml(g)});function b(){n(3,g=!g),ml(g)}let L=yl([]);_l(t,L,H=>n(6,i=H));function W(H){L.update(Q=>[{html:`
[${new Date().toLocaleTimeString()}]: `+(typeof H=="string"?H:JSON.stringify(H,null,1))+"
"},...Q])}function U(H){L.update(Q=>[{html:`
[${new Date().toLocaleTimeString()}]: `+H+"
"},...Q])}function j(){L.update(()=>[])}let q,A,S;function z(H){S=H.clientY;const Q=window.getComputedStyle(q);A=parseInt(Q.height,10);const le=ee=>{const ve=ee.clientY-S,re=A-ve;n(4,q.style.height=`${re{document.removeEventListener("mouseup",ae),document.removeEventListener("mousemove",le)};document.addEventListener("mouseup",ae),document.addEventListener("mousemove",le)}let D;at(async()=>{n(5,D=await El()==="win32")});let C=!1,N,B,Y=!1,$=0,_e=0;const te=(H,Q,le)=>Math.min(Math.max(Q,H),le);at(()=>{n(18,N=document.querySelector("#sidebar")),B=document.querySelector("#sidebarToggle"),document.addEventListener("click",H=>{B.contains(H.target)?n(0,C=!C):C&&!N.contains(H.target)&&n(0,C=!1)}),document.addEventListener("touchstart",H=>{if(B.contains(H.target))return;const Q=H.touches[0].clientX;(0{if(Y){const Q=H.touches[0].clientX;_e=Q;const le=(Q-$)/10;N.style.setProperty("--translate-x",`-${te(0,C?0-le:18.75-le,18.75)}rem`)}}),document.addEventListener("touchend",()=>{if(Y){const H=(_e-$)/10;n(0,C=C?H>-(18.75/2):H>18.75/2)}Y=!1})});const oe=()=>Ri("https://tauri.app/"),K=H=>{c(H),n(0,C=!1)};function be(H){Yn[H?"unshift":"push"](()=>{q=H,n(4,q)})}return t.$$.update=()=>{if(t.$$.dirty[0]&1){const H=document.querySelector("#sidebar");H&&Hs(H,C)}},[C,f,p,g,q,D,i,a,c,d,w,y,b,L,W,U,j,z,N,oe,K,be]}class Is extends Se{constructor(e){super(),Ce(this,e,Fs,Rs,ke,{},null,[-1,-1])}}new Is({target:document.querySelector("#app")}); diff --git a/examples/api/package.json b/examples/api/package.json index 9e89c09528d2..29cff8b61354 100644 --- a/examples/api/package.json +++ b/examples/api/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "type": "module", "scripts": { - "dev": "vite --clearScreen false --port 5000", + "dev": "vite --clearScreen false", "build": "vite build", "serve": "vite preview", "tauri": "node ../../tooling/cli/node/tauri.js" @@ -15,9 +15,10 @@ "devDependencies": { "@iconify-json/codicon": "^1.1.10", "@iconify-json/ph": "^1.1.1", - "@sveltejs/vite-plugin-svelte": "^1.0.0-next.49", + "@sveltejs/vite-plugin-svelte": "^1.0.1", + "internal-ip": "^7.0.0", "svelte": "^3.49.0", "unocss": "^0.39.3", - "vite": "^2.9.12" + "vite": "^3.0.9" } } diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index 6f0b89c6ad56..e868532a72aa 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -112,9 +112,7 @@ version = "0.1.0" dependencies = [ "android_logger", "env_logger 0.9.0", - "jni", "log", - "mobile-entry-point", "paste", "serde", "serde_json", @@ -1659,6 +1657,18 @@ dependencies = [ "safemem", ] +[[package]] +name = "local-ip-address" +version = "0.4.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74d6f43d42d775afa8073bfa6aba569b340a3635efa8c9f7702c9c6ed209692f" +dependencies = [ + "libc", + "neli", + "thiserror", + "windows-sys", +] + [[package]] name = "lock_api" version = "0.4.7" @@ -1808,17 +1818,6 @@ dependencies = [ "windows-sys", ] -[[package]] -name = "mobile-entry-point" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81bef5a90018326583471cccca10424d7b3e770397b02f03276543cbb9b6a1a6" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "multipart" version = "0.18.0" @@ -1878,6 +1877,16 @@ dependencies = [ "jni-sys", ] +[[package]] +name = "neli" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9053554eb5dcb7e10d9cdab1206965bde870eed5d0d341532ca035e3ba221508" +dependencies = [ + "byteorder", + "libc", +] + [[package]] name = "new_debug_unreachable" version = "1.0.4" @@ -3243,6 +3252,7 @@ dependencies = [ "brotli", "ico", "json-patch", + "local-ip-address", "plist", "png 0.17.5", "proc-macro2", @@ -3255,6 +3265,7 @@ dependencies = [ "tauri-utils", "thiserror", "time", + "url", "uuid 1.1.2", "walkdir", ] diff --git a/examples/api/src-tauri/Cargo.toml b/examples/api/src-tauri/Cargo.toml index c4d4d321aef8..cbcd8c1aafc7 100644 --- a/examples/api/src-tauri/Cargo.toml +++ b/examples/api/src-tauri/Cargo.toml @@ -45,11 +45,9 @@ tauri-runtime-wry = { path = "../../../core/tauri-runtime-wry/" } [target.'cfg(target_os = "android")'.dependencies] android_logger = "0.9.0" -jni = "0.19.0" paste = "1.0" [target.'cfg(target_os = "ios")'.dependencies] -mobile-entry-point = "0.1.0" env_logger = "0.9.0" [features] diff --git a/examples/api/src-tauri/tauri.conf.json b/examples/api/src-tauri/tauri.conf.json index 3f3dd772e28e..6ad3567bc2fb 100644 --- a/examples/api/src-tauri/tauri.conf.json +++ b/examples/api/src-tauri/tauri.conf.json @@ -2,8 +2,8 @@ "$schema": "../../../tooling/cli/schema.json", "build": { "distDir": "../dist", - "devPath": "http://localhost:5000", - "beforeDevCommand": "yarn dev", + "devPath": "http://localhost:5173", + "beforeDevCommand": "yarn dev --host", "beforeBuildCommand": "yarn build" }, "package": { diff --git a/examples/api/vite.config.js b/examples/api/vite.config.js index 10825d144ede..9157d89bbd67 100644 --- a/examples/api/vite.config.js +++ b/examples/api/vite.config.js @@ -1,22 +1,30 @@ import { defineConfig } from 'vite' import Unocss from 'unocss/vite' import { svelte } from '@sveltejs/vite-plugin-svelte' +import { internalIpV4 } from 'internal-ip' // https://vitejs.dev/config/ -export default defineConfig({ - plugins: [Unocss(), svelte()], - build: { - rollupOptions: { - output: { - entryFileNames: `assets/[name].js`, - chunkFileNames: `assets/[name].js`, - assetFileNames: `assets/[name].[ext]` +export default defineConfig(async ({ command, mode }) => { + const host = await internalIpV4() + return { + plugins: [Unocss(), svelte()], + build: { + rollupOptions: { + output: { + entryFileNames: `assets/[name].js`, + chunkFileNames: `assets/[name].js`, + assetFileNames: `assets/[name].[ext]` + } + } + }, + server: { + hmr: { + host, + port: 5183 + }, + fs: { + allow: ['.', '../../tooling/api/dist'] } - } - }, - server: { - fs: { - allow: ['.', '../../tooling/api/dist'] } } }) diff --git a/examples/api/yarn.lock b/examples/api/yarn.lock index fa6f5c15193b..b9cd0c3c268d 100644 --- a/examples/api/yarn.lock +++ b/examples/api/yarn.lock @@ -15,6 +15,11 @@ resolved "https://registry.yarnpkg.com/@antfu/utils/-/utils-0.5.2.tgz#8c2d931ff927be0ebe740169874a3d4004ab414b" integrity sha512-CQkeV+oJxUazwjlHD0/3ZD08QWKuGQkhnrKo3e6ly5pd48VUpXbb77q0xMU4+vc2CkJnDS02Eq/M9ugyX20XZA== +"@esbuild/linux-loong64@0.14.54": + version "0.14.54" + resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.14.54.tgz#de2a4be678bd4d0d1ffbb86e6de779cde5999028" + integrity sha512-bZBrLAIX1kpWelV0XemxBZllyRmM6vgFQQG2GdNb+r3Fkp0FOh1NJSvekXDs7jq70k4euu1cryLMfU+mTXlEpw== + "@iconify-json/codicon@^1.1.10": version "1.1.10" resolved "https://registry.yarnpkg.com/@iconify-json/codicon/-/codicon-1.1.10.tgz#22fee909be51afebfbcc6cd57209064b5363f202" @@ -80,15 +85,15 @@ estree-walker "^2.0.1" picomatch "^2.2.2" -"@sveltejs/vite-plugin-svelte@^1.0.0-next.49": - version "1.0.0-next.49" - resolved "https://registry.yarnpkg.com/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-1.0.0-next.49.tgz#44cc00a19c6c23002516b66c5ab90ee66720df57" - integrity sha512-AKh0Ka8EDgidnxWUs8Hh2iZLZovkETkefO99XxZ4sW4WGJ7VFeBx5kH/NIIGlaNHLcrIvK3CK0HkZwC3Cici0A== +"@sveltejs/vite-plugin-svelte@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-1.0.1.tgz#7f468f03c933fcdfc60d4773671c73f33b9ef4d6" + integrity sha512-PorCgUounn0VXcpeJu+hOweZODKmGuLHsLomwqSj+p26IwjjGffmYQfVHtiTWq+NqaUuuHWWG7vPge6UFw4Aeg== dependencies: "@rollup/pluginutils" "^4.2.1" debug "^4.3.4" deepmerge "^4.2.2" - kleur "^4.1.4" + kleur "^4.1.5" magic-string "^0.26.2" svelte-hmr "^0.14.12" @@ -323,6 +328,13 @@ deepmerge@^4.2.2: resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.2.2.tgz#44d2ea3679b8f4d4ffba33f03d865fc1e7bf4955" integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg== +default-gateway@^6.0.3: + version "6.0.3" + resolved "https://registry.yarnpkg.com/default-gateway/-/default-gateway-6.0.3.tgz#819494c888053bdb743edbf343d6cdf7f2943a71" + integrity sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg== + dependencies: + execa "^5.0.0" + defu@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/defu/-/defu-6.0.0.tgz#b397a6709a2f3202747a3d9daf9446e41ad0c5fc" @@ -338,138 +350,139 @@ duplexer@^0.1.2: resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.2.tgz#3abe43aef3835f8ae077d136ddce0f276b0400e6" integrity sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg== -esbuild-android-64@0.14.47: - version "0.14.47" - resolved "https://registry.yarnpkg.com/esbuild-android-64/-/esbuild-android-64-0.14.47.tgz#ef95b42c67bcf4268c869153fa3ad1466c4cea6b" - integrity sha512-R13Bd9+tqLVFndncMHssZrPWe6/0Kpv2/dt4aA69soX4PRxlzsVpCvoJeFE8sOEoeVEiBkI0myjlkDodXlHa0g== - -esbuild-android-arm64@0.14.47: - version "0.14.47" - resolved "https://registry.yarnpkg.com/esbuild-android-arm64/-/esbuild-android-arm64-0.14.47.tgz#4ebd7ce9fb250b4695faa3ee46fd3b0754ecd9e6" - integrity sha512-OkwOjj7ts4lBp/TL6hdd8HftIzOy/pdtbrNA4+0oVWgGG64HrdVzAF5gxtJufAPOsEjkyh1oIYvKAUinKKQRSQ== - -esbuild-darwin-64@0.14.47: - version "0.14.47" - resolved "https://registry.yarnpkg.com/esbuild-darwin-64/-/esbuild-darwin-64-0.14.47.tgz#e0da6c244f497192f951807f003f6a423ed23188" - integrity sha512-R6oaW0y5/u6Eccti/TS6c/2c1xYTb1izwK3gajJwi4vIfNs1s8B1dQzI1UiC9T61YovOQVuePDcfqHLT3mUZJA== - -esbuild-darwin-arm64@0.14.47: - version "0.14.47" - resolved "https://registry.yarnpkg.com/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.47.tgz#cd40fd49a672fca581ed202834239dfe540a9028" - integrity sha512-seCmearlQyvdvM/noz1L9+qblC5vcBrhUaOoLEDDoLInF/VQ9IkobGiLlyTPYP5dW1YD4LXhtBgOyevoIHGGnw== - -esbuild-freebsd-64@0.14.47: - version "0.14.47" - resolved "https://registry.yarnpkg.com/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.47.tgz#8da6a14c095b29c01fc8087a16cb7906debc2d67" - integrity sha512-ZH8K2Q8/Ux5kXXvQMDsJcxvkIwut69KVrYQhza/ptkW50DC089bCVrJZZ3sKzIoOx+YPTrmsZvqeZERjyYrlvQ== - -esbuild-freebsd-arm64@0.14.47: - version "0.14.47" - resolved "https://registry.yarnpkg.com/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.47.tgz#ad31f9c92817ff8f33fd253af7ab5122dc1b83f6" - integrity sha512-ZJMQAJQsIOhn3XTm7MPQfCzEu5b9STNC+s90zMWe2afy9EwnHV7Ov7ohEMv2lyWlc2pjqLW8QJnz2r0KZmeAEQ== - -esbuild-linux-32@0.14.47: - version "0.14.47" - resolved "https://registry.yarnpkg.com/esbuild-linux-32/-/esbuild-linux-32-0.14.47.tgz#de085e4db2e692ea30c71208ccc23fdcf5196c58" - integrity sha512-FxZOCKoEDPRYvq300lsWCTv1kcHgiiZfNrPtEhFAiqD7QZaXrad8LxyJ8fXGcWzIFzRiYZVtB3ttvITBvAFhKw== - -esbuild-linux-64@0.14.47: - version "0.14.47" - resolved "https://registry.yarnpkg.com/esbuild-linux-64/-/esbuild-linux-64-0.14.47.tgz#2a9321bbccb01f01b04cebfcfccbabeba3658ba1" - integrity sha512-nFNOk9vWVfvWYF9YNYksZptgQAdstnDCMtR6m42l5Wfugbzu11VpMCY9XrD4yFxvPo9zmzcoUL/88y0lfJZJJw== - -esbuild-linux-arm64@0.14.47: - version "0.14.47" - resolved "https://registry.yarnpkg.com/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.47.tgz#b9da7b6fc4b0ca7a13363a0c5b7bb927e4bc535a" - integrity sha512-ywfme6HVrhWcevzmsufjd4iT3PxTfCX9HOdxA7Hd+/ZM23Y9nXeb+vG6AyA6jgq/JovkcqRHcL9XwRNpWG6XRw== - -esbuild-linux-arm@0.14.47: - version "0.14.47" - resolved "https://registry.yarnpkg.com/esbuild-linux-arm/-/esbuild-linux-arm-0.14.47.tgz#56fec2a09b9561c337059d4af53625142aded853" - integrity sha512-ZGE1Bqg/gPRXrBpgpvH81tQHpiaGxa8c9Rx/XOylkIl2ypLuOcawXEAo8ls+5DFCcRGt/o3sV+PzpAFZobOsmA== - -esbuild-linux-mips64le@0.14.47: - version "0.14.47" - resolved "https://registry.yarnpkg.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.47.tgz#9db21561f8f22ed79ef2aedb7bbef082b46cf823" - integrity sha512-mg3D8YndZ1LvUiEdDYR3OsmeyAew4MA/dvaEJxvyygahWmpv1SlEEnhEZlhPokjsUMfRagzsEF/d/2XF+kTQGg== - -esbuild-linux-ppc64le@0.14.47: - version "0.14.47" - resolved "https://registry.yarnpkg.com/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.47.tgz#dc3a3da321222b11e96e50efafec9d2de408198b" - integrity sha512-WER+f3+szmnZiWoK6AsrTKGoJoErG2LlauSmk73LEZFQ/iWC+KhhDsOkn1xBUpzXWsxN9THmQFltLoaFEH8F8w== - -esbuild-linux-riscv64@0.14.47: - version "0.14.47" - resolved "https://registry.yarnpkg.com/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.47.tgz#9bd6dcd3dca6c0357084ecd06e1d2d4bf105335f" - integrity sha512-1fI6bP3A3rvI9BsaaXbMoaOjLE3lVkJtLxsgLHqlBhLlBVY7UqffWBvkrX/9zfPhhVMd9ZRFiaqXnB1T7BsL2g== - -esbuild-linux-s390x@0.14.47: - version "0.14.47" - resolved "https://registry.yarnpkg.com/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.47.tgz#a458af939b52f2cd32fc561410d441a51f69d41f" - integrity sha512-eZrWzy0xFAhki1CWRGnhsHVz7IlSKX6yT2tj2Eg8lhAwlRE5E96Hsb0M1mPSE1dHGpt1QVwwVivXIAacF/G6mw== - -esbuild-netbsd-64@0.14.47: - version "0.14.47" - resolved "https://registry.yarnpkg.com/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.47.tgz#6388e785d7e7e4420cb01348d7483ab511b16aa8" - integrity sha512-Qjdjr+KQQVH5Q2Q1r6HBYswFTToPpss3gqCiSw2Fpq/ua8+eXSQyAMG+UvULPqXceOwpnPo4smyZyHdlkcPppQ== - -esbuild-openbsd-64@0.14.47: - version "0.14.47" - resolved "https://registry.yarnpkg.com/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.47.tgz#309af806db561aa886c445344d1aacab850dbdc5" - integrity sha512-QpgN8ofL7B9z8g5zZqJE+eFvD1LehRlxr25PBkjyyasakm4599iroUpaj96rdqRlO2ShuyqwJdr+oNqWwTUmQw== - -esbuild-sunos-64@0.14.47: - version "0.14.47" - resolved "https://registry.yarnpkg.com/esbuild-sunos-64/-/esbuild-sunos-64-0.14.47.tgz#3f19612dcdb89ba6c65283a7ff6e16f8afbf8aaa" - integrity sha512-uOeSgLUwukLioAJOiGYm3kNl+1wJjgJA8R671GYgcPgCx7QR73zfvYqXFFcIO93/nBdIbt5hd8RItqbbf3HtAQ== - -esbuild-windows-32@0.14.47: - version "0.14.47" - resolved "https://registry.yarnpkg.com/esbuild-windows-32/-/esbuild-windows-32-0.14.47.tgz#a92d279c8458d5dc319abcfeb30aa49e8f2e6f7f" - integrity sha512-H0fWsLTp2WBfKLBgwYT4OTfFly4Im/8B5f3ojDv1Kx//kiubVY0IQunP2Koc/fr/0wI7hj3IiBDbSrmKlrNgLQ== - -esbuild-windows-64@0.14.47: - version "0.14.47" - resolved "https://registry.yarnpkg.com/esbuild-windows-64/-/esbuild-windows-64-0.14.47.tgz#2564c3fcf0c23d701edb71af8c52d3be4cec5f8a" - integrity sha512-/Pk5jIEH34T68r8PweKRi77W49KwanZ8X6lr3vDAtOlH5EumPE4pBHqkCUdELanvsT14yMXLQ/C/8XPi1pAtkQ== - -esbuild-windows-arm64@0.14.47: - version "0.14.47" - resolved "https://registry.yarnpkg.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.47.tgz#86d9db1a22d83360f726ac5fba41c2f625db6878" - integrity sha512-HFSW2lnp62fl86/qPQlqw6asIwCnEsEoNIL1h2uVMgakddf+vUuMcCbtUY1i8sst7KkgHrVKCJQB33YhhOweCQ== - -esbuild@^0.14.27: - version "0.14.47" - resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.14.47.tgz#0d6415f6bd8eb9e73a58f7f9ae04c5276cda0e4d" - integrity sha512-wI4ZiIfFxpkuxB8ju4MHrGwGLyp1+awEHAHVpx6w7a+1pmYIq8T9FGEVVwFo0iFierDoMj++Xq69GXWYn2EiwA== +esbuild-android-64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-android-64/-/esbuild-android-64-0.14.54.tgz#505f41832884313bbaffb27704b8bcaa2d8616be" + integrity sha512-Tz2++Aqqz0rJ7kYBfz+iqyE3QMycD4vk7LBRyWaAVFgFtQ/O8EJOnVmTOiDWYZ/uYzB4kvP+bqejYdVKzE5lAQ== + +esbuild-android-arm64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-android-arm64/-/esbuild-android-arm64-0.14.54.tgz#8ce69d7caba49646e009968fe5754a21a9871771" + integrity sha512-F9E+/QDi9sSkLaClO8SOV6etqPd+5DgJje1F9lOWoNncDdOBL2YF59IhsWATSt0TLZbYCf3pNlTHvVV5VfHdvg== + +esbuild-darwin-64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-darwin-64/-/esbuild-darwin-64-0.14.54.tgz#24ba67b9a8cb890a3c08d9018f887cc221cdda25" + integrity sha512-jtdKWV3nBviOd5v4hOpkVmpxsBy90CGzebpbO9beiqUYVMBtSc0AL9zGftFuBon7PNDcdvNCEuQqw2x0wP9yug== + +esbuild-darwin-arm64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.54.tgz#3f7cdb78888ee05e488d250a2bdaab1fa671bf73" + integrity sha512-OPafJHD2oUPyvJMrsCvDGkRrVCar5aVyHfWGQzY1dWnzErjrDuSETxwA2HSsyg2jORLY8yBfzc1MIpUkXlctmw== + +esbuild-freebsd-64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.54.tgz#09250f997a56ed4650f3e1979c905ffc40bbe94d" + integrity sha512-OKwd4gmwHqOTp4mOGZKe/XUlbDJ4Q9TjX0hMPIDBUWWu/kwhBAudJdBoxnjNf9ocIB6GN6CPowYpR/hRCbSYAg== + +esbuild-freebsd-arm64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.54.tgz#bafb46ed04fc5f97cbdb016d86947a79579f8e48" + integrity sha512-sFwueGr7OvIFiQT6WeG0jRLjkjdqWWSrfbVwZp8iMP+8UHEHRBvlaxL6IuKNDwAozNUmbb8nIMXa7oAOARGs1Q== + +esbuild-linux-32@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-linux-32/-/esbuild-linux-32-0.14.54.tgz#e2a8c4a8efdc355405325033fcebeb941f781fe5" + integrity sha512-1ZuY+JDI//WmklKlBgJnglpUL1owm2OX+8E1syCD6UAxcMM/XoWd76OHSjl/0MR0LisSAXDqgjT3uJqT67O3qw== + +esbuild-linux-64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-linux-64/-/esbuild-linux-64-0.14.54.tgz#de5fdba1c95666cf72369f52b40b03be71226652" + integrity sha512-EgjAgH5HwTbtNsTqQOXWApBaPVdDn7XcK+/PtJwZLT1UmpLoznPd8c5CxqsH2dQK3j05YsB3L17T8vE7cp4cCg== + +esbuild-linux-arm64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.54.tgz#dae4cd42ae9787468b6a5c158da4c84e83b0ce8b" + integrity sha512-WL71L+0Rwv+Gv/HTmxTEmpv0UgmxYa5ftZILVi2QmZBgX3q7+tDeOQNqGtdXSdsL8TQi1vIaVFHUPDe0O0kdig== + +esbuild-linux-arm@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-linux-arm/-/esbuild-linux-arm-0.14.54.tgz#a2c1dff6d0f21dbe8fc6998a122675533ddfcd59" + integrity sha512-qqz/SjemQhVMTnvcLGoLOdFpCYbz4v4fUo+TfsWG+1aOu70/80RV6bgNpR2JCrppV2moUQkww+6bWxXRL9YMGw== + +esbuild-linux-mips64le@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.54.tgz#d9918e9e4cb972f8d6dae8e8655bf9ee131eda34" + integrity sha512-qTHGQB8D1etd0u1+sB6p0ikLKRVuCWhYQhAHRPkO+OF3I/iSlTKNNS0Lh2Oc0g0UFGguaFZZiPJdJey3AGpAlw== + +esbuild-linux-ppc64le@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.54.tgz#3f9a0f6d41073fb1a640680845c7de52995f137e" + integrity sha512-j3OMlzHiqwZBDPRCDFKcx595XVfOfOnv68Ax3U4UKZ3MTYQB5Yz3X1mn5GnodEVYzhtZgxEBidLWeIs8FDSfrQ== + +esbuild-linux-riscv64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.54.tgz#618853c028178a61837bc799d2013d4695e451c8" + integrity sha512-y7Vt7Wl9dkOGZjxQZnDAqqn+XOqFD7IMWiewY5SPlNlzMX39ocPQlOaoxvT4FllA5viyV26/QzHtvTjVNOxHZg== + +esbuild-linux-s390x@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.54.tgz#d1885c4c5a76bbb5a0fe182e2c8c60eb9e29f2a6" + integrity sha512-zaHpW9dziAsi7lRcyV4r8dhfG1qBidQWUXweUjnw+lliChJqQr+6XD71K41oEIC3Mx1KStovEmlzm+MkGZHnHA== + +esbuild-netbsd-64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.54.tgz#69ae917a2ff241b7df1dbf22baf04bd330349e81" + integrity sha512-PR01lmIMnfJTgeU9VJTDY9ZerDWVFIUzAtJuDHwwceppW7cQWjBBqP48NdeRtoP04/AtO9a7w3viI+PIDr6d+w== + +esbuild-openbsd-64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.54.tgz#db4c8495287a350a6790de22edea247a57c5d47b" + integrity sha512-Qyk7ikT2o7Wu76UsvvDS5q0amJvmRzDyVlL0qf5VLsLchjCa1+IAvd8kTBgUxD7VBUUVgItLkk609ZHUc1oCaw== + +esbuild-sunos-64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-sunos-64/-/esbuild-sunos-64-0.14.54.tgz#54287ee3da73d3844b721c21bc80c1dc7e1bf7da" + integrity sha512-28GZ24KmMSeKi5ueWzMcco6EBHStL3B6ubM7M51RmPwXQGLe0teBGJocmWhgwccA1GeFXqxzILIxXpHbl9Q/Kw== + +esbuild-windows-32@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-windows-32/-/esbuild-windows-32-0.14.54.tgz#f8aaf9a5667630b40f0fb3aa37bf01bbd340ce31" + integrity sha512-T+rdZW19ql9MjS7pixmZYVObd9G7kcaZo+sETqNH4RCkuuYSuv9AGHUVnPoP9hhuE1WM1ZimHz1CIBHBboLU7w== + +esbuild-windows-64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-windows-64/-/esbuild-windows-64-0.14.54.tgz#bf54b51bd3e9b0f1886ffdb224a4176031ea0af4" + integrity sha512-AoHTRBUuYwXtZhjXZbA1pGfTo8cJo3vZIcWGLiUcTNgHpJJMC1rVA44ZereBHMJtotyN71S8Qw0npiCIkW96cQ== + +esbuild-windows-arm64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.54.tgz#937d15675a15e4b0e4fafdbaa3a01a776a2be982" + integrity sha512-M0kuUvXhot1zOISQGXwWn6YtS+Y/1RT9WrVIOywZnJHo3jCDyewAc79aKNQWFCQm+xNHVTq9h8dZKvygoXQQRg== + +esbuild@^0.14.47: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.14.54.tgz#8b44dcf2b0f1a66fc22459943dccf477535e9aa2" + integrity sha512-Cy9llcy8DvET5uznocPyqL3BFRrFXSVqbgpMJ9Wz8oVjZlh/zUSNbPRbov0VX7VxN2JH1Oa0uNxZ7eLRb62pJA== optionalDependencies: - esbuild-android-64 "0.14.47" - esbuild-android-arm64 "0.14.47" - esbuild-darwin-64 "0.14.47" - esbuild-darwin-arm64 "0.14.47" - esbuild-freebsd-64 "0.14.47" - esbuild-freebsd-arm64 "0.14.47" - esbuild-linux-32 "0.14.47" - esbuild-linux-64 "0.14.47" - esbuild-linux-arm "0.14.47" - esbuild-linux-arm64 "0.14.47" - esbuild-linux-mips64le "0.14.47" - esbuild-linux-ppc64le "0.14.47" - esbuild-linux-riscv64 "0.14.47" - esbuild-linux-s390x "0.14.47" - esbuild-netbsd-64 "0.14.47" - esbuild-openbsd-64 "0.14.47" - esbuild-sunos-64 "0.14.47" - esbuild-windows-32 "0.14.47" - esbuild-windows-64 "0.14.47" - esbuild-windows-arm64 "0.14.47" + "@esbuild/linux-loong64" "0.14.54" + esbuild-android-64 "0.14.54" + esbuild-android-arm64 "0.14.54" + esbuild-darwin-64 "0.14.54" + esbuild-darwin-arm64 "0.14.54" + esbuild-freebsd-64 "0.14.54" + esbuild-freebsd-arm64 "0.14.54" + esbuild-linux-32 "0.14.54" + esbuild-linux-64 "0.14.54" + esbuild-linux-arm "0.14.54" + esbuild-linux-arm64 "0.14.54" + esbuild-linux-mips64le "0.14.54" + esbuild-linux-ppc64le "0.14.54" + esbuild-linux-riscv64 "0.14.54" + esbuild-linux-s390x "0.14.54" + esbuild-netbsd-64 "0.14.54" + esbuild-openbsd-64 "0.14.54" + esbuild-sunos-64 "0.14.54" + esbuild-windows-32 "0.14.54" + esbuild-windows-64 "0.14.54" + esbuild-windows-arm64 "0.14.54" estree-walker@^2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac" integrity sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w== -execa@^5.1.1: +execa@^5.0.0, execa@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== @@ -558,6 +571,26 @@ human-signals@^2.1.0: resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== +internal-ip@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/internal-ip/-/internal-ip-7.0.0.tgz#5b1c6a9d7e188aa73a1b69717daf50c8d8ed774f" + integrity sha512-qE4TeD4brqC45Vq/+VASeMiS1KRyfBkR6HT2sh9pZVVCzSjPkaCEfKFU+dL0PRv7NHJtvoKN2r82G6wTfzorkw== + dependencies: + default-gateway "^6.0.3" + ipaddr.js "^2.0.1" + is-ip "^3.1.0" + p-event "^4.2.0" + +ip-regex@^4.0.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-4.3.0.tgz#687275ab0f57fa76978ff8f4dddc8a23d5990db5" + integrity sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q== + +ipaddr.js@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-2.0.1.tgz#eca256a7a877e917aeb368b0a7497ddf42ef81c0" + integrity sha512-1qTgH9NG+IIJ4yfKs2e6Pp1bZg8wbDbKHT21HrLIeYBTRLgMYKnMTPAuI3Lcs61nfx5h1xlXnbJtH1kX5/d/ng== + is-binary-path@~2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" @@ -584,6 +617,13 @@ is-glob@^4.0.1, is-glob@~4.0.1: dependencies: is-extglob "^2.1.1" +is-ip@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/is-ip/-/is-ip-3.1.0.tgz#2ae5ddfafaf05cb8008a62093cf29734f657c5d8" + integrity sha512-35vd5necO7IitFPjd/YBeqwWnyDWbuLH9ZXQdMfDA8TEo7pv5X8yfrvVO3xbJbLUlERCMvf6X0hTUamQxCYJ9Q== + dependencies: + ip-regex "^4.0.0" + is-number@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" @@ -604,10 +644,10 @@ jiti@^1.13.0: resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.14.0.tgz#5350fff532a4d891ca4bcd700c47c1f40e6ee326" integrity sha512-4IwstlaKQc9vCTC+qUXLM1hajy2ImiL9KnLvVYiaHOtS/v3wRjhLlGl121AmgDgx/O43uKmxownJghS5XMya2A== -kleur@^4.1.4: - version "4.1.4" - resolved "https://registry.yarnpkg.com/kleur/-/kleur-4.1.4.tgz#8c202987d7e577766d039a8cd461934c01cda04d" - integrity sha512-8QADVssbrFjivHWQU7KkMgptGTl6WAcSdlbBPY4uNF+mWr6DGcKrvY2w4FQJoXch7+fKMjj0dRrL75vk3k23OA== +kleur@^4.1.5: + version "4.1.5" + resolved "https://registry.yarnpkg.com/kleur/-/kleur-4.1.5.tgz#95106101795f7050c6c650f350c683febddb1780" + integrity sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ== kolorist@^1.5.1: version "1.5.1" @@ -710,6 +750,18 @@ onetime@^5.1.2: dependencies: mimic-fn "^2.1.0" +p-event@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/p-event/-/p-event-4.2.0.tgz#af4b049c8acd91ae81083ebd1e6f5cae2044c1b5" + integrity sha512-KXatOjCRXXkSePPb1Nbi0p0m+gQAwdlbhi4wQKJPI1HsMQS9g+Sqp2o+QHziPr7eYJyOZet836KoHEVM1mwOrQ== + dependencies: + p-timeout "^3.1.0" + +p-finally@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" + integrity sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow== + p-limit@^3.0.2: version "3.1.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" @@ -724,6 +776,13 @@ p-locate@^5.0.0: dependencies: p-limit "^3.0.2" +p-timeout@^3.1.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/p-timeout/-/p-timeout-3.2.0.tgz#c7e17abc971d2a7962ef83626b35d635acf23dfe" + integrity sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg== + dependencies: + p-finally "^1.0.0" + path-exists@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" @@ -764,10 +823,10 @@ picomatch@^2.2.2: resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.2.tgz#21f333e9b6b8eaff02468f5146ea406d345f4dad" integrity sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg== -postcss@^8.4.13: - version "8.4.14" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.14.tgz#ee9274d5622b4858c1007a74d76e42e56fd21caf" - integrity sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig== +postcss@^8.4.16: + version "8.4.16" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.16.tgz#33a1d675fac39941f5f445db0de4db2b6e01d43c" + integrity sha512-ipHE1XBvKzm5xI7hiHCZJCSugxvsdq2mPnsq5+UF+VHCjiBvtDrlxJfMBToWaP9D5XlgNmcFGqoHmUn0EYEaRQ== dependencies: nanoid "^3.3.4" picocolors "^1.0.0" @@ -785,7 +844,7 @@ readdirp@~3.6.0: dependencies: picomatch "^2.2.1" -resolve@^1.22.0: +resolve@^1.22.1: version "1.22.1" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177" integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw== @@ -799,10 +858,10 @@ reusify@^1.0.4: resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== -rollup@^2.59.0: - version "2.75.7" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.75.7.tgz#221ff11887ae271e37dcc649ba32ce1590aaa0b9" - integrity sha512-VSE1iy0eaAYNCxEXaleThdFXqZJ42qDBatAwrfnPlENEZ8erQ+0LYX4JXOLPceWfZpV1VtZwZ3dFCuOZiSyFtQ== +"rollup@>=2.75.6 <2.77.0 || ~2.77.0": + version "2.77.3" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.77.3.tgz#8f00418d3a2740036e15deb653bed1a90ee0cc12" + integrity sha512-/qxNTG7FbmefJWoeeYJFbHehJ2HNWnjkAFRKzWN/45eNBBF/r8lo992CwcJXEzyVxs5FmfId+vTSTQDb+bxA+g== optionalDependencies: fsevents "~2.3.2" @@ -926,15 +985,15 @@ unocss@^0.39.3: "@unocss/transformer-variant-group" "0.39.3" "@unocss/vite" "0.39.3" -vite@^2.9.12: - version "2.9.12" - resolved "https://registry.yarnpkg.com/vite/-/vite-2.9.12.tgz#b1d636b0a8ac636afe9d83e3792d4895509a941b" - integrity sha512-suxC36dQo9Rq1qMB2qiRorNJtJAdxguu5TMvBHOc/F370KvqAe9t48vYp+/TbPKRNrMh/J55tOUmkuIqstZaew== +vite@^3.0.9: + version "3.0.9" + resolved "https://registry.yarnpkg.com/vite/-/vite-3.0.9.tgz#45fac22c2a5290a970f23d66c1aef56a04be8a30" + integrity sha512-waYABTM+G6DBTCpYAxvevpG50UOlZuynR0ckTK5PawNVt7ebX6X7wNXHaGIO6wYYFXSM7/WcuFuO2QzhBB6aMw== dependencies: - esbuild "^0.14.27" - postcss "^8.4.13" - resolve "^1.22.0" - rollup "^2.59.0" + esbuild "^0.14.47" + postcss "^8.4.16" + resolve "^1.22.1" + rollup ">=2.75.6 <2.77.0 || ~2.77.0" optionalDependencies: fsevents "~2.3.2" diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 646219416486..0ca964b023a8 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -127,18 +127,6 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a32fd6af2b5827bce66c29053ba0e7c42b9dcab01835835058558c10851a46b" -[[package]] -name = "bicycle" -version = "0.1.0" -source = "git+https://github.com/BrainiumLLC/bicycle?rev=28080e0c6fa4067d9dd1b0f2b7322b6b32178e1f#28080e0c6fa4067d9dd1b0f2b7322b6b32178e1f" -dependencies = [ - "handlebars 3.5.5", - "log", - "serde", - "serde_json", - "thiserror", -] - [[package]] name = "bit_field" version = "0.10.1" @@ -199,16 +187,6 @@ dependencies = [ "byte-tools", ] -[[package]] -name = "bossy" -version = "0.2.1" -source = "git+https://github.com/lucasfernog/bossy?branch=fix/winapi-features#83ee04daddbc9b985b5f8dcf54d7229f0542d41d" -dependencies = [ - "libc", - "log", - "winapi 0.3.9", -] - [[package]] name = "bstr" version = "0.2.17" @@ -272,13 +250,10 @@ dependencies = [ [[package]] name = "cargo-mobile" version = "0.1.0" -source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#32de2201d4a607c2d4b910cc2a33d052fe852bd8" +source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#9733784cbb8af4fe0accc634463ff58424c88e62" dependencies = [ - "bicycle", - "bossy", "cocoa", "colored 1.9.3", - "const-utf16", "core-foundation 0.7.0", "deunicode", "dunce", @@ -286,20 +261,20 @@ dependencies = [ "english-numbers", "env_logger 0.7.1", "freedesktop_entry_parser", + "handlebars 3.5.5", "heck 0.4.0", - "hit", "home", "ignore", "indexmap", "java-properties", "lexical-core", + "libc", "log", "objc", "objc_id", "once-cell-regex", "openssl", "path_abs", - "reserved-names", "serde", "serde_json", "structopt", @@ -307,8 +282,8 @@ dependencies = [ "thiserror", "toml", "ureq", - "windows 0.26.0", - "yes-or-no", + "winapi 0.3.9", + "windows 0.39.0", ] [[package]] @@ -483,12 +458,6 @@ dependencies = [ "winapi 0.3.9", ] -[[package]] -name = "const-utf16" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90feefab165fe011746e3be2f0708b7b180fcbd9f5054ff81a454d7bd93d8285" - [[package]] name = "constant_time_eq" version = "0.1.5" @@ -1334,18 +1303,6 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" -[[package]] -name = "hit" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a8b280c3c6e2a2a51b3dde2f1071b28afff0ebce59e29443b1b391e7efe32fd" -dependencies = [ - "bossy", - "log", - "once-cell-regex", - "thiserror", -] - [[package]] name = "hmac" version = "0.12.1" @@ -2740,14 +2697,6 @@ dependencies = [ "winapi 0.3.9", ] -[[package]] -name = "reserved-names" -version = "0.1.0" -source = "git+https://github.com/BrainiumLLC/reserved-names#cc46545db485b13851e9136280b7d8e5a95a9d18" -dependencies = [ - "thiserror", -] - [[package]] name = "ring" version = "0.16.20" @@ -3350,12 +3299,12 @@ version = "1.0.5" dependencies = [ "anyhow", "base64", - "bossy", "cargo-mobile", "clap 3.2.7", "colored 2.0.0", "ctrlc", "dialoguer", + "dirs-next", "env_logger 0.9.0", "glob", "handlebars 4.3.1", @@ -4009,19 +3958,6 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" -[[package]] -name = "windows" -version = "0.26.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "347cdcaae1addebdff584aea1f9fbc0426dedbe1315f1dcf30c7a9876401cd25" -dependencies = [ - "windows_aarch64_msvc 0.26.0", - "windows_i686_gnu 0.26.0", - "windows_i686_msvc 0.26.0", - "windows_x86_64_gnu 0.26.0", - "windows_x86_64_msvc 0.26.0", -] - [[package]] name = "windows" version = "0.37.0" @@ -4036,6 +3972,19 @@ dependencies = [ "windows_x86_64_msvc 0.37.0", ] +[[package]] +name = "windows" +version = "0.39.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1c4bd0a50ac6020f65184721f758dba47bb9fbc2133df715ec74a237b26794a" +dependencies = [ + "windows_aarch64_msvc 0.39.0", + "windows_i686_gnu 0.39.0", + "windows_i686_msvc 0.39.0", + "windows_x86_64_gnu 0.39.0", + "windows_x86_64_msvc 0.39.0", +] + [[package]] name = "windows-implement" version = "0.37.0" @@ -4065,12 +4014,6 @@ version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3263d25f1170419995b78ff10c06b949e8a986c35c208dc24333c64753a87169" -[[package]] -name = "windows_aarch64_msvc" -version = "0.26.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7758986b022add546ae53ccad31f4852ce6bd2e2c2d3cc2b1d7d06dea0b90da" - [[package]] name = "windows_aarch64_msvc" version = "0.36.1" @@ -4084,10 +4027,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2623277cb2d1c216ba3b578c0f3cf9cdebeddb6e66b1b218bb33596ea7769c3a" [[package]] -name = "windows_i686_gnu" -version = "0.26.0" +name = "windows_aarch64_msvc" +version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29261214caab8e589f61031ba1ccd5c3c25e61db2118a3aec4459f58ff798726" +checksum = "ec7711666096bd4096ffa835238905bb33fb87267910e154b18b44eaabb340f2" [[package]] name = "windows_i686_gnu" @@ -4102,10 +4045,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3925fd0b0b804730d44d4b6278c50f9699703ec49bcd628020f46f4ba07d9e1" [[package]] -name = "windows_i686_msvc" -version = "0.26.0" +name = "windows_i686_gnu" +version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43984fb3b944743142112ae926e7adeccb60f35bb81d43114f4d0fe2871f60ba" +checksum = "763fc57100a5f7042e3057e7e8d9bdd7860d330070251a73d003563a3bb49e1b" [[package]] name = "windows_i686_msvc" @@ -4120,10 +4063,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ce907ac74fe331b524c1298683efbf598bb031bc84d5e274db2083696d07c57c" [[package]] -name = "windows_x86_64_gnu" -version = "0.26.0" +name = "windows_i686_msvc" +version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a80fc90e1ad19769e596a3f58d0776319059e21cac9069a5a2a791362ce7190" +checksum = "7bc7cbfe58828921e10a9f446fcaaf649204dcfe6c1ddd712c5eebae6bda1106" [[package]] name = "windows_x86_64_gnu" @@ -4138,10 +4081,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2babfba0828f2e6b32457d5341427dcbb577ceef556273229959ac23a10af33d" [[package]] -name = "windows_x86_64_msvc" -version = "0.26.0" +name = "windows_x86_64_gnu" +version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc24ddac19a0cf02ad2b32d8897f202fc1a13ef285e2d4774e6610783cc8398f" +checksum = "6868c165637d653ae1e8dc4d82c25d4f97dd6605eaa8d784b5c6e0ab2a252b65" [[package]] name = "windows_x86_64_msvc" @@ -4155,6 +4098,12 @@ version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f4dd6dc7df2d84cf7b33822ed5b86318fb1781948e9663bacd047fc9dd52259d" +[[package]] +name = "windows_x86_64_msvc" +version = "0.39.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e4d40883ae9cae962787ca76ba76390ffa29214667a111db9e0a1ad8377e809" + [[package]] name = "winreg" version = "0.10.1" @@ -4189,16 +4138,6 @@ version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d2d7d3948613f75c98fd9328cfdcc45acc4d360655289d0a7d4ec931392200a3" -[[package]] -name = "yes-or-no" -version = "0.1.0" -source = "git+https://github.com/BrainiumLLC/yes-or-no#71d932693601fcf93ff906b90ad61f85b52117c5" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "zeroize" version = "1.5.5" diff --git a/tooling/cli/Cargo.toml b/tooling/cli/Cargo.toml index 9c2b987ab36f..aec9d268ed9e 100644 --- a/tooling/cli/Cargo.toml +++ b/tooling/cli/Cargo.toml @@ -26,14 +26,11 @@ include = [ name = "cargo-tauri" path = "src/main.rs" -[patch.crates-io] -bossy = { git = "https://github.com/lucasfernog/bossy", branch = "fix/winapi-features" } - [dependencies] # cargo-mobile = { path = "../../../cargo-mobile/", default-features = false } cargo-mobile = { git = "https://github.com/tauri-apps/cargo-mobile", branch = "dev", default-features = false } -bossy = "0.2" textwrap = { version = "0.11.0", features = ["term_size"] } +dirs-next = "2.0" thiserror = "1" clap = { version = "3.2", features = [ "derive" ] } anyhow = "1.0" diff --git a/tooling/cli/schema.json b/tooling/cli/schema.json index 91ec0a3995fe..a8b1bd06bc2e 100644 --- a/tooling/cli/schema.json +++ b/tooling/cli/schema.json @@ -2433,7 +2433,7 @@ "type": "object", "properties": { "developmentTeam": { - "description": "The development team. This value is required for iOS development because code signing is enforced. The `APPLE_DEVELOPMENT_TEAM` environment variable can be set to overwrite it.", + "description": "The development team. This value is required for iOS development because code signing is enforced. The `TAURI_APPLE_DEVELOPMENT_TEAM` environment variable can be set to overwrite it.", "type": [ "string", "null" diff --git a/tooling/cli/src/build.rs b/tooling/cli/src/build.rs index 3320588531b8..b0f2ecd5f8af 100644 --- a/tooling/cli/src/build.rs +++ b/tooling/cli/src/build.rs @@ -83,6 +83,8 @@ pub fn command(mut options: Options) -> Result<()> { let config_guard = config.lock().unwrap(); let config_ = config_guard.as_ref().unwrap(); + let mut interface = AppInterface::new(config_)?; + let bundle_identifier_source = match config_.find_bundle_identifier_overwriter() { Some(source) if source == MERGE_CONFIG_EXTENSION_NAME => merge_config_path.unwrap_or(source), Some(source) => source, @@ -154,7 +156,6 @@ pub fn command(mut options: Options) -> Result<()> { list.extend(config_.build.features.clone().unwrap_or_default()); } - let mut interface = AppInterface::new(config_)?; let app_settings = interface.app_settings(); let interface_options = options.clone().into(); diff --git a/tooling/cli/src/dev.rs b/tooling/cli/src/dev.rs index 7db4a57a4ebe..53502e2d63fd 100644 --- a/tooling/cli/src/dev.rs +++ b/tooling/cli/src/dev.rs @@ -49,7 +49,7 @@ pub struct Options { pub features: Option>, /// Exit on panic #[clap(short, long)] - exit_on_panic: bool, + pub exit_on_panic: bool, /// JSON string or path to JSON file to merge with tauri.conf.json #[clap(short, long)] pub config: Option, @@ -74,6 +74,15 @@ pub fn command(options: Options) -> Result<()> { } fn command_internal(mut options: Options) -> Result<()> { + let mut interface = setup(&mut options)?; + let exit_on_panic = options.exit_on_panic; + let no_watch = options.no_watch; + interface.dev(options.into(), move |status, reason| { + on_dev_exit(status, reason, exit_on_panic, no_watch) + }) +} + +pub fn setup(options: &mut Options) -> Result { let tauri_path = tauri_dir(); options.config = if let Some(config) = &options.config { Some(if config.starts_with('{') { @@ -89,6 +98,8 @@ fn command_internal(mut options: Options) -> Result<()> { let config = get_config(options.config.as_deref())?; + let interface = AppInterface::new(config.lock().unwrap().as_ref().unwrap())?; + if let Some(before_dev) = config .lock() .unwrap() @@ -261,13 +272,7 @@ fn command_internal(mut options: Options) -> Result<()> { } } - let mut interface = AppInterface::new(config.lock().unwrap().as_ref().unwrap())?; - - let exit_on_panic = options.exit_on_panic; - let no_watch = options.no_watch; - interface.dev(options.into(), move |status, reason| { - on_dev_exit(status, reason, exit_on_panic, no_watch) - }) + Ok(interface) } fn on_dev_exit(status: ExitStatus, reason: ExitReason, exit_on_panic: bool, no_watch: bool) { diff --git a/tooling/cli/src/helpers/flock.rs b/tooling/cli/src/helpers/flock.rs new file mode 100644 index 000000000000..0ab6ae36a441 --- /dev/null +++ b/tooling/cli/src/helpers/flock.rs @@ -0,0 +1,363 @@ +// Copyright 2019-2021 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + +// taken from https://github.com/rust-lang/cargo/blob/b0c9586f4cbf426914df47c65de38ea323772c74/src/cargo/util/flock.rs +#![allow(dead_code)] + +use std::fs::{create_dir_all, File, OpenOptions}; +use std::io; +use std::io::{Read, Seek, SeekFrom, Write}; +use std::path::{Path, PathBuf}; + +use crate::Result; +use anyhow::Context as _; +use sys::*; + +#[derive(Debug)] +pub struct FileLock { + f: Option, + path: PathBuf, + state: State, +} + +#[derive(PartialEq, Debug)] +enum State { + Unlocked, + Shared, + Exclusive, +} + +impl FileLock { + /// Returns the underlying file handle of this lock. + pub fn file(&self) -> &File { + self.f.as_ref().unwrap() + } + + /// Returns the underlying path that this lock points to. + /// + /// Note that special care must be taken to ensure that the path is not + /// referenced outside the lifetime of this lock. + pub fn path(&self) -> &Path { + assert_ne!(self.state, State::Unlocked); + &self.path + } + + /// Returns the parent path containing this file + pub fn parent(&self) -> &Path { + assert_ne!(self.state, State::Unlocked); + self.path.parent().unwrap() + } +} + +impl Read for FileLock { + fn read(&mut self, buf: &mut [u8]) -> io::Result { + self.file().read(buf) + } +} + +impl Seek for FileLock { + fn seek(&mut self, to: SeekFrom) -> io::Result { + self.file().seek(to) + } +} + +impl Write for FileLock { + fn write(&mut self, buf: &[u8]) -> io::Result { + self.file().write(buf) + } + + fn flush(&mut self) -> io::Result<()> { + self.file().flush() + } +} + +impl Drop for FileLock { + fn drop(&mut self) { + if self.state != State::Unlocked { + if let Some(f) = self.f.take() { + let _ = unlock(&f); + } + } + } +} + +/// Opens exclusive access to a file, returning the locked version of a +/// file. +/// +/// This function will create a file at `path` if it doesn't already exist +/// (including intermediate directories), and then it will acquire an +/// exclusive lock on `path`. If the process must block waiting for the +/// lock, the `msg` is logged. +/// +/// The returned file can be accessed to look at the path and also has +/// read/write access to the underlying file. +pub fn open_rw

(path: P, msg: &str) -> Result +where + P: AsRef, +{ + open( + path.as_ref(), + OpenOptions::new().read(true).write(true).create(true), + State::Exclusive, + msg, + ) +} + +/// Opens shared access to a file, returning the locked version of a file. +/// +/// This function will fail if `path` doesn't already exist, but if it does +/// then it will acquire a shared lock on `path`. If the process must block +/// waiting for the lock, the `msg` is logged. +/// +/// The returned file can be accessed to look at the path and also has read +/// access to the underlying file. Any writes to the file will return an +/// error. +pub fn open_ro

(path: P, msg: &str) -> Result +where + P: AsRef, +{ + open( + path.as_ref(), + OpenOptions::new().read(true), + State::Shared, + msg, + ) +} + +fn open(path: &Path, opts: &OpenOptions, state: State, msg: &str) -> Result { + // If we want an exclusive lock then if we fail because of NotFound it's + // likely because an intermediate directory didn't exist, so try to + // create the directory and then continue. + let f = opts + .open(&path) + .or_else(|e| { + if e.kind() == io::ErrorKind::NotFound && state == State::Exclusive { + create_dir_all(path.parent().unwrap())?; + Ok(opts.open(&path)?) + } else { + Err(anyhow::Error::from(e)) + } + }) + .with_context(|| format!("failed to open: {}", path.display()))?; + match state { + State::Exclusive => { + acquire(msg, path, &|| try_lock_exclusive(&f), &|| { + lock_exclusive(&f) + })?; + } + State::Shared => { + acquire(msg, path, &|| try_lock_shared(&f), &|| lock_shared(&f))?; + } + State::Unlocked => {} + } + Ok(FileLock { + f: Some(f), + path: path.to_path_buf(), + state, + }) +} + +/// Acquires a lock on a file in a "nice" manner. +/// +/// Almost all long-running blocking actions in Cargo have a status message +/// associated with them as we're not sure how long they'll take. Whenever a +/// conflicted file lock happens, this is the case (we're not sure when the lock +/// will be released). +/// +/// This function will acquire the lock on a `path`, printing out a nice message +/// to the console if we have to wait for it. It will first attempt to use `try` +/// to acquire a lock on the crate, and in the case of contention it will emit a +/// status message based on `msg` to `config`'s shell, and then use `block` to +/// block waiting to acquire a lock. +/// +/// Returns an error if the lock could not be acquired or if any error other +/// than a contention error happens. +fn acquire( + msg: &str, + path: &Path, + lock_try: &dyn Fn() -> io::Result<()>, + lock_block: &dyn Fn() -> io::Result<()>, +) -> Result<()> { + // File locking on Unix is currently implemented via `flock`, which is known + // to be broken on NFS. We could in theory just ignore errors that happen on + // NFS, but apparently the failure mode [1] for `flock` on NFS is **blocking + // forever**, even if the "non-blocking" flag is passed! + // + // As a result, we just skip all file locks entirely on NFS mounts. That + // should avoid calling any `flock` functions at all, and it wouldn't work + // there anyway. + // + // [1]: https://github.com/rust-lang/cargo/issues/2615 + if is_on_nfs_mount(path) { + return Ok(()); + } + + match lock_try() { + Ok(()) => return Ok(()), + + // In addition to ignoring NFS which is commonly not working we also + // just ignore locking on filesystems that look like they don't + // implement file locking. + Err(e) if error_unsupported(&e) => return Ok(()), + + Err(e) => { + if !error_contended(&e) { + let e = anyhow::Error::from(e); + let cx = format!("failed to lock file: {}", path.display()); + return Err(e.context(cx)); + } + } + } + let msg = format!("waiting for file lock on {}", msg); + log::info!(action = "Blocking"; "{}", &msg); + + lock_block().with_context(|| format!("failed to lock file: {}", path.display()))?; + return Ok(()); + + #[cfg(all(target_os = "linux", not(target_env = "musl")))] + fn is_on_nfs_mount(path: &Path) -> bool { + use std::ffi::CString; + use std::mem; + use std::os::unix::prelude::*; + + let path = match CString::new(path.as_os_str().as_bytes()) { + Ok(path) => path, + Err(_) => return false, + }; + + unsafe { + let mut buf: libc::statfs = mem::zeroed(); + let r = libc::statfs(path.as_ptr(), &mut buf); + + r == 0 && buf.f_type as u32 == libc::NFS_SUPER_MAGIC as u32 + } + } + + #[cfg(any(not(target_os = "linux"), target_env = "musl"))] + fn is_on_nfs_mount(_path: &Path) -> bool { + false + } +} + +#[cfg(unix)] +mod sys { + use std::fs::File; + use std::io::{Error, Result}; + use std::os::unix::io::AsRawFd; + + pub(super) fn lock_shared(file: &File) -> Result<()> { + flock(file, libc::LOCK_SH) + } + + pub(super) fn lock_exclusive(file: &File) -> Result<()> { + flock(file, libc::LOCK_EX) + } + + pub(super) fn try_lock_shared(file: &File) -> Result<()> { + flock(file, libc::LOCK_SH | libc::LOCK_NB) + } + + pub(super) fn try_lock_exclusive(file: &File) -> Result<()> { + flock(file, libc::LOCK_EX | libc::LOCK_NB) + } + + pub(super) fn unlock(file: &File) -> Result<()> { + flock(file, libc::LOCK_UN) + } + + pub(super) fn error_contended(err: &Error) -> bool { + err.raw_os_error().map_or(false, |x| x == libc::EWOULDBLOCK) + } + + pub(super) fn error_unsupported(err: &Error) -> bool { + match err.raw_os_error() { + // Unfortunately, depending on the target, these may or may not be the same. + // For targets in which they are the same, the duplicate pattern causes a warning. + #[allow(unreachable_patterns)] + Some(libc::ENOTSUP | libc::EOPNOTSUPP) => true, + Some(libc::ENOSYS) => true, + _ => false, + } + } + + #[cfg(not(target_os = "solaris"))] + fn flock(file: &File, flag: libc::c_int) -> Result<()> { + let ret = unsafe { libc::flock(file.as_raw_fd(), flag) }; + if ret < 0 { + Err(Error::last_os_error()) + } else { + Ok(()) + } + } + + #[cfg(target_os = "solaris")] + fn flock(file: &File, flag: libc::c_int) -> Result<()> { + // Solaris lacks flock(), so simply succeed with a no-op + Ok(()) + } +} + +#[cfg(windows)] +mod sys { + use std::fs::File; + use std::io::{Error, Result}; + use std::mem; + use std::os::windows::io::AsRawHandle; + + use winapi::shared::minwindef::DWORD; + use winapi::shared::winerror::{ERROR_INVALID_FUNCTION, ERROR_LOCK_VIOLATION}; + use winapi::um::fileapi::{LockFileEx, UnlockFile}; + use winapi::um::minwinbase::{LOCKFILE_EXCLUSIVE_LOCK, LOCKFILE_FAIL_IMMEDIATELY}; + + pub(super) fn lock_shared(file: &File) -> Result<()> { + lock_file(file, 0) + } + + pub(super) fn lock_exclusive(file: &File) -> Result<()> { + lock_file(file, LOCKFILE_EXCLUSIVE_LOCK) + } + + pub(super) fn try_lock_shared(file: &File) -> Result<()> { + lock_file(file, LOCKFILE_FAIL_IMMEDIATELY) + } + + pub(super) fn try_lock_exclusive(file: &File) -> Result<()> { + lock_file(file, LOCKFILE_EXCLUSIVE_LOCK | LOCKFILE_FAIL_IMMEDIATELY) + } + + pub(super) fn error_contended(err: &Error) -> bool { + err + .raw_os_error() + .map_or(false, |x| x == ERROR_LOCK_VIOLATION as i32) + } + + pub(super) fn error_unsupported(err: &Error) -> bool { + err + .raw_os_error() + .map_or(false, |x| x == ERROR_INVALID_FUNCTION as i32) + } + + pub(super) fn unlock(file: &File) -> Result<()> { + unsafe { + let ret = UnlockFile(file.as_raw_handle(), 0, 0, !0, !0); + if ret == 0 { + Err(Error::last_os_error()) + } else { + Ok(()) + } + } + } + + fn lock_file(file: &File, flags: DWORD) -> Result<()> { + unsafe { + let mut overlapped = mem::zeroed(); + let ret = LockFileEx(file.as_raw_handle(), flags, 0, !0, !0, &mut overlapped); + if ret == 0 { + Err(Error::last_os_error()) + } else { + Ok(()) + } + } + } +} diff --git a/tooling/cli/src/helpers/mod.rs b/tooling/cli/src/helpers/mod.rs index 5284a6ec54af..a3cb56a01917 100644 --- a/tooling/cli/src/helpers/mod.rs +++ b/tooling/cli/src/helpers/mod.rs @@ -4,6 +4,7 @@ pub mod app_paths; pub mod config; +pub mod flock; pub mod framework; pub mod template; pub mod updater_signature; diff --git a/tooling/cli/src/interface/mod.rs b/tooling/cli/src/interface/mod.rs index 6133531befa4..e946f071d9b8 100644 --- a/tooling/cli/src/interface/mod.rs +++ b/tooling/cli/src/interface/mod.rs @@ -12,7 +12,12 @@ use std::{ use crate::helpers::config::Config; use tauri_bundler::bundle::{PackageType, Settings, SettingsBuilder}; -pub use rust::{Options, Rust as AppInterface}; +pub use rust::{MobileOptions, Options, Rust as AppInterface}; + +pub trait DevProcess { + fn kill(&mut self) -> std::io::Result<()>; + fn try_wait(&mut self) -> std::io::Result>; +} pub trait AppSettings { fn get_package_settings(&self) -> tauri_bundler::PackageSettings; @@ -83,4 +88,9 @@ pub trait Interface: Sized { options: Options, on_exit: F, ) -> crate::Result<()>; + fn mobile_dev crate::Result>>( + &mut self, + options: MobileOptions, + runner: R, + ) -> crate::Result<()>; } diff --git a/tooling/cli/src/interface/rust.rs b/tooling/cli/src/interface/rust.rs index 228c5bb5cbf3..4e787e05e0e4 100644 --- a/tooling/cli/src/interface/rust.rs +++ b/tooling/cli/src/interface/rust.rs @@ -3,6 +3,7 @@ // SPDX-License-Identifier: MIT use std::{ + collections::HashMap, ffi::OsStr, fs::{File, FileType}, io::{Read, Write}, @@ -10,7 +11,6 @@ use std::{ process::ExitStatus, str::FromStr, sync::{ - atomic::{AtomicBool, Ordering}, mpsc::{channel, sync_channel}, Arc, Mutex, }, @@ -24,13 +24,12 @@ use log::warn; use log::{debug, info}; use notify::{watcher, DebouncedEvent, RecursiveMode, Watcher}; use serde::Deserialize; -use shared_child::SharedChild; use tauri_bundler::{ AppCategory, BundleBinary, BundleSettings, DebianSettings, MacOsSettings, PackageSettings, UpdaterSettings, WindowsSettings, }; -use super::{AppSettings, ExitReason, Interface}; +use super::{AppSettings, DevProcess, ExitReason, Interface}; use crate::helpers::{ app_paths::tauri_dir, config::{reload as reload_config, wix_settings, Config}, @@ -40,7 +39,7 @@ mod desktop; mod manifest; use manifest::{rewrite_manifest, Manifest}; -#[derive(Debug, Clone)] +#[derive(Debug, Default, Clone)] pub struct Options { pub runner: Option, pub debug: bool, @@ -79,30 +78,13 @@ impl From for Options { } } -pub struct DevChild { - manually_killed_app: Arc, - build_child: Arc, - app_child: Arc>>>, -} - -impl DevChild { - fn kill(&self) -> std::io::Result<()> { - if let Some(child) = &*self.app_child.lock().unwrap() { - child.kill()?; - } else { - self.build_child.kill()?; - } - self.manually_killed_app.store(true, Ordering::Relaxed); - Ok(()) - } - - fn try_wait(&self) -> std::io::Result> { - if let Some(child) = &*self.app_child.lock().unwrap() { - child.try_wait() - } else { - self.build_child.try_wait() - } - } +#[derive(Debug, Clone)] +pub struct MobileOptions { + pub debug: bool, + pub features: Option>, + pub args: Vec, + pub config: Option, + pub no_watch: bool, } #[derive(Debug)] @@ -144,8 +126,10 @@ impl Interface for Rust { std::env::set_var("MACOSX_DEPLOYMENT_TARGET", minimum_system_version); } + let app_settings = RustAppSettings::new(config, manifest)?; + Ok(Self { - app_settings: RustAppSettings::new(config, manifest)?, + app_settings, config_features: config.build.features.clone().unwrap_or_default(), product_name: config.package.product_name.clone(), available_targets: None, @@ -173,28 +157,56 @@ impl Interface for Rust { fn dev( &mut self, - options: Options, + mut options: Options, on_exit: F, ) -> crate::Result<()> { let on_exit = Arc::new(on_exit); - let on_exit_ = on_exit.clone(); + let run_args = dev_options( + &mut options.args, + &mut options.features, + self.app_settings.manifest.features(), + ); if options.no_watch { let (tx, rx) = sync_channel(1); - self.run_dev(options, move |status, reason| { + self.run_dev(options, run_args, move |status, reason| { tx.send(()).unwrap(); - on_exit_(status, reason) + on_exit(status, reason) })?; rx.recv().unwrap(); Ok(()) } else { - let child = self.run_dev(options.clone(), move |status, reason| { - on_exit_(status, reason) - })?; + let config = options.config.clone(); + let run = Arc::new(|rust: &mut Rust| { + let on_exit = on_exit.clone(); + rust.run_dev(options.clone(), run_args.clone(), move |status, reason| { + on_exit(status, reason) + }) + }); + self.run_dev_watcher(config, run) + } + } + + fn mobile_dev crate::Result>>( + &mut self, + mut options: MobileOptions, + runner: R, + ) -> crate::Result<()> { + dev_options( + &mut options.args, + &mut options.features, + self.app_settings.manifest.features(), + ); - self.run_dev_watcher(child, options, on_exit) + if options.no_watch { + runner(options)?; + Ok(()) + } else { + let config = options.config.clone(); + let run = Arc::new(|_rust: &mut Rust| runner(options.clone())); + self.run_dev_watcher(config, run) } } } @@ -223,50 +235,54 @@ fn lookup(dir: &Path, mut f: F) { } } -impl Rust { - fn run_dev( - &mut self, - mut options: Options, - on_exit: F, - ) -> crate::Result { - if !options.args.contains(&"--no-default-features".into()) { - let manifest_features = self.app_settings.manifest.features(); - let enable_features: Vec = manifest_features - .get("default") - .cloned() - .unwrap_or_default() - .into_iter() - .filter(|feature| { - if let Some(manifest_feature) = manifest_features.get(feature) { - !manifest_feature.contains(&"tauri/custom-protocol".into()) - } else { - feature != "tauri/custom-protocol" - } - }) - .collect(); - options.args.push("--no-default-features".into()); - if !enable_features.is_empty() { - options - .features - .get_or_insert(Vec::new()) - .extend(enable_features); - } +fn dev_options( + args: &mut Vec, + features: &mut Option>, + manifest_features: HashMap>, +) -> Vec { + if !args.contains(&"--no-default-features".into()) { + let enable_features: Vec = manifest_features + .get("default") + .cloned() + .unwrap_or_default() + .into_iter() + .filter(|feature| { + if let Some(manifest_feature) = manifest_features.get(feature) { + !manifest_feature.contains(&"tauri/custom-protocol".into()) + } else { + feature != "tauri/custom-protocol" + } + }) + .collect(); + args.push("--no-default-features".into()); + if !enable_features.is_empty() { + features.get_or_insert(Vec::new()).extend(enable_features); } + } - let mut args = Vec::new(); - let mut run_args = Vec::new(); - let mut reached_run_args = false; - for arg in options.args.clone() { - if reached_run_args { - run_args.push(arg); - } else if arg == "--" { - reached_run_args = true; - } else { - args.push(arg); - } + let mut dev_args = Vec::new(); + let mut run_args = Vec::new(); + let mut reached_run_args = false; + for arg in args.clone() { + if reached_run_args { + run_args.push(arg); + } else if arg == "--" { + reached_run_args = true; + } else { + dev_args.push(arg); } - options.args = args; + } + *args = dev_args; + run_args +} +impl Rust { + fn run_dev( + &mut self, + options: Options, + run_args: Vec, + on_exit: F, + ) -> crate::Result> { desktop::run_dev( options, run_args, @@ -276,14 +292,16 @@ impl Rust { self.product_name.clone(), on_exit, ) + .map(|c| Box::new(c) as Box) } - fn run_dev_watcher( + fn run_dev_watcher crate::Result>>( &mut self, - child: DevChild, - options: Options, - on_exit: Arc, + config: Option, + run: Arc, ) -> crate::Result<()> { + let child = run(self)?; + let process = Arc::new(Mutex::new(child)); let (tx, rx) = channel(); let tauri_path = tauri_dir(); @@ -326,7 +344,7 @@ impl Rust { } loop { - let on_exit = on_exit.clone(); + let run = run.clone(); if let Ok(event) = rx.recv() { let event_path = match event { DebouncedEvent::Create(path) => Some(path), @@ -338,7 +356,7 @@ impl Rust { if let Some(event_path) = event_path { if event_path.file_name() == Some(OsStr::new("tauri.conf.json")) { - let config = reload_config(options.config.as_deref())?; + let config = reload_config(config.as_deref())?; self.app_settings.manifest = rewrite_manifest(config.lock().unwrap().as_ref().unwrap())?; } else { @@ -353,9 +371,7 @@ impl Rust { break; } } - *p = self.run_dev(options.clone(), move |status, reason| { - on_exit(status, reason) - })?; + *p = run(self)?; } } } diff --git a/tooling/cli/src/interface/rust/desktop.rs b/tooling/cli/src/interface/rust/desktop.rs index b93a3d826107..66a785a87470 100644 --- a/tooling/cli/src/interface/rust/desktop.rs +++ b/tooling/cli/src/interface/rust/desktop.rs @@ -1,7 +1,8 @@ -use super::{AppSettings, DevChild, ExitReason, Options, RustAppSettings, Target}; +use super::{AppSettings, DevProcess, ExitReason, Options, RustAppSettings, Target}; use crate::CommandExt; use anyhow::Context; +#[cfg(target_os = "linux")] use heck::ToKebabCase; use shared_child::SharedChild; use std::{ @@ -15,6 +16,34 @@ use std::{ }, }; +pub struct DevChild { + manually_killed_app: Arc, + build_child: Option>, + app_child: Arc>>>, +} + +impl DevProcess for DevChild { + fn kill(&mut self) -> std::io::Result<()> { + if let Some(child) = &*self.app_child.lock().unwrap() { + child.kill()?; + } else if let Some(child) = &self.build_child { + child.kill()?; + } + self.manually_killed_app.store(true, Ordering::Relaxed); + Ok(()) + } + + fn try_wait(&mut self) -> std::io::Result> { + if let Some(child) = &*self.app_child.lock().unwrap() { + child.try_wait() + } else if let Some(child) = &self.build_child { + child.try_wait() + } else { + unreachable!() + } + } +} + pub fn run_dev( options: Options, run_args: Vec, @@ -23,7 +52,7 @@ pub fn run_dev( app_settings: &RustAppSettings, product_name: Option, on_exit: F, -) -> crate::Result { +) -> crate::Result { let bin_path = app_settings.app_binary_path(&options)?; let manually_killed_app = Arc::new(AtomicBool::default()); @@ -73,7 +102,7 @@ pub fn run_dev( Ok(DevChild { manually_killed_app, - build_child, + build_child: Some(build_child), app_child, }) } diff --git a/tooling/cli/src/lib.rs b/tooling/cli/src/lib.rs index 5fc4b6433e86..307485324587 100644 --- a/tooling/cli/src/lib.rs +++ b/tooling/cli/src/lib.rs @@ -14,7 +14,7 @@ mod mobile; mod plugin; mod signer; -use clap::{FromArgMatches, IntoApp, Parser, Subcommand}; +use clap::{FromArgMatches, IntoApp, Parser, Subcommand, ValueEnum}; use env_logger::fmt::Color; use env_logger::Builder; use log::{debug, log_enabled, Level}; @@ -23,9 +23,33 @@ use std::io::{BufReader, Write}; use std::process::{exit, Command, ExitStatus, Output, Stdio}; use std::{ ffi::OsString, + fmt::Display, sync::{Arc, Mutex}, }; +#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, ValueEnum)] +pub enum RunMode { + Desktop, + #[cfg(target_os = "macos")] + Ios, + Android, +} + +impl Display for RunMode { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!( + f, + "{}", + match self { + Self::Desktop => "desktop", + #[cfg(target_os = "macos")] + Self::Ios => "iOS", + Self::Android => "android", + } + ) + } +} + #[derive(Deserialize)] pub struct VersionMetadata { tauri: String, diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index ba3f7f0304f6..290ce1fe2c81 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -6,10 +6,11 @@ use cargo_mobile::{ android::{ adb, config::{Config as AndroidConfig, Metadata as AndroidMetadata}, - device::Device, + device::{Device, RunError}, env::{Env, Error as EnvError}, target::{BuildError, Target}, }, + config::Config, device::PromptError, opts::{NoiseLevel, Profile}, os, @@ -19,12 +20,15 @@ use cargo_mobile::{ use clap::{Parser, Subcommand}; use super::{ - ensure_init, get_config, get_metadata, + ensure_init, get_config, init::{command as init_command, Options as InitOptions}, - Target as MobileTarget, + write_options, CliOptions, DevChild, Target as MobileTarget, +}; +use crate::{ + helpers::{config::get as get_tauri_config, flock}, + interface::{AppSettings, DevProcess, Interface, MobileOptions, Options as InterfaceOptions}, + Result, }; -use crate::helpers::config::get as get_tauri_config; -use crate::Result; pub(crate) mod project; @@ -32,16 +36,24 @@ pub(crate) mod project; enum Error { #[error(transparent)] EnvInitFailed(EnvError), + #[error(transparent)] + InitDotCargo(super::init::Error), #[error("invalid tauri configuration: {0}")] InvalidTauriConfig(String), #[error("{0}")] ProjectNotInitialized(String), #[error(transparent)] OpenFailed(os::OpenFileError), + #[error("{0}")] + DevFailed(String), #[error(transparent)] BuildFailed(BuildError), + #[error(transparent)] + RunFailed(RunError), #[error("{0}")] TargetInvalid(String), + #[error(transparent)] + FailedToPromptForDevice(PromptError), } #[derive(Parser)] @@ -68,9 +80,44 @@ pub struct BuildOptions { value_parser(clap::builder::PossibleValuesParser::new(["aarch64", "armv7", "i686", "x86_64"])) )] targets: Option>, - /// Builds with the debug flag + /// Builds with the release flag #[clap(short, long)] - debug: bool, + release: bool, +} + +#[derive(Debug, Clone, Parser)] +#[clap(about = "Android dev")] +pub struct DevOptions { + /// List of cargo features to activate + #[clap(short, long, multiple_occurrences(true), multiple_values(true))] + pub features: Option>, + /// Exit on panic + #[clap(short, long)] + exit_on_panic: bool, + /// JSON string or path to JSON file to merge with tauri.conf.json + #[clap(short, long)] + pub config: Option, + /// Disable the file watcher + #[clap(long)] + pub no_watch: bool, + /// Open Android Studio instead of trying to run on a connected device + #[clap(short, long)] + pub open: bool, +} + +impl From for crate::dev::Options { + fn from(options: DevOptions) -> Self { + Self { + runner: None, + target: None, + features: options.features, + exit_on_panic: options.exit_on_panic, + config: options.config, + release_mode: false, + args: Vec::new(), + no_watch: options.no_watch, + } + } } #[derive(Subcommand)] @@ -78,6 +125,7 @@ enum Commands { Init(InitOptions), /// Open project in Android Studio Open, + Dev(DevOptions), #[clap(hide(true))] Build(BuildOptions), } @@ -87,76 +135,182 @@ pub fn command(cli: Cli) -> Result<()> { Commands::Init(options) => init_command(options, MobileTarget::Android)?, Commands::Open => open()?, Commands::Build(options) => build(options)?, + Commands::Dev(options) => dev(options)?, } Ok(()) } -fn with_config( - f: impl FnOnce(&AndroidConfig, &AndroidMetadata) -> Result<(), Error>, -) -> Result<(), Error> { - let tauri_config = - get_tauri_config(None).map_err(|e| Error::InvalidTauriConfig(e.to_string()))?; - let tauri_config_guard = tauri_config.lock().unwrap(); - let tauri_config_ = tauri_config_guard.as_ref().unwrap(); - let config = get_config(tauri_config_); - let metadata = get_metadata(tauri_config_); - f(config.android(), metadata.android()) +fn with_config( + f: impl FnOnce(&Config, &AndroidConfig, &AndroidMetadata) -> Result, +) -> Result { + let (config, metadata) = { + let tauri_config = + get_tauri_config(None).map_err(|e| Error::InvalidTauriConfig(e.to_string()))?; + let tauri_config_guard = tauri_config.lock().unwrap(); + let tauri_config_ = tauri_config_guard.as_ref().unwrap(); + get_config(tauri_config_) + }; + f(&config, config.android(), metadata.android()) +} + +fn device_prompt<'a>(env: &'_ Env) -> Result, PromptError> { + let device_list = + adb::device_list(env).map_err(|cause| PromptError::detection_failed("Android", cause))?; + if !device_list.is_empty() { + let index = if device_list.len() > 1 { + prompt::list( + concat!("Detected ", "Android", " devices"), + device_list.iter(), + "device", + None, + "Device", + ) + .map_err(|cause| PromptError::prompt_failed("Android", cause))? + } else { + 0 + }; + let device = device_list.into_iter().nth(index).unwrap(); + println!( + "Detected connected device: {} with target {:?}", + device, + device.target().triple, + ); + Ok(device) + } else { + Err(PromptError::none_detected("Android")) + } +} + +fn dev(options: DevOptions) -> Result<()> { + with_config(|_, config, _metadata| { + run_dev(options, config).map_err(|e| Error::DevFailed(e.to_string())) + }) + .map_err(Into::into) +} + +fn run_dev(options: DevOptions, config: &AndroidConfig) -> Result<()> { + let mut dev_options = options.clone().into(); + let mut interface = crate::dev::setup(&mut dev_options)?; + + let bundle_identifier = { + let tauri_config = + get_tauri_config(None).map_err(|e| Error::InvalidTauriConfig(e.to_string()))?; + let tauri_config_guard = tauri_config.lock().unwrap(); + let tauri_config_ = tauri_config_guard.as_ref().unwrap(); + tauri_config_.tauri.bundle.identifier.clone() + }; + + let app_settings = interface.app_settings(); + let bin_path = app_settings.app_binary_path(&InterfaceOptions { + debug: !dev_options.release_mode, + ..Default::default() + })?; + let out_dir = bin_path.parent().unwrap(); + let _lock = flock::open_rw(&out_dir.join("lock").with_extension("android"), "Android")?; + + let open = options.open; + interface.mobile_dev( + MobileOptions { + debug: true, + features: options.features, + args: Vec::new(), + config: options.config, + no_watch: options.no_watch, + }, + |options| { + let cli_options = CliOptions { + features: options.features.clone(), + args: options.args.clone(), + vars: Default::default(), + }; + write_options(cli_options, &bundle_identifier, MobileTarget::Android)?; + + if open { + open_dev(config) + } else { + match run(options) { + Ok(c) => Ok(Box::new(c) as Box), + Err(Error::FailedToPromptForDevice(e)) => { + log::error!("{}", e); + open_dev(config) + } + Err(e) => Err(e.into()), + } + } + }, + ) +} + +fn open_dev(config: &AndroidConfig) -> ! { + log::info!("Opening Android Studio"); + if let Err(e) = os::open_file_with("Android Studio", config.project_dir()) { + log::error!("{}", e); + } + loop { + std::thread::sleep(std::time::Duration::from_secs(24 * 60 * 60)); + } } fn open() -> Result<()> { - with_config(|config, _metadata| { + 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) - })?; - Ok(()) + }) + .map_err(Into::into) } -fn build(options: BuildOptions) -> Result<()> { +fn run(options: MobileOptions) -> Result { let profile = if options.debug { Profile::Debug } else { Profile::Release }; - fn device_prompt<'a>(env: &'_ Env) -> Result, PromptError> { - let device_list = - adb::device_list(env).map_err(|cause| PromptError::detection_failed("Android", cause))?; - if !device_list.is_empty() { - let index = if device_list.len() > 1 { - prompt::list( - concat!("Detected ", "Android", " devices"), - device_list.iter(), - "device", - None, - "Device", - ) - .map_err(|cause| PromptError::prompt_failed("Android", cause))? - } else { - 0 - }; - let device = device_list.into_iter().nth(index).unwrap(); - println!( - "Detected connected device: {} with target {:?}", - device, - device.target().triple, - ); - Ok(device) - } else { - Err(PromptError::none_detected("Android")) - } - } + with_config(|root_conf, config, metadata| { + let build_app_bundle = metadata.asset_packs().is_some(); + + ensure_init(config.project_dir(), MobileTarget::Android) + .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; + + let env = Env::new().map_err(Error::EnvInitFailed)?; + super::init::init_dot_cargo(root_conf, Some(&env)).map_err(Error::InitDotCargo)?; + + device_prompt(&env) + .map_err(Error::FailedToPromptForDevice)? + .run( + config, + &env, + NoiseLevel::Polite, + profile, + None, + build_app_bundle, + false, + ".MainActivity".into(), + ) + .map_err(Error::RunFailed) + }) + .map(|c| DevChild(Some(c))) +} + +fn build(options: BuildOptions) -> Result<()> { + let profile = if options.release { + Profile::Release + } else { + Profile::Debug + }; fn detect_target_ok<'a>(env: &Env) -> Option<&'a Target<'a>> { device_prompt(env).map(|device| device.target()).ok() } - with_config(|config, metadata| { + with_config(|root_conf, config, metadata| { ensure_init(config.project_dir(), MobileTarget::Android) .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; let env = Env::new().map_err(Error::EnvInitFailed)?; + super::init::init_dot_cargo(root_conf, Some(&env)).map_err(Error::InitDotCargo)?; call_for_targets_with_fallback( options.targets.unwrap_or_default().iter(), @@ -164,18 +318,11 @@ fn build(options: BuildOptions) -> Result<()> { &env, |target: &Target| { target - .build( - config, - metadata, - &env, - NoiseLevel::Polite, - true.into(), - profile, - ) + .build(config, metadata, &env, NoiseLevel::Polite, true, profile) .map_err(Error::BuildFailed) }, ) .map_err(|e| Error::TargetInvalid(e.to_string()))? - })?; - Ok(()) + }) + .map_err(Into::into) } diff --git a/tooling/cli/src/mobile/android/project.rs b/tooling/cli/src/mobile/android/project.rs index 0d4c504f72ba..c40c54a84bcc 100644 --- a/tooling/cli/src/mobile/android/project.rs +++ b/tooling/cli/src/mobile/android/project.rs @@ -6,11 +6,9 @@ use crate::helpers::template; use cargo_mobile::{ android::{ config::{Config, Metadata}, - env::Env, - ndk, target::Target, }, - dot_cargo, os, + bossy, os, target::TargetTrait as _, util::{ self, @@ -42,8 +40,6 @@ pub enum Error { }, #[error("failed to symlink asset directory")] AssetDirSymlinkFailed, - #[error(transparent)] - DotCargoGenFailed(ndk::MissingToolError), #[error("failed to copy {src} to {dest}: {cause}")] FileCopyFailed { src: PathBuf, @@ -57,10 +53,8 @@ pub enum Error { pub fn gen( config: &Config, metadata: &Metadata, - env: &Env, (handlebars, mut map): (Handlebars, template::JsonMap), wrapper: &TextWrapper, - dot_cargo: &mut dot_cargo::DotCargo, ) -> Result<(), Error> { println!("Installing Android toolchains..."); Target::install_all().map_err(Error::RustupFailed)?; @@ -138,7 +132,15 @@ pub fn gen( created_dirs.push(parent); } - fs::File::create(path) + let mut options = fs::OpenOptions::new(); + + #[cfg(unix)] + if path.file_name().unwrap() == OsStr::new("gradlew") { + use std::os::unix::fs::OpenOptionsExt; + options.mode(0o755); + } + + options.create_new(true).write(true).open(path) }, ) .map_err(|e| Error::TemplateProcessingFailed(e.to_string()))?; @@ -173,16 +175,5 @@ pub fn gen( os::ln::force_symlink_relative(config.app().asset_dir(), dest, ln::TargetStyle::Directory) .map_err(|_| Error::AssetDirSymlinkFailed)?; - { - for target in Target::all().values() { - dot_cargo.insert_target( - target.triple.to_owned(), - target - .generate_cargo_config(config, env) - .map_err(Error::DotCargoGenFailed)?, - ); - } - } - Ok(()) } diff --git a/tooling/cli/src/mobile/init.rs b/tooling/cli/src/mobile/init.rs index 54bb1ff01173..34a0d184717c 100644 --- a/tooling/cli/src/mobile/init.rs +++ b/tooling/cli/src/mobile/init.rs @@ -2,14 +2,16 @@ // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT -use super::{get_config, get_metadata, Target}; -use crate::helpers::{app_paths::tauri_dir, config::get as get_tauri_config, template::JsonMap}; +use super::{get_config, Target}; +use crate::helpers::{config::get as get_tauri_config, template::JsonMap}; use crate::Result; use cargo_mobile::{ - android, + android::{self, env::Env as AndroidEnv, ndk, target::Target as AndroidTarget}, + bossy, config::Config, - dot_cargo, opts, + dot_cargo, os::code_command, + target::TargetTrait as _, util::{ self, cli::{Report, TextWrapper}, @@ -18,12 +20,7 @@ use cargo_mobile::{ use clap::Parser; use handlebars::{Context, Handlebars, Helper, HelperResult, Output, RenderContext, RenderError}; -use std::{ - fs, io, - path::{Path, PathBuf}, -}; - -use opts::{NonInteractive, OpenInEditor, ReinstallDeps, SkipDevTools}; +use std::{fs, io, path::PathBuf}; #[derive(Debug, Parser)] #[clap(about = "Initializes a Tauri Android project")] @@ -37,16 +34,7 @@ pub fn command(mut options: Options, target: Target) -> Result<()> { options.ci = options.ci || std::env::var("CI").is_ok(); let wrapper = TextWrapper::with_splitter(textwrap::termwidth(), textwrap::NoHyphenation); - exec( - target, - &wrapper, - options.ci.into(), - SkipDevTools::Yes, - ReinstallDeps::Yes, - OpenInEditor::No, - tauri_dir(), - ) - .map_err(|e| anyhow::anyhow!("{:#}", e))?; + exec(target, &wrapper, options.ci, true, true).map_err(|e| anyhow::anyhow!("{:#}", e))?; Ok(()) } @@ -64,6 +52,8 @@ pub enum Error { #[error(transparent)] DotCargoLoad(dot_cargo::LoadError), #[error(transparent)] + DotCargoGenFailed(ndk::MissingToolError), + #[error(transparent)] HostTargetTripleDetection(util::HostTargetTripleError), #[cfg(target_os = "macos")] #[error(transparent)] @@ -74,55 +64,65 @@ pub enum Error { AndroidInit(super::android::project::Error), #[error(transparent)] DotCargoWrite(dot_cargo::WriteError), - #[error(transparent)] - OpenInEditor(util::OpenInEditorError), +} + +pub fn init_dot_cargo(config: &Config, android_env: Option<&AndroidEnv>) -> Result<(), Error> { + let mut dot_cargo = dot_cargo::DotCargo::load(config.app()).map_err(Error::DotCargoLoad)?; + // Mysteriously, builds that don't specify `--target` seem to fight over + // the build cache with builds that use `--target`! This means that + // alternating between i.e. `cargo run` and `cargo apple run` would + // result in clean builds being made each time you switched... which is + // pretty nightmarish. Specifying `build.target` in `.cargo/config` + // fortunately has the same effect as specifying `--target`, so now we can + // `cargo run` with peace of mind! + // + // This behavior could be explained here: + // https://doc.rust-lang.org/cargo/reference/config.html#buildrustflags + dot_cargo + .set_default_target(util::host_target_triple().map_err(Error::HostTargetTripleDetection)?); + + if let Some(env) = android_env { + for target in AndroidTarget::all().values() { + dot_cargo.insert_target( + target.triple.to_owned(), + target + .generate_cargo_config(config.android(), env) + .map_err(Error::DotCargoGenFailed)?, + ); + } + } + + dot_cargo.write(config.app()).map_err(Error::DotCargoWrite) } pub fn exec( target: Target, wrapper: &TextWrapper, - non_interactive: NonInteractive, - skip_dev_tools: SkipDevTools, - #[allow(unused_variables)] reinstall_deps: ReinstallDeps, - open_in_editor: OpenInEditor, - cwd: impl AsRef, + non_interactive: bool, + skip_dev_tools: bool, + #[allow(unused_variables)] reinstall_deps: bool, ) -> Result { - let cwd = cwd.as_ref(); let tauri_config = get_tauri_config(None).map_err(|e| Error::InvalidTauriConfig(e.to_string()))?; let tauri_config_guard = tauri_config.lock().unwrap(); let tauri_config_ = tauri_config_guard.as_ref().unwrap(); - let config = get_config(tauri_config_); - let metadata = get_metadata(tauri_config_); + let (config, metadata) = get_config(tauri_config_); let asset_dir = config.app().asset_dir(); if !asset_dir.is_dir() { fs::create_dir_all(&asset_dir).map_err(|cause| Error::AssetDirCreation { asset_dir, cause })?; } - if skip_dev_tools.no() && util::command_present("code").unwrap_or_default() { + if !skip_dev_tools && util::command_present("code").unwrap_or_default() { let mut command = code_command(); command.add_args(&["--install-extension", "vadimcn.vscode-lldb"]); - if non_interactive.yes() { + if non_interactive { command.add_arg("--force"); } command .run_and_wait() .map_err(Error::LldbExtensionInstall)?; } - let mut dot_cargo = dot_cargo::DotCargo::load(config.app()).map_err(Error::DotCargoLoad)?; - // Mysteriously, builds that don't specify `--target` seem to fight over - // the build cache with builds that use `--target`! This means that - // alternating between i.e. `cargo run` and `cargo apple run` would - // result in clean builds being made each time you switched... which is - // pretty nightmarish. Specifying `build.target` in `.cargo/config` - // fortunately has the same effect as specifying `--target`, so now we can - // `cargo run` with peace of mind! - // - // This behavior could be explained here: - // https://doc.rust-lang.org/cargo/reference/config.html#buildrustflags - dot_cargo - .set_default_target(util::host_target_triple().map_err(Error::HostTargetTripleDetection)?); let (handlebars, mut map) = handlebars(&config); // TODO: make this a relative path @@ -135,24 +135,26 @@ pub fn exec( ); // Generate Android Studio project - if target == Target::Android { - match android::env::Env::new() { - Ok(env) => super::android::project::gen( - config.android(), - metadata.android(), - &env, - (handlebars, map), - wrapper, - &mut dot_cargo, - ) - .map_err(Error::AndroidInit)?, + let android_env = if target == Target::Android { + match AndroidEnv::new() { + Ok(env) => { + super::android::project::gen( + config.android(), + metadata.android(), + (handlebars, map), + wrapper, + ) + .map_err(Error::AndroidInit)?; + Some(env) + } Err(err) => { if err.sdk_or_ndk_issue() { Report::action_request( - " to initialize Android environment; Android support won't be usable until you fix the issue below and re-run `cargo mobile init`!", + " to initialize Android environment; Android support won't be usable until you fix the issue below and re-run `tauri android init`!", err, ) .print(wrapper); + None } else { return Err(Error::AndroidEnv(err)); } @@ -173,20 +175,16 @@ pub fn exec( ) .map_err(Error::IosInit)?; } - } + None + }; - dot_cargo - .write(config.app()) - .map_err(Error::DotCargoWrite)?; + init_dot_cargo(&config, android_env.as_ref())?; Report::victory( "Project generated successfully!", "Make cool apps! 🌻 🐕 🎉", ) .print(wrapper); - if open_in_editor.yes() { - util::open_in_editor(cwd).map_err(Error::OpenInEditor)?; - } Ok(config) } diff --git a/tooling/cli/src/mobile/ios.rs b/tooling/cli/src/mobile/ios.rs index fcd568512414..22fe55fd56b3 100644 --- a/tooling/cli/src/mobile/ios.rs +++ b/tooling/cli/src/mobile/ios.rs @@ -2,24 +2,33 @@ // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT -use crate::helpers::config::get as get_tauri_config; use cargo_mobile::{ apple::{ config::{Config as AppleConfig, Metadata as AppleMetadata}, + device::{Device, RunError}, + ios_deploy, target::{CompileLibError, Target}, }, + config::Config, + device::PromptError, env::{Env, Error as EnvError}, opts::{NoiseLevel, Profile}, os, util, + util::prompt, }; use clap::{Parser, Subcommand}; use super::{ - ensure_init, get_config, get_metadata, + ensure_init, env_vars, get_config, init::{command as init_command, Options as InitOptions}, - Target as MobileTarget, + write_options, CliOptions, DevChild, Target as MobileTarget, }; -use crate::Result; +use crate::{ + helpers::{config::get as get_tauri_config, flock}, + interface::{AppSettings, DevProcess, Interface, MobileOptions, Options as InterfaceOptions}, + Result, +}; + use std::{collections::HashMap, ffi::OsStr, path::PathBuf}; pub(crate) mod project; @@ -28,12 +37,16 @@ pub(crate) mod project; enum Error { #[error(transparent)] EnvInitFailed(EnvError), + #[error(transparent)] + InitDotCargo(super::init::Error), #[error("invalid tauri configuration: {0}")] InvalidTauriConfig(String), #[error("{0}")] ProjectNotInitialized(String), #[error(transparent)] OpenFailed(os::OpenFileError), + #[error("{0}")] + DevFailed(String), #[error(transparent)] NoHomeDir(util::NoHomeDir), #[error("SDK root provided by Xcode was invalid. {sdk_root} doesn't exist or isn't a directory")] @@ -46,6 +59,10 @@ enum Error { ArchInvalid { arch: String }, #[error(transparent)] CompileLibFailed(CompileLibError), + #[error(transparent)] + FailedToPromptForDevice(PromptError), + #[error(transparent)] + RunFailed(RunError), } #[derive(Parser)] @@ -80,10 +97,49 @@ pub struct XcodeScriptOptions { arches: Vec, } +#[derive(Debug, Clone, Parser)] +#[clap(about = "iOS dev")] +pub struct DevOptions { + /// List of cargo features to activate + #[clap(short, long, multiple_occurrences(true), multiple_values(true))] + pub features: Option>, + /// Exit on panic + #[clap(short, long)] + exit_on_panic: bool, + /// JSON string or path to JSON file to merge with tauri.conf.json + #[clap(short, long)] + pub config: Option, + /// Run the code in release mode + #[clap(long = "release")] + pub release_mode: bool, + /// Disable the file watcher + #[clap(long)] + pub no_watch: bool, + /// Open Xcode instead of trying to run on a connected device + #[clap(short, long)] + pub open: bool, +} + +impl From for crate::dev::Options { + fn from(options: DevOptions) -> Self { + Self { + runner: None, + target: None, + features: options.features, + exit_on_panic: options.exit_on_panic, + config: options.config, + release_mode: options.release_mode, + args: Vec::new(), + no_watch: options.no_watch, + } + } +} + #[derive(Subcommand)] enum Commands { Init(InitOptions), Open, + Dev(DevOptions), #[clap(hide(true))] XcodeScript(XcodeScriptOptions), } @@ -92,31 +148,159 @@ pub fn command(cli: Cli) -> Result<()> { match cli.command { Commands::Init(options) => init_command(options, MobileTarget::Ios)?, Commands::Open => open()?, + Commands::Dev(options) => dev(options)?, Commands::XcodeScript(options) => xcode_script(options)?, } Ok(()) } -fn with_config( - f: impl FnOnce(&AppleConfig, &AppleMetadata) -> Result<(), Error>, -) -> Result<(), Error> { - let tauri_config = - get_tauri_config(None).map_err(|e| Error::InvalidTauriConfig(e.to_string()))?; - let tauri_config_guard = tauri_config.lock().unwrap(); - let tauri_config_ = tauri_config_guard.as_ref().unwrap(); - let config = get_config(tauri_config_); - let metadata = get_metadata(tauri_config_); - f(config.apple(), metadata.apple()) +fn with_config( + f: impl FnOnce(&Config, &AppleConfig, &AppleMetadata) -> Result, +) -> Result { + let (config, metadata) = { + let tauri_config = + get_tauri_config(None).map_err(|e| Error::InvalidTauriConfig(e.to_string()))?; + let tauri_config_guard = tauri_config.lock().unwrap(); + let tauri_config_ = tauri_config_guard.as_ref().unwrap(); + get_config(tauri_config_) + }; + f(&config, config.apple(), metadata.apple()) +} + +fn env() -> Result { + let env = Env::new() + .map_err(Error::EnvInitFailed)? + .explicit_env_vars(env_vars()); + Ok(env) +} + +fn device_prompt<'a>(env: &'_ Env) -> Result, PromptError> { + let device_list = + ios_deploy::device_list(env).map_err(|cause| PromptError::detection_failed("iOS", cause))?; + if !device_list.is_empty() { + let index = if device_list.len() > 1 { + prompt::list( + concat!("Detected ", "iOS", " devices"), + device_list.iter(), + "device", + None, + "Device", + ) + .map_err(|cause| PromptError::prompt_failed("iOS", cause))? + } else { + 0 + }; + let device = device_list.into_iter().nth(index).unwrap(); + println!( + "Detected connected device: {} with target {:?}", + device, + device.target().triple, + ); + Ok(device) + } else { + Err(PromptError::none_detected("iOS")) + } +} + +fn dev(options: DevOptions) -> Result<()> { + with_config(|_, config, _metadata| { + run_dev(options, config).map_err(|e| Error::DevFailed(e.to_string())) + }) + .map_err(Into::into) +} + +fn run_dev(options: DevOptions, config: &AppleConfig) -> Result<()> { + let mut dev_options = options.clone().into(); + let mut interface = crate::dev::setup(&mut dev_options)?; + + let bundle_identifier = { + let tauri_config = + get_tauri_config(None).map_err(|e| Error::InvalidTauriConfig(e.to_string()))?; + let tauri_config_guard = tauri_config.lock().unwrap(); + let tauri_config_ = tauri_config_guard.as_ref().unwrap(); + tauri_config_.tauri.bundle.identifier.clone() + }; + + let app_settings = interface.app_settings(); + let bin_path = app_settings.app_binary_path(&InterfaceOptions { + debug: !dev_options.release_mode, + ..Default::default() + })?; + let out_dir = bin_path.parent().unwrap(); + let _lock = flock::open_rw(&out_dir.join("lock").with_extension("ios"), "iOS")?; + + let open = options.open; + interface.mobile_dev( + MobileOptions { + debug: true, + features: options.features, + args: Vec::new(), + config: options.config, + no_watch: options.no_watch, + }, + |options| { + let cli_options = CliOptions { + features: options.features.clone(), + args: options.args.clone(), + vars: Default::default(), + }; + write_options(cli_options, &bundle_identifier, MobileTarget::Ios)?; + if open { + open_dev(config) + } else { + match run(options) { + Ok(c) => Ok(Box::new(c) as Box), + Err(Error::FailedToPromptForDevice(e)) => { + log::error!("{}", e); + open_dev(config) + } + Err(e) => Err(e.into()), + } + } + }, + ) +} + +fn open_dev(config: &AppleConfig) -> ! { + log::info!("Opening Xcode"); + if let Err(e) = os::open_file_with("Xcode", config.project_dir()) { + log::error!("{}", e); + } + loop { + std::thread::sleep(std::time::Duration::from_secs(24 * 60 * 60)); + } } fn open() -> Result<()> { - with_config(|config, _metadata| { + with_config(|_, config, _metadata| { ensure_init(config.project_dir(), MobileTarget::Ios) .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; os::open_file_with("Xcode", config.project_dir()).map_err(Error::OpenFailed) - })?; - Ok(()) + }) + .map_err(Into::into) +} + +fn run(options: MobileOptions) -> Result { + let profile = if options.debug { + Profile::Debug + } else { + Profile::Release + }; + + with_config(|root_conf, config, _| { + ensure_init(config.project_dir(), MobileTarget::Ios) + .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; + + let env = env()?; + super::init::init_dot_cargo(root_conf, None).map_err(Error::InitDotCargo)?; + + device_prompt(&env) + .map_err(Error::FailedToPromptForDevice)? + .run(config, &env, NoiseLevel::Polite, false, profile) + .map_err(Error::RunFailed) + }) + .map(|c| DevChild(Some(c))) } fn xcode_script(options: XcodeScriptOptions) -> Result<()> { @@ -135,8 +319,9 @@ fn xcode_script(options: XcodeScriptOptions) -> Result<()> { let profile = profile_from_configuration(&options.configuration); let macos = macos_from_platform(&options.platform); - with_config(|config, metadata| { - let env = Env::new().map_err(Error::EnvInitFailed)?; + with_config(|root_conf, config, metadata| { + let env = env()?; + super::init::init_dot_cargo(root_conf, None).map_err(Error::InitDotCargo)?; // The `PATH` env var Xcode gives us is missing any additions // made by the user's profile, so we'll manually add cargo's // `PATH`. @@ -216,7 +401,7 @@ fn xcode_script(options: XcodeScriptOptions) -> Result<()> { config, metadata, NoiseLevel::Polite, - true.into(), + true, profile, &env, target_env, @@ -224,7 +409,6 @@ fn xcode_script(options: XcodeScriptOptions) -> Result<()> { .map_err(Error::CompileLibFailed)?; } Ok(()) - })?; - - Ok(()) + }) + .map_err(Into::into) } diff --git a/tooling/cli/src/mobile/ios/project.rs b/tooling/cli/src/mobile/ios/project.rs index b743151ada68..a0e5a8f35f5e 100644 --- a/tooling/cli/src/mobile/ios/project.rs +++ b/tooling/cli/src/mobile/ios/project.rs @@ -9,7 +9,7 @@ use cargo_mobile::{ deps, rust_version_check, target::Target, }, - opts, + bossy, target::TargetTrait as _, util::{self, cli::TextWrapper, ln}, }; @@ -53,9 +53,9 @@ pub fn gen( metadata: &Metadata, (handlebars, mut map): (Handlebars, template::JsonMap), wrapper: &TextWrapper, - non_interactive: opts::NonInteractive, - skip_dev_tools: opts::SkipDevTools, - reinstall_deps: opts::ReinstallDeps, + non_interactive: bool, + skip_dev_tools: bool, + reinstall_deps: bool, ) -> Result<(), Error> { println!("Installing iOS toolchains..."); Target::install_all().map_err(Error::Rustup)?; diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index 6aced9de5d1b..aa6bf58936ca 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -2,7 +2,10 @@ // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT -use crate::helpers::{app_paths::tauri_dir, config::Config as TauriConfig}; +use crate::{ + helpers::{app_paths::tauri_dir, config::Config as TauriConfig}, + interface::DevProcess, +}; use anyhow::{bail, Result}; #[cfg(target_os = "macos")] use cargo_mobile::apple::config::{ @@ -10,15 +13,48 @@ use cargo_mobile::apple::config::{ }; use cargo_mobile::{ android::config::{Metadata as AndroidMetadata, Raw as RawAndroidConfig}, + bossy, config::{app::Raw as RawAppConfig, metadata::Metadata, Config, Raw}, }; -use std::path::PathBuf; +use serde::{Deserialize, Serialize}; +use std::{collections::HashMap, ffi::OsString, path::PathBuf, process::ExitStatus}; pub mod android; mod init; #[cfg(target_os = "macos")] pub mod ios; +pub struct DevChild(Option); + +impl Drop for DevChild { + fn drop(&mut self) { + // consume the handle since we're not waiting on it + // just to prevent a log error + // note that this doesn't leak any memory + self.0.take().unwrap().leak(); + } +} + +impl DevProcess for DevChild { + fn kill(&mut self) -> std::io::Result<()> { + self + .0 + .as_mut() + .unwrap() + .kill() + .map_err(|_| std::io::Error::new(std::io::ErrorKind::Other, "failed to kill")) + } + + fn try_wait(&mut self) -> std::io::Result> { + self + .0 + .as_mut() + .unwrap() + .try_wait() + .map_err(|_| std::io::Error::new(std::io::ErrorKind::Other, "failed to wait")) + } +} + #[derive(PartialEq, Eq)] pub enum Target { Android, @@ -44,41 +80,56 @@ impl Target { } } -fn get_metadata(_config: &TauriConfig) -> Metadata { - Metadata { - #[cfg(target_os = "macos")] - apple: AppleMetadata { - supported: true, - ios: ApplePlatform { - features: None, - frameworks: None, - valid_archs: None, - vendor_frameworks: None, - vendor_sdks: None, - asset_catalogs: None, - pods: None, - additional_targets: None, - pre_build_scripts: None, - post_compile_scripts: None, - post_build_scripts: None, - command_line_arguments: None, - }, - macos: Default::default(), - }, - android: AndroidMetadata { - supported: true, - features: None, - app_sources: None, - app_plugins: None, - project_dependencies: None, - app_dependencies: None, - app_dependencies_platform: None, - asset_packs: None, - }, +#[derive(Debug, Default, Serialize, Deserialize)] +pub struct CliOptions { + pub features: Option>, + pub args: Vec, + pub vars: HashMap, +} + +fn options_path(bundle_identifier: &str, target: Target) -> PathBuf { + let out_dir = dirs_next::cache_dir() + .or_else(dirs_next::home_dir) + .unwrap_or_else(std::env::temp_dir); + let out_dir = out_dir.join(".tauri").join(bundle_identifier); + let _ = std::fs::create_dir_all(&out_dir); + out_dir + .join("cli-options") + .with_extension(target.command_name()) +} + +fn env_vars() -> HashMap { + let mut vars = HashMap::new(); + for (k, v) in std::env::vars_os() { + let k = k.to_string_lossy(); + if k.starts_with("TAURI") && k != "TAURI_PRIVATE_KEY" && k != "TAURI_KEY_PASSWORD" { + vars.insert(k.into_owned(), v); + } } + vars +} + +/// Writes CLI options to be used later on the Xcode and Android Studio build commands +pub fn write_options( + mut options: CliOptions, + bundle_identifier: &str, + target: Target, +) -> crate::Result<()> { + options.vars.extend(env_vars()); + std::fs::write( + options_path(bundle_identifier, target), + &serde_json::to_string(&options)?, + )?; + Ok(()) +} + +fn read_options(config: &TauriConfig, target: Target) -> crate::Result { + let data = std::fs::read_to_string(options_path(&config.tauri.bundle.identifier, target))?; + let options = serde_json::from_str(&data)?; + Ok(options) } -fn get_config(config: &TauriConfig) -> Config { +fn get_config(config: &TauriConfig) -> (Config, Metadata) { let mut s = config.tauri.bundle.identifier.rsplit('.'); let app_name = s.next().unwrap_or("app").to_string(); let mut domain = String::new(); @@ -87,6 +138,11 @@ fn get_config(config: &TauriConfig) -> Config { domain.push('.'); } domain.pop(); + + #[cfg(target_os = "macos")] + let ios_options = read_options(config, Target::Ios).unwrap_or_default(); + let android_options = read_options(config, Target::Android).unwrap_or_default(); + let raw = Raw { app: RawAppConfig { name: app_name, @@ -97,13 +153,13 @@ fn get_config(config: &TauriConfig) -> Config { }, #[cfg(target_os = "macos")] apple: Some(RawAppleConfig { - development_team: std::env::var("APPLE_DEVELOPMENT_TEAM") + development_team: std::env::var("TAURI_APPLE_DEVELOPMENT_TEAM") .ok() .or_else(|| config.tauri.ios.development_team.clone()) - .expect("you must set `tauri > iOS > developmentTeam` config value or the `APPLE_DEVELOPMENT_TEAM` environment variable"), + .expect("you must set `tauri > iOS > developmentTeam` config value or the `TAURI_APPLE_DEVELOPMENT_TEAM` environment variable"), project_dir: None, ios_no_default_features: None, - ios_features: None, + ios_features: ios_options.features.clone(), macos_no_default_features: None, macos_features: None, bundle_version: None, @@ -118,10 +174,48 @@ fn get_config(config: &TauriConfig) -> Config { vulkan_validation: None, project_dir: None, no_default_features: None, - features: None, + features: android_options.features.clone(), }), }; - Config::from_raw(tauri_dir(), raw).unwrap() + let config = Config::from_raw(tauri_dir(), raw).unwrap(); + + let metadata = Metadata { + #[cfg(target_os = "macos")] + apple: AppleMetadata { + supported: true, + ios: ApplePlatform { + no_default_features: false, + cargo_args: Some(ios_options.args), + features: ios_options.features, + frameworks: None, + valid_archs: None, + vendor_frameworks: None, + vendor_sdks: None, + asset_catalogs: None, + pods: None, + additional_targets: None, + pre_build_scripts: None, + post_compile_scripts: None, + post_build_scripts: None, + command_line_arguments: None, + }, + macos: Default::default(), + }, + android: AndroidMetadata { + supported: true, + no_default_features: false, + cargo_args: Some(android_options.args), + features: android_options.features, + app_sources: None, + app_plugins: None, + project_dependencies: None, + app_dependencies: None, + app_dependencies_platform: None, + asset_packs: None, + }, + }; + + (config, metadata) } fn ensure_init(project_dir: PathBuf, target: Target) -> Result<()> { diff --git a/tooling/cli/templates/mobile/android/app/build.gradle.kts b/tooling/cli/templates/mobile/android/app/build.gradle.kts index cc33f0d8b57b..5696afc5c099 100644 --- a/tooling/cli/templates/mobile/android/app/build.gradle.kts +++ b/tooling/cli/templates/mobile/android/app/build.gradle.kts @@ -40,6 +40,16 @@ android { } flavorDimensions.add("abi") productFlavors { + create("universal") { + dimension = "abi" + ndk { + abiFilters += listOf( + {{~#each targets}} + "{{this.abi}}",{{/each}} + ) + } + } + {{~#each targets}} create("{{this.arch}}") { @@ -75,7 +85,9 @@ dependencies { afterEvaluate { android.applicationVariants.all { - productFlavors.forEach { _ -> + tasks["mergeUniversalReleaseJniLibFolders"].dependsOn(tasks["rustBuildRelease"]) + tasks["mergeUniversalDebugJniLibFolders"].dependsOn(tasks["rustBuildDebug"]) + productFlavors.filter{ it.name != "universal" }.forEach { _ -> val archAndBuildType = name.capitalize() tasks["merge${archAndBuildType}JniLibFolders"].dependsOn(tasks["rustBuild${archAndBuildType}"]) } diff --git a/tooling/cli/templates/mobile/android/app/src/main/AndroidManifest.xml b/tooling/cli/templates/mobile/android/app/src/main/AndroidManifest.xml index cf42dcd2cb4e..657c7e775c0c 100644 --- a/tooling/cli/templates/mobile/android/app/src/main/AndroidManifest.xml +++ b/tooling/cli/templates/mobile/android/app/src/main/AndroidManifest.xml @@ -3,11 +3,8 @@ package="{{reverse-domain app.domain}}.{{snake-case app.name}}"> = 20) { loadedUrl = url runInitializationScripts() } diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml deleted file mode 100644 index eca70cfe52ea..000000000000 --- a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp deleted file mode 100644 index b2dfe3d1ba5cf3ee31b3ecc1ced89044a1f3b7a9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2898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<~wH1kL;sd zo)k6^VyRFU`)dt*iX^9&QtWbo6yE8XXH?`ztvpiOLgI3R+=MOBQ9=rMVgi<*CU%+d1PQQ0a1U=&b0vkF207%xU0ssI2 diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp deleted file mode 100644 index 62b611da081676d42f6c3f78a2c91e7bcedddedb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1772 zcmVQj4N+cqN`nQhxvX7dAV-`K|Ub$-q+H-5I?Tx0g9jWxd@A|?POE8`3b8fO$T))xP* z(X?&brZw({`)WU&rdAs1iTa0x6F@PIxJ&&L|dpySV!ID|iUhjCcKz(@mE z!x@~W#3H<)4Ae(4eQJRk`Iz3<1)6^m)0b_4_TRZ+cz#eD3f8V;2r-1fE!F}W zEi0MEkTTx}8i1{`l_6vo0(Vuh0HD$I4SjZ=?^?k82R51bC)2D_{y8mi_?X^=U?2|F{Vr7s!k(AZC$O#ZMyavHhlQ7 zUR~QXuH~#o#>(b$u4?s~HLF*3IcF7023AlwAYudn0FV~|odGH^05AYPEfR)8p`i{n zwg3zPVp{+wOsxKc>)(pMupKF!Y2HoUqQ3|Yu|8lwR=?5zZuhG6J?H`bSNk_wPoM{u zSL{c@pY7+c2kck>`^q1^^gR0QB7Y?KUD{vz-uVX~;V-rW)PDcI)$_UjgVV?S?=oLR zf4}zz{#*R_{LkiJ#0RdQLNC^2Vp%JPEUvG9ra2BVZ92(p9h7Ka@!yf9(lj#}>+|u* z;^_?KWdzkM`6gqPo9;;r6&JEa)}R3X{(CWv?NvgLeOTq$cZXqf7|sPImi-7cS8DCN zGf;DVt3Am`>hH3{4-WzH43Ftx)SofNe^-#|0HdCo<+8Qs!}TZP{HH8~z5n`ExcHuT zDL1m&|DVpIy=xsLO>8k92HcmfSKhflQ0H~9=^-{#!I1g(;+44xw~=* zxvNz35vfsQE)@)Zsp*6_GjYD};Squ83<_?^SbALb{a`j<0Gn%6JY!zhp=Fg}Ga2|8 z52e1WU%^L1}15Ex0fF$e@eCT(()_P zvV?CA%#Sy08_U6VPt4EtmVQraWJX` zh=N|WQ>LgrvF~R&qOfB$!%D3cGv?;Xh_z$z7k&s4N)$WYf*k=|*jCEkO19{h_(%W4 zPuOqbCw`SeAX*R}UUsbVsgtuG?xs(#Ikx9`JZoQFz0n*7ZG@Fv@kZk`gzO$HoA9kN z8U5{-yY zvV{`&WKU2$mZeoBmiJrEdzUZAv1sRxpePdg1)F*X^Y)zp^Y*R;;z~vOv-z&)&G)JQ{m!C9cmziu1^nHA z`#`0c>@PnQ9CJKgC5NjJD8HM3|KC(g5nnCq$n0Gsu_DXk36@ql%npEye|?%RmG)

FJ$wK}0tWNB{uH;AM~i diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp deleted file mode 100644 index 1b9a6956b3acdc11f40ce2bb3f6efbd845cc243f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3918 zcmV-U53%r4Nk&FS4*&pHMM6+kP&il$0000G0001A003VA06|PpNSy@$00HoY|G(*G z+qV7x14$dSO^Re!iqt-AAIE9iwr$(CZQJL$blA4B`>;C3fBY6Q8_YSjb2%a=fc}4E zrSzssacq<^nmW|Rs93PJni30R<8w<(bK_$LO4L?!_OxLl$}K$MUEllnMK|rg=f3;y z*?;3j|Nh>)p0JQ3A~rf(MibH2r+)3cyV1qF&;8m{w-S*y+0mM){KTK^M5}ksc`qX3 zy>rf^b>~l>SSHds8(I@hz3&PD@LmEs4&prkT=BjsBCXTMhN$_)+kvnl0bLKW5rEsj z*d#KXGDB4P&>etx0X+`R19yC=LS)j!mgs5M0L~+o-T~Jl!p!AJxnGAhV%~rhYUL4hlWhgES3Kb5oA&X z{}?3OBSS-{!v$nCIGj->(-TA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ESi3#ckR3tsM+jsck3`oG!uMS}|eAwVXv>}qxwq?QY%QJ0}r@^;fhuUA9W z*BVl>TGo&N004@xSiwDUXUvp51sVmqO3m)=B55aPwf@0=e}cN+$-BdKxY`YrT_4)0 z_d10#i44Q*rFr8MC>*)v$EJvz``(pb{e&*6k+b zsMz%($|1+8hn8c2?P(l@;Rb&CsZeYoCI3?2!LqjbwPXW3z4G$Qfj=cT5Yb%vY0(AX oeb?AaKtwrnc|$|zzw9vfvn^aJJ!zd)XFXqqy0000001=f@-~a#s diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/values/strings.xml b/tooling/cli/templates/mobile/android/app/src/main/res/values/strings.xml index d7c29c74f3ea..1a1f245744c2 100644 --- a/tooling/cli/templates/mobile/android/app/src/main/res/values/strings.xml +++ b/tooling/cli/templates/mobile/android/app/src/main/res/values/strings.xml @@ -1,3 +1,3 @@ - qoo + {{app.stylized-name}} \ No newline at end of file diff --git a/tooling/cli/templates/mobile/android/buildSrc/build.gradle.kts b/tooling/cli/templates/mobile/android/buildSrc/build.gradle.kts index f3753b206894..86a264bddfe1 100644 --- a/tooling/cli/templates/mobile/android/buildSrc/build.gradle.kts +++ b/tooling/cli/templates/mobile/android/buildSrc/build.gradle.kts @@ -2,10 +2,6 @@ plugins { `kotlin-dsl` } -kotlinDslPluginOptions { - experimentalWarning.set(false) -} - gradlePlugin { plugins { create("pluginsForCoolKids") { diff --git a/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/BuildTask.kt b/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/BuildTask.kt index 9796cc8c3504..381080bfe87f 100644 --- a/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/BuildTask.kt +++ b/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/BuildTask.kt @@ -1,10 +1,8 @@ package {{reverse-domain app.domain}} -import com.android.build.gradle.* import java.io.File import org.gradle.api.DefaultTask import org.gradle.api.GradleException -import org.gradle.api.Project import org.gradle.api.logging.LogLevel import org.gradle.api.tasks.Input import org.gradle.api.tasks.InputDirectory @@ -23,20 +21,11 @@ open class BuildTask : DefaultTask() { @TaskAction fun build() { - val rootDirRel = rootDirRel - if (rootDirRel == null) { - throw GradleException("rootDirRel cannot be null") - } - val target = target - if (target == null) { - throw GradleException("target cannot be null") - } - val release = release - if (release == null) { - throw GradleException("release cannot be null") - } + val rootDirRel = rootDirRel ?: throw GradleException("rootDirRel cannot be null") + val target = target ?: throw GradleException("target cannot be null") + val release = release ?: throw GradleException("release cannot be null") project.exec { - workingDir(File(project.getProjectDir(), rootDirRel.getPath())) + workingDir(File(project.projectDir, rootDirRel.path)) executable("{{ tauri-binary }}") args(listOf("tauri", "android", "build")) if (project.logger.isEnabled(LogLevel.DEBUG)) { @@ -47,7 +36,7 @@ open class BuildTask : DefaultTask() { if (release) { args("--release") } - args(listOf("--target", "${target}")) + args(listOf("--target", target)) }.assertNormalExitValue() } } diff --git a/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/RustPlugin.kt b/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/RustPlugin.kt index 86b86cd4fa81..7028af56d408 100644 --- a/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/RustPlugin.kt +++ b/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/RustPlugin.kt @@ -1,11 +1,11 @@ package {{reverse-domain app.domain}} -import com.android.build.gradle.* -import java.io.File import org.gradle.api.DefaultTask import org.gradle.api.GradleException import org.gradle.api.Plugin import org.gradle.api.Project +import java.io.File +import java.util.* const val TASK_GROUP = "rust" @@ -16,7 +16,7 @@ open class Config { } open class RustPlugin : Plugin { - internal lateinit var config: Config + private lateinit var config: Config override fun apply(project: Project) { config = project.extensions.create("rust", Config::class.java) @@ -28,17 +28,25 @@ open class RustPlugin : Plugin { throw GradleException("arches cannot be null") } for (profile in listOf("debug", "release")) { - val buildTask = project.tasks.maybeCreate("rustBuild${profile.capitalize()}", DefaultTask::class.java).apply { + val profileCapitalized = profile.capitalize(Locale.ROOT) + val buildTask = project.tasks.maybeCreate( + "rustBuild$profileCapitalized", + DefaultTask::class.java + ).apply { group = TASK_GROUP - description = "Build dynamic library in ${profile} mode for all targets" + description = "Build dynamic library in $profile mode for all targets" } for (targetPair in config.targets!!.withIndex()) { val targetName = targetPair.value val targetArch = config.arches!![targetPair.index] - val targetBuildTask = project.tasks.maybeCreate("rustBuild${targetArch.capitalize()}${profile.capitalize()}", BuildTask::class.java).apply { + val targetArchCapitalized = targetArch.capitalize(Locale.ROOT) + val targetBuildTask = project.tasks.maybeCreate( + "rustBuild$targetArchCapitalized$profileCapitalized", + BuildTask::class.java + ).apply { group = TASK_GROUP - description = "Build dynamic library in ${profile} mode for $targetArch" - rootDirRel = File(config.rootDirRel) + description = "Build dynamic library in $profile mode for $targetArch" + rootDirRel = config.rootDirRel?.let { File(it) } target = targetName release = profile == "release" } From 8aad710064afd0a67261748fce3ecfd6e0af882e Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Sun, 21 Aug 2022 09:58:27 -0300 Subject: [PATCH 013/436] feat(cli): enhance android build task arguments (#4986) --- tooling/cli/src/mobile/init.rs | 33 ++++++++++++++----- .../buildSrc/src/main/kotlin/BuildTask.kt | 2 +- 2 files changed, 26 insertions(+), 9 deletions(-) diff --git a/tooling/cli/src/mobile/init.rs b/tooling/cli/src/mobile/init.rs index 34a0d184717c..eeecf08c15b0 100644 --- a/tooling/cli/src/mobile/init.rs +++ b/tooling/cli/src/mobile/init.rs @@ -20,7 +20,7 @@ use cargo_mobile::{ use clap::Parser; use handlebars::{Context, Handlebars, Helper, HelperResult, Output, RenderContext, RenderError}; -use std::{fs, io, path::PathBuf}; +use std::{env::current_dir, fs, io, path::PathBuf}; #[derive(Debug, Parser)] #[clap(about = "Initializes a Tauri Android project")] @@ -125,14 +125,31 @@ pub fn exec( } let (handlebars, mut map) = handlebars(&config); + + let mut args = std::env::args_os(); // TODO: make this a relative path - map.insert( - "tauri-binary", - std::env::args_os() - .next() - .unwrap_or_else(|| std::ffi::OsString::from("cargo")) - .to_string_lossy(), - ); + let tauri_binary = args + .next() + .unwrap_or_else(|| std::ffi::OsString::from("cargo")); + map.insert("tauri-binary", tauri_binary.to_string_lossy()); + let mut build_args = Vec::new(); + for arg in args { + if arg == "android" { + break; + } + let path = PathBuf::from(&arg); + if path.exists() { + if let Ok(dir) = current_dir() { + let absolute_path = util::prefix_path(dir, path); + build_args.push(absolute_path.to_string_lossy().into_owned()); + continue; + } + } + build_args.push(arg.to_string_lossy().into_owned()); + } + build_args.push("android".into()); + build_args.push("build".into()); + map.insert("tauri-binary-args", build_args); // Generate Android Studio project let android_env = if target == Target::Android { diff --git a/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/BuildTask.kt b/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/BuildTask.kt index 381080bfe87f..ea09602f464c 100644 --- a/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/BuildTask.kt +++ b/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/BuildTask.kt @@ -27,7 +27,7 @@ open class BuildTask : DefaultTask() { project.exec { workingDir(File(project.projectDir, rootDirRel.path)) executable("{{ tauri-binary }}") - args(listOf("tauri", "android", "build")) + args(listOf({{quote-and-join tauri-binary-args}})) if (project.logger.isEnabled(LogLevel.DEBUG)) { args("-vv") } else if (project.logger.isEnabled(LogLevel.INFO)) { From e55d96acc1dc5de50a6e1380b880ba5279858508 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Sun, 21 Aug 2022 10:34:38 -0300 Subject: [PATCH 014/436] feat(cli): enhance iOS build task arguments (#4987) --- tooling/cli/src/mobile/init.rs | 12 ++++++------ tooling/cli/src/mobile/mod.rs | 8 ++++++++ tooling/cli/templates/mobile/ios/project.yml | 4 ++-- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/tooling/cli/src/mobile/init.rs b/tooling/cli/src/mobile/init.rs index eeecf08c15b0..d95fd9294d3f 100644 --- a/tooling/cli/src/mobile/init.rs +++ b/tooling/cli/src/mobile/init.rs @@ -134,9 +134,6 @@ pub fn exec( map.insert("tauri-binary", tauri_binary.to_string_lossy()); let mut build_args = Vec::new(); for arg in args { - if arg == "android" { - break; - } let path = PathBuf::from(&arg); if path.exists() { if let Ok(dir) = current_dir() { @@ -146,10 +143,13 @@ pub fn exec( } } build_args.push(arg.to_string_lossy().into_owned()); + if arg == "android" || arg == "ios" { + break; + } } - build_args.push("android".into()); - build_args.push("build".into()); - map.insert("tauri-binary-args", build_args); + build_args.push(target.ide_build_script_name().into()); + map.insert("tauri-binary-args", &build_args); + map.insert("tauri-binary-args-str", build_args.join(" ")); // Generate Android Studio project let android_env = if target == Target::Android { diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index aa6bf58936ca..6a9a4bbd5d64 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -78,6 +78,14 @@ impl Target { Self::Ios => "ios", } } + + fn ide_build_script_name(&self) -> &'static str { + match self { + Self::Android => "build", + #[cfg(target_os = "macos")] + Self::Ios => "xcode-script", + } + } } #[derive(Debug, Default, Serialize, Deserialize)] diff --git a/tooling/cli/templates/mobile/ios/project.yml b/tooling/cli/templates/mobile/ios/project.yml index 54bd3bb23c73..9f9c8742d89b 100644 --- a/tooling/cli/templates/mobile/ios/project.yml +++ b/tooling/cli/templates/mobile/ios/project.yml @@ -267,7 +267,7 @@ targets: VALID_ARCHS: {{~#each ios-valid-archs}} {{this}} {{/each}} legacy: toolPath: {{ tauri-binary }} - arguments: ios xcode-script -v --platform ${PLATFORM_DISPLAY_NAME:?} --sdk-root ${SDKROOT:?} --configuration ${CONFIGURATION:?} ${FORCE_COLOR} ${ARCHS:?} + arguments: {{ tauri-binary-args-str }} -v --platform ${PLATFORM_DISPLAY_NAME:?} --sdk-root ${SDKROOT:?} --configuration ${CONFIGURATION:?} ${FORCE_COLOR} ${ARCHS:?} passSettings: false # prevents evil linker errors workingDirectory: $(SRCROOT)/../.. lib_{{app.name}}_macOS: @@ -275,6 +275,6 @@ targets: platform: macOS legacy: toolPath: {{ tauri-binary }} - arguments: ios xcode-script -v --platform ${PLATFORM_DISPLAY_NAME:?} --sdk-root ${SDKROOT:?} --configuration ${CONFIGURATION:?} ${FORCE_COLOR} ${ARCHS:?} + arguments: {{ tauri-binary-args-str }} -v --platform ${PLATFORM_DISPLAY_NAME:?} --sdk-root ${SDKROOT:?} --configuration ${CONFIGURATION:?} ${FORCE_COLOR} ${ARCHS:?} passSettings: false workingDirectory: $(SRCROOT)/../.. From 16360aed33c7a93d33771a454138d20636370240 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Sun, 21 Aug 2022 10:35:11 -0300 Subject: [PATCH 015/436] chore(cli): update cargo-mobile to fix cli.js mobile script running --- tooling/cli/Cargo.lock | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 0ca964b023a8..bfc1e301259f 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -250,7 +250,7 @@ dependencies = [ [[package]] name = "cargo-mobile" version = "0.1.0" -source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#9733784cbb8af4fe0accc634463ff58424c88e62" +source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#c30e0f1338632a9d904e0aca602408fca9d70650" dependencies = [ "cocoa", "colored 1.9.3", @@ -274,6 +274,7 @@ dependencies = [ "objc_id", "once-cell-regex", "openssl", + "os_pipe", "path_abs", "serde", "serde_json", From 9890486321c9c79ccfb7c547fafee85b5c3ffa71 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Sun, 21 Aug 2022 10:35:34 -0300 Subject: [PATCH 016/436] feat(core): add `mobile_entry_point` macro (#4983) --- .changes/build-android-env-vars.md | 5 ++ .changes/mobile-entry-point-macro.md | 5 ++ .changes/tauri-mobile-entry-point.md | 5 ++ core/tauri-build/src/lib.rs | 16 +++++++ core/tauri-macros/src/lib.rs | 6 +++ core/tauri-macros/src/mobile.rs | 71 ++++++++++++++++++++++++++++ core/tauri/Cargo.toml | 3 ++ core/tauri/src/lib.rs | 13 +++++ examples/api/src-tauri/Cargo.lock | 3 +- examples/api/src-tauri/Cargo.toml | 2 - examples/api/src-tauri/src/mobile.rs | 26 +--------- 11 files changed, 126 insertions(+), 29 deletions(-) create mode 100644 .changes/build-android-env-vars.md create mode 100644 .changes/mobile-entry-point-macro.md create mode 100644 .changes/tauri-mobile-entry-point.md create mode 100644 core/tauri-macros/src/mobile.rs diff --git a/.changes/build-android-env-vars.md b/.changes/build-android-env-vars.md new file mode 100644 index 000000000000..7091ba1597d7 --- /dev/null +++ b/.changes/build-android-env-vars.md @@ -0,0 +1,5 @@ +--- +"tauri-build": patch +--- + +Set environment variables used by `tauri::mobile_entry_point`. diff --git a/.changes/mobile-entry-point-macro.md b/.changes/mobile-entry-point-macro.md new file mode 100644 index 000000000000..8b39085e8174 --- /dev/null +++ b/.changes/mobile-entry-point-macro.md @@ -0,0 +1,5 @@ +--- +"tauri-macros": minor +--- + +Added the `mobile_entry_point` macro. diff --git a/.changes/tauri-mobile-entry-point.md b/.changes/tauri-mobile-entry-point.md new file mode 100644 index 000000000000..6e57b9767610 --- /dev/null +++ b/.changes/tauri-mobile-entry-point.md @@ -0,0 +1,5 @@ +--- +"tauri": minor +--- + +Export types required by the `mobile_entry_point` macro. diff --git a/core/tauri-build/src/lib.rs b/core/tauri-build/src/lib.rs index 5ddbb3730c2c..98ad640aef82 100644 --- a/core/tauri-build/src/lib.rs +++ b/core/tauri-build/src/lib.rs @@ -219,6 +219,22 @@ pub fn try_build(attributes: Attributes) -> Result<()> { } let config: Config = serde_json::from_value(config)?; + let s = config.tauri.bundle.identifier.split('.'); + let last = s.clone().count() - 1; + let mut app_name = String::new(); + let mut domain = String::new(); + for (i, w) in s.enumerate() { + if i == last { + app_name.push_str(w); + } else { + domain.push_str(w); + domain.push('_'); + } + } + domain.pop(); + println!("cargo:rustc-env=TAURI_ANDROID_DOMAIN={}", domain); + println!("cargo:rustc-env=TAURI_ANDROID_APP_NAME={}", app_name); + cfg_alias("dev", !has_feature("custom-protocol")); let mut manifest = Manifest::from_path("Cargo.toml")?; diff --git a/core/tauri-macros/src/lib.rs b/core/tauri-macros/src/lib.rs index 3af378078fcc..77300d45d0df 100644 --- a/core/tauri-macros/src/lib.rs +++ b/core/tauri-macros/src/lib.rs @@ -8,6 +8,7 @@ use syn::{parse_macro_input, DeriveInput, ItemFn}; mod command; mod command_module; +mod mobile; mod runtime; #[macro_use] @@ -24,6 +25,11 @@ pub fn command(attributes: TokenStream, item: TokenStream) -> TokenStream { command::wrapper(attributes, item) } +#[proc_macro_attribute] +pub fn mobile_entry_point(attributes: TokenStream, item: TokenStream) -> TokenStream { + mobile::entry_point(attributes, item) +} + /// Accepts a list of commands functions. Creates a handler that allows commands to be called from JS with invoke(). /// /// # Examples diff --git a/core/tauri-macros/src/mobile.rs b/core/tauri-macros/src/mobile.rs new file mode 100644 index 000000000000..e98b647de512 --- /dev/null +++ b/core/tauri-macros/src/mobile.rs @@ -0,0 +1,71 @@ +use proc_macro::TokenStream; +use proc_macro2::TokenStream as TokenStream2; +use quote::{format_ident, quote}; +use std::env::var; +use syn::{parse_macro_input, spanned::Spanned, ItemFn}; + +fn get_env_var(name: &str, error: &mut Option, function: &ItemFn) -> TokenStream2 { + match var(name) { + Ok(value) => { + let ident = format_ident!("{}", value); + quote!(#ident) + } + Err(_) => { + error.replace( + syn::Error::new( + function.span(), + format!( + "`{}` env var not set, do you have a build script with tauri-build?", + name, + ), + ) + .into_compile_error(), + ); + quote!() + } + } +} + +pub fn entry_point(_attributes: TokenStream, item: TokenStream) -> TokenStream { + let function = parse_macro_input!(item as ItemFn); + let function_name = function.sig.ident.clone(); + + let mut error = None; + let domain = get_env_var("TAURI_ANDROID_DOMAIN", &mut error, &function); + let app_name = get_env_var("TAURI_ANDROID_APP_NAME", &mut error, &function); + + if let Some(e) = error { + quote!(#e).into() + } else { + quote!( + fn stop_unwind T, T>(f: F) -> T { + match std::panic::catch_unwind(std::panic::AssertUnwindSafe(f)) { + Ok(t) => t, + Err(err) => { + eprintln!("attempt to unwind out of `rust` with err: {:?}", err); + std::process::abort() + } + } + } + + #function + + fn _start_app() { + #[cfg(target_os = "android")] + { + use ::tauri::paste; + ::tauri::wry_android_binding!(#domain, #app_name, _start_app, ::tauri::wry); + } + stop_unwind(#function_name); + } + + #[cfg(not(target_os = "android"))] + #[no_mangle] + #[inline(never)] + pub extern "C" fn start_app() { + _start_app() + } + ) + .into() + } +} diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml index 879245f65856..459b64c9ce1f 100644 --- a/core/tauri/Cargo.toml +++ b/core/tauri/Cargo.toml @@ -111,6 +111,9 @@ objc = "0.2" webview2-com = "0.16.0" win7-notifications = { version = "0.3.0", optional = true } +[target.'cfg(target_os = "android")'.dependencies] +paste = "1.0" + [target."cfg(windows)".dependencies.windows] version = "0.37.0" features = [ "Win32_Foundation" ] diff --git a/core/tauri/src/lib.rs b/core/tauri/src/lib.rs index 332df1662a22..42a321a128a9 100644 --- a/core/tauri/src/lib.rs +++ b/core/tauri/src/lib.rs @@ -158,6 +158,8 @@ pub use error::Error; #[cfg(shell_scope)] #[doc(hidden)] pub use regex; +#[cfg(mobile)] +pub use tauri_macros::mobile_entry_point; pub use tauri_macros::{command, generate_handler}; pub mod api; @@ -188,6 +190,17 @@ pub use tauri_utils as utils; #[cfg_attr(doc_cfg, doc(cfg(feature = "wry")))] pub type Wry = tauri_runtime_wry::Wry; +#[cfg(all(feature = "wry", target_os = "android"))] +#[cfg_attr(doc_cfg, doc(cfg(all(feature = "wry", target_os = "android"))))] +pub use tauri_runtime_wry::wry::android_binding as wry_android_binding; + +#[cfg(all(feature = "wry", target_os = "android"))] +#[doc(hidden)] +pub use paste; +#[cfg(all(feature = "wry", target_os = "android"))] +#[doc(hidden)] +pub use tauri_runtime_wry::wry; + /// `Result` pub type Result = std::result::Result; diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index e868532a72aa..73bd19c32ead 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -113,12 +113,10 @@ dependencies = [ "android_logger", "env_logger 0.9.0", "log", - "paste", "serde", "serde_json", "tauri", "tauri-build", - "tauri-runtime-wry", "tiny_http", "window-shadows", "window-vibrancy", @@ -3196,6 +3194,7 @@ dependencies = [ "open", "os_info", "os_pipe", + "paste", "percent-encoding", "png 0.17.5", "rand 0.8.5", diff --git a/examples/api/src-tauri/Cargo.toml b/examples/api/src-tauri/Cargo.toml index cbcd8c1aafc7..92d75446cf05 100644 --- a/examples/api/src-tauri/Cargo.toml +++ b/examples/api/src-tauri/Cargo.toml @@ -41,11 +41,9 @@ window-shadows= "0.2" [target.'cfg(any(target_os = "android", target_os = "ios"))'.dependencies] log = "0.4" -tauri-runtime-wry = { path = "../../../core/tauri-runtime-wry/" } [target.'cfg(target_os = "android")'.dependencies] android_logger = "0.9.0" -paste = "1.0" [target.'cfg(target_os = "ios")'.dependencies] env_logger = "0.9.0" diff --git a/examples/api/src-tauri/src/mobile.rs b/examples/api/src-tauri/src/mobile.rs index 8d47ad0ed5be..958fadd2d5cf 100644 --- a/examples/api/src-tauri/src/mobile.rs +++ b/examples/api/src-tauri/src/mobile.rs @@ -1,6 +1,3 @@ -#[cfg(target_os = "android")] -use tauri_runtime_wry::wry::android_binding; - #[cfg(target_os = "android")] fn init_logging(app_name: &str) { android_logger::init_once( @@ -15,28 +12,7 @@ fn init_logging(_app_name: &str) { env_logger::init(); } -fn stop_unwind T, T>(f: F) -> T { - match std::panic::catch_unwind(std::panic::AssertUnwindSafe(f)) { - Ok(t) => t, - Err(err) => { - eprintln!("attempt to unwind out of `rust` with err: {:?}", err); - std::process::abort() - } - } -} - -fn _start_app() { - stop_unwind(main); -} - -#[no_mangle] -#[inline(never)] -pub extern "C" fn start_app() { - #[cfg(target_os = "android")] - android_binding!(com_tauri, api, _start_app, tauri_runtime_wry::wry); - _start_app() -} - +#[tauri::mobile_entry_point] fn main() { super::AppBuilder::new() .setup(|app| { From 9bb81bc3286438ed2f8d37acd68099a5c5f5f1a8 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Sun, 21 Aug 2022 17:48:38 -0300 Subject: [PATCH 017/436] refactor(android): rename BuildTask.kt command to android-studio-script (#4991) --- tooling/cli/src/mobile/android.rs | 8 ++++---- tooling/cli/src/mobile/mod.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index 290ce1fe2c81..24214ccce05a 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -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 { .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 { diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index 6a9a4bbd5d64..250391c7b3df 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -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", } From b3a3afc7de8de4021d73559288f5192732a706cf Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Mon, 22 Aug 2022 10:48:06 -0300 Subject: [PATCH 018/436] feat(core): detect android and ios platform configuration files (#4997) --- .changes/mobile-config.md | 5 +++++ core/tauri-utils/src/config.rs | 4 ++-- core/tauri-utils/src/config/parse.rs | 22 ++++++++++++++++++---- tooling/cli/schema.json | 2 +- 4 files changed, 26 insertions(+), 7 deletions(-) create mode 100644 .changes/mobile-config.md diff --git a/.changes/mobile-config.md b/.changes/mobile-config.md new file mode 100644 index 000000000000..97417e2496fa --- /dev/null +++ b/.changes/mobile-config.md @@ -0,0 +1,5 @@ +--- +"tauri-utils": minor +--- + +Parse `android` and `ios` Tauri configuration files. diff --git a/core/tauri-utils/src/config.rs b/core/tauri-utils/src/config.rs index 0545b04ce5dd..36298eb600d2 100644 --- a/core/tauri-utils/src/config.rs +++ b/core/tauri-utils/src/config.rs @@ -2616,8 +2616,8 @@ impl PackageConfig { /// /// In addition to the default configuration file, Tauri can /// read a platform-specific configuration from `tauri.linux.conf.json`, -/// `tauri.windows.conf.json`, and `tauri.macos.conf.json` -/// (or `Tauri.linux.toml`, `Tauri.windows.toml` and `Tauri.macos.toml` if the `Tauri.toml` format is used), +/// `tauri.windows.conf.json`, `tauri.macos.conf.json`, `tauri.android.conf.json` and `tauri.ios.conf.json` +/// (or `Tauri.linux.toml`, `Tauri.windows.toml`, `Tauri.macos.toml`, `Tauri.android.toml` and `Tauri.ios.toml` if the `Tauri.toml` format is used), /// which gets merged with the main configuration object. /// /// ## Configuration Structure diff --git a/core/tauri-utils/src/config/parse.rs b/core/tauri-utils/src/config/parse.rs index 6cf710faad5f..369b793ce625 100644 --- a/core/tauri-utils/src/config/parse.rs +++ b/core/tauri-utils/src/config/parse.rs @@ -54,6 +54,10 @@ impl ConfigFormat { "tauri.macos.conf.json" } else if cfg!(windows) { "tauri.windows.conf.json" + } else if cfg!(target_os = "android") { + "tauri.android.conf.json" + } else if cfg!(target_os = "ios") { + "tauri.ios.conf.json" } else { "tauri.linux.conf.json" } @@ -63,6 +67,10 @@ impl ConfigFormat { "tauri.macos.conf.json5" } else if cfg!(windows) { "tauri.windows.conf.json5" + } else if cfg!(target_os = "android") { + "tauri.android.conf.json" + } else if cfg!(target_os = "ios") { + "tauri.ios.conf.json" } else { "tauri.linux.conf.json5" } @@ -72,6 +80,10 @@ impl ConfigFormat { "Tauri.macos.toml" } else if cfg!(windows) { "Tauri.windows.toml" + } else if cfg!(target_os = "android") { + "tauri.android.toml" + } else if cfg!(target_os = "ios") { + "tauri.ios.toml" } else { "Tauri.linux.toml" } @@ -143,11 +155,13 @@ pub enum ConfigError { /// Reads the configuration from the given root directory. /// -/// It first looks for a `tauri.conf.json[5]` file on the given directory. The file must exist. +/// It first looks for a `tauri.conf.json[5]` or `Tauri.toml` file on the given directory. The file must exist. /// Then it looks for a platform-specific configuration file: -/// - `tauri.macos.conf.json[5]` on macOS -/// - `tauri.linux.conf.json[5]` on Linux -/// - `tauri.windows.conf.json[5]` on Windows +/// - `tauri.macos.conf.json[5]` or `Tauri.macos.toml` on macOS +/// - `tauri.linux.conf.json[5]` or `Tauri.linux.toml` on Linux +/// - `tauri.windows.conf.json[5]` or `Tauri.windows.toml` on Windows +/// - `tauri.android.conf.json[5]` or `Tauri.android.toml` on Android +/// - `tauri.ios.conf.json[5]` or `Tauri.ios.toml` on iOS /// Merging the configurations using [JSON Merge Patch (RFC 7396)]. /// /// [JSON Merge Patch (RFC 7396)]: https://datatracker.ietf.org/doc/html/rfc7396. diff --git a/tooling/cli/schema.json b/tooling/cli/schema.json index a8b1bd06bc2e..6322c3c7c6c5 100644 --- a/tooling/cli/schema.json +++ b/tooling/cli/schema.json @@ -1,7 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Config", - "description": "The Tauri configuration object. It is read from a file where you can define your frontend assets, configure the bundler, enable the app updater, define a system tray, enable APIs via the allowlist and more.\n\nThe configuration file is generated by the [`tauri init`](https://tauri.app/v1/api/cli#init) command that lives in your Tauri application source directory (src-tauri).\n\nOnce generated, you may modify it at will to customize your Tauri application.\n\n## File Formats\n\nBy default, the configuration is defined as a JSON file named `tauri.conf.json`.\n\nTauri also supports JSON5 and TOML files via the `config-json5` and `config-toml` Cargo features, respectively. The JSON5 file name must be either `tauri.conf.json` or `tauri.conf.json5`. The TOML file name is `Tauri.toml`.\n\n## Platform-Specific Configuration\n\nIn addition to the default configuration file, Tauri can read a platform-specific configuration from `tauri.linux.conf.json`, `tauri.windows.conf.json`, and `tauri.macos.conf.json` (or `Tauri.linux.toml`, `Tauri.windows.toml` and `Tauri.macos.toml` if the `Tauri.toml` format is used), which gets merged with the main configuration object.\n\n## Configuration Structure\n\nThe configuration is composed of the following objects:\n\n- [`package`](#packageconfig): Package settings - [`tauri`](#tauriconfig): The Tauri config - [`build`](#buildconfig): The build configuration - [`plugins`](#pluginconfig): The plugins config\n\n```json title=\"Example tauri.config.json file\" { \"build\": { \"beforeBuildCommand\": \"\", \"beforeDevCommand\": \"\", \"devPath\": \"../dist\", \"distDir\": \"../dist\" }, \"package\": { \"productName\": \"tauri-app\", \"version\": \"0.1.0\" }, \"tauri\": { \"allowlist\": { \"all\": true }, \"bundle\": {}, \"security\": { \"csp\": null }, \"updater\": { \"active\": false }, \"windows\": [ { \"fullscreen\": false, \"height\": 600, \"resizable\": true, \"title\": \"Tauri App\", \"width\": 800 } ] } } ```", + "description": "The Tauri configuration object. It is read from a file where you can define your frontend assets, configure the bundler, enable the app updater, define a system tray, enable APIs via the allowlist and more.\n\nThe configuration file is generated by the [`tauri init`](https://tauri.app/v1/api/cli#init) command that lives in your Tauri application source directory (src-tauri).\n\nOnce generated, you may modify it at will to customize your Tauri application.\n\n## File Formats\n\nBy default, the configuration is defined as a JSON file named `tauri.conf.json`.\n\nTauri also supports JSON5 and TOML files via the `config-json5` and `config-toml` Cargo features, respectively. The JSON5 file name must be either `tauri.conf.json` or `tauri.conf.json5`. The TOML file name is `Tauri.toml`.\n\n## Platform-Specific Configuration\n\nIn addition to the default configuration file, Tauri can read a platform-specific configuration from `tauri.linux.conf.json`, `tauri.windows.conf.json`, `tauri.macos.conf.json`, `tauri.android.conf.json` and `tauri.ios.conf.json` (or `Tauri.linux.toml`, `Tauri.windows.toml`, `Tauri.macos.toml`, `Tauri.android.toml` and `Tauri.ios.toml` if the `Tauri.toml` format is used), which gets merged with the main configuration object.\n\n## Configuration Structure\n\nThe configuration is composed of the following objects:\n\n- [`package`](#packageconfig): Package settings - [`tauri`](#tauriconfig): The Tauri config - [`build`](#buildconfig): The build configuration - [`plugins`](#pluginconfig): The plugins config\n\n```json title=\"Example tauri.config.json file\" { \"build\": { \"beforeBuildCommand\": \"\", \"beforeDevCommand\": \"\", \"devPath\": \"../dist\", \"distDir\": \"../dist\" }, \"package\": { \"productName\": \"tauri-app\", \"version\": \"0.1.0\" }, \"tauri\": { \"allowlist\": { \"all\": true }, \"bundle\": {}, \"security\": { \"csp\": null }, \"updater\": { \"active\": false }, \"windows\": [ { \"fullscreen\": false, \"height\": 600, \"resizable\": true, \"title\": \"Tauri App\", \"width\": 800 } ] } } ```", "type": "object", "properties": { "$schema": { From 4c9ea450c3b47c6b8c825ba32e9837909945ccd7 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Mon, 22 Aug 2022 12:49:58 -0300 Subject: [PATCH 019/436] feat(cli): add `android build` command (#4999) --- .changes/cli-android-build.md | 6 + tooling/cli/Cargo.lock | 2 +- tooling/cli/src/build.rs | 196 +++++++++--------- tooling/cli/src/mobile/android.rs | 194 ++++++++++++++++- .../mobile/android/app/build.gradle.kts | 4 +- 5 files changed, 299 insertions(+), 103 deletions(-) create mode 100644 .changes/cli-android-build.md diff --git a/.changes/cli-android-build.md b/.changes/cli-android-build.md new file mode 100644 index 000000000000..b1eb65a83e73 --- /dev/null +++ b/.changes/cli-android-build.md @@ -0,0 +1,6 @@ +--- +"cli.rs": minor +"cli.js": minor +--- + +Added `android build` command. diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index bfc1e301259f..dae6c0291e3c 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -250,7 +250,7 @@ dependencies = [ [[package]] name = "cargo-mobile" version = "0.1.0" -source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#c30e0f1338632a9d904e0aca602408fca9d70650" +source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#76732050ab72f308a202aeb580bcdfa6936c4e28" dependencies = [ "cocoa", "colored 1.9.3", diff --git a/tooling/cli/src/build.rs b/tooling/cli/src/build.rs index b0f2ecd5f8af..e212220c61cf 100644 --- a/tooling/cli/src/build.rs +++ b/tooling/cli/src/build.rs @@ -58,104 +58,12 @@ pub struct Options { } pub fn command(mut options: Options) -> Result<()> { - let (merge_config, merge_config_path) = if let Some(config) = &options.config { - if config.starts_with('{') { - (Some(config.to_string()), None) - } else { - ( - Some( - std::fs::read_to_string(&config) - .with_context(|| "failed to read custom configuration")?, - ), - Some(config.clone()), - ) - } - } else { - (None, None) - }; - options.config = merge_config; - - let tauri_path = tauri_dir(); - set_current_dir(&tauri_path).with_context(|| "failed to change current working directory")?; + let mut interface = setup(&mut options)?; let config = get_config(options.config.as_deref())?; - let config_guard = config.lock().unwrap(); let config_ = config_guard.as_ref().unwrap(); - let mut interface = AppInterface::new(config_)?; - - let bundle_identifier_source = match config_.find_bundle_identifier_overwriter() { - Some(source) if source == MERGE_CONFIG_EXTENSION_NAME => merge_config_path.unwrap_or(source), - Some(source) => source, - None => "tauri.conf.json".into(), - }; - - if config_.tauri.bundle.identifier == "com.tauri.dev" { - error!( - "You must change the bundle identifier in `{} > tauri > bundle > identifier`. The default value `com.tauri.dev` is not allowed as it must be unique across applications.", - bundle_identifier_source - ); - std::process::exit(1); - } - - if config_ - .tauri - .bundle - .identifier - .chars() - .any(|ch| !(ch.is_alphanumeric() || ch == '-' || ch == '.')) - { - error!( - "The bundle identifier \"{}\" set in `{} > tauri > bundle > identifier`. The bundle identifier string must contain only alphanumeric characters (A–Z, a–z, and 0–9), hyphens (-), and periods (.).", - config_.tauri.bundle.identifier, - bundle_identifier_source - ); - std::process::exit(1); - } - - if let Some(before_build) = config_.build.before_build_command.clone() { - run_hook("beforeBuildCommand", before_build, options.debug)?; - } - - if let AppUrl::Url(WindowUrl::App(web_asset_path)) = &config_.build.dist_dir { - if !web_asset_path.exists() { - return Err(anyhow::anyhow!( - "Unable to find your web assets, did you forget to build your web app? Your distDir is set to \"{:?}\".", - web_asset_path - )); - } - if web_asset_path.canonicalize()?.file_name() == Some(std::ffi::OsStr::new("src-tauri")) { - return Err(anyhow::anyhow!( - "The configured distDir is the `src-tauri` folder. - Please isolate your web assets on a separate folder and update `tauri.conf.json > build > distDir`.", - )); - } - - let mut out_folders = Vec::new(); - for folder in &["node_modules", "src-tauri", "target"] { - if web_asset_path.join(folder).is_dir() { - out_folders.push(folder.to_string()); - } - } - if !out_folders.is_empty() { - return Err(anyhow::anyhow!( - "The configured distDir includes the `{:?}` {}. Please isolate your web assets on a separate folder and update `tauri.conf.json > build > distDir`.", - out_folders, - if out_folders.len() == 1 { "folder" }else { "folders" } - ) - ); - } - } - - if options.runner.is_none() { - options.runner = config_.build.runner.clone(); - } - - if let Some(list) = options.features.as_mut() { - list.extend(config_.build.features.clone().unwrap_or_default()); - } - let app_settings = interface.app_settings(); let interface_options = options.clone().into(); @@ -310,6 +218,108 @@ pub fn command(mut options: Options) -> Result<()> { Ok(()) } +pub fn setup(options: &mut Options) -> Result { + let (merge_config, merge_config_path) = if let Some(config) = &options.config { + if config.starts_with('{') { + (Some(config.to_string()), None) + } else { + ( + Some( + std::fs::read_to_string(&config) + .with_context(|| "failed to read custom configuration")?, + ), + Some(config.clone()), + ) + } + } else { + (None, None) + }; + options.config = merge_config; + + let tauri_path = tauri_dir(); + set_current_dir(&tauri_path).with_context(|| "failed to change current working directory")?; + + let config = get_config(options.config.as_deref())?; + + let config_guard = config.lock().unwrap(); + let config_ = config_guard.as_ref().unwrap(); + + let interface = AppInterface::new(config_)?; + + let bundle_identifier_source = match config_.find_bundle_identifier_overwriter() { + Some(source) if source == MERGE_CONFIG_EXTENSION_NAME => merge_config_path.unwrap_or(source), + Some(source) => source, + None => "tauri.conf.json".into(), + }; + + if config_.tauri.bundle.identifier == "com.tauri.dev" { + error!( + "You must change the bundle identifier in `{} > tauri > bundle > identifier`. The default value `com.tauri.dev` is not allowed as it must be unique across applications.", + bundle_identifier_source + ); + std::process::exit(1); + } + + if config_ + .tauri + .bundle + .identifier + .chars() + .any(|ch| !(ch.is_alphanumeric() || ch == '-' || ch == '.')) + { + error!( + "The bundle identifier \"{}\" set in `{} > tauri > bundle > identifier`. The bundle identifier string must contain only alphanumeric characters (A–Z, a–z, and 0–9), hyphens (-), and periods (.).", + config_.tauri.bundle.identifier, + bundle_identifier_source + ); + std::process::exit(1); + } + + if let Some(before_build) = config_.build.before_build_command.clone() { + run_hook("beforeBuildCommand", before_build, options.debug)?; + } + + if let AppUrl::Url(WindowUrl::App(web_asset_path)) = &config_.build.dist_dir { + if !web_asset_path.exists() { + return Err(anyhow::anyhow!( + "Unable to find your web assets, did you forget to build your web app? Your distDir is set to \"{:?}\".", + web_asset_path + )); + } + if web_asset_path.canonicalize()?.file_name() == Some(std::ffi::OsStr::new("src-tauri")) { + return Err(anyhow::anyhow!( + "The configured distDir is the `src-tauri` folder. + Please isolate your web assets on a separate folder and update `tauri.conf.json > build > distDir`.", + )); + } + + let mut out_folders = Vec::new(); + for folder in &["node_modules", "src-tauri", "target"] { + if web_asset_path.join(folder).is_dir() { + out_folders.push(folder.to_string()); + } + } + if !out_folders.is_empty() { + return Err(anyhow::anyhow!( + "The configured distDir includes the `{:?}` {}. Please isolate your web assets on a separate folder and update `tauri.conf.json > build > distDir`.", + out_folders, + if out_folders.len() == 1 { "folder" }else { "folders" } + ) + ); + } + } + + if options.runner.is_none() { + options.runner = config_.build.runner.clone(); + } + + if let Some(list) = options.features.as_mut() { + list.extend(config_.build.features.clone().unwrap_or_default()); + } + + Ok(interface) +} + fn run_hook(name: &str, hook: HookCommand, debug: bool) -> Result<()> { let (script, script_cwd) = match hook { HookCommand::Script(s) if s.is_empty() => (None, None), diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index 24214ccce05a..5d10ba6b158e 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -4,7 +4,7 @@ use cargo_mobile::{ android::{ - adb, + aab, adb, apk, config::{Config as AndroidConfig, Metadata as AndroidMetadata}, device::{Device, RunError}, env::{Env, Error as EnvError}, @@ -14,7 +14,7 @@ use cargo_mobile::{ device::PromptError, opts::{NoiseLevel, Profile}, os, - target::call_for_targets_with_fallback, + target::{call_for_targets_with_fallback, TargetTrait}, util::prompt, }; use clap::{Parser, Subcommand}; @@ -30,6 +30,8 @@ use crate::{ Result, }; +use std::{fmt::Write, path::PathBuf}; + pub(crate) mod project; #[derive(Debug, thiserror::Error)] @@ -46,8 +48,10 @@ enum Error { OpenFailed(os::OpenFileError), #[error("{0}")] DevFailed(String), + #[error("{0}")] + BuildFailed(String), #[error(transparent)] - BuildFailed(BuildError), + AndroidStudioScriptFailed(BuildError), #[error(transparent)] RunFailed(RunError), #[error("{0}")] @@ -77,7 +81,8 @@ pub struct AndroidStudioScriptOptions { long = "target", multiple_occurrences(true), multiple_values(true), - value_parser(clap::builder::PossibleValuesParser::new(["aarch64", "armv7", "i686", "x86_64"])) + default_value = Target::DEFAULT_KEY, + value_parser(clap::builder::PossibleValuesParser::new(Target::name_list())) )] targets: Option>, /// Builds with the release flag @@ -120,12 +125,59 @@ impl From for crate::dev::Options { } } +#[derive(Debug, Clone, Parser)] +#[clap(about = "Android build")] +pub struct BuildOptions { + /// Builds with the debug flag + #[clap(short, long)] + pub debug: bool, + /// Which targets to build (all by default). + #[clap( + short, + long = "target", + multiple_occurrences(true), + multiple_values(true), + value_parser(clap::builder::PossibleValuesParser::new(Target::name_list())) + )] + targets: Option>, + /// List of cargo features to activate + #[clap(short, long, multiple_occurrences(true), multiple_values(true))] + pub features: Option>, + /// JSON string or path to JSON file to merge with tauri.conf.json + #[clap(short, long)] + pub config: Option, + /// Whether to split the APKs and AABs per ABIs. + #[clap(long)] + pub split_per_abi: bool, + /// Build APKs. + #[clap(long)] + pub apk: bool, + /// Build AABs. + #[clap(long)] + pub aab: bool, +} + +impl From for crate::build::Options { + fn from(options: BuildOptions) -> Self { + Self { + runner: None, + debug: options.debug, + target: None, + features: options.features, + bundles: None, + config: options.config, + args: Vec::new(), + } + } +} + #[derive(Subcommand)] enum Commands { Init(InitOptions), /// Open project in Android Studio Open, Dev(DevOptions), + Build(BuildOptions), #[clap(hide(true))] AndroidStudioScript(AndroidStudioScriptOptions), } @@ -134,8 +186,9 @@ pub fn command(cli: Cli) -> Result<()> { match cli.command { Commands::Init(options) => init_command(options, MobileTarget::Android)?, Commands::Open => open()?, - Commands::AndroidStudioScript(options) => android_studio_script(options)?, Commands::Dev(options) => dev(options)?, + Commands::Build(options) => build(options)?, + Commands::AndroidStudioScript(options) => android_studio_script(options)?, } Ok(()) @@ -182,8 +235,134 @@ fn device_prompt<'a>(env: &'_ Env) -> Result, PromptError(targets: Vec) -> Result>, Error> { + if targets.is_empty() { + Ok(Target::all().iter().map(|t| t.1).collect()) + } else { + let mut outs = Vec::new(); + + let possible_targets = Target::all() + .keys() + .map(|key| key.to_string()) + .collect::>() + .join(","); + + for t in targets { + let target = Target::for_name(&t).ok_or_else(|| { + Error::TargetInvalid(format!( + "Target {} is invalid; the possible targets are {}", + t, possible_targets + )) + })?; + outs.push(target); + } + Ok(outs) + } +} + +fn build(options: BuildOptions) -> Result<()> { + with_config(|root_conf, config, _metadata| { + ensure_init(config.project_dir(), MobileTarget::Android) + .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; + + let env = Env::new().map_err(Error::EnvInitFailed)?; + super::init::init_dot_cargo(root_conf, Some(&env)).map_err(Error::InitDotCargo)?; + + run_build(options, config, env).map_err(|e| Error::BuildFailed(e.to_string())) + }) + .map_err(Into::into) +} + +fn run_build(mut options: BuildOptions, config: &AndroidConfig, env: Env) -> Result<()> { + let profile = if options.debug { + Profile::Debug + } else { + Profile::Release + }; + + if !(options.apk || options.aab) { + // if the user didn't specify the format to build, we'll do both + options.apk = true; + options.aab = true; + } + + let bundle_identifier = { + let tauri_config = get_tauri_config(None)?; + let tauri_config_guard = tauri_config.lock().unwrap(); + let tauri_config_ = tauri_config_guard.as_ref().unwrap(); + tauri_config_.tauri.bundle.identifier.clone() + }; + + let mut build_options = options.clone().into(); + let interface = crate::build::setup(&mut build_options)?; + + let app_settings = interface.app_settings(); + let bin_path = app_settings.app_binary_path(&InterfaceOptions { + debug: build_options.debug, + ..Default::default() + })?; + let out_dir = bin_path.parent().unwrap(); + let _lock = flock::open_rw(&out_dir.join("lock").with_extension("android"), "Android")?; + + let cli_options = CliOptions { + features: build_options.features.clone(), + args: build_options.args.clone(), + vars: Default::default(), + }; + write_options(cli_options, &bundle_identifier, MobileTarget::Android)?; + + options + .features + .get_or_insert(Vec::new()) + .push("custom-protocol".into()); + + let apk_outputs = if options.apk { + apk::build( + config, + &env, + NoiseLevel::Polite, + profile, + get_targets_or_all(Vec::new())?, + options.split_per_abi, + )? + } else { + Vec::new() + }; + + let aab_outputs = if options.aab { + aab::build( + config, + &env, + NoiseLevel::Polite, + profile, + get_targets_or_all(Vec::new())?, + options.split_per_abi, + )? + } else { + Vec::new() + }; + + log_finished(apk_outputs, "APK"); + log_finished(aab_outputs, "AAB"); + + Ok(()) +} + +fn log_finished(outputs: Vec, kind: &str) { + if !outputs.is_empty() { + let mut printable_paths = String::new(); + for path in &outputs { + writeln!(printable_paths, " {}", path.display()).unwrap(); + } + + log::info!(action = "Finished"; "{} {}{} at:\n{}", outputs.len(), kind, if outputs.len() == 1 { "" } else { "s" }, printable_paths); + } +} + fn dev(options: DevOptions) -> Result<()> { with_config(|_, config, _metadata| { + ensure_init(config.project_dir(), MobileTarget::Android) + .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; run_dev(options, config).map_err(|e| Error::DevFailed(e.to_string())) }) .map_err(Into::into) @@ -194,8 +373,7 @@ fn run_dev(options: DevOptions, config: &AndroidConfig) -> Result<()> { let mut interface = crate::dev::setup(&mut dev_options)?; let bundle_identifier = { - let tauri_config = - get_tauri_config(None).map_err(|e| Error::InvalidTauriConfig(e.to_string()))?; + let tauri_config = get_tauri_config(None)?; let tauri_config_guard = tauri_config.lock().unwrap(); let tauri_config_ = tauri_config_guard.as_ref().unwrap(); tauri_config_.tauri.bundle.identifier.clone() @@ -319,7 +497,7 @@ fn android_studio_script(options: AndroidStudioScriptOptions) -> Result<()> { |target: &Target| { target .build(config, metadata, &env, NoiseLevel::Polite, true, profile) - .map_err(Error::BuildFailed) + .map_err(Error::AndroidStudioScriptFailed) }, ) .map_err(|e| Error::TargetInvalid(e.to_string()))? diff --git a/tooling/cli/templates/mobile/android/app/build.gradle.kts b/tooling/cli/templates/mobile/android/app/build.gradle.kts index 5696afc5c099..9031fd8ed2b3 100644 --- a/tooling/cli/templates/mobile/android/app/build.gradle.kts +++ b/tooling/cli/templates/mobile/android/app/build.gradle.kts @@ -41,9 +41,11 @@ android { flavorDimensions.add("abi") productFlavors { create("universal") { + val abiList = findProperty("abiList") as? String + dimension = "abi" ndk { - abiFilters += listOf( + abiFilters += abiList?.split(",")?.map { it.trim() } ?: listOf( {{~#each targets}} "{{this.abi}}",{{/each}} ) From 403859d47e1a9bf978b353fa58e4b971e66337a3 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Mon, 22 Aug 2022 17:47:52 -0300 Subject: [PATCH 020/436] feat(cli): add `ios build` command (#5002) --- .changes/cli-ios-build.md | 6 + tooling/cli/Cargo.lock | 2 +- tooling/cli/src/mobile/android.rs | 76 ++++++------ tooling/cli/src/mobile/ios.rs | 193 ++++++++++++++++++++++++++---- tooling/cli/src/mobile/mod.rs | 4 +- 5 files changed, 224 insertions(+), 57 deletions(-) create mode 100644 .changes/cli-ios-build.md diff --git a/.changes/cli-ios-build.md b/.changes/cli-ios-build.md new file mode 100644 index 000000000000..5a611ecb744d --- /dev/null +++ b/.changes/cli-ios-build.md @@ -0,0 +1,6 @@ +--- +"cli.rs": patch +"cli.js": patch +--- + +Added `ios build` command. diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index dae6c0291e3c..1437c9675ae0 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -250,7 +250,7 @@ dependencies = [ [[package]] name = "cargo-mobile" version = "0.1.0" -source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#76732050ab72f308a202aeb580bcdfa6936c4e28" +source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#5444888b3e9bc5a596bc2668315c8805a865c5f6" dependencies = [ "cocoa", "colored 1.9.3", diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index 5d10ba6b158e..dd0272624461 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -139,7 +139,7 @@ pub struct BuildOptions { multiple_values(true), value_parser(clap::builder::PossibleValuesParser::new(Target::name_list())) )] - targets: Option>, + pub targets: Option>, /// List of cargo features to activate #[clap(short, long, multiple_occurrences(true), multiple_values(true))] pub features: Option>, @@ -279,6 +279,7 @@ fn run_build(mut options: BuildOptions, config: &AndroidConfig, env: Env) -> Res } else { Profile::Release }; + let noise_level = NoiseLevel::Polite; if !(options.apk || options.aab) { // if the user didn't specify the format to build, we'll do both @@ -320,7 +321,7 @@ fn run_build(mut options: BuildOptions, config: &AndroidConfig, env: Env) -> Res apk::build( config, &env, - NoiseLevel::Polite, + noise_level, profile, get_targets_or_all(Vec::new())?, options.split_per_abi, @@ -333,7 +334,7 @@ fn run_build(mut options: BuildOptions, config: &AndroidConfig, env: Env) -> Res aab::build( config, &env, - NoiseLevel::Polite, + noise_level, profile, get_targets_or_all(Vec::new())?, options.split_per_abi, @@ -360,15 +361,20 @@ fn log_finished(outputs: Vec, kind: &str) { } fn dev(options: DevOptions) -> Result<()> { - with_config(|_, config, _metadata| { + with_config(|root_conf, config, metadata| { ensure_init(config.project_dir(), MobileTarget::Android) .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; - run_dev(options, config).map_err(|e| Error::DevFailed(e.to_string())) + run_dev(options, root_conf, config, metadata).map_err(|e| Error::DevFailed(e.to_string())) }) .map_err(Into::into) } -fn run_dev(options: DevOptions, config: &AndroidConfig) -> Result<()> { +fn run_dev( + options: DevOptions, + root_conf: &Config, + config: &AndroidConfig, + metadata: &AndroidMetadata, +) -> Result<()> { let mut dev_options = options.clone().into(); let mut interface = crate::dev::setup(&mut dev_options)?; @@ -407,7 +413,7 @@ fn run_dev(options: DevOptions, config: &AndroidConfig) -> Result<()> { if open { open_dev(config) } else { - match run(options) { + match run(options, root_conf, config, metadata) { Ok(c) => Ok(Box::new(c) as Box), Err(Error::FailedToPromptForDevice(e)) => { log::error!("{}", e); @@ -439,37 +445,42 @@ fn open() -> Result<()> { .map_err(Into::into) } -fn run(options: MobileOptions) -> Result { +fn run( + options: MobileOptions, + root_conf: &Config, + config: &AndroidConfig, + metadata: &AndroidMetadata, +) -> Result { let profile = if options.debug { Profile::Debug } else { Profile::Release }; + let noise_level = NoiseLevel::Polite; - with_config(|root_conf, config, metadata| { - let build_app_bundle = metadata.asset_packs().is_some(); + let build_app_bundle = metadata.asset_packs().is_some(); - ensure_init(config.project_dir(), MobileTarget::Android) - .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; + let env = Env::new().map_err(Error::EnvInitFailed)?; + super::init::init_dot_cargo(root_conf, Some(&env)).map_err(Error::InitDotCargo)?; - let env = Env::new().map_err(Error::EnvInitFailed)?; - super::init::init_dot_cargo(root_conf, Some(&env)).map_err(Error::InitDotCargo)?; + device_prompt(&env) + .map_err(Error::FailedToPromptForDevice)? + .run( + config, + &env, + noise_level, + profile, + None, + build_app_bundle, + false, + ".MainActivity".into(), + ) + .map(|c| DevChild(Some(c))) + .map_err(Error::RunFailed) +} - device_prompt(&env) - .map_err(Error::FailedToPromptForDevice)? - .run( - config, - &env, - NoiseLevel::Polite, - profile, - None, - build_app_bundle, - false, - ".MainActivity".into(), - ) - .map_err(Error::RunFailed) - }) - .map(|c| DevChild(Some(c))) +fn detect_target_ok<'a>(env: &Env) -> Option<&'a Target<'a>> { + device_prompt(env).map(|device| device.target()).ok() } fn android_studio_script(options: AndroidStudioScriptOptions) -> Result<()> { @@ -478,10 +489,7 @@ fn android_studio_script(options: AndroidStudioScriptOptions) -> Result<()> { } else { Profile::Debug }; - - fn detect_target_ok<'a>(env: &Env) -> Option<&'a Target<'a>> { - device_prompt(env).map(|device| device.target()).ok() - } + let noise_level = NoiseLevel::Polite; with_config(|root_conf, config, metadata| { ensure_init(config.project_dir(), MobileTarget::Android) @@ -496,7 +504,7 @@ fn android_studio_script(options: AndroidStudioScriptOptions) -> Result<()> { &env, |target: &Target| { target - .build(config, metadata, &env, NoiseLevel::Polite, true, profile) + .build(config, metadata, &env, noise_level, true, profile) .map_err(Error::AndroidStudioScriptFailed) }, ) diff --git a/tooling/cli/src/mobile/ios.rs b/tooling/cli/src/mobile/ios.rs index 22fe55fd56b3..a8ab6c8ff022 100644 --- a/tooling/cli/src/mobile/ios.rs +++ b/tooling/cli/src/mobile/ios.rs @@ -13,7 +13,9 @@ use cargo_mobile::{ device::PromptError, env::{Env, Error as EnvError}, opts::{NoiseLevel, Profile}, - os, util, + os, + target::{call_for_targets_with_fallback, TargetInvalid, TargetTrait}, + util, util::prompt, }; use clap::{Parser, Subcommand}; @@ -29,7 +31,7 @@ use crate::{ Result, }; -use std::{collections::HashMap, ffi::OsStr, path::PathBuf}; +use std::{collections::HashMap, ffi::OsStr, fmt::Write, fs, path::PathBuf}; pub(crate) mod project; @@ -47,6 +49,8 @@ enum Error { OpenFailed(os::OpenFileError), #[error("{0}")] DevFailed(String), + #[error("{0}")] + BuildFailed(String), #[error(transparent)] NoHomeDir(util::NoHomeDir), #[error("SDK root provided by Xcode was invalid. {sdk_root} doesn't exist or isn't a directory")] @@ -63,6 +67,8 @@ enum Error { FailedToPromptForDevice(PromptError), #[error(transparent)] RunFailed(RunError), + #[error("{0}")] + TargetInvalid(String), } #[derive(Parser)] @@ -135,11 +141,53 @@ impl From for crate::dev::Options { } } +#[derive(Debug, Clone, Parser)] +#[clap(about = "Android build")] +pub struct BuildOptions { + /// Builds with the debug flag + #[clap(short, long)] + pub debug: bool, + /// Which targets to build. + #[clap( + short, + long = "target", + multiple_occurrences(true), + multiple_values(true), + default_value = Target::DEFAULT_KEY, + value_parser(clap::builder::PossibleValuesParser::new(Target::name_list())) + )] + pub targets: Vec, + /// List of cargo features to activate + #[clap(short, long, multiple_occurrences(true), multiple_values(true))] + pub features: Option>, + /// JSON string or path to JSON file to merge with tauri.conf.json + #[clap(short, long)] + pub config: Option, + /// Build number to append to the app version. + #[clap(long)] + pub build_number: Option, +} + +impl From for crate::build::Options { + fn from(options: BuildOptions) -> Self { + Self { + runner: None, + debug: options.debug, + target: None, + features: options.features, + bundles: None, + config: options.config, + args: Vec::new(), + } + } +} + #[derive(Subcommand)] enum Commands { Init(InitOptions), Open, Dev(DevOptions), + Build(BuildOptions), #[clap(hide(true))] XcodeScript(XcodeScriptOptions), } @@ -149,6 +197,7 @@ pub fn command(cli: Cli) -> Result<()> { Commands::Init(options) => init_command(options, MobileTarget::Ios)?, Commands::Open => open()?, Commands::Dev(options) => dev(options)?, + Commands::Build(options) => build(options)?, Commands::XcodeScript(options) => xcode_script(options)?, } @@ -203,14 +252,117 @@ fn device_prompt<'a>(env: &'_ Env) -> Result, PromptError(env: &Env) -> Option<&'a Target<'a>> { + device_prompt(env).map(|device| device.target()).ok() +} + +fn build(options: BuildOptions) -> Result<()> { + with_config(|root_conf, config, _metadata| { + ensure_init(config.project_dir(), MobileTarget::Ios) + .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; + + let env = env()?; + super::init::init_dot_cargo(root_conf, None).map_err(Error::InitDotCargo)?; + + run_build(options, config, env).map_err(|e| Error::BuildFailed(e.to_string())) + }) + .map_err(Into::into) +} + +fn run_build(mut options: BuildOptions, config: &AppleConfig, env: Env) -> Result<()> { + let profile = if options.debug { + Profile::Debug + } else { + Profile::Release + }; + let noise_level = NoiseLevel::Polite; + + let bundle_identifier = { + let tauri_config = get_tauri_config(None)?; + let tauri_config_guard = tauri_config.lock().unwrap(); + let tauri_config_ = tauri_config_guard.as_ref().unwrap(); + tauri_config_.tauri.bundle.identifier.clone() + }; + + let mut build_options = options.clone().into(); + let interface = crate::build::setup(&mut build_options)?; + + let app_settings = interface.app_settings(); + let bin_path = app_settings.app_binary_path(&InterfaceOptions { + debug: build_options.debug, + ..Default::default() + })?; + let out_dir = bin_path.parent().unwrap(); + let _lock = flock::open_rw(&out_dir.join("lock").with_extension("ios"), "iOS")?; + + let cli_options = CliOptions { + features: build_options.features.clone(), + args: build_options.args.clone(), + vars: Default::default(), + }; + write_options(cli_options, &bundle_identifier, MobileTarget::Ios)?; + + options + .features + .get_or_insert(Vec::new()) + .push("custom-protocol".into()); + + let mut out_files = Vec::new(); + + call_for_targets_with_fallback( + options.targets.iter(), + &detect_target_ok, + &env, + |target: &Target| { + let mut app_version = config.bundle_version().clone(); + if let Some(build_number) = options.build_number { + app_version.push_extra(build_number); + } + + target.build(config, &env, noise_level, profile)?; + target.archive(config, &env, noise_level, profile, Some(app_version))?; + target.export(config, &env, noise_level)?; + + if let Ok(ipa_path) = config.ipa_path() { + let out_dir = config.export_dir().join(target.arch); + fs::create_dir_all(&out_dir)?; + let path = out_dir.join(ipa_path.file_name().unwrap()); + fs::rename(&ipa_path, &path)?; + out_files.push(path); + } + + anyhow::Result::Ok(()) + }, + ) + .map_err(|e: TargetInvalid| Error::TargetInvalid(e.to_string()))? + .map_err(|e: anyhow::Error| e)?; + + log_finished(out_files, "IPA"); + + Ok(()) +} + +fn log_finished(outputs: Vec, kind: &str) { + if !outputs.is_empty() { + let mut printable_paths = String::new(); + for path in &outputs { + writeln!(printable_paths, " {}", path.display()).unwrap(); + } + + log::info!(action = "Finished"; "{} {}{} at:\n{}", outputs.len(), kind, if outputs.len() == 1 { "" } else { "s" }, printable_paths); + } +} + fn dev(options: DevOptions) -> Result<()> { - with_config(|_, config, _metadata| { - run_dev(options, config).map_err(|e| Error::DevFailed(e.to_string())) + with_config(|root_conf, config, _metadata| { + ensure_init(config.project_dir(), MobileTarget::Ios) + .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; + run_dev(options, root_conf, config).map_err(|e| Error::DevFailed(e.to_string())) }) .map_err(Into::into) } -fn run_dev(options: DevOptions, config: &AppleConfig) -> Result<()> { +fn run_dev(options: DevOptions, root_conf: &Config, config: &AppleConfig) -> Result<()> { let mut dev_options = options.clone().into(); let mut interface = crate::dev::setup(&mut dev_options)?; @@ -249,7 +401,7 @@ fn run_dev(options: DevOptions, config: &AppleConfig) -> Result<()> { if open { open_dev(config) } else { - match run(options) { + match run(options, root_conf, config) { Ok(c) => Ok(Box::new(c) as Box), Err(Error::FailedToPromptForDevice(e)) => { log::error!("{}", e); @@ -281,26 +433,26 @@ fn open() -> Result<()> { .map_err(Into::into) } -fn run(options: MobileOptions) -> Result { +fn run( + options: MobileOptions, + root_conf: &Config, + config: &AppleConfig, +) -> Result { let profile = if options.debug { Profile::Debug } else { Profile::Release }; + let noise_level = NoiseLevel::Polite; - with_config(|root_conf, config, _| { - ensure_init(config.project_dir(), MobileTarget::Ios) - .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; - - let env = env()?; - super::init::init_dot_cargo(root_conf, None).map_err(Error::InitDotCargo)?; + let env = env()?; + super::init::init_dot_cargo(root_conf, None).map_err(Error::InitDotCargo)?; - device_prompt(&env) - .map_err(Error::FailedToPromptForDevice)? - .run(config, &env, NoiseLevel::Polite, false, profile) - .map_err(Error::RunFailed) - }) - .map(|c| DevChild(Some(c))) + device_prompt(&env) + .map_err(Error::FailedToPromptForDevice)? + .run(config, &env, noise_level, false, profile) + .map(|c| DevChild(Some(c))) + .map_err(Error::RunFailed) } fn xcode_script(options: XcodeScriptOptions) -> Result<()> { @@ -318,6 +470,7 @@ fn xcode_script(options: XcodeScriptOptions) -> Result<()> { let profile = profile_from_configuration(&options.configuration); let macos = macos_from_platform(&options.platform); + let noise_level = NoiseLevel::Polite; with_config(|root_conf, config, metadata| { let env = env()?; @@ -400,7 +553,7 @@ fn xcode_script(options: XcodeScriptOptions) -> Result<()> { .compile_lib( config, metadata, - NoiseLevel::Polite, + noise_level, true, profile, &env, diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index 250391c7b3df..db6696db7334 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -170,8 +170,8 @@ fn get_config(config: &TauriConfig) -> (Config, Metadata) { ios_features: ios_options.features.clone(), macos_no_default_features: None, macos_features: None, - bundle_version: None, - bundle_version_short: None, + bundle_version: config.package.version.clone(), + bundle_version_short: config.package.version.clone(), ios_version: None, macos_version: None, use_legacy_build_system: None, From e56a9dd729d5b761bd7d7c4c95aa4403acc3e841 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Mon, 22 Aug 2022 21:59:17 -0300 Subject: [PATCH 021/436] refactor(cli): move mobile commands to their own module (#5005) --- tooling/cli/src/mobile/android.rs | 406 +--------------- .../mobile/android/android_studio_script.rs | 56 +++ tooling/cli/src/mobile/android/build.rs | 174 +++++++ tooling/cli/src/mobile/android/dev.rs | 163 +++++++ tooling/cli/src/mobile/android/open.rs | 12 + tooling/cli/src/mobile/ios.rs | 443 +----------------- tooling/cli/src/mobile/ios/build.rs | 147 ++++++ tooling/cli/src/mobile/ios/dev.rs | 146 ++++++ tooling/cli/src/mobile/ios/open.rs | 12 + tooling/cli/src/mobile/ios/xcode_script.rs | 141 ++++++ tooling/cli/src/mobile/mod.rs | 13 +- 11 files changed, 894 insertions(+), 819 deletions(-) create mode 100644 tooling/cli/src/mobile/android/android_studio_script.rs create mode 100644 tooling/cli/src/mobile/android/build.rs create mode 100644 tooling/cli/src/mobile/android/dev.rs create mode 100644 tooling/cli/src/mobile/android/open.rs create mode 100644 tooling/cli/src/mobile/ios/build.rs create mode 100644 tooling/cli/src/mobile/ios/dev.rs create mode 100644 tooling/cli/src/mobile/ios/open.rs create mode 100644 tooling/cli/src/mobile/ios/xcode_script.rs diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index dd0272624461..2d9aba649af7 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -4,7 +4,7 @@ use cargo_mobile::{ android::{ - aab, adb, apk, + adb, config::{Config as AndroidConfig, Metadata as AndroidMetadata}, device::{Device, RunError}, env::{Env, Error as EnvError}, @@ -12,26 +12,22 @@ use cargo_mobile::{ }, config::Config, device::PromptError, - opts::{NoiseLevel, Profile}, os, - target::{call_for_targets_with_fallback, TargetTrait}, util::prompt, }; use clap::{Parser, Subcommand}; use super::{ ensure_init, get_config, - init::{command as init_command, Options as InitOptions}, - write_options, CliOptions, DevChild, Target as MobileTarget, + init::{command as init_command, init_dot_cargo, Options as InitOptions}, + log_finished, Target as MobileTarget, }; -use crate::{ - helpers::{config::get as get_tauri_config, flock}, - interface::{AppSettings, DevProcess, Interface, MobileOptions, Options as InterfaceOptions}, - Result, -}; - -use std::{fmt::Write, path::PathBuf}; +use crate::{helpers::config::get as get_tauri_config, Result}; +mod android_studio_script; +mod build; +mod dev; +mod open; pub(crate) mod project; #[derive(Debug, thiserror::Error)] @@ -73,122 +69,24 @@ pub struct Cli { command: Commands, } -#[derive(Debug, Parser)] -pub struct AndroidStudioScriptOptions { - /// Targets to build. - #[clap( - short, - long = "target", - multiple_occurrences(true), - multiple_values(true), - default_value = Target::DEFAULT_KEY, - value_parser(clap::builder::PossibleValuesParser::new(Target::name_list())) - )] - targets: Option>, - /// Builds with the release flag - #[clap(short, long)] - release: bool, -} - -#[derive(Debug, Clone, Parser)] -#[clap(about = "Android dev")] -pub struct DevOptions { - /// List of cargo features to activate - #[clap(short, long, multiple_occurrences(true), multiple_values(true))] - pub features: Option>, - /// Exit on panic - #[clap(short, long)] - exit_on_panic: bool, - /// JSON string or path to JSON file to merge with tauri.conf.json - #[clap(short, long)] - pub config: Option, - /// Disable the file watcher - #[clap(long)] - pub no_watch: bool, - /// Open Android Studio instead of trying to run on a connected device - #[clap(short, long)] - pub open: bool, -} - -impl From for crate::dev::Options { - fn from(options: DevOptions) -> Self { - Self { - runner: None, - target: None, - features: options.features, - exit_on_panic: options.exit_on_panic, - config: options.config, - release_mode: false, - args: Vec::new(), - no_watch: options.no_watch, - } - } -} - -#[derive(Debug, Clone, Parser)] -#[clap(about = "Android build")] -pub struct BuildOptions { - /// Builds with the debug flag - #[clap(short, long)] - pub debug: bool, - /// Which targets to build (all by default). - #[clap( - short, - long = "target", - multiple_occurrences(true), - multiple_values(true), - value_parser(clap::builder::PossibleValuesParser::new(Target::name_list())) - )] - pub targets: Option>, - /// List of cargo features to activate - #[clap(short, long, multiple_occurrences(true), multiple_values(true))] - pub features: Option>, - /// JSON string or path to JSON file to merge with tauri.conf.json - #[clap(short, long)] - pub config: Option, - /// Whether to split the APKs and AABs per ABIs. - #[clap(long)] - pub split_per_abi: bool, - /// Build APKs. - #[clap(long)] - pub apk: bool, - /// Build AABs. - #[clap(long)] - pub aab: bool, -} - -impl From for crate::build::Options { - fn from(options: BuildOptions) -> Self { - Self { - runner: None, - debug: options.debug, - target: None, - features: options.features, - bundles: None, - config: options.config, - args: Vec::new(), - } - } -} - #[derive(Subcommand)] enum Commands { Init(InitOptions), /// Open project in Android Studio Open, - Dev(DevOptions), - Build(BuildOptions), + Dev(dev::Options), + Build(build::Options), #[clap(hide(true))] - AndroidStudioScript(AndroidStudioScriptOptions), + AndroidStudioScript(android_studio_script::Options), } pub fn command(cli: Cli) -> Result<()> { match cli.command { Commands::Init(options) => init_command(options, MobileTarget::Android)?, - Commands::Open => open()?, - Commands::Dev(options) => dev(options)?, - Commands::Build(options) => build(options)?, - Commands::AndroidStudioScript(options) => android_studio_script(options)?, + Commands::Open => open::command()?, + Commands::Dev(options) => dev::command(options)?, + Commands::Build(options) => build::command(options)?, + Commands::AndroidStudioScript(options) => android_studio_script::command(options)?, } Ok(()) @@ -235,280 +133,6 @@ fn device_prompt<'a>(env: &'_ Env) -> Result, PromptError(targets: Vec) -> Result>, Error> { - if targets.is_empty() { - Ok(Target::all().iter().map(|t| t.1).collect()) - } else { - let mut outs = Vec::new(); - - let possible_targets = Target::all() - .keys() - .map(|key| key.to_string()) - .collect::>() - .join(","); - - for t in targets { - let target = Target::for_name(&t).ok_or_else(|| { - Error::TargetInvalid(format!( - "Target {} is invalid; the possible targets are {}", - t, possible_targets - )) - })?; - outs.push(target); - } - Ok(outs) - } -} - -fn build(options: BuildOptions) -> Result<()> { - with_config(|root_conf, config, _metadata| { - ensure_init(config.project_dir(), MobileTarget::Android) - .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; - - let env = Env::new().map_err(Error::EnvInitFailed)?; - super::init::init_dot_cargo(root_conf, Some(&env)).map_err(Error::InitDotCargo)?; - - run_build(options, config, env).map_err(|e| Error::BuildFailed(e.to_string())) - }) - .map_err(Into::into) -} - -fn run_build(mut options: BuildOptions, config: &AndroidConfig, env: Env) -> Result<()> { - let profile = if options.debug { - Profile::Debug - } else { - Profile::Release - }; - let noise_level = NoiseLevel::Polite; - - if !(options.apk || options.aab) { - // if the user didn't specify the format to build, we'll do both - options.apk = true; - options.aab = true; - } - - let bundle_identifier = { - let tauri_config = get_tauri_config(None)?; - let tauri_config_guard = tauri_config.lock().unwrap(); - let tauri_config_ = tauri_config_guard.as_ref().unwrap(); - tauri_config_.tauri.bundle.identifier.clone() - }; - - let mut build_options = options.clone().into(); - let interface = crate::build::setup(&mut build_options)?; - - let app_settings = interface.app_settings(); - let bin_path = app_settings.app_binary_path(&InterfaceOptions { - debug: build_options.debug, - ..Default::default() - })?; - let out_dir = bin_path.parent().unwrap(); - let _lock = flock::open_rw(&out_dir.join("lock").with_extension("android"), "Android")?; - - let cli_options = CliOptions { - features: build_options.features.clone(), - args: build_options.args.clone(), - vars: Default::default(), - }; - write_options(cli_options, &bundle_identifier, MobileTarget::Android)?; - - options - .features - .get_or_insert(Vec::new()) - .push("custom-protocol".into()); - - let apk_outputs = if options.apk { - apk::build( - config, - &env, - noise_level, - profile, - get_targets_or_all(Vec::new())?, - options.split_per_abi, - )? - } else { - Vec::new() - }; - - let aab_outputs = if options.aab { - aab::build( - config, - &env, - noise_level, - profile, - get_targets_or_all(Vec::new())?, - options.split_per_abi, - )? - } else { - Vec::new() - }; - - log_finished(apk_outputs, "APK"); - log_finished(aab_outputs, "AAB"); - - Ok(()) -} - -fn log_finished(outputs: Vec, kind: &str) { - if !outputs.is_empty() { - let mut printable_paths = String::new(); - for path in &outputs { - writeln!(printable_paths, " {}", path.display()).unwrap(); - } - - log::info!(action = "Finished"; "{} {}{} at:\n{}", outputs.len(), kind, if outputs.len() == 1 { "" } else { "s" }, printable_paths); - } -} - -fn dev(options: DevOptions) -> Result<()> { - with_config(|root_conf, config, metadata| { - ensure_init(config.project_dir(), MobileTarget::Android) - .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; - run_dev(options, root_conf, config, metadata).map_err(|e| Error::DevFailed(e.to_string())) - }) - .map_err(Into::into) -} - -fn run_dev( - options: DevOptions, - root_conf: &Config, - config: &AndroidConfig, - metadata: &AndroidMetadata, -) -> Result<()> { - let mut dev_options = options.clone().into(); - let mut interface = crate::dev::setup(&mut dev_options)?; - - let bundle_identifier = { - let tauri_config = get_tauri_config(None)?; - let tauri_config_guard = tauri_config.lock().unwrap(); - let tauri_config_ = tauri_config_guard.as_ref().unwrap(); - tauri_config_.tauri.bundle.identifier.clone() - }; - - let app_settings = interface.app_settings(); - let bin_path = app_settings.app_binary_path(&InterfaceOptions { - debug: !dev_options.release_mode, - ..Default::default() - })?; - let out_dir = bin_path.parent().unwrap(); - let _lock = flock::open_rw(&out_dir.join("lock").with_extension("android"), "Android")?; - - let open = options.open; - interface.mobile_dev( - MobileOptions { - debug: true, - features: options.features, - args: Vec::new(), - config: options.config, - no_watch: options.no_watch, - }, - |options| { - let cli_options = CliOptions { - features: options.features.clone(), - args: options.args.clone(), - vars: Default::default(), - }; - write_options(cli_options, &bundle_identifier, MobileTarget::Android)?; - - if open { - open_dev(config) - } else { - match run(options, root_conf, config, metadata) { - Ok(c) => Ok(Box::new(c) as Box), - Err(Error::FailedToPromptForDevice(e)) => { - log::error!("{}", e); - open_dev(config) - } - Err(e) => Err(e.into()), - } - } - }, - ) -} - -fn open_dev(config: &AndroidConfig) -> ! { - log::info!("Opening Android Studio"); - if let Err(e) = os::open_file_with("Android Studio", config.project_dir()) { - log::error!("{}", e); - } - loop { - std::thread::sleep(std::time::Duration::from_secs(24 * 60 * 60)); - } -} - -fn open() -> 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) -} - -fn run( - options: MobileOptions, - root_conf: &Config, - config: &AndroidConfig, - metadata: &AndroidMetadata, -) -> Result { - let profile = if options.debug { - Profile::Debug - } else { - Profile::Release - }; - let noise_level = NoiseLevel::Polite; - - let build_app_bundle = metadata.asset_packs().is_some(); - - let env = Env::new().map_err(Error::EnvInitFailed)?; - super::init::init_dot_cargo(root_conf, Some(&env)).map_err(Error::InitDotCargo)?; - - device_prompt(&env) - .map_err(Error::FailedToPromptForDevice)? - .run( - config, - &env, - noise_level, - profile, - None, - build_app_bundle, - false, - ".MainActivity".into(), - ) - .map(|c| DevChild(Some(c))) - .map_err(Error::RunFailed) -} - fn detect_target_ok<'a>(env: &Env) -> Option<&'a Target<'a>> { device_prompt(env).map(|device| device.target()).ok() } - -fn android_studio_script(options: AndroidStudioScriptOptions) -> Result<()> { - let profile = if options.release { - Profile::Release - } else { - Profile::Debug - }; - let noise_level = NoiseLevel::Polite; - - with_config(|root_conf, config, metadata| { - ensure_init(config.project_dir(), MobileTarget::Android) - .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; - - let env = Env::new().map_err(Error::EnvInitFailed)?; - super::init::init_dot_cargo(root_conf, Some(&env)).map_err(Error::InitDotCargo)?; - - call_for_targets_with_fallback( - options.targets.unwrap_or_default().iter(), - &detect_target_ok, - &env, - |target: &Target| { - target - .build(config, metadata, &env, noise_level, true, profile) - .map_err(Error::AndroidStudioScriptFailed) - }, - ) - .map_err(|e| Error::TargetInvalid(e.to_string()))? - }) - .map_err(Into::into) -} diff --git a/tooling/cli/src/mobile/android/android_studio_script.rs b/tooling/cli/src/mobile/android/android_studio_script.rs new file mode 100644 index 000000000000..d7821394163a --- /dev/null +++ b/tooling/cli/src/mobile/android/android_studio_script.rs @@ -0,0 +1,56 @@ +use super::{detect_target_ok, ensure_init, init_dot_cargo, with_config, Error, MobileTarget}; +use crate::Result; +use clap::Parser; + +use cargo_mobile::{ + android::{env::Env, target::Target}, + opts::{NoiseLevel, Profile}, + target::{call_for_targets_with_fallback, TargetTrait}, +}; + +#[derive(Debug, Parser)] +pub struct Options { + /// Targets to build. + #[clap( + short, + long = "target", + multiple_occurrences(true), + multiple_values(true), + default_value = Target::DEFAULT_KEY, + value_parser(clap::builder::PossibleValuesParser::new(Target::name_list())) + )] + targets: Option>, + /// Builds with the release flag + #[clap(short, long)] + release: bool, +} + +pub fn command(options: Options) -> Result<()> { + let profile = if options.release { + Profile::Release + } else { + Profile::Debug + }; + let noise_level = NoiseLevel::Polite; + + with_config(|root_conf, config, metadata| { + ensure_init(config.project_dir(), MobileTarget::Android) + .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; + + let env = Env::new().map_err(Error::EnvInitFailed)?; + init_dot_cargo(root_conf, Some(&env)).map_err(Error::InitDotCargo)?; + + call_for_targets_with_fallback( + options.targets.unwrap_or_default().iter(), + &detect_target_ok, + &env, + |target: &Target| { + target + .build(config, metadata, &env, noise_level, true, profile) + .map_err(Error::AndroidStudioScriptFailed) + }, + ) + .map_err(|e| Error::TargetInvalid(e.to_string()))? + }) + .map_err(Into::into) +} diff --git a/tooling/cli/src/mobile/android/build.rs b/tooling/cli/src/mobile/android/build.rs new file mode 100644 index 000000000000..a6fbeb1ebb0a --- /dev/null +++ b/tooling/cli/src/mobile/android/build.rs @@ -0,0 +1,174 @@ +use super::{ensure_init, init_dot_cargo, log_finished, with_config, Error, MobileTarget}; +use crate::{ + helpers::{config::get as get_tauri_config, flock}, + interface::{AppSettings, Interface, Options as InterfaceOptions}, + mobile::{write_options, CliOptions}, + Result, +}; +use clap::Parser; + +use cargo_mobile::{ + android::{aab, apk, config::Config as AndroidConfig, env::Env, target::Target}, + opts::{NoiseLevel, Profile}, + target::TargetTrait, +}; + +#[derive(Debug, Clone, Parser)] +#[clap(about = "Android build")] +pub struct Options { + /// Builds with the debug flag + #[clap(short, long)] + pub debug: bool, + /// Which targets to build (all by default). + #[clap( + short, + long = "target", + multiple_occurrences(true), + multiple_values(true), + value_parser(clap::builder::PossibleValuesParser::new(Target::name_list())) + )] + pub targets: Option>, + /// List of cargo features to activate + #[clap(short, long, multiple_occurrences(true), multiple_values(true))] + pub features: Option>, + /// JSON string or path to JSON file to merge with tauri.conf.json + #[clap(short, long)] + pub config: Option, + /// Whether to split the APKs and AABs per ABIs. + #[clap(long)] + pub split_per_abi: bool, + /// Build APKs. + #[clap(long)] + pub apk: bool, + /// Build AABs. + #[clap(long)] + pub aab: bool, +} + +impl From for crate::build::Options { + fn from(options: Options) -> Self { + Self { + runner: None, + debug: options.debug, + target: None, + features: options.features, + bundles: None, + config: options.config, + args: Vec::new(), + } + } +} + +pub fn command(options: Options) -> Result<()> { + with_config(|root_conf, config, _metadata| { + ensure_init(config.project_dir(), MobileTarget::Android) + .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; + + let env = Env::new().map_err(Error::EnvInitFailed)?; + init_dot_cargo(root_conf, Some(&env)).map_err(Error::InitDotCargo)?; + + run_build(options, config, env).map_err(|e| Error::BuildFailed(e.to_string())) + }) + .map_err(Into::into) +} + +fn run_build(mut options: Options, config: &AndroidConfig, env: Env) -> Result<()> { + let profile = if options.debug { + Profile::Debug + } else { + Profile::Release + }; + let noise_level = NoiseLevel::Polite; + + if !(options.apk || options.aab) { + // if the user didn't specify the format to build, we'll do both + options.apk = true; + options.aab = true; + } + + let bundle_identifier = { + let tauri_config = get_tauri_config(None)?; + let tauri_config_guard = tauri_config.lock().unwrap(); + let tauri_config_ = tauri_config_guard.as_ref().unwrap(); + tauri_config_.tauri.bundle.identifier.clone() + }; + + let mut build_options = options.clone().into(); + let interface = crate::build::setup(&mut build_options)?; + + let app_settings = interface.app_settings(); + let bin_path = app_settings.app_binary_path(&InterfaceOptions { + debug: build_options.debug, + ..Default::default() + })?; + let out_dir = bin_path.parent().unwrap(); + let _lock = flock::open_rw(&out_dir.join("lock").with_extension("android"), "Android")?; + + let cli_options = CliOptions { + features: build_options.features.clone(), + args: build_options.args.clone(), + vars: Default::default(), + }; + write_options(cli_options, &bundle_identifier, MobileTarget::Android)?; + + options + .features + .get_or_insert(Vec::new()) + .push("custom-protocol".into()); + + let apk_outputs = if options.apk { + apk::build( + config, + &env, + noise_level, + profile, + get_targets_or_all(Vec::new())?, + options.split_per_abi, + )? + } else { + Vec::new() + }; + + let aab_outputs = if options.aab { + aab::build( + config, + &env, + noise_level, + profile, + get_targets_or_all(Vec::new())?, + options.split_per_abi, + )? + } else { + Vec::new() + }; + + log_finished(apk_outputs, "APK"); + log_finished(aab_outputs, "AAB"); + + Ok(()) +} + +fn get_targets_or_all<'a>(targets: Vec) -> Result>, Error> { + if targets.is_empty() { + Ok(Target::all().iter().map(|t| t.1).collect()) + } else { + let mut outs = Vec::new(); + + let possible_targets = Target::all() + .keys() + .map(|key| key.to_string()) + .collect::>() + .join(","); + + for t in targets { + let target = Target::for_name(&t).ok_or_else(|| { + Error::TargetInvalid(format!( + "Target {} is invalid; the possible targets are {}", + t, possible_targets + )) + })?; + outs.push(target); + } + Ok(outs) + } +} diff --git a/tooling/cli/src/mobile/android/dev.rs b/tooling/cli/src/mobile/android/dev.rs new file mode 100644 index 000000000000..f6e1033d2b94 --- /dev/null +++ b/tooling/cli/src/mobile/android/dev.rs @@ -0,0 +1,163 @@ +use super::{device_prompt, ensure_init, init_dot_cargo, with_config, Error, MobileTarget}; +use crate::{ + helpers::{config::get as get_tauri_config, flock}, + interface::{AppSettings, Interface, MobileOptions, Options as InterfaceOptions}, + mobile::{write_options, CliOptions, DevChild, DevProcess}, + Result, +}; +use clap::Parser; + +use cargo_mobile::{ + android::{ + config::{Config as AndroidConfig, Metadata as AndroidMetadata}, + env::Env, + }, + config::Config, + opts::{NoiseLevel, Profile}, + os, +}; + +#[derive(Debug, Clone, Parser)] +#[clap(about = "Android dev")] +pub struct Options { + /// List of cargo features to activate + #[clap(short, long, multiple_occurrences(true), multiple_values(true))] + pub features: Option>, + /// Exit on panic + #[clap(short, long)] + exit_on_panic: bool, + /// JSON string or path to JSON file to merge with tauri.conf.json + #[clap(short, long)] + pub config: Option, + /// Disable the file watcher + #[clap(long)] + pub no_watch: bool, + /// Open Android Studio instead of trying to run on a connected device + #[clap(short, long)] + pub open: bool, +} + +impl From for crate::dev::Options { + fn from(options: Options) -> Self { + Self { + runner: None, + target: None, + features: options.features, + exit_on_panic: options.exit_on_panic, + config: options.config, + release_mode: false, + args: Vec::new(), + no_watch: options.no_watch, + } + } +} + +pub fn command(options: Options) -> Result<()> { + with_config(|root_conf, config, metadata| { + ensure_init(config.project_dir(), MobileTarget::Android) + .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; + run_dev(options, root_conf, config, metadata).map_err(|e| Error::DevFailed(e.to_string())) + }) + .map_err(Into::into) +} + +fn run_dev( + options: Options, + root_conf: &Config, + config: &AndroidConfig, + metadata: &AndroidMetadata, +) -> Result<()> { + let mut dev_options = options.clone().into(); + let mut interface = crate::dev::setup(&mut dev_options)?; + + let bundle_identifier = { + let tauri_config = get_tauri_config(None)?; + let tauri_config_guard = tauri_config.lock().unwrap(); + let tauri_config_ = tauri_config_guard.as_ref().unwrap(); + tauri_config_.tauri.bundle.identifier.clone() + }; + + let app_settings = interface.app_settings(); + let bin_path = app_settings.app_binary_path(&InterfaceOptions { + debug: !dev_options.release_mode, + ..Default::default() + })?; + let out_dir = bin_path.parent().unwrap(); + let _lock = flock::open_rw(&out_dir.join("lock").with_extension("android"), "Android")?; + + let open = options.open; + interface.mobile_dev( + MobileOptions { + debug: true, + features: options.features, + args: Vec::new(), + config: options.config, + no_watch: options.no_watch, + }, + |options| { + let cli_options = CliOptions { + features: options.features.clone(), + args: options.args.clone(), + vars: Default::default(), + }; + write_options(cli_options, &bundle_identifier, MobileTarget::Android)?; + + if open { + open_dev(config) + } else { + match run(options, root_conf, config, metadata) { + Ok(c) => Ok(Box::new(c) as Box), + Err(Error::FailedToPromptForDevice(e)) => { + log::error!("{}", e); + open_dev(config) + } + Err(e) => Err(e.into()), + } + } + }, + ) +} + +fn open_dev(config: &AndroidConfig) -> ! { + log::info!("Opening Android Studio"); + if let Err(e) = os::open_file_with("Android Studio", config.project_dir()) { + log::error!("{}", e); + } + loop { + std::thread::sleep(std::time::Duration::from_secs(24 * 60 * 60)); + } +} + +fn run( + options: MobileOptions, + root_conf: &Config, + config: &AndroidConfig, + metadata: &AndroidMetadata, +) -> Result { + let profile = if options.debug { + Profile::Debug + } else { + Profile::Release + }; + let noise_level = NoiseLevel::Polite; + + let build_app_bundle = metadata.asset_packs().is_some(); + + let env = Env::new().map_err(Error::EnvInitFailed)?; + init_dot_cargo(root_conf, Some(&env)).map_err(Error::InitDotCargo)?; + + device_prompt(&env) + .map_err(Error::FailedToPromptForDevice)? + .run( + config, + &env, + noise_level, + profile, + None, + build_app_bundle, + false, + ".MainActivity".into(), + ) + .map(|c| DevChild(Some(c))) + .map_err(Error::RunFailed) +} diff --git a/tooling/cli/src/mobile/android/open.rs b/tooling/cli/src/mobile/android/open.rs new file mode 100644 index 000000000000..e58fba14a9b3 --- /dev/null +++ b/tooling/cli/src/mobile/android/open.rs @@ -0,0 +1,12 @@ +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) +} diff --git a/tooling/cli/src/mobile/ios.rs b/tooling/cli/src/mobile/ios.rs index a8ab6c8ff022..388e9b318302 100644 --- a/tooling/cli/src/mobile/ios.rs +++ b/tooling/cli/src/mobile/ios.rs @@ -12,28 +12,25 @@ use cargo_mobile::{ config::Config, device::PromptError, env::{Env, Error as EnvError}, - opts::{NoiseLevel, Profile}, - os, - target::{call_for_targets_with_fallback, TargetInvalid, TargetTrait}, - util, + os, util, util::prompt, }; use clap::{Parser, Subcommand}; use super::{ ensure_init, env_vars, get_config, - init::{command as init_command, Options as InitOptions}, - write_options, CliOptions, DevChild, Target as MobileTarget, -}; -use crate::{ - helpers::{config::get as get_tauri_config, flock}, - interface::{AppSettings, DevProcess, Interface, MobileOptions, Options as InterfaceOptions}, - Result, + init::{command as init_command, init_dot_cargo, Options as InitOptions}, + log_finished, Target as MobileTarget, }; +use crate::{helpers::config::get as get_tauri_config, Result}; -use std::{collections::HashMap, ffi::OsStr, fmt::Write, fs, path::PathBuf}; +use std::path::PathBuf; +mod build; +mod dev; +mod open; pub(crate) mod project; +mod xcode_script; #[derive(Debug, thiserror::Error)] enum Error { @@ -84,121 +81,23 @@ pub struct Cli { command: Commands, } -#[derive(Debug, Parser)] -pub struct XcodeScriptOptions { - /// Value of `PLATFORM_DISPLAY_NAME` env var - #[clap(long)] - platform: String, - /// Value of `SDKROOT` env var - #[clap(long)] - sdk_root: PathBuf, - /// Value of `CONFIGURATION` env var - #[clap(long)] - configuration: String, - /// Value of `FORCE_COLOR` env var - #[clap(long)] - force_color: bool, - /// Value of `ARCHS` env var - #[clap(index = 1, required = true)] - arches: Vec, -} - -#[derive(Debug, Clone, Parser)] -#[clap(about = "iOS dev")] -pub struct DevOptions { - /// List of cargo features to activate - #[clap(short, long, multiple_occurrences(true), multiple_values(true))] - pub features: Option>, - /// Exit on panic - #[clap(short, long)] - exit_on_panic: bool, - /// JSON string or path to JSON file to merge with tauri.conf.json - #[clap(short, long)] - pub config: Option, - /// Run the code in release mode - #[clap(long = "release")] - pub release_mode: bool, - /// Disable the file watcher - #[clap(long)] - pub no_watch: bool, - /// Open Xcode instead of trying to run on a connected device - #[clap(short, long)] - pub open: bool, -} - -impl From for crate::dev::Options { - fn from(options: DevOptions) -> Self { - Self { - runner: None, - target: None, - features: options.features, - exit_on_panic: options.exit_on_panic, - config: options.config, - release_mode: options.release_mode, - args: Vec::new(), - no_watch: options.no_watch, - } - } -} - -#[derive(Debug, Clone, Parser)] -#[clap(about = "Android build")] -pub struct BuildOptions { - /// Builds with the debug flag - #[clap(short, long)] - pub debug: bool, - /// Which targets to build. - #[clap( - short, - long = "target", - multiple_occurrences(true), - multiple_values(true), - default_value = Target::DEFAULT_KEY, - value_parser(clap::builder::PossibleValuesParser::new(Target::name_list())) - )] - pub targets: Vec, - /// List of cargo features to activate - #[clap(short, long, multiple_occurrences(true), multiple_values(true))] - pub features: Option>, - /// JSON string or path to JSON file to merge with tauri.conf.json - #[clap(short, long)] - pub config: Option, - /// Build number to append to the app version. - #[clap(long)] - pub build_number: Option, -} - -impl From for crate::build::Options { - fn from(options: BuildOptions) -> Self { - Self { - runner: None, - debug: options.debug, - target: None, - features: options.features, - bundles: None, - config: options.config, - args: Vec::new(), - } - } -} - #[derive(Subcommand)] enum Commands { Init(InitOptions), Open, - Dev(DevOptions), - Build(BuildOptions), + Dev(dev::Options), + Build(build::Options), #[clap(hide(true))] - XcodeScript(XcodeScriptOptions), + XcodeScript(xcode_script::Options), } pub fn command(cli: Cli) -> Result<()> { match cli.command { Commands::Init(options) => init_command(options, MobileTarget::Ios)?, - Commands::Open => open()?, - Commands::Dev(options) => dev(options)?, - Commands::Build(options) => build(options)?, - Commands::XcodeScript(options) => xcode_script(options)?, + Commands::Open => open::command()?, + Commands::Dev(options) => dev::command(options)?, + Commands::Build(options) => build::command(options)?, + Commands::XcodeScript(options) => xcode_script::command(options)?, } Ok(()) @@ -255,313 +154,3 @@ fn device_prompt<'a>(env: &'_ Env) -> Result, PromptError(env: &Env) -> Option<&'a Target<'a>> { device_prompt(env).map(|device| device.target()).ok() } - -fn build(options: BuildOptions) -> Result<()> { - with_config(|root_conf, config, _metadata| { - ensure_init(config.project_dir(), MobileTarget::Ios) - .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; - - let env = env()?; - super::init::init_dot_cargo(root_conf, None).map_err(Error::InitDotCargo)?; - - run_build(options, config, env).map_err(|e| Error::BuildFailed(e.to_string())) - }) - .map_err(Into::into) -} - -fn run_build(mut options: BuildOptions, config: &AppleConfig, env: Env) -> Result<()> { - let profile = if options.debug { - Profile::Debug - } else { - Profile::Release - }; - let noise_level = NoiseLevel::Polite; - - let bundle_identifier = { - let tauri_config = get_tauri_config(None)?; - let tauri_config_guard = tauri_config.lock().unwrap(); - let tauri_config_ = tauri_config_guard.as_ref().unwrap(); - tauri_config_.tauri.bundle.identifier.clone() - }; - - let mut build_options = options.clone().into(); - let interface = crate::build::setup(&mut build_options)?; - - let app_settings = interface.app_settings(); - let bin_path = app_settings.app_binary_path(&InterfaceOptions { - debug: build_options.debug, - ..Default::default() - })?; - let out_dir = bin_path.parent().unwrap(); - let _lock = flock::open_rw(&out_dir.join("lock").with_extension("ios"), "iOS")?; - - let cli_options = CliOptions { - features: build_options.features.clone(), - args: build_options.args.clone(), - vars: Default::default(), - }; - write_options(cli_options, &bundle_identifier, MobileTarget::Ios)?; - - options - .features - .get_or_insert(Vec::new()) - .push("custom-protocol".into()); - - let mut out_files = Vec::new(); - - call_for_targets_with_fallback( - options.targets.iter(), - &detect_target_ok, - &env, - |target: &Target| { - let mut app_version = config.bundle_version().clone(); - if let Some(build_number) = options.build_number { - app_version.push_extra(build_number); - } - - target.build(config, &env, noise_level, profile)?; - target.archive(config, &env, noise_level, profile, Some(app_version))?; - target.export(config, &env, noise_level)?; - - if let Ok(ipa_path) = config.ipa_path() { - let out_dir = config.export_dir().join(target.arch); - fs::create_dir_all(&out_dir)?; - let path = out_dir.join(ipa_path.file_name().unwrap()); - fs::rename(&ipa_path, &path)?; - out_files.push(path); - } - - anyhow::Result::Ok(()) - }, - ) - .map_err(|e: TargetInvalid| Error::TargetInvalid(e.to_string()))? - .map_err(|e: anyhow::Error| e)?; - - log_finished(out_files, "IPA"); - - Ok(()) -} - -fn log_finished(outputs: Vec, kind: &str) { - if !outputs.is_empty() { - let mut printable_paths = String::new(); - for path in &outputs { - writeln!(printable_paths, " {}", path.display()).unwrap(); - } - - log::info!(action = "Finished"; "{} {}{} at:\n{}", outputs.len(), kind, if outputs.len() == 1 { "" } else { "s" }, printable_paths); - } -} - -fn dev(options: DevOptions) -> Result<()> { - with_config(|root_conf, config, _metadata| { - ensure_init(config.project_dir(), MobileTarget::Ios) - .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; - run_dev(options, root_conf, config).map_err(|e| Error::DevFailed(e.to_string())) - }) - .map_err(Into::into) -} - -fn run_dev(options: DevOptions, root_conf: &Config, config: &AppleConfig) -> Result<()> { - let mut dev_options = options.clone().into(); - let mut interface = crate::dev::setup(&mut dev_options)?; - - let bundle_identifier = { - let tauri_config = - get_tauri_config(None).map_err(|e| Error::InvalidTauriConfig(e.to_string()))?; - let tauri_config_guard = tauri_config.lock().unwrap(); - let tauri_config_ = tauri_config_guard.as_ref().unwrap(); - tauri_config_.tauri.bundle.identifier.clone() - }; - - let app_settings = interface.app_settings(); - let bin_path = app_settings.app_binary_path(&InterfaceOptions { - debug: !dev_options.release_mode, - ..Default::default() - })?; - let out_dir = bin_path.parent().unwrap(); - let _lock = flock::open_rw(&out_dir.join("lock").with_extension("ios"), "iOS")?; - - let open = options.open; - interface.mobile_dev( - MobileOptions { - debug: true, - features: options.features, - args: Vec::new(), - config: options.config, - no_watch: options.no_watch, - }, - |options| { - let cli_options = CliOptions { - features: options.features.clone(), - args: options.args.clone(), - vars: Default::default(), - }; - write_options(cli_options, &bundle_identifier, MobileTarget::Ios)?; - if open { - open_dev(config) - } else { - match run(options, root_conf, config) { - Ok(c) => Ok(Box::new(c) as Box), - Err(Error::FailedToPromptForDevice(e)) => { - log::error!("{}", e); - open_dev(config) - } - Err(e) => Err(e.into()), - } - } - }, - ) -} - -fn open_dev(config: &AppleConfig) -> ! { - log::info!("Opening Xcode"); - if let Err(e) = os::open_file_with("Xcode", config.project_dir()) { - log::error!("{}", e); - } - loop { - std::thread::sleep(std::time::Duration::from_secs(24 * 60 * 60)); - } -} - -fn open() -> Result<()> { - with_config(|_, config, _metadata| { - ensure_init(config.project_dir(), MobileTarget::Ios) - .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; - os::open_file_with("Xcode", config.project_dir()).map_err(Error::OpenFailed) - }) - .map_err(Into::into) -} - -fn run( - options: MobileOptions, - root_conf: &Config, - config: &AppleConfig, -) -> Result { - let profile = if options.debug { - Profile::Debug - } else { - Profile::Release - }; - let noise_level = NoiseLevel::Polite; - - let env = env()?; - super::init::init_dot_cargo(root_conf, None).map_err(Error::InitDotCargo)?; - - device_prompt(&env) - .map_err(Error::FailedToPromptForDevice)? - .run(config, &env, noise_level, false, profile) - .map(|c| DevChild(Some(c))) - .map_err(Error::RunFailed) -} - -fn xcode_script(options: XcodeScriptOptions) -> Result<()> { - fn macos_from_platform(platform: &str) -> bool { - platform == "macOS" - } - - fn profile_from_configuration(configuration: &str) -> Profile { - if configuration == "release" { - Profile::Release - } else { - Profile::Debug - } - } - - let profile = profile_from_configuration(&options.configuration); - let macos = macos_from_platform(&options.platform); - let noise_level = NoiseLevel::Polite; - - with_config(|root_conf, config, metadata| { - let env = env()?; - super::init::init_dot_cargo(root_conf, None).map_err(Error::InitDotCargo)?; - // The `PATH` env var Xcode gives us is missing any additions - // made by the user's profile, so we'll manually add cargo's - // `PATH`. - let env = env.prepend_to_path( - util::home_dir() - .map_err(Error::NoHomeDir)? - .join(".cargo/bin"), - ); - - if !options.sdk_root.is_dir() { - return Err(Error::SdkRootInvalid { - sdk_root: options.sdk_root, - }); - } - let include_dir = options.sdk_root.join("usr/include"); - if !include_dir.is_dir() { - return Err(Error::IncludeDirInvalid { include_dir }); - } - - let mut host_env = HashMap::<&str, &OsStr>::new(); - - // Host flags that are used by build scripts - let (macos_isysroot, library_path) = { - let macos_sdk_root = options - .sdk_root - .join("../../../../MacOSX.platform/Developer/SDKs/MacOSX.sdk"); - if !macos_sdk_root.is_dir() { - return Err(Error::MacosSdkRootInvalid { macos_sdk_root }); - } - ( - format!("-isysroot {}", macos_sdk_root.display()), - format!("{}/usr/lib", macos_sdk_root.display()), - ) - }; - host_env.insert("MAC_FLAGS", macos_isysroot.as_ref()); - host_env.insert("CFLAGS_x86_64_apple_darwin", macos_isysroot.as_ref()); - host_env.insert("CXXFLAGS_x86_64_apple_darwin", macos_isysroot.as_ref()); - - host_env.insert( - "OBJC_INCLUDE_PATH_x86_64_apple_darwin", - include_dir.as_os_str(), - ); - - host_env.insert("RUST_BACKTRACE", "1".as_ref()); - - let macos_target = Target::macos(); - - let isysroot = format!("-isysroot {}", options.sdk_root.display()); - - for arch in options.arches { - // Set target-specific flags - let triple = match arch.as_str() { - "arm64" => "aarch64_apple_ios", - "x86_64" => "x86_64_apple_ios", - _ => return Err(Error::ArchInvalid { arch }), - }; - let cflags = format!("CFLAGS_{}", triple); - let cxxflags = format!("CFLAGS_{}", triple); - let objc_include_path = format!("OBJC_INCLUDE_PATH_{}", triple); - let mut target_env = host_env.clone(); - target_env.insert(cflags.as_ref(), isysroot.as_ref()); - target_env.insert(cxxflags.as_ref(), isysroot.as_ref()); - target_env.insert(objc_include_path.as_ref(), include_dir.as_ref()); - // Prevents linker errors in build scripts and proc macros: - // https://github.com/signalapp/libsignal-client/commit/02899cac643a14b2ced7c058cc15a836a2165b6d - target_env.insert("LIBRARY_PATH", library_path.as_ref()); - - let target = if macos { - &macos_target - } else { - Target::for_arch(&arch).ok_or_else(|| Error::ArchInvalid { - arch: arch.to_owned(), - })? - }; - target - .compile_lib( - config, - metadata, - noise_level, - true, - profile, - &env, - target_env, - ) - .map_err(Error::CompileLibFailed)?; - } - Ok(()) - }) - .map_err(Into::into) -} diff --git a/tooling/cli/src/mobile/ios/build.rs b/tooling/cli/src/mobile/ios/build.rs new file mode 100644 index 000000000000..9eb126ff3b60 --- /dev/null +++ b/tooling/cli/src/mobile/ios/build.rs @@ -0,0 +1,147 @@ +use super::{ + detect_target_ok, ensure_init, env, init_dot_cargo, log_finished, with_config, Error, + MobileTarget, +}; +use crate::{ + helpers::{config::get as get_tauri_config, flock}, + interface::{AppSettings, Interface, Options as InterfaceOptions}, + mobile::{write_options, CliOptions}, + Result, +}; +use clap::Parser; + +use cargo_mobile::{ + apple::{config::Config as AppleConfig, target::Target}, + env::Env, + opts::{NoiseLevel, Profile}, + target::{call_for_targets_with_fallback, TargetInvalid, TargetTrait}, +}; + +use std::fs; + +#[derive(Debug, Clone, Parser)] +#[clap(about = "Android build")] +pub struct Options { + /// Builds with the debug flag + #[clap(short, long)] + pub debug: bool, + /// Which targets to build. + #[clap( + short, + long = "target", + multiple_occurrences(true), + multiple_values(true), + default_value = Target::DEFAULT_KEY, + value_parser(clap::builder::PossibleValuesParser::new(Target::name_list())) + )] + pub targets: Vec, + /// List of cargo features to activate + #[clap(short, long, multiple_occurrences(true), multiple_values(true))] + pub features: Option>, + /// JSON string or path to JSON file to merge with tauri.conf.json + #[clap(short, long)] + pub config: Option, + /// Build number to append to the app version. + #[clap(long)] + pub build_number: Option, +} + +impl From for crate::build::Options { + fn from(options: Options) -> Self { + Self { + runner: None, + debug: options.debug, + target: None, + features: options.features, + bundles: None, + config: options.config, + args: Vec::new(), + } + } +} + +pub fn command(options: Options) -> Result<()> { + with_config(|root_conf, config, _metadata| { + ensure_init(config.project_dir(), MobileTarget::Ios) + .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; + + let env = env()?; + init_dot_cargo(root_conf, None).map_err(Error::InitDotCargo)?; + + run_build(options, config, env).map_err(|e| Error::BuildFailed(e.to_string())) + }) + .map_err(Into::into) +} + +fn run_build(mut options: Options, config: &AppleConfig, env: Env) -> Result<()> { + let profile = if options.debug { + Profile::Debug + } else { + Profile::Release + }; + let noise_level = NoiseLevel::Polite; + + let bundle_identifier = { + let tauri_config = get_tauri_config(None)?; + let tauri_config_guard = tauri_config.lock().unwrap(); + let tauri_config_ = tauri_config_guard.as_ref().unwrap(); + tauri_config_.tauri.bundle.identifier.clone() + }; + + let mut build_options = options.clone().into(); + let interface = crate::build::setup(&mut build_options)?; + + let app_settings = interface.app_settings(); + let bin_path = app_settings.app_binary_path(&InterfaceOptions { + debug: build_options.debug, + ..Default::default() + })?; + let out_dir = bin_path.parent().unwrap(); + let _lock = flock::open_rw(&out_dir.join("lock").with_extension("ios"), "iOS")?; + + let cli_options = CliOptions { + features: build_options.features.clone(), + args: build_options.args.clone(), + vars: Default::default(), + }; + write_options(cli_options, &bundle_identifier, MobileTarget::Ios)?; + + options + .features + .get_or_insert(Vec::new()) + .push("custom-protocol".into()); + + let mut out_files = Vec::new(); + + call_for_targets_with_fallback( + options.targets.iter(), + &detect_target_ok, + &env, + |target: &Target| { + let mut app_version = config.bundle_version().clone(); + if let Some(build_number) = options.build_number { + app_version.push_extra(build_number); + } + + target.build(config, &env, noise_level, profile)?; + target.archive(config, &env, noise_level, profile, Some(app_version))?; + target.export(config, &env, noise_level)?; + + if let Ok(ipa_path) = config.ipa_path() { + let out_dir = config.export_dir().join(target.arch); + fs::create_dir_all(&out_dir)?; + let path = out_dir.join(ipa_path.file_name().unwrap()); + fs::rename(&ipa_path, &path)?; + out_files.push(path); + } + + anyhow::Result::Ok(()) + }, + ) + .map_err(|e: TargetInvalid| Error::TargetInvalid(e.to_string()))? + .map_err(|e: anyhow::Error| e)?; + + log_finished(out_files, "IPA"); + + Ok(()) +} diff --git a/tooling/cli/src/mobile/ios/dev.rs b/tooling/cli/src/mobile/ios/dev.rs new file mode 100644 index 000000000000..654e5a6b5e77 --- /dev/null +++ b/tooling/cli/src/mobile/ios/dev.rs @@ -0,0 +1,146 @@ +use super::{device_prompt, ensure_init, env, init_dot_cargo, with_config, Error, MobileTarget}; +use crate::{ + helpers::{config::get as get_tauri_config, flock}, + interface::{AppSettings, Interface, MobileOptions, Options as InterfaceOptions}, + mobile::{write_options, CliOptions, DevChild, DevProcess}, + Result, +}; +use clap::Parser; + +use cargo_mobile::{ + apple::config::Config as AppleConfig, + config::Config, + opts::{NoiseLevel, Profile}, + os, +}; + +#[derive(Debug, Clone, Parser)] +#[clap(about = "iOS dev")] +pub struct Options { + /// List of cargo features to activate + #[clap(short, long, multiple_occurrences(true), multiple_values(true))] + pub features: Option>, + /// Exit on panic + #[clap(short, long)] + exit_on_panic: bool, + /// JSON string or path to JSON file to merge with tauri.conf.json + #[clap(short, long)] + pub config: Option, + /// Run the code in release mode + #[clap(long = "release")] + pub release_mode: bool, + /// Disable the file watcher + #[clap(long)] + pub no_watch: bool, + /// Open Xcode instead of trying to run on a connected device + #[clap(short, long)] + pub open: bool, +} + +impl From for crate::dev::Options { + fn from(options: Options) -> Self { + Self { + runner: None, + target: None, + features: options.features, + exit_on_panic: options.exit_on_panic, + config: options.config, + release_mode: options.release_mode, + args: Vec::new(), + no_watch: options.no_watch, + } + } +} + +pub fn command(options: Options) -> Result<()> { + with_config(|root_conf, config, _metadata| { + ensure_init(config.project_dir(), MobileTarget::Ios) + .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; + run_dev(options, root_conf, config).map_err(|e| Error::DevFailed(e.to_string())) + }) + .map_err(Into::into) +} + +fn run_dev(options: Options, root_conf: &Config, config: &AppleConfig) -> Result<()> { + let mut dev_options = options.clone().into(); + let mut interface = crate::dev::setup(&mut dev_options)?; + + let bundle_identifier = { + let tauri_config = + get_tauri_config(None).map_err(|e| Error::InvalidTauriConfig(e.to_string()))?; + let tauri_config_guard = tauri_config.lock().unwrap(); + let tauri_config_ = tauri_config_guard.as_ref().unwrap(); + tauri_config_.tauri.bundle.identifier.clone() + }; + + let app_settings = interface.app_settings(); + let bin_path = app_settings.app_binary_path(&InterfaceOptions { + debug: !dev_options.release_mode, + ..Default::default() + })?; + let out_dir = bin_path.parent().unwrap(); + let _lock = flock::open_rw(&out_dir.join("lock").with_extension("ios"), "iOS")?; + + let open = options.open; + interface.mobile_dev( + MobileOptions { + debug: true, + features: options.features, + args: Vec::new(), + config: options.config, + no_watch: options.no_watch, + }, + |options| { + let cli_options = CliOptions { + features: options.features.clone(), + args: options.args.clone(), + vars: Default::default(), + }; + write_options(cli_options, &bundle_identifier, MobileTarget::Ios)?; + if open { + open_dev(config) + } else { + match run(options, root_conf, config) { + Ok(c) => Ok(Box::new(c) as Box), + Err(Error::FailedToPromptForDevice(e)) => { + log::error!("{}", e); + open_dev(config) + } + Err(e) => Err(e.into()), + } + } + }, + ) +} + +fn open_dev(config: &AppleConfig) -> ! { + log::info!("Opening Xcode"); + if let Err(e) = os::open_file_with("Xcode", config.project_dir()) { + log::error!("{}", e); + } + loop { + std::thread::sleep(std::time::Duration::from_secs(24 * 60 * 60)); + } +} + +fn run( + options: MobileOptions, + root_conf: &Config, + config: &AppleConfig, +) -> Result { + let profile = if options.debug { + Profile::Debug + } else { + Profile::Release + }; + let noise_level = NoiseLevel::Polite; + + let env = env()?; + init_dot_cargo(root_conf, None).map_err(Error::InitDotCargo)?; + + device_prompt(&env) + .map_err(Error::FailedToPromptForDevice)? + .run(config, &env, noise_level, false, profile) + .map(|c| DevChild(Some(c))) + .map_err(Error::RunFailed) +} diff --git a/tooling/cli/src/mobile/ios/open.rs b/tooling/cli/src/mobile/ios/open.rs new file mode 100644 index 000000000000..331a073aef4d --- /dev/null +++ b/tooling/cli/src/mobile/ios/open.rs @@ -0,0 +1,12 @@ +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::Ios) + .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; + os::open_file_with("Xcode", config.project_dir()).map_err(Error::OpenFailed) + }) + .map_err(Into::into) +} diff --git a/tooling/cli/src/mobile/ios/xcode_script.rs b/tooling/cli/src/mobile/ios/xcode_script.rs new file mode 100644 index 000000000000..bf5df1d40c5d --- /dev/null +++ b/tooling/cli/src/mobile/ios/xcode_script.rs @@ -0,0 +1,141 @@ +use super::{env, init_dot_cargo, with_config, Error}; +use crate::Result; +use clap::Parser; + +use cargo_mobile::{ + apple::target::Target, + opts::{NoiseLevel, Profile}, + util, +}; + +use std::{collections::HashMap, ffi::OsStr, path::PathBuf}; + +#[derive(Debug, Parser)] +pub struct Options { + /// Value of `PLATFORM_DISPLAY_NAME` env var + #[clap(long)] + platform: String, + /// Value of `SDKROOT` env var + #[clap(long)] + sdk_root: PathBuf, + /// Value of `CONFIGURATION` env var + #[clap(long)] + configuration: String, + /// Value of `FORCE_COLOR` env var + #[clap(long)] + force_color: bool, + /// Value of `ARCHS` env var + #[clap(index = 1, required = true)] + arches: Vec, +} + +pub fn command(options: Options) -> Result<()> { + fn macos_from_platform(platform: &str) -> bool { + platform == "macOS" + } + + fn profile_from_configuration(configuration: &str) -> Profile { + if configuration == "release" { + Profile::Release + } else { + Profile::Debug + } + } + + let profile = profile_from_configuration(&options.configuration); + let macos = macos_from_platform(&options.platform); + let noise_level = NoiseLevel::Polite; + + with_config(|root_conf, config, metadata| { + let env = env()?; + init_dot_cargo(root_conf, None).map_err(Error::InitDotCargo)?; + // The `PATH` env var Xcode gives us is missing any additions + // made by the user's profile, so we'll manually add cargo's + // `PATH`. + let env = env.prepend_to_path( + util::home_dir() + .map_err(Error::NoHomeDir)? + .join(".cargo/bin"), + ); + + if !options.sdk_root.is_dir() { + return Err(Error::SdkRootInvalid { + sdk_root: options.sdk_root, + }); + } + let include_dir = options.sdk_root.join("usr/include"); + if !include_dir.is_dir() { + return Err(Error::IncludeDirInvalid { include_dir }); + } + + let mut host_env = HashMap::<&str, &OsStr>::new(); + + // Host flags that are used by build scripts + let (macos_isysroot, library_path) = { + let macos_sdk_root = options + .sdk_root + .join("../../../../MacOSX.platform/Developer/SDKs/MacOSX.sdk"); + if !macos_sdk_root.is_dir() { + return Err(Error::MacosSdkRootInvalid { macos_sdk_root }); + } + ( + format!("-isysroot {}", macos_sdk_root.display()), + format!("{}/usr/lib", macos_sdk_root.display()), + ) + }; + host_env.insert("MAC_FLAGS", macos_isysroot.as_ref()); + host_env.insert("CFLAGS_x86_64_apple_darwin", macos_isysroot.as_ref()); + host_env.insert("CXXFLAGS_x86_64_apple_darwin", macos_isysroot.as_ref()); + + host_env.insert( + "OBJC_INCLUDE_PATH_x86_64_apple_darwin", + include_dir.as_os_str(), + ); + + host_env.insert("RUST_BACKTRACE", "1".as_ref()); + + let macos_target = Target::macos(); + + let isysroot = format!("-isysroot {}", options.sdk_root.display()); + + for arch in options.arches { + // Set target-specific flags + let triple = match arch.as_str() { + "arm64" => "aarch64_apple_ios", + "x86_64" => "x86_64_apple_ios", + _ => return Err(Error::ArchInvalid { arch }), + }; + let cflags = format!("CFLAGS_{}", triple); + let cxxflags = format!("CFLAGS_{}", triple); + let objc_include_path = format!("OBJC_INCLUDE_PATH_{}", triple); + let mut target_env = host_env.clone(); + target_env.insert(cflags.as_ref(), isysroot.as_ref()); + target_env.insert(cxxflags.as_ref(), isysroot.as_ref()); + target_env.insert(objc_include_path.as_ref(), include_dir.as_ref()); + // Prevents linker errors in build scripts and proc macros: + // https://github.com/signalapp/libsignal-client/commit/02899cac643a14b2ced7c058cc15a836a2165b6d + target_env.insert("LIBRARY_PATH", library_path.as_ref()); + + let target = if macos { + &macos_target + } else { + Target::for_arch(&arch).ok_or_else(|| Error::ArchInvalid { + arch: arch.to_owned(), + })? + }; + target + .compile_lib( + config, + metadata, + noise_level, + true, + profile, + &env, + target_env, + ) + .map_err(Error::CompileLibFailed)?; + } + Ok(()) + }) + .map_err(Into::into) +} diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index db6696db7334..71e8a6064051 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -17,7 +17,7 @@ use cargo_mobile::{ config::{app::Raw as RawAppConfig, metadata::Metadata, Config, Raw}, }; use serde::{Deserialize, Serialize}; -use std::{collections::HashMap, ffi::OsString, path::PathBuf, process::ExitStatus}; +use std::{collections::HashMap, ffi::OsString, fmt::Write, path::PathBuf, process::ExitStatus}; pub mod android; mod init; @@ -238,3 +238,14 @@ fn ensure_init(project_dir: PathBuf, target: Target) -> Result<()> { Ok(()) } } + +fn log_finished(outputs: Vec, kind: &str) { + if !outputs.is_empty() { + let mut printable_paths = String::new(); + for path in &outputs { + writeln!(printable_paths, " {}", path.display()).unwrap(); + } + + log::info!(action = "Finished"; "{} {}{} at:\n{}", outputs.len(), kind, if outputs.len() == 1 { "" } else { "s" }, printable_paths); + } +} From a70f7b26bc8f2bdc651842a3805ca8c3c5f38f4f Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Tue, 23 Aug 2022 11:34:16 -0300 Subject: [PATCH 022/436] feat(cli): improve error messages in mobile commands --- tooling/cli/src/mobile/android/build.rs | 2 +- tooling/cli/src/mobile/android/dev.rs | 2 +- tooling/cli/src/mobile/ios/build.rs | 2 +- tooling/cli/src/mobile/ios/dev.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tooling/cli/src/mobile/android/build.rs b/tooling/cli/src/mobile/android/build.rs index a6fbeb1ebb0a..cca10d337480 100644 --- a/tooling/cli/src/mobile/android/build.rs +++ b/tooling/cli/src/mobile/android/build.rs @@ -67,7 +67,7 @@ pub fn command(options: Options) -> Result<()> { let env = Env::new().map_err(Error::EnvInitFailed)?; init_dot_cargo(root_conf, Some(&env)).map_err(Error::InitDotCargo)?; - run_build(options, config, env).map_err(|e| Error::BuildFailed(e.to_string())) + run_build(options, config, env).map_err(|e| Error::BuildFailed(format!("{:#}", e))) }) .map_err(Into::into) } diff --git a/tooling/cli/src/mobile/android/dev.rs b/tooling/cli/src/mobile/android/dev.rs index f6e1033d2b94..636bce926602 100644 --- a/tooling/cli/src/mobile/android/dev.rs +++ b/tooling/cli/src/mobile/android/dev.rs @@ -56,7 +56,7 @@ pub fn command(options: Options) -> Result<()> { with_config(|root_conf, config, metadata| { ensure_init(config.project_dir(), MobileTarget::Android) .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; - run_dev(options, root_conf, config, metadata).map_err(|e| Error::DevFailed(e.to_string())) + run_dev(options, root_conf, config, metadata).map_err(|e| Error::DevFailed(format!("{:#}", e))) }) .map_err(Into::into) } diff --git a/tooling/cli/src/mobile/ios/build.rs b/tooling/cli/src/mobile/ios/build.rs index 9eb126ff3b60..e6b7cb7b522f 100644 --- a/tooling/cli/src/mobile/ios/build.rs +++ b/tooling/cli/src/mobile/ios/build.rs @@ -68,7 +68,7 @@ pub fn command(options: Options) -> Result<()> { let env = env()?; init_dot_cargo(root_conf, None).map_err(Error::InitDotCargo)?; - run_build(options, config, env).map_err(|e| Error::BuildFailed(e.to_string())) + run_build(options, config, env).map_err(|e| Error::BuildFailed(format!("{:#}", e))) }) .map_err(Into::into) } diff --git a/tooling/cli/src/mobile/ios/dev.rs b/tooling/cli/src/mobile/ios/dev.rs index 654e5a6b5e77..7bf4aa311ce3 100644 --- a/tooling/cli/src/mobile/ios/dev.rs +++ b/tooling/cli/src/mobile/ios/dev.rs @@ -56,7 +56,7 @@ pub fn command(options: Options) -> Result<()> { with_config(|root_conf, config, _metadata| { ensure_init(config.project_dir(), MobileTarget::Ios) .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; - run_dev(options, root_conf, config).map_err(|e| Error::DevFailed(e.to_string())) + run_dev(options, root_conf, config).map_err(|e| Error::DevFailed(format!("{:#}", e))) }) .map_err(Into::into) } From 4e26b05d20d1db0ab682352a8d9c52b10e3c81e9 Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Tue, 23 Aug 2022 17:39:26 +0200 Subject: [PATCH 023/436] fix(cli/template/android): use raw string for executable (#5012) --- .../mobile/android/buildSrc/src/main/kotlin/BuildTask.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/BuildTask.kt b/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/BuildTask.kt index ea09602f464c..500781d55b9a 100644 --- a/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/BuildTask.kt +++ b/tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/BuildTask.kt @@ -26,7 +26,7 @@ open class BuildTask : DefaultTask() { val release = release ?: throw GradleException("release cannot be null") project.exec { workingDir(File(project.projectDir, rootDirRel.path)) - executable("{{ tauri-binary }}") + executable("""{{ tauri-binary }}""") args(listOf({{quote-and-join tauri-binary-args}})) if (project.logger.isEnabled(LogLevel.DEBUG)) { args("-vv") From 2b846f413cea59fd95e4731302888308db059e0a Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Tue, 23 Aug 2022 17:40:02 +0200 Subject: [PATCH 024/436] feat(examples/api): use strict port (#5013) --- examples/api/vite.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/api/vite.config.js b/examples/api/vite.config.js index 9157d89bbd67..c5d66fbbc076 100644 --- a/examples/api/vite.config.js +++ b/examples/api/vite.config.js @@ -18,6 +18,8 @@ export default defineConfig(async ({ command, mode }) => { } }, server: { + port: 5173, + strictPort: true, hmr: { host, port: 5183 From 3668a1fdc8cccf8c267d617a727db59f0365e378 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Tue, 23 Aug 2022 13:54:41 -0300 Subject: [PATCH 025/436] fix(cli): resolve absolute tauri binary path for the android template (#5015) --- tooling/cli/src/mobile/init.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tooling/cli/src/mobile/init.rs b/tooling/cli/src/mobile/init.rs index d95fd9294d3f..4ad743dc48dd 100644 --- a/tooling/cli/src/mobile/init.rs +++ b/tooling/cli/src/mobile/init.rs @@ -127,11 +127,19 @@ pub fn exec( let (handlebars, mut map) = handlebars(&config); let mut args = std::env::args_os(); - // TODO: make this a relative path let tauri_binary = args .next() + .map(|bin| { + let path = PathBuf::from(&bin); + if path.exists() { + if let Ok(dir) = current_dir() { + let absolute_path = util::prefix_path(dir, path); + return absolute_path.into(); + } + } + bin + }) .unwrap_or_else(|| std::ffi::OsString::from("cargo")); - map.insert("tauri-binary", tauri_binary.to_string_lossy()); let mut build_args = Vec::new(); for arg in args { let path = PathBuf::from(&arg); @@ -148,6 +156,7 @@ pub fn exec( } } build_args.push(target.ide_build_script_name().into()); + map.insert("tauri-binary", tauri_binary.to_string_lossy()); map.insert("tauri-binary-args", &build_args); map.insert("tauri-binary-args-str", build_args.join(" ")); From 1f84385e8a76f5dd97c32611f38b15e41585ef9c Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Wed, 24 Aug 2022 15:01:32 +0200 Subject: [PATCH 026/436] chore: update cargo-mobile to latest (#5025) Co-authored-by: Lucas Nogueira --- tooling/cli/Cargo.lock | 2 +- tooling/cli/src/mobile/mod.rs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 1437c9675ae0..e7b6a9261b07 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -250,7 +250,7 @@ dependencies = [ [[package]] name = "cargo-mobile" version = "0.1.0" -source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#5444888b3e9bc5a596bc2668315c8805a865c5f6" +source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#d5b4c4dd5ac23e700f07e362b8788d80a33d21d3" dependencies = [ "cocoa", "colored 1.9.3", diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index 71e8a6064051..ee2de83b9480 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -176,6 +176,7 @@ fn get_config(config: &TauriConfig) -> (Config, Metadata) { macos_version: None, use_legacy_build_system: None, plist_pairs: None, + enable_bitcode: None, }), android: Some(RawAndroidConfig { min_sdk_version: None, @@ -195,12 +196,14 @@ fn get_config(config: &TauriConfig) -> (Config, Metadata) { no_default_features: false, cargo_args: Some(ios_options.args), features: ios_options.features, + libraries: None, frameworks: None, valid_archs: None, vendor_frameworks: None, vendor_sdks: None, asset_catalogs: None, pods: None, + pod_options: None, additional_targets: None, pre_build_scripts: None, post_compile_scripts: None, @@ -220,6 +223,9 @@ fn get_config(config: &TauriConfig) -> (Config, Metadata) { app_dependencies: None, app_dependencies_platform: None, asset_packs: None, + app_activity_name: None, + app_permissions: None, + app_theme_parent: None, }, }; From 0500d3b4b1ba03804981e74be28488fd21572b27 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Wed, 24 Aug 2022 12:41:57 -0300 Subject: [PATCH 027/436] fix(core): mobile app name must match the crate name (#5027) --- core/tauri-build/src/lib.rs | 6 +----- core/tauri-macros/src/mobile.rs | 2 +- tooling/cli/src/interface/mod.rs | 2 +- tooling/cli/src/interface/rust.rs | 2 +- tooling/cli/src/interface/rust/manifest.rs | 2 +- tooling/cli/src/mobile/mod.rs | 14 ++++++++++++++ 6 files changed, 19 insertions(+), 9 deletions(-) diff --git a/core/tauri-build/src/lib.rs b/core/tauri-build/src/lib.rs index 98ad640aef82..7b972366842e 100644 --- a/core/tauri-build/src/lib.rs +++ b/core/tauri-build/src/lib.rs @@ -221,19 +221,15 @@ pub fn try_build(attributes: Attributes) -> Result<()> { let s = config.tauri.bundle.identifier.split('.'); let last = s.clone().count() - 1; - let mut app_name = String::new(); let mut domain = String::new(); for (i, w) in s.enumerate() { - if i == last { - app_name.push_str(w); - } else { + if i != last { domain.push_str(w); domain.push('_'); } } domain.pop(); println!("cargo:rustc-env=TAURI_ANDROID_DOMAIN={}", domain); - println!("cargo:rustc-env=TAURI_ANDROID_APP_NAME={}", app_name); cfg_alias("dev", !has_feature("custom-protocol")); diff --git a/core/tauri-macros/src/mobile.rs b/core/tauri-macros/src/mobile.rs index e98b647de512..3bd170075caa 100644 --- a/core/tauri-macros/src/mobile.rs +++ b/core/tauri-macros/src/mobile.rs @@ -32,7 +32,7 @@ pub fn entry_point(_attributes: TokenStream, item: TokenStream) -> TokenStream { let mut error = None; let domain = get_env_var("TAURI_ANDROID_DOMAIN", &mut error, &function); - let app_name = get_env_var("TAURI_ANDROID_APP_NAME", &mut error, &function); + let app_name = get_env_var("CARGO_PKG_NAME", &mut error, &function); if let Some(e) = error { quote!(#e).into() diff --git a/tooling/cli/src/interface/mod.rs b/tooling/cli/src/interface/mod.rs index e946f071d9b8..178eead72ae7 100644 --- a/tooling/cli/src/interface/mod.rs +++ b/tooling/cli/src/interface/mod.rs @@ -12,7 +12,7 @@ use std::{ use crate::helpers::config::Config; use tauri_bundler::bundle::{PackageType, Settings, SettingsBuilder}; -pub use rust::{MobileOptions, Options, Rust as AppInterface}; +pub use rust::{manifest, MobileOptions, Options, Rust as AppInterface}; pub trait DevProcess { fn kill(&mut self) -> std::io::Result<()>; diff --git a/tooling/cli/src/interface/rust.rs b/tooling/cli/src/interface/rust.rs index 0357934fc110..bd4692658d82 100644 --- a/tooling/cli/src/interface/rust.rs +++ b/tooling/cli/src/interface/rust.rs @@ -36,7 +36,7 @@ use crate::helpers::{ mod cargo_config; mod desktop; -mod manifest; +pub mod manifest; use cargo_config::Config as CargoConfig; use manifest::{rewrite_manifest, Manifest}; diff --git a/tooling/cli/src/interface/rust/manifest.rs b/tooling/cli/src/interface/rust/manifest.rs index d19ad837013b..3b257edba562 100644 --- a/tooling/cli/src/interface/rust/manifest.rs +++ b/tooling/cli/src/interface/rust/manifest.rs @@ -82,7 +82,7 @@ fn get_enabled_features(list: &HashMap>, feature: &str) -> V f } -fn read_manifest(manifest_path: &Path) -> crate::Result { +pub fn read_manifest(manifest_path: &Path) -> crate::Result { let mut manifest_str = String::new(); let mut manifest_file = File::open(manifest_path) diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index ee2de83b9480..f3ddea067950 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -147,6 +147,20 @@ fn get_config(config: &TauriConfig) -> (Config, Metadata) { } domain.pop(); + let manifest_path = tauri_dir().join("Cargo.toml"); + let app_name = if let Ok(manifest) = crate::interface::manifest::read_manifest(&manifest_path) { + manifest + .as_table() + .get("package") + .and_then(|p| p.as_table()) + .and_then(|p| p.get("name")) + .and_then(|n| n.as_str()) + .map(|n| n.to_string()) + .unwrap_or(app_name) + } else { + app_name + }; + #[cfg(target_os = "macos")] let ios_options = read_options(config, Target::Ios).unwrap_or_default(); let android_options = read_options(config, Target::Android).unwrap_or_default(); From 641d56dcb3f47732df2b8ca407e9ff56dbe502f3 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Wed, 24 Aug 2022 13:06:45 -0300 Subject: [PATCH 028/436] feat(android): improve initialization scripts (#5028) --- examples/api/src-tauri/Cargo.lock | 3 +-- examples/api/src-tauri/Cargo.toml | 3 +++ .../app/src/main/RustWebChromeClient.kt | 26 ------------------- .../android/app/src/main/RustWebViewClient.kt | 16 +++++++++++- 4 files changed, 19 insertions(+), 29 deletions(-) delete mode 100644 tooling/cli/templates/mobile/android/app/src/main/RustWebChromeClient.kt diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index 73bd19c32ead..bf5d42d2e180 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -4223,8 +4223,7 @@ dependencies = [ [[package]] name = "wry" version = "0.20.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea48fb3b68ab76f62837bfcea63baed9a185dbec9c14d4e5d70033e22fefffd2" +source = "git+https://github.com/tauri-apps/wry?branch=dev#1b26d605d6e33f5417eb6566a7381d8feb239c8b" dependencies = [ "block", "cocoa", diff --git a/examples/api/src-tauri/Cargo.toml b/examples/api/src-tauri/Cargo.toml index 92d75446cf05..19c491ff50c3 100644 --- a/examples/api/src-tauri/Cargo.toml +++ b/examples/api/src-tauri/Cargo.toml @@ -6,6 +6,9 @@ edition = "2021" rust-version = "1.57" license = "Apache-2.0 OR MIT" +[patch.crates-io] +wry = { git = "https://github.com/tauri-apps/wry", branch = "dev" } + [lib] crate-type = ["staticlib", "cdylib", "rlib"] diff --git a/tooling/cli/templates/mobile/android/app/src/main/RustWebChromeClient.kt b/tooling/cli/templates/mobile/android/app/src/main/RustWebChromeClient.kt deleted file mode 100644 index eda111cc7be3..000000000000 --- a/tooling/cli/templates/mobile/android/app/src/main/RustWebChromeClient.kt +++ /dev/null @@ -1,26 +0,0 @@ -package {{reverse-domain app.domain}}.{{snake-case app.name}} - -import android.webkit.* - -class RustWebChromeClient: WebChromeClient() { - private var loadedUrl: String? = null - - override fun onProgressChanged(view: WebView, progress: Int) { - var url = view.url ?: "" - if (url.endsWith("##")) { - url = url.dropLast(2) - } - if (loadedUrl != url && progress >= 20) { - loadedUrl = url - runInitializationScripts() - } - } - - companion object { - init { - System.loadLibrary("{{snake-case app.name}}") - } - } - - private external fun runInitializationScripts() -} diff --git a/tooling/cli/templates/mobile/android/app/src/main/RustWebViewClient.kt b/tooling/cli/templates/mobile/android/app/src/main/RustWebViewClient.kt index c6c65fa951e4..b854a32de867 100644 --- a/tooling/cli/templates/mobile/android/app/src/main/RustWebViewClient.kt +++ b/tooling/cli/templates/mobile/android/app/src/main/RustWebViewClient.kt @@ -1,8 +1,22 @@ package {{reverse-domain app.domain}}.{{snake-case app.name}} +import android.graphics.Bitmap import android.webkit.* -class RustWebViewClient: WebViewClient() { +class RustWebViewClient(initScripts: Array): WebViewClient() { + private val initializationScripts: Array + + init { + initializationScripts = initScripts + } + + override fun onPageStarted(view: WebView?, url: String?, favicon: Bitmap?) { + for (script in initializationScripts) { + view?.evaluateJavascript(script, null) + } + super.onPageStarted(view, url, favicon) + } + override fun shouldOverrideUrlLoading(view: WebView?, request: WebResourceRequest?): Boolean { return false } From ff4cb56b2ed9b86f8f684f1e03d272269f61aa67 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Wed, 24 Aug 2022 14:02:08 -0300 Subject: [PATCH 029/436] fix(tauri-macros): escape `_` in mobile entry point's app name (#5029) --- core/tauri-macros/src/mobile.rs | 18 ++++++++++++++---- examples/api/src-tauri/Cargo.lock | 3 +-- examples/api/src-tauri/Cargo.toml | 1 + 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/core/tauri-macros/src/mobile.rs b/core/tauri-macros/src/mobile.rs index 3bd170075caa..ca593ea3b12d 100644 --- a/core/tauri-macros/src/mobile.rs +++ b/core/tauri-macros/src/mobile.rs @@ -4,10 +4,15 @@ use quote::{format_ident, quote}; use std::env::var; use syn::{parse_macro_input, spanned::Spanned, ItemFn}; -fn get_env_var(name: &str, error: &mut Option, function: &ItemFn) -> TokenStream2 { +fn get_env_var String>( + name: &str, + replacer: R, + error: &mut Option, + function: &ItemFn, +) -> TokenStream2 { match var(name) { Ok(value) => { - let ident = format_ident!("{}", value); + let ident = format_ident!("{}", replacer(value)); quote!(#ident) } Err(_) => { @@ -31,8 +36,13 @@ pub fn entry_point(_attributes: TokenStream, item: TokenStream) -> TokenStream { let function_name = function.sig.ident.clone(); let mut error = None; - let domain = get_env_var("TAURI_ANDROID_DOMAIN", &mut error, &function); - let app_name = get_env_var("CARGO_PKG_NAME", &mut error, &function); + let domain = get_env_var("TAURI_ANDROID_DOMAIN", |r| r, &mut error, &function); + let app_name = get_env_var( + "CARGO_PKG_NAME", + |r| r.replace('_', "_1"), + &mut error, + &function, + ); if let Some(e) = error { quote!(#e).into() diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index bf5d42d2e180..7966d0fbae29 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -3107,8 +3107,7 @@ dependencies = [ [[package]] name = "tao" version = "0.13.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2093fa6bba3cc0c185b21c900de1b757e66637e78848cbcdda967b836d8c0ec" +source = "git+https://github.com/tauri-apps/tao?branch=dev#816ca49dc648a5286eab943c6fc936629fd3a596" dependencies = [ "bitflags", "cairo-rs", diff --git a/examples/api/src-tauri/Cargo.toml b/examples/api/src-tauri/Cargo.toml index 19c491ff50c3..a8c0e3a9edf8 100644 --- a/examples/api/src-tauri/Cargo.toml +++ b/examples/api/src-tauri/Cargo.toml @@ -8,6 +8,7 @@ license = "Apache-2.0 OR MIT" [patch.crates-io] wry = { git = "https://github.com/tauri-apps/wry", branch = "dev" } +tao = { git = "https://github.com/tauri-apps/tao", branch = "dev" } [lib] crate-type = ["staticlib", "cdylib", "rlib"] From 752ad3b20343d03128073d666ae002f2f8f2289e Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Wed, 24 Aug 2022 16:06:14 -0300 Subject: [PATCH 030/436] feat(cli): use templates from wry (#5030) --- examples/api/src-tauri/Cargo.lock | 2 +- tooling/cli/Cargo.lock | 2 +- tooling/cli/src/mobile/android.rs | 10 ++- .../mobile/android/android_studio_script.rs | 6 +- tooling/cli/src/mobile/android/build.rs | 4 +- tooling/cli/src/mobile/android/dev.rs | 9 +-- tooling/cli/src/mobile/ios.rs | 11 +-- tooling/cli/src/mobile/mod.rs | 52 ++++++++++++-- .../mobile/android/app/src/main/Ipc.kt | 18 ----- .../android/app/src/main/RustWebViewClient.kt | 38 ---------- .../android/app/src/main/TauriActivity.kt | 69 +------------------ 11 files changed, 71 insertions(+), 150 deletions(-) delete mode 100644 tooling/cli/templates/mobile/android/app/src/main/Ipc.kt delete mode 100644 tooling/cli/templates/mobile/android/app/src/main/RustWebViewClient.kt diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index 7966d0fbae29..86333c28ca91 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -4222,7 +4222,7 @@ dependencies = [ [[package]] name = "wry" version = "0.20.2" -source = "git+https://github.com/tauri-apps/wry?branch=dev#1b26d605d6e33f5417eb6566a7381d8feb239c8b" +source = "git+https://github.com/tauri-apps/wry?branch=dev#b4789034dc4d10ab83f6acce6b4152d79f702940" dependencies = [ "block", "cocoa", diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index e7b6a9261b07..81d4a74255ae 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -250,7 +250,7 @@ dependencies = [ [[package]] name = "cargo-mobile" version = "0.1.0" -source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#d5b4c4dd5ac23e700f07e362b8788d80a33d21d3" +source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#5b866af17df4e2310e084efd3550ec31f62ff984" dependencies = [ "cocoa", "colored 1.9.3", diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index 2d9aba649af7..440938ba52d0 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -7,11 +7,12 @@ use cargo_mobile::{ adb, config::{Config as AndroidConfig, Metadata as AndroidMetadata}, device::{Device, RunError}, - env::{Env, Error as EnvError}, + env::{Env, Error as AndroidEnvError}, target::{BuildError, Target}, }, config::Config, device::PromptError, + env::Error as EnvError, os, util::prompt, }; @@ -35,6 +36,8 @@ enum Error { #[error(transparent)] EnvInitFailed(EnvError), #[error(transparent)] + AndroidEnvInitFailed(AndroidEnvError), + #[error(transparent)] InitDotCargo(super::init::Error), #[error("invalid tauri configuration: {0}")] InvalidTauriConfig(String), @@ -105,6 +108,11 @@ fn with_config( f(&config, config.android(), metadata.android()) } +fn env() -> Result { + let env = super::env().map_err(Error::EnvInitFailed)?; + cargo_mobile::android::env::Env::from_env(env).map_err(Error::AndroidEnvInitFailed) +} + fn device_prompt<'a>(env: &'_ Env) -> Result, PromptError> { let device_list = adb::device_list(env).map_err(|cause| PromptError::detection_failed("Android", cause))?; diff --git a/tooling/cli/src/mobile/android/android_studio_script.rs b/tooling/cli/src/mobile/android/android_studio_script.rs index d7821394163a..8c37af049396 100644 --- a/tooling/cli/src/mobile/android/android_studio_script.rs +++ b/tooling/cli/src/mobile/android/android_studio_script.rs @@ -1,9 +1,9 @@ -use super::{detect_target_ok, ensure_init, init_dot_cargo, with_config, Error, MobileTarget}; +use super::{detect_target_ok, ensure_init, env, init_dot_cargo, with_config, Error, MobileTarget}; use crate::Result; use clap::Parser; use cargo_mobile::{ - android::{env::Env, target::Target}, + android::target::Target, opts::{NoiseLevel, Profile}, target::{call_for_targets_with_fallback, TargetTrait}, }; @@ -37,7 +37,7 @@ pub fn command(options: Options) -> Result<()> { ensure_init(config.project_dir(), MobileTarget::Android) .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; - let env = Env::new().map_err(Error::EnvInitFailed)?; + let env = env()?; init_dot_cargo(root_conf, Some(&env)).map_err(Error::InitDotCargo)?; call_for_targets_with_fallback( diff --git a/tooling/cli/src/mobile/android/build.rs b/tooling/cli/src/mobile/android/build.rs index cca10d337480..5766f5f68bf3 100644 --- a/tooling/cli/src/mobile/android/build.rs +++ b/tooling/cli/src/mobile/android/build.rs @@ -1,4 +1,4 @@ -use super::{ensure_init, init_dot_cargo, log_finished, with_config, Error, MobileTarget}; +use super::{ensure_init, env, init_dot_cargo, log_finished, with_config, Error, MobileTarget}; use crate::{ helpers::{config::get as get_tauri_config, flock}, interface::{AppSettings, Interface, Options as InterfaceOptions}, @@ -64,7 +64,7 @@ pub fn command(options: Options) -> Result<()> { ensure_init(config.project_dir(), MobileTarget::Android) .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; - let env = Env::new().map_err(Error::EnvInitFailed)?; + let env = env()?; init_dot_cargo(root_conf, Some(&env)).map_err(Error::InitDotCargo)?; run_build(options, config, env).map_err(|e| Error::BuildFailed(format!("{:#}", e))) diff --git a/tooling/cli/src/mobile/android/dev.rs b/tooling/cli/src/mobile/android/dev.rs index 636bce926602..073d1af7c3a6 100644 --- a/tooling/cli/src/mobile/android/dev.rs +++ b/tooling/cli/src/mobile/android/dev.rs @@ -1,4 +1,4 @@ -use super::{device_prompt, ensure_init, init_dot_cargo, with_config, Error, MobileTarget}; +use super::{device_prompt, ensure_init, env, init_dot_cargo, with_config, Error, MobileTarget}; use crate::{ helpers::{config::get as get_tauri_config, flock}, interface::{AppSettings, Interface, MobileOptions, Options as InterfaceOptions}, @@ -8,10 +8,7 @@ use crate::{ use clap::Parser; use cargo_mobile::{ - android::{ - config::{Config as AndroidConfig, Metadata as AndroidMetadata}, - env::Env, - }, + android::config::{Config as AndroidConfig, Metadata as AndroidMetadata}, config::Config, opts::{NoiseLevel, Profile}, os, @@ -143,7 +140,7 @@ fn run( let build_app_bundle = metadata.asset_packs().is_some(); - let env = Env::new().map_err(Error::EnvInitFailed)?; + let env = env()?; init_dot_cargo(root_conf, Some(&env)).map_err(Error::InitDotCargo)?; device_prompt(&env) diff --git a/tooling/cli/src/mobile/ios.rs b/tooling/cli/src/mobile/ios.rs index 388e9b318302..5a38dcf12c80 100644 --- a/tooling/cli/src/mobile/ios.rs +++ b/tooling/cli/src/mobile/ios.rs @@ -18,7 +18,7 @@ use cargo_mobile::{ use clap::{Parser, Subcommand}; use super::{ - ensure_init, env_vars, get_config, + ensure_init, env, get_config, init::{command as init_command, init_dot_cargo, Options as InitOptions}, log_finished, Target as MobileTarget, }; @@ -35,7 +35,7 @@ mod xcode_script; #[derive(Debug, thiserror::Error)] enum Error { #[error(transparent)] - EnvInitFailed(EnvError), + EnvInitFailed(#[from] EnvError), #[error(transparent)] InitDotCargo(super::init::Error), #[error("invalid tauri configuration: {0}")] @@ -116,13 +116,6 @@ fn with_config( f(&config, config.apple(), metadata.apple()) } -fn env() -> Result { - let env = Env::new() - .map_err(Error::EnvInitFailed)? - .explicit_env_vars(env_vars()); - Ok(env) -} - fn device_prompt<'a>(env: &'_ Env) -> Result, PromptError> { let device_list = ios_deploy::device_list(env).map_err(|cause| PromptError::detection_failed("iOS", cause))?; diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index f3ddea067950..7e996ee91e25 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -15,9 +15,17 @@ use cargo_mobile::{ android::config::{Metadata as AndroidMetadata, Raw as RawAndroidConfig}, bossy, config::{app::Raw as RawAppConfig, metadata::Metadata, Config, Raw}, + env::Error as EnvError, }; use serde::{Deserialize, Serialize}; -use std::{collections::HashMap, ffi::OsString, fmt::Write, path::PathBuf, process::ExitStatus}; +use std::{ + collections::HashMap, env::set_var, ffi::OsString, fmt::Write, path::PathBuf, process::ExitStatus, +}; + +#[cfg(not(windows))] +use cargo_mobile::env::Env; +#[cfg(windows)] +use cargo_mobile::os::Env; pub mod android; mod init; @@ -110,13 +118,20 @@ fn env_vars() -> HashMap { let mut vars = HashMap::new(); for (k, v) in std::env::vars_os() { let k = k.to_string_lossy(); - if k.starts_with("TAURI") && k != "TAURI_PRIVATE_KEY" && k != "TAURI_KEY_PASSWORD" { + if (k.starts_with("TAURI") && k != "TAURI_PRIVATE_KEY" && k != "TAURI_KEY_PASSWORD") + || k.starts_with("WRY") + { vars.insert(k.into_owned(), v); } } vars } +fn env() -> Result { + let env = Env::new()?.explicit_env_vars(env_vars()); + Ok(env) +} + /// Writes CLI options to be used later on the Xcode and Android Studio build commands pub fn write_options( mut options: CliOptions, @@ -133,7 +148,10 @@ pub fn write_options( fn read_options(config: &TauriConfig, target: Target) -> crate::Result { let data = std::fs::read_to_string(options_path(&config.tauri.bundle.identifier, target))?; - let options = serde_json::from_str(&data)?; + let options: CliOptions = serde_json::from_str(&data)?; + for (k, v) in &options.vars { + set_var(k, v); + } Ok(options) } @@ -147,6 +165,17 @@ fn get_config(config: &TauriConfig) -> (Config, Metadata) { } domain.pop(); + let s = config.tauri.bundle.identifier.split('.'); + let last = s.clone().count() - 1; + let mut reverse_domain = String::new(); + for (i, w) in s.enumerate() { + if i != last { + reverse_domain.push_str(w); + reverse_domain.push('.'); + } + } + reverse_domain.pop(); + let manifest_path = tauri_dir().join("Cargo.toml"); let app_name = if let Ok(manifest) = crate::interface::manifest::read_manifest(&manifest_path) { manifest @@ -167,7 +196,7 @@ fn get_config(config: &TauriConfig) -> (Config, Metadata) { let raw = Raw { app: RawAppConfig { - name: app_name, + name: app_name.clone(), stylized_name: config.package.product_name.clone(), domain, asset_dir: None, @@ -243,6 +272,21 @@ fn get_config(config: &TauriConfig) -> (Config, Metadata) { }, }; + set_var("WRY_ANDROID_REVERSED_DOMAIN", &reverse_domain); + set_var("WRY_ANDROID_APP_NAME_SNAKE_CASE", &app_name); + set_var( + "WRY_ANDROID_KOTLIN_FILES_OUT_DIR", + config + .android() + .project_dir() + .join("app/src/main") + .join(format!( + "java/{}/{}", + config.app().reverse_domain().replace('.', "/"), + config.app().name() + )), + ); + (config, metadata) } diff --git a/tooling/cli/templates/mobile/android/app/src/main/Ipc.kt b/tooling/cli/templates/mobile/android/app/src/main/Ipc.kt deleted file mode 100644 index f2bb26f1575a..000000000000 --- a/tooling/cli/templates/mobile/android/app/src/main/Ipc.kt +++ /dev/null @@ -1,18 +0,0 @@ -package {{reverse-domain app.domain}}.{{snake-case app.name}} - -import android.webkit.* - -class Ipc { - @JavascriptInterface - fun postMessage(message: String) { - this.ipc(message) - } - - companion object { - init { - System.loadLibrary("{{snake-case app.name}}") - } - } - - private external fun ipc(message: String) -} diff --git a/tooling/cli/templates/mobile/android/app/src/main/RustWebViewClient.kt b/tooling/cli/templates/mobile/android/app/src/main/RustWebViewClient.kt deleted file mode 100644 index b854a32de867..000000000000 --- a/tooling/cli/templates/mobile/android/app/src/main/RustWebViewClient.kt +++ /dev/null @@ -1,38 +0,0 @@ -package {{reverse-domain app.domain}}.{{snake-case app.name}} - -import android.graphics.Bitmap -import android.webkit.* - -class RustWebViewClient(initScripts: Array): WebViewClient() { - private val initializationScripts: Array - - init { - initializationScripts = initScripts - } - - override fun onPageStarted(view: WebView?, url: String?, favicon: Bitmap?) { - for (script in initializationScripts) { - view?.evaluateJavascript(script, null) - } - super.onPageStarted(view, url, favicon) - } - - override fun shouldOverrideUrlLoading(view: WebView?, request: WebResourceRequest?): Boolean { - return false - } - - override fun shouldInterceptRequest( - view: WebView, - request: WebResourceRequest - ): WebResourceResponse? { - return handleRequest(request) - } - - companion object { - init { - System.loadLibrary("{{snake-case app.name}}") - } - } - - private external fun handleRequest(request: WebResourceRequest): WebResourceResponse? -} diff --git a/tooling/cli/templates/mobile/android/app/src/main/TauriActivity.kt b/tooling/cli/templates/mobile/android/app/src/main/TauriActivity.kt index 84b13f949a8d..2d1ffa69a320 100644 --- a/tooling/cli/templates/mobile/android/app/src/main/TauriActivity.kt +++ b/tooling/cli/templates/mobile/android/app/src/main/TauriActivity.kt @@ -1,71 +1,6 @@ -package {{reverse-domain app.domain}}.{{snake-case app.name}} +package {{app-domain-reversed}}.{{app-name-snake-case}} import android.os.Bundle import androidx.appcompat.app.AppCompatActivity -abstract class TauriActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - create(this) - } - - override fun onStart() { - super.onStart() - start() - } - - override fun onResume() { - super.onResume() - resume() - } - - override fun onPause() { - super.onPause() - pause() - } - - override fun onStop() { - super.onStop() - stop() - } - - override fun onWindowFocusChanged(hasFocus: Boolean) { - super.onWindowFocusChanged(hasFocus) - focus(hasFocus) - } - - override fun onSaveInstanceState(outState: Bundle) { - super.onSaveInstanceState(outState) - save() - } - - override fun onDestroy() { - super.onDestroy() - destroy() - } - - override fun onLowMemory() { - super.onLowMemory() - memory() - } - - fun getAppClass(name: String): Class<*> { - return Class.forName(name) - } - - companion object { - init { - System.loadLibrary("{{snake-case app.name}}") - } - } - - private external fun create(activity: TauriActivity) - private external fun start() - private external fun resume() - private external fun pause() - private external fun stop() - private external fun save() - private external fun destroy() - private external fun memory() - private external fun focus(focus: Boolean) -} +abstract class TauriActivity : AppCompatActivity() From 4a5f2ec1aee0d1af026bf74b1cfad049fc537872 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Thu, 25 Aug 2022 00:19:47 -0300 Subject: [PATCH 031/436] feat(android): enable dev HMR in both HTTP and HTTPS dev servers (#5033) --- core/tauri/src/manager.rs | 5 ++++- examples/api/src-tauri/Cargo.lock | 2 +- examples/api/vite.config.js | 1 + tooling/cli/src/mobile/android.rs | 8 +++++++ tooling/cli/src/mobile/android/build.rs | 11 +++++++++- tooling/cli/src/mobile/android/dev.rs | 22 ++++++++++++++++++- .../mobile/android/app/build.gradle.kts | 2 ++ .../android/app/src/main/AndroidManifest.xml | 3 ++- 8 files changed, 49 insertions(+), 5 deletions(-) diff --git a/core/tauri/src/manager.rs b/core/tauri/src/manager.rs index 1f670d2352e0..35083fb82c7b 100644 --- a/core/tauri/src/manager.rs +++ b/core/tauri/src/manager.rs @@ -847,7 +847,10 @@ impl WindowManager { let mut response = { let mut url = url.clone(); url.set_path(&path); - match attohttpc::get(url.as_str()).send() { + match attohttpc::get(url.as_str()) + .danger_accept_invalid_certs(true) + .send() + { Ok(r) => { for (name, value) in r.headers() { builder = builder.header(name, value); diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index 86333c28ca91..ce1d02a8c4ce 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -4222,7 +4222,7 @@ dependencies = [ [[package]] name = "wry" version = "0.20.2" -source = "git+https://github.com/tauri-apps/wry?branch=dev#b4789034dc4d10ab83f6acce6b4152d79f702940" +source = "git+https://github.com/tauri-apps/wry?branch=dev#b1e8560c3f13f2674528f6ca440ba476ddbef7c2" dependencies = [ "block", "cocoa", diff --git a/examples/api/vite.config.js b/examples/api/vite.config.js index c5d66fbbc076..6ccdda26aa3e 100644 --- a/examples/api/vite.config.js +++ b/examples/api/vite.config.js @@ -21,6 +21,7 @@ export default defineConfig(async ({ command, mode }) => { port: 5173, strictPort: true, hmr: { + protocol: 'ws', host, port: 5183 }, diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index 440938ba52d0..4e580932158e 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -113,6 +113,14 @@ fn env() -> Result { cargo_mobile::android::env::Env::from_env(env).map_err(Error::AndroidEnvInitFailed) } +fn delete_codegen_vars() { + for (k, _) in std::env::vars() { + if k.starts_with("WRY_") && (k.ends_with("CLASS_EXTENSION") || k.ends_with("CLASS_INIT")) { + std::env::remove_var(k); + } + } +} + fn device_prompt<'a>(env: &'_ Env) -> Result, PromptError> { let device_list = adb::device_list(env).map_err(|cause| PromptError::detection_failed("Android", cause))?; diff --git a/tooling/cli/src/mobile/android/build.rs b/tooling/cli/src/mobile/android/build.rs index 5766f5f68bf3..fdc8be9ef1a2 100644 --- a/tooling/cli/src/mobile/android/build.rs +++ b/tooling/cli/src/mobile/android/build.rs @@ -1,4 +1,7 @@ -use super::{ensure_init, env, init_dot_cargo, log_finished, with_config, Error, MobileTarget}; +use super::{ + delete_codegen_vars, ensure_init, env, init_dot_cargo, log_finished, with_config, Error, + MobileTarget, +}; use crate::{ helpers::{config::get as get_tauri_config, flock}, interface::{AppSettings, Interface, Options as InterfaceOptions}, @@ -13,6 +16,8 @@ use cargo_mobile::{ target::TargetTrait, }; +use std::env::set_var; + #[derive(Debug, Clone, Parser)] #[clap(about = "Android build")] pub struct Options { @@ -60,7 +65,11 @@ impl From for crate::build::Options { } pub fn command(options: Options) -> Result<()> { + delete_codegen_vars(); with_config(|root_conf, config, _metadata| { + set_var("WRY_RUSTWEBVIEWCLIENT_CLASS_EXTENSION", ""); + set_var("WRY_RUSTWEBVIEW_CLASS_INIT", ""); + ensure_init(config.project_dir(), MobileTarget::Android) .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; diff --git a/tooling/cli/src/mobile/android/dev.rs b/tooling/cli/src/mobile/android/dev.rs index 073d1af7c3a6..3c2e17aac1ec 100644 --- a/tooling/cli/src/mobile/android/dev.rs +++ b/tooling/cli/src/mobile/android/dev.rs @@ -1,4 +1,7 @@ -use super::{device_prompt, ensure_init, env, init_dot_cargo, with_config, Error, MobileTarget}; +use super::{ + delete_codegen_vars, device_prompt, ensure_init, env, init_dot_cargo, with_config, Error, + MobileTarget, +}; use crate::{ helpers::{config::get as get_tauri_config, flock}, interface::{AppSettings, Interface, MobileOptions, Options as InterfaceOptions}, @@ -14,6 +17,17 @@ use cargo_mobile::{ os, }; +use std::env::set_var; + +const WEBVIEW_CLIENT_CLASS_EXTENSION: &str = " + @android.annotation.SuppressLint(\"WebViewClientOnReceivedSslError\") + override fun onReceivedSslError(view: WebView?, handler: SslErrorHandler, error: android.net.http.SslError) { + handler.proceed() + } +"; +const WEBVIEW_CLASS_INIT: &str = + "this.settings.mixedContentMode = android.webkit.WebSettings.MIXED_CONTENT_ALWAYS_ALLOW"; + #[derive(Debug, Clone, Parser)] #[clap(about = "Android dev")] pub struct Options { @@ -50,7 +64,13 @@ impl From for crate::dev::Options { } pub fn command(options: Options) -> Result<()> { + delete_codegen_vars(); with_config(|root_conf, config, metadata| { + set_var( + "WRY_RUSTWEBVIEWCLIENT_CLASS_EXTENSION", + WEBVIEW_CLIENT_CLASS_EXTENSION, + ); + set_var("WRY_RUSTWEBVIEW_CLASS_INIT", WEBVIEW_CLASS_INIT); ensure_init(config.project_dir(), MobileTarget::Android) .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; run_dev(options, root_conf, config, metadata).map_err(|e| Error::DevFailed(format!("{:#}", e))) diff --git a/tooling/cli/templates/mobile/android/app/build.gradle.kts b/tooling/cli/templates/mobile/android/app/build.gradle.kts index 9031fd8ed2b3..7ebfc04805e6 100644 --- a/tooling/cli/templates/mobile/android/app/build.gradle.kts +++ b/tooling/cli/templates/mobile/android/app/build.gradle.kts @@ -9,6 +9,7 @@ plugins { android { compileSdk = 33 defaultConfig { + manifestPlaceholders["usesCleartextTraffic"] = "false" applicationId = "{{reverse-domain app.domain}}.{{snake-case app.name}}" minSdk = {{android.min-sdk-version}} targetSdk = 33 @@ -23,6 +24,7 @@ android { } buildTypes { getByName("debug") { + manifestPlaceholders["usesCleartextTraffic"] = "true" isDebuggable = true isJniDebuggable = true isMinifyEnabled = false diff --git a/tooling/cli/templates/mobile/android/app/src/main/AndroidManifest.xml b/tooling/cli/templates/mobile/android/app/src/main/AndroidManifest.xml index 657c7e775c0c..de5a85690b12 100644 --- a/tooling/cli/templates/mobile/android/app/src/main/AndroidManifest.xml +++ b/tooling/cli/templates/mobile/android/app/src/main/AndroidManifest.xml @@ -5,7 +5,8 @@ + android:theme="@style/Theme.{{snake-case app.name}}" + android:usesCleartextTraffic="${usesCleartextTraffic}"> From 927ccc465d0e21b7c8cd5c373349c3957bb9fe77 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Thu, 25 Aug 2022 15:30:05 -0300 Subject: [PATCH 032/436] refactor(cli): improve security of android dev/build (#5043) --- examples/api/src-tauri/Cargo.lock | 2 +- tooling/cli/Cargo.lock | 216 +++++++++++++++++- tooling/cli/Cargo.toml | 2 +- tooling/cli/src/mobile/android.rs | 18 +- .../mobile/android/android_studio_script.rs | 2 +- tooling/cli/src/mobile/android/build.rs | 18 +- tooling/cli/src/mobile/android/dev.rs | 21 +- tooling/cli/src/mobile/android/open.rs | 2 +- tooling/cli/src/mobile/init.rs | 2 +- tooling/cli/src/mobile/ios.rs | 18 +- tooling/cli/src/mobile/ios/build.rs | 18 +- tooling/cli/src/mobile/ios/dev.rs | 21 +- tooling/cli/src/mobile/ios/open.rs | 2 +- tooling/cli/src/mobile/ios/xcode_script.rs | 2 +- tooling/cli/src/mobile/mod.rs | 69 ++++-- 15 files changed, 340 insertions(+), 73 deletions(-) diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index ce1d02a8c4ce..cc1d00ca41c2 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -4222,7 +4222,7 @@ dependencies = [ [[package]] name = "wry" version = "0.20.2" -source = "git+https://github.com/tauri-apps/wry?branch=dev#b1e8560c3f13f2674528f6ca440ba476ddbef7c2" +source = "git+https://github.com/tauri-apps/wry?branch=dev#83b6a8d06be8b1687296d2dfb4daeff3cc587714" dependencies = [ "block", "cocoa", diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 81d4a74255ae..3f0b1a190464 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -85,6 +85,29 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" +[[package]] +name = "async-channel" +version = "1.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e14485364214912d3b19cc3435dde4df66065127f05fa0d75c712f36f12c2f28" +dependencies = [ + "concurrent-queue", + "event-listener", + "futures-core", +] + +[[package]] +name = "async-task" +version = "4.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a40729d2133846d9ed0ea60a8b9541bccddab49cd30f0715a1da672fe9a2524" + +[[package]] +name = "atomic-waker" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "065374052e7df7ee4047b1160cca5e1467a12351a40b3da123c870ba0b8eda2a" + [[package]] name = "attohttpc" version = "0.22.0" @@ -187,6 +210,20 @@ dependencies = [ "byte-tools", ] +[[package]] +name = "blocking" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6ccb65d468978a086b69884437ded69a90faab3bbe6e67f242173ea728acccc" +dependencies = [ + "async-channel", + "async-task", + "atomic-waker", + "fastrand", + "futures-lite", + "once_cell", +] + [[package]] name = "bstr" version = "0.2.17" @@ -247,6 +284,12 @@ dependencies = [ "pkg-config", ] +[[package]] +name = "cache-padded" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1db59621ec70f09c5e9b597b220c7a2b43611f4710dc03ceb8748637775692c" + [[package]] name = "cargo-mobile" version = "0.1.0" @@ -444,6 +487,15 @@ dependencies = [ "memchr", ] +[[package]] +name = "concurrent-queue" +version = "1.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af4780a44ab5696ea9e28294517f1fffb421a83a25af521333c838635509db9c" +dependencies = [ + "cache-padded", +] + [[package]] name = "console" version = "0.15.0" @@ -979,6 +1031,12 @@ dependencies = [ "libc", ] +[[package]] +name = "event-listener" +version = "2.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0" + [[package]] name = "exr" version = "1.4.2" @@ -1131,17 +1189,109 @@ dependencies = [ "new_debug_unreachable", ] +[[package]] +name = "futures" +version = "0.3.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab30e97ab6aacfe635fad58f22c2bb06c8b685f7421eb1e064a729e2a5f481fa" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-channel" +version = "0.3.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bfc52cbddcfd745bf1740338492bb0bd83d76c67b445f91c5fb29fae29ecaa1" +dependencies = [ + "futures-core", + "futures-sink", +] + [[package]] name = "futures-core" -version = "0.3.21" +version = "0.3.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2acedae88d38235936c3922476b10fced7b2b68136f5e3c03c2d5be348a1115" + +[[package]] +name = "futures-executor" +version = "0.3.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c09fd04b7e4073ac7156a9539b57a484a8ea920f79c7c675d05d289ab6110d3" +checksum = "1d11aa21b5b587a64682c0094c2bdd4df0076c5324961a40cc3abd7f37930528" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93a66fc6d035a26a3ae255a6d2bca35eda63ae4c5512bef54449113f7a1228e5" + +[[package]] +name = "futures-lite" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7694489acd39452c77daa48516b894c153f192c3578d5a839b62c58099fcbf48" +dependencies = [ + "fastrand", + "futures-core", + "futures-io", + "memchr", + "parking", + "pin-project-lite", + "waker-fn", +] + +[[package]] +name = "futures-macro" +version = "0.3.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0db9cce532b0eae2ccf2766ab246f114b56b9cf6d445e00c2549fbc100ca045d" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] [[package]] name = "futures-sink" -version = "0.3.21" +version = "0.3.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca0bae1fe9752cf7fd9b0064c674ae63f97b37bc714d745cbde0afb7ec4e6765" + +[[package]] +name = "futures-task" +version = "0.3.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "842fc63b931f4056a24d59de13fb1272134ce261816e063e634ad0c15cdc5306" + +[[package]] +name = "futures-util" +version = "0.3.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21163e139fa306126e6eedaf49ecdb4588f939600f0b1e770f4205ee4b7fa868" +checksum = "f0828a5471e340229c11c77ca80017937ce3c58cb788a17e5f1c2d5c485a9577" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "pin-utils", + "slab", +] [[package]] name = "fxhash" @@ -1494,6 +1644,29 @@ dependencies = [ "cfg-if 1.0.0", ] +[[package]] +name = "interprocess" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c58ec7fbda1df9a93f587b780659db3c99f61f4be27f9c82c9b37684ffd0366" +dependencies = [ + "blocking", + "cfg-if 1.0.0", + "futures", + "intmap", + "libc", + "once_cell", + "spinning", + "thiserror", + "winapi 0.3.9", +] + +[[package]] +name = "intmap" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae52f28f45ac2bc96edb7714de995cffc174a395fb0abf5bff453587c980d7b9" + [[package]] name = "io-lifetimes" version = "0.7.2" @@ -2184,6 +2357,12 @@ version = "6.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "21326818e99cfe6ce1e524c2a805c189a99b5ae555a35d19f9a284b427d86afa" +[[package]] +name = "parking" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "427c3892f9e783d91cc128285287e70a59e206ca452770ece88a76f7a3eddd72" + [[package]] name = "parking_lot" version = "0.12.1" @@ -2409,6 +2588,18 @@ dependencies = [ "syn", ] +[[package]] +name = "pin-project-lite" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" + +[[package]] +name = "pin-utils" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + [[package]] name = "pkg-config" version = "0.3.25" @@ -3120,6 +3311,15 @@ dependencies = [ "lock_api", ] +[[package]] +name = "spinning" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d4f0e86297cad2658d92a707320d87bf4e6ae1050287f51d19b67ef3f153a7b" +dependencies = [ + "lock_api", +] + [[package]] name = "stable_deref_trait" version = "1.2.0" @@ -3305,13 +3505,13 @@ dependencies = [ "colored 2.0.0", "ctrlc", "dialoguer", - "dirs-next", "env_logger 0.9.0", "glob", "handlebars 4.3.1", "heck 0.4.0", "ignore", "include_dir", + "interprocess", "json-patch", "lazy_static", "libc", @@ -3798,6 +3998,12 @@ dependencies = [ "libc", ] +[[package]] +name = "waker-fn" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d5b2c62b4012a3e1eca5a7e077d13b3bf498c4073e33ccd58626607748ceeca" + [[package]] name = "walkdir" version = "2.3.2" diff --git a/tooling/cli/Cargo.toml b/tooling/cli/Cargo.toml index aec9d268ed9e..2aa2976e9b01 100644 --- a/tooling/cli/Cargo.toml +++ b/tooling/cli/Cargo.toml @@ -30,7 +30,7 @@ path = "src/main.rs" # cargo-mobile = { path = "../../../cargo-mobile/", default-features = false } cargo-mobile = { git = "https://github.com/tauri-apps/cargo-mobile", branch = "dev", default-features = false } textwrap = { version = "0.11.0", features = ["term_size"] } -dirs-next = "2.0" +interprocess = "1" thiserror = "1" clap = { version = "3.2", features = [ "derive" ] } anyhow = "1.0" diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index 4e580932158e..2220cc0fdcf5 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -21,7 +21,7 @@ use clap::{Parser, Subcommand}; use super::{ ensure_init, get_config, init::{command as init_command, init_dot_cargo, Options as InitOptions}, - log_finished, Target as MobileTarget, + log_finished, read_options, CliOptions, Target as MobileTarget, }; use crate::{helpers::config::get as get_tauri_config, Result}; @@ -96,6 +96,7 @@ pub fn command(cli: Cli) -> Result<()> { } fn with_config( + cli_options: Option, f: impl FnOnce(&Config, &AndroidConfig, &AndroidMetadata) -> Result, ) -> Result { let (config, metadata) = { @@ -103,7 +104,10 @@ fn with_config( get_tauri_config(None).map_err(|e| Error::InvalidTauriConfig(e.to_string()))?; let tauri_config_guard = tauri_config.lock().unwrap(); let tauri_config_ = tauri_config_guard.as_ref().unwrap(); - get_config(tauri_config_) + get_config( + tauri_config_, + cli_options.unwrap_or_else(|| read_options(tauri_config_, MobileTarget::Android)), + ) }; f(&config, config.android(), metadata.android()) } @@ -152,3 +156,13 @@ fn device_prompt<'a>(env: &'_ Env) -> Result, PromptError(env: &Env) -> Option<&'a Target<'a>> { device_prompt(env).map(|device| device.target()).ok() } + +fn open_and_wait(config: &AndroidConfig) -> ! { + log::info!("Opening Android Studio"); + if let Err(e) = os::open_file_with("Android Studio", config.project_dir()) { + log::error!("{}", e); + } + loop { + std::thread::sleep(std::time::Duration::from_secs(24 * 60 * 60)); + } +} diff --git a/tooling/cli/src/mobile/android/android_studio_script.rs b/tooling/cli/src/mobile/android/android_studio_script.rs index 8c37af049396..b4c2417c2f89 100644 --- a/tooling/cli/src/mobile/android/android_studio_script.rs +++ b/tooling/cli/src/mobile/android/android_studio_script.rs @@ -33,7 +33,7 @@ pub fn command(options: Options) -> Result<()> { }; let noise_level = NoiseLevel::Polite; - with_config(|root_conf, config, metadata| { + with_config(None, |root_conf, config, metadata| { ensure_init(config.project_dir(), MobileTarget::Android) .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; diff --git a/tooling/cli/src/mobile/android/build.rs b/tooling/cli/src/mobile/android/build.rs index fdc8be9ef1a2..4872ba4e8148 100644 --- a/tooling/cli/src/mobile/android/build.rs +++ b/tooling/cli/src/mobile/android/build.rs @@ -1,6 +1,6 @@ use super::{ - delete_codegen_vars, ensure_init, env, init_dot_cargo, log_finished, with_config, Error, - MobileTarget, + delete_codegen_vars, ensure_init, env, init_dot_cargo, log_finished, open_and_wait, with_config, + Error, MobileTarget, }; use crate::{ helpers::{config::get as get_tauri_config, flock}, @@ -48,6 +48,9 @@ pub struct Options { /// Build AABs. #[clap(long)] pub aab: bool, + /// Open Android Studio + #[clap(short, long)] + pub open: bool, } impl From for crate::build::Options { @@ -66,7 +69,7 @@ impl From for crate::build::Options { pub fn command(options: Options) -> Result<()> { delete_codegen_vars(); - with_config(|root_conf, config, _metadata| { + with_config(Some(Default::default()), |root_conf, config, _metadata| { set_var("WRY_RUSTWEBVIEWCLIENT_CLASS_EXTENSION", ""); set_var("WRY_RUSTWEBVIEW_CLASS_INIT", ""); @@ -76,7 +79,14 @@ pub fn command(options: Options) -> Result<()> { let env = env()?; init_dot_cargo(root_conf, Some(&env)).map_err(Error::InitDotCargo)?; - run_build(options, config, env).map_err(|e| Error::BuildFailed(format!("{:#}", e))) + let open = options.open; + run_build(options, config, env).map_err(|e| Error::BuildFailed(format!("{:#}", e)))?; + + if open { + open_and_wait(config); + } + + Ok(()) }) .map_err(Into::into) } diff --git a/tooling/cli/src/mobile/android/dev.rs b/tooling/cli/src/mobile/android/dev.rs index 3c2e17aac1ec..cba5f7c8f0df 100644 --- a/tooling/cli/src/mobile/android/dev.rs +++ b/tooling/cli/src/mobile/android/dev.rs @@ -1,6 +1,6 @@ use super::{ - delete_codegen_vars, device_prompt, ensure_init, env, init_dot_cargo, with_config, Error, - MobileTarget, + delete_codegen_vars, device_prompt, ensure_init, env, init_dot_cargo, open_and_wait, with_config, + Error, MobileTarget, }; use crate::{ helpers::{config::get as get_tauri_config, flock}, @@ -14,7 +14,6 @@ use cargo_mobile::{ android::config::{Config as AndroidConfig, Metadata as AndroidMetadata}, config::Config, opts::{NoiseLevel, Profile}, - os, }; use std::env::set_var; @@ -65,7 +64,7 @@ impl From for crate::dev::Options { pub fn command(options: Options) -> Result<()> { delete_codegen_vars(); - with_config(|root_conf, config, metadata| { + with_config(Some(Default::default()), |root_conf, config, metadata| { set_var( "WRY_RUSTWEBVIEWCLIENT_CLASS_EXTENSION", WEBVIEW_CLIENT_CLASS_EXTENSION, @@ -120,13 +119,13 @@ fn run_dev( write_options(cli_options, &bundle_identifier, MobileTarget::Android)?; if open { - open_dev(config) + open_and_wait(config) } else { match run(options, root_conf, config, metadata) { Ok(c) => Ok(Box::new(c) as Box), Err(Error::FailedToPromptForDevice(e)) => { log::error!("{}", e); - open_dev(config) + open_and_wait(config) } Err(e) => Err(e.into()), } @@ -135,16 +134,6 @@ fn run_dev( ) } -fn open_dev(config: &AndroidConfig) -> ! { - log::info!("Opening Android Studio"); - if let Err(e) = os::open_file_with("Android Studio", config.project_dir()) { - log::error!("{}", e); - } - loop { - std::thread::sleep(std::time::Duration::from_secs(24 * 60 * 60)); - } -} - fn run( options: MobileOptions, root_conf: &Config, diff --git a/tooling/cli/src/mobile/android/open.rs b/tooling/cli/src/mobile/android/open.rs index e58fba14a9b3..c6ba84967d3b 100644 --- a/tooling/cli/src/mobile/android/open.rs +++ b/tooling/cli/src/mobile/android/open.rs @@ -3,7 +3,7 @@ use crate::Result; use cargo_mobile::os; pub fn command() -> Result<()> { - with_config(|_, config, _metadata| { + with_config(Some(Default::default()), |_, 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) diff --git a/tooling/cli/src/mobile/init.rs b/tooling/cli/src/mobile/init.rs index 4ad743dc48dd..ea87100ff41e 100644 --- a/tooling/cli/src/mobile/init.rs +++ b/tooling/cli/src/mobile/init.rs @@ -107,7 +107,7 @@ pub fn exec( let tauri_config_guard = tauri_config.lock().unwrap(); let tauri_config_ = tauri_config_guard.as_ref().unwrap(); - let (config, metadata) = get_config(tauri_config_); + let (config, metadata) = get_config(tauri_config_, Default::default()); let asset_dir = config.app().asset_dir(); if !asset_dir.is_dir() { diff --git a/tooling/cli/src/mobile/ios.rs b/tooling/cli/src/mobile/ios.rs index 5a38dcf12c80..8b067c40bff1 100644 --- a/tooling/cli/src/mobile/ios.rs +++ b/tooling/cli/src/mobile/ios.rs @@ -20,7 +20,7 @@ use clap::{Parser, Subcommand}; use super::{ ensure_init, env, get_config, init::{command as init_command, init_dot_cargo, Options as InitOptions}, - log_finished, Target as MobileTarget, + log_finished, read_options, CliOptions, Target as MobileTarget, }; use crate::{helpers::config::get as get_tauri_config, Result}; @@ -104,6 +104,7 @@ pub fn command(cli: Cli) -> Result<()> { } fn with_config( + cli_options: Option, f: impl FnOnce(&Config, &AppleConfig, &AppleMetadata) -> Result, ) -> Result { let (config, metadata) = { @@ -111,7 +112,10 @@ fn with_config( get_tauri_config(None).map_err(|e| Error::InvalidTauriConfig(e.to_string()))?; let tauri_config_guard = tauri_config.lock().unwrap(); let tauri_config_ = tauri_config_guard.as_ref().unwrap(); - get_config(tauri_config_) + get_config( + tauri_config_, + cli_options.unwrap_or_else(|| read_options(tauri_config_, MobileTarget::Ios)), + ) }; f(&config, config.apple(), metadata.apple()) } @@ -147,3 +151,13 @@ fn device_prompt<'a>(env: &'_ Env) -> Result, PromptError(env: &Env) -> Option<&'a Target<'a>> { device_prompt(env).map(|device| device.target()).ok() } + +fn open_and_wait(config: &AppleConfig) -> ! { + log::info!("Opening Xcode"); + if let Err(e) = os::open_file_with("Xcode", config.project_dir()) { + log::error!("{}", e); + } + loop { + std::thread::sleep(std::time::Duration::from_secs(24 * 60 * 60)); + } +} diff --git a/tooling/cli/src/mobile/ios/build.rs b/tooling/cli/src/mobile/ios/build.rs index e6b7cb7b522f..c00aaea01062 100644 --- a/tooling/cli/src/mobile/ios/build.rs +++ b/tooling/cli/src/mobile/ios/build.rs @@ -1,6 +1,6 @@ use super::{ - detect_target_ok, ensure_init, env, init_dot_cargo, log_finished, with_config, Error, - MobileTarget, + detect_target_ok, ensure_init, env, init_dot_cargo, log_finished, open_and_wait, with_config, + Error, MobileTarget, }; use crate::{ helpers::{config::get as get_tauri_config, flock}, @@ -44,6 +44,9 @@ pub struct Options { /// Build number to append to the app version. #[clap(long)] pub build_number: Option, + /// Open Xcode + #[clap(short, long)] + pub open: bool, } impl From for crate::build::Options { @@ -61,14 +64,21 @@ impl From for crate::build::Options { } pub fn command(options: Options) -> Result<()> { - with_config(|root_conf, config, _metadata| { + with_config(Some(Default::default()), |root_conf, config, _metadata| { ensure_init(config.project_dir(), MobileTarget::Ios) .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; let env = env()?; init_dot_cargo(root_conf, None).map_err(Error::InitDotCargo)?; - run_build(options, config, env).map_err(|e| Error::BuildFailed(format!("{:#}", e))) + let open = options.open; + run_build(options, config, env).map_err(|e| Error::BuildFailed(format!("{:#}", e)))?; + + if open { + open_and_wait(config); + } + + Ok(()) }) .map_err(Into::into) } diff --git a/tooling/cli/src/mobile/ios/dev.rs b/tooling/cli/src/mobile/ios/dev.rs index 7bf4aa311ce3..5daa148b797f 100644 --- a/tooling/cli/src/mobile/ios/dev.rs +++ b/tooling/cli/src/mobile/ios/dev.rs @@ -1,4 +1,6 @@ -use super::{device_prompt, ensure_init, env, init_dot_cargo, with_config, Error, MobileTarget}; +use super::{ + device_prompt, ensure_init, env, init_dot_cargo, open_and_wait, with_config, Error, MobileTarget, +}; use crate::{ helpers::{config::get as get_tauri_config, flock}, interface::{AppSettings, Interface, MobileOptions, Options as InterfaceOptions}, @@ -11,7 +13,6 @@ use cargo_mobile::{ apple::config::Config as AppleConfig, config::Config, opts::{NoiseLevel, Profile}, - os, }; #[derive(Debug, Clone, Parser)] @@ -53,7 +54,7 @@ impl From for crate::dev::Options { } pub fn command(options: Options) -> Result<()> { - with_config(|root_conf, config, _metadata| { + with_config(Some(Default::default()), |root_conf, config, _metadata| { ensure_init(config.project_dir(), MobileTarget::Ios) .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; run_dev(options, root_conf, config).map_err(|e| Error::DevFailed(format!("{:#}", e))) @@ -98,13 +99,13 @@ fn run_dev(options: Options, root_conf: &Config, config: &AppleConfig) -> Result }; write_options(cli_options, &bundle_identifier, MobileTarget::Ios)?; if open { - open_dev(config) + open_and_wait(config) } else { match run(options, root_conf, config) { Ok(c) => Ok(Box::new(c) as Box), Err(Error::FailedToPromptForDevice(e)) => { log::error!("{}", e); - open_dev(config) + open_and_wait(config) } Err(e) => Err(e.into()), } @@ -113,16 +114,6 @@ fn run_dev(options: Options, root_conf: &Config, config: &AppleConfig) -> Result ) } -fn open_dev(config: &AppleConfig) -> ! { - log::info!("Opening Xcode"); - if let Err(e) = os::open_file_with("Xcode", config.project_dir()) { - log::error!("{}", e); - } - loop { - std::thread::sleep(std::time::Duration::from_secs(24 * 60 * 60)); - } -} - fn run( options: MobileOptions, root_conf: &Config, diff --git a/tooling/cli/src/mobile/ios/open.rs b/tooling/cli/src/mobile/ios/open.rs index 331a073aef4d..2173498792c5 100644 --- a/tooling/cli/src/mobile/ios/open.rs +++ b/tooling/cli/src/mobile/ios/open.rs @@ -3,7 +3,7 @@ use crate::Result; use cargo_mobile::os; pub fn command() -> Result<()> { - with_config(|_, config, _metadata| { + with_config(Some(Default::default()), |_, config, _metadata| { ensure_init(config.project_dir(), MobileTarget::Ios) .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; os::open_file_with("Xcode", config.project_dir()).map_err(Error::OpenFailed) diff --git a/tooling/cli/src/mobile/ios/xcode_script.rs b/tooling/cli/src/mobile/ios/xcode_script.rs index bf5df1d40c5d..b2421a0ecec2 100644 --- a/tooling/cli/src/mobile/ios/xcode_script.rs +++ b/tooling/cli/src/mobile/ios/xcode_script.rs @@ -46,7 +46,7 @@ pub fn command(options: Options) -> Result<()> { let macos = macos_from_platform(&options.platform); let noise_level = NoiseLevel::Polite; - with_config(|root_conf, config, metadata| { + with_config(None, |root_conf, config, metadata| { let env = env()?; init_dot_cargo(root_conf, None).map_err(Error::InitDotCargo)?; // The `PATH` env var Xcode gives us is missing any additions diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index 7e996ee91e25..bf1558a7d980 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -17,9 +17,16 @@ use cargo_mobile::{ config::{app::Raw as RawAppConfig, metadata::Metadata, Config, Raw}, env::Error as EnvError, }; +use interprocess::local_socket::{LocalSocketListener, LocalSocketStream}; use serde::{Deserialize, Serialize}; use std::{ - collections::HashMap, env::set_var, ffi::OsString, fmt::Write, path::PathBuf, process::ExitStatus, + collections::HashMap, + env::set_var, + ffi::OsString, + fmt::Write, + io::{BufRead, BufReader, Write as _}, + path::PathBuf, + process::ExitStatus, }; #[cfg(not(windows))] @@ -63,7 +70,7 @@ impl DevProcess for DevChild { } } -#[derive(PartialEq, Eq)] +#[derive(PartialEq, Eq, Copy, Clone)] pub enum Target { Android, #[cfg(target_os = "macos")] @@ -96,17 +103,15 @@ impl Target { } } -#[derive(Debug, Default, Serialize, Deserialize)] +#[derive(Debug, Clone, Default, Serialize, Deserialize)] pub struct CliOptions { pub features: Option>, pub args: Vec, pub vars: HashMap, } -fn options_path(bundle_identifier: &str, target: Target) -> PathBuf { - let out_dir = dirs_next::cache_dir() - .or_else(dirs_next::home_dir) - .unwrap_or_else(std::env::temp_dir); +fn options_local_socket_name(bundle_identifier: &str, target: Target) -> PathBuf { + let out_dir = std::env::temp_dir(); let out_dir = out_dir.join(".tauri").join(bundle_identifier); let _ = std::fs::create_dir_all(&out_dir); out_dir @@ -120,6 +125,7 @@ fn env_vars() -> HashMap { let k = k.to_string_lossy(); if (k.starts_with("TAURI") && k != "TAURI_PRIVATE_KEY" && k != "TAURI_KEY_PASSWORD") || k.starts_with("WRY") + || k == "TMPDIR" { vars.insert(k.into_owned(), v); } @@ -139,23 +145,50 @@ pub fn write_options( target: Target, ) -> crate::Result<()> { options.vars.extend(env_vars()); - std::fs::write( - options_path(bundle_identifier, target), - &serde_json::to_string(&options)?, - )?; + let name = options_local_socket_name(bundle_identifier, target); + let _ = std::fs::remove_file(&name); + let value = serde_json::to_string(&options)?; + + std::thread::spawn(move || { + let listener = LocalSocketListener::bind(name).expect("failed to start local socket"); + for mut conn in listener.incoming().flatten() { + let _ = conn.write_all(value.as_bytes()); + let _ = conn.write_all(b"\n"); + } + }); + Ok(()) } -fn read_options(config: &TauriConfig, target: Target) -> crate::Result { - let data = std::fs::read_to_string(options_path(&config.tauri.bundle.identifier, target))?; - let options: CliOptions = serde_json::from_str(&data)?; +fn read_options(config: &TauriConfig, target: Target) -> CliOptions { + let name = options_local_socket_name(&config.tauri.bundle.identifier, target); + let conn = LocalSocketStream::connect(name).unwrap_or_else(|_| { + log::error!( + "failed to connect to local socket. You must keep the Tauri CLI alive with the `{cmd} dev` or `{cmd} build --open` commands.", + cmd = target.command_name() + ); + std::process::exit(1); + }); + conn + .set_nonblocking(true) + .expect("failed to set local socket stream to nonblocking"); + let mut conn = BufReader::new(conn); + let mut buffer = String::new(); + conn.read_line(&mut buffer).unwrap_or_else(|_| { + log::error!( + "failed to connect to local socket. You must keep the Tauri CLI alive with the `{cmd} dev` or `{cmd} build --open` commands.", + cmd = target.command_name() + ); + std::process::exit(1); + }); + let options: CliOptions = serde_json::from_str(&buffer).expect("invalid CLI options"); for (k, v) in &options.vars { set_var(k, v); } - Ok(options) + options } -fn get_config(config: &TauriConfig) -> (Config, Metadata) { +fn get_config(config: &TauriConfig, cli_options: CliOptions) -> (Config, Metadata) { let mut s = config.tauri.bundle.identifier.rsplit('.'); let app_name = s.next().unwrap_or("app").to_string(); let mut domain = String::new(); @@ -191,8 +224,8 @@ fn get_config(config: &TauriConfig) -> (Config, Metadata) { }; #[cfg(target_os = "macos")] - let ios_options = read_options(config, Target::Ios).unwrap_or_default(); - let android_options = read_options(config, Target::Android).unwrap_or_default(); + let ios_options = cli_options.clone(); + let android_options = cli_options; let raw = Raw { app: RawAppConfig { From badad2b9a17a5c9d751559b330e89c3127014083 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Thu, 25 Aug 2022 16:06:00 -0300 Subject: [PATCH 033/436] feat(cli): implement verbosity on mobile commands (#5044) --- tooling/cli/src/lib.rs | 4 ++-- tooling/cli/src/mobile/android.rs | 7 ++++--- .../src/mobile/android/android_studio_script.rs | 2 +- tooling/cli/src/mobile/android/build.rs | 13 +++++++++---- tooling/cli/src/mobile/android/dev.rs | 10 ++++++---- tooling/cli/src/mobile/ios.rs | 7 ++++--- tooling/cli/src/mobile/ios/build.rs | 13 +++++++++---- tooling/cli/src/mobile/ios/dev.rs | 16 +++++++++++----- tooling/cli/src/mobile/ios/xcode_script.rs | 2 +- tooling/cli/src/mobile/mod.rs | 10 ++++++++++ 10 files changed, 57 insertions(+), 27 deletions(-) diff --git a/tooling/cli/src/lib.rs b/tooling/cli/src/lib.rs index 307485324587..c64e6100862a 100644 --- a/tooling/cli/src/lib.rs +++ b/tooling/cli/src/lib.rs @@ -192,9 +192,9 @@ where Commands::Init(options) => init::command(options)?, Commands::Plugin(cli) => plugin::command(cli)?, Commands::Signer(cli) => signer::command(cli)?, - Commands::Android(cli) => mobile::android::command(cli)?, + Commands::Android(c) => mobile::android::command(c, cli.verbose)?, #[cfg(target_os = "macos")] - Commands::Ios(cli) => mobile::ios::command(cli)?, + Commands::Ios(c) => mobile::ios::command(c, cli.verbose)?, } Ok(()) diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index 2220cc0fdcf5..0c10d8b9dfd8 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -83,12 +83,13 @@ enum Commands { AndroidStudioScript(android_studio_script::Options), } -pub fn command(cli: Cli) -> Result<()> { +pub fn command(cli: Cli, verbosity: usize) -> Result<()> { + let noise_level = super::verbosity_to_noise_level(verbosity); match cli.command { Commands::Init(options) => init_command(options, MobileTarget::Android)?, Commands::Open => open::command()?, - Commands::Dev(options) => dev::command(options)?, - Commands::Build(options) => build::command(options)?, + Commands::Dev(options) => dev::command(options, noise_level)?, + Commands::Build(options) => build::command(options, noise_level)?, Commands::AndroidStudioScript(options) => android_studio_script::command(options)?, } diff --git a/tooling/cli/src/mobile/android/android_studio_script.rs b/tooling/cli/src/mobile/android/android_studio_script.rs index b4c2417c2f89..018ee155961e 100644 --- a/tooling/cli/src/mobile/android/android_studio_script.rs +++ b/tooling/cli/src/mobile/android/android_studio_script.rs @@ -31,7 +31,7 @@ pub fn command(options: Options) -> Result<()> { } else { Profile::Debug }; - let noise_level = NoiseLevel::Polite; + let noise_level = NoiseLevel::FranklyQuitePedantic; with_config(None, |root_conf, config, metadata| { ensure_init(config.project_dir(), MobileTarget::Android) diff --git a/tooling/cli/src/mobile/android/build.rs b/tooling/cli/src/mobile/android/build.rs index 4872ba4e8148..4388b98caada 100644 --- a/tooling/cli/src/mobile/android/build.rs +++ b/tooling/cli/src/mobile/android/build.rs @@ -67,7 +67,7 @@ impl From for crate::build::Options { } } -pub fn command(options: Options) -> Result<()> { +pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { delete_codegen_vars(); with_config(Some(Default::default()), |root_conf, config, _metadata| { set_var("WRY_RUSTWEBVIEWCLIENT_CLASS_EXTENSION", ""); @@ -80,7 +80,8 @@ pub fn command(options: Options) -> Result<()> { init_dot_cargo(root_conf, Some(&env)).map_err(Error::InitDotCargo)?; let open = options.open; - run_build(options, config, env).map_err(|e| Error::BuildFailed(format!("{:#}", e)))?; + run_build(options, config, env, noise_level) + .map_err(|e| Error::BuildFailed(format!("{:#}", e)))?; if open { open_and_wait(config); @@ -91,13 +92,17 @@ pub fn command(options: Options) -> Result<()> { .map_err(Into::into) } -fn run_build(mut options: Options, config: &AndroidConfig, env: Env) -> Result<()> { +fn run_build( + mut options: Options, + config: &AndroidConfig, + env: Env, + noise_level: NoiseLevel, +) -> Result<()> { let profile = if options.debug { Profile::Debug } else { Profile::Release }; - let noise_level = NoiseLevel::Polite; if !(options.apk || options.aab) { // if the user didn't specify the format to build, we'll do both diff --git a/tooling/cli/src/mobile/android/dev.rs b/tooling/cli/src/mobile/android/dev.rs index cba5f7c8f0df..6fa94000c0e2 100644 --- a/tooling/cli/src/mobile/android/dev.rs +++ b/tooling/cli/src/mobile/android/dev.rs @@ -62,7 +62,7 @@ impl From for crate::dev::Options { } } -pub fn command(options: Options) -> Result<()> { +pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { delete_codegen_vars(); with_config(Some(Default::default()), |root_conf, config, metadata| { set_var( @@ -72,7 +72,8 @@ pub fn command(options: Options) -> Result<()> { set_var("WRY_RUSTWEBVIEW_CLASS_INIT", WEBVIEW_CLASS_INIT); ensure_init(config.project_dir(), MobileTarget::Android) .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; - run_dev(options, root_conf, config, metadata).map_err(|e| Error::DevFailed(format!("{:#}", e))) + run_dev(options, root_conf, config, metadata, noise_level) + .map_err(|e| Error::DevFailed(format!("{:#}", e))) }) .map_err(Into::into) } @@ -82,6 +83,7 @@ fn run_dev( root_conf: &Config, config: &AndroidConfig, metadata: &AndroidMetadata, + noise_level: NoiseLevel, ) -> Result<()> { let mut dev_options = options.clone().into(); let mut interface = crate::dev::setup(&mut dev_options)?; @@ -121,7 +123,7 @@ fn run_dev( if open { open_and_wait(config) } else { - match run(options, root_conf, config, metadata) { + match run(options, root_conf, config, metadata, noise_level) { Ok(c) => Ok(Box::new(c) as Box), Err(Error::FailedToPromptForDevice(e)) => { log::error!("{}", e); @@ -139,13 +141,13 @@ fn run( root_conf: &Config, config: &AndroidConfig, metadata: &AndroidMetadata, + noise_level: NoiseLevel, ) -> Result { let profile = if options.debug { Profile::Debug } else { Profile::Release }; - let noise_level = NoiseLevel::Polite; let build_app_bundle = metadata.asset_packs().is_some(); diff --git a/tooling/cli/src/mobile/ios.rs b/tooling/cli/src/mobile/ios.rs index 8b067c40bff1..f98b3ea38345 100644 --- a/tooling/cli/src/mobile/ios.rs +++ b/tooling/cli/src/mobile/ios.rs @@ -91,12 +91,13 @@ enum Commands { XcodeScript(xcode_script::Options), } -pub fn command(cli: Cli) -> Result<()> { +pub fn command(cli: Cli, verbosity: usize) -> Result<()> { + let noise_level = super::verbosity_to_noise_level(verbosity); match cli.command { Commands::Init(options) => init_command(options, MobileTarget::Ios)?, Commands::Open => open::command()?, - Commands::Dev(options) => dev::command(options)?, - Commands::Build(options) => build::command(options)?, + Commands::Dev(options) => dev::command(options, noise_level)?, + Commands::Build(options) => build::command(options, noise_level)?, Commands::XcodeScript(options) => xcode_script::command(options)?, } diff --git a/tooling/cli/src/mobile/ios/build.rs b/tooling/cli/src/mobile/ios/build.rs index c00aaea01062..556714430669 100644 --- a/tooling/cli/src/mobile/ios/build.rs +++ b/tooling/cli/src/mobile/ios/build.rs @@ -63,7 +63,7 @@ impl From for crate::build::Options { } } -pub fn command(options: Options) -> Result<()> { +pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { with_config(Some(Default::default()), |root_conf, config, _metadata| { ensure_init(config.project_dir(), MobileTarget::Ios) .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; @@ -72,7 +72,8 @@ pub fn command(options: Options) -> Result<()> { init_dot_cargo(root_conf, None).map_err(Error::InitDotCargo)?; let open = options.open; - run_build(options, config, env).map_err(|e| Error::BuildFailed(format!("{:#}", e)))?; + run_build(options, config, env, noise_level) + .map_err(|e| Error::BuildFailed(format!("{:#}", e)))?; if open { open_and_wait(config); @@ -83,13 +84,17 @@ pub fn command(options: Options) -> Result<()> { .map_err(Into::into) } -fn run_build(mut options: Options, config: &AppleConfig, env: Env) -> Result<()> { +fn run_build( + mut options: Options, + config: &AppleConfig, + env: Env, + noise_level: NoiseLevel, +) -> Result<()> { let profile = if options.debug { Profile::Debug } else { Profile::Release }; - let noise_level = NoiseLevel::Polite; let bundle_identifier = { let tauri_config = get_tauri_config(None)?; diff --git a/tooling/cli/src/mobile/ios/dev.rs b/tooling/cli/src/mobile/ios/dev.rs index 5daa148b797f..4cbb8b30a3b1 100644 --- a/tooling/cli/src/mobile/ios/dev.rs +++ b/tooling/cli/src/mobile/ios/dev.rs @@ -53,16 +53,22 @@ impl From for crate::dev::Options { } } -pub fn command(options: Options) -> Result<()> { +pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { with_config(Some(Default::default()), |root_conf, config, _metadata| { ensure_init(config.project_dir(), MobileTarget::Ios) .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; - run_dev(options, root_conf, config).map_err(|e| Error::DevFailed(format!("{:#}", e))) + run_dev(options, root_conf, config, noise_level) + .map_err(|e| Error::DevFailed(format!("{:#}", e))) }) .map_err(Into::into) } -fn run_dev(options: Options, root_conf: &Config, config: &AppleConfig) -> Result<()> { +fn run_dev( + options: Options, + root_conf: &Config, + config: &AppleConfig, + noise_level: NoiseLevel, +) -> Result<()> { let mut dev_options = options.clone().into(); let mut interface = crate::dev::setup(&mut dev_options)?; @@ -101,7 +107,7 @@ fn run_dev(options: Options, root_conf: &Config, config: &AppleConfig) -> Result if open { open_and_wait(config) } else { - match run(options, root_conf, config) { + match run(options, root_conf, config, noise_level) { Ok(c) => Ok(Box::new(c) as Box), Err(Error::FailedToPromptForDevice(e)) => { log::error!("{}", e); @@ -118,13 +124,13 @@ fn run( options: MobileOptions, root_conf: &Config, config: &AppleConfig, + noise_level: NoiseLevel, ) -> Result { let profile = if options.debug { Profile::Debug } else { Profile::Release }; - let noise_level = NoiseLevel::Polite; let env = env()?; init_dot_cargo(root_conf, None).map_err(Error::InitDotCargo)?; diff --git a/tooling/cli/src/mobile/ios/xcode_script.rs b/tooling/cli/src/mobile/ios/xcode_script.rs index b2421a0ecec2..90576b152d5d 100644 --- a/tooling/cli/src/mobile/ios/xcode_script.rs +++ b/tooling/cli/src/mobile/ios/xcode_script.rs @@ -44,7 +44,7 @@ pub fn command(options: Options) -> Result<()> { let profile = profile_from_configuration(&options.configuration); let macos = macos_from_platform(&options.platform); - let noise_level = NoiseLevel::Polite; + let noise_level = NoiseLevel::FranklyQuitePedantic; with_config(None, |root_conf, config, metadata| { let env = env()?; diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index bf1558a7d980..8ff69d19d775 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -16,6 +16,7 @@ use cargo_mobile::{ bossy, config::{app::Raw as RawAppConfig, metadata::Metadata, Config, Raw}, env::Error as EnvError, + opts::NoiseLevel, }; use interprocess::local_socket::{LocalSocketListener, LocalSocketStream}; use serde::{Deserialize, Serialize}; @@ -346,3 +347,12 @@ fn log_finished(outputs: Vec, kind: &str) { log::info!(action = "Finished"; "{} {}{} at:\n{}", outputs.len(), kind, if outputs.len() == 1 { "" } else { "s" }, printable_paths); } } + +fn verbosity_to_noise_level(verbosity: usize) -> NoiseLevel { + match verbosity { + 0 => NoiseLevel::Polite, + 1 => NoiseLevel::LoudAndProud, + 2.. => NoiseLevel::FranklyQuitePedantic, + _ => panic!(), + } +} From 80a301ea63585e3123b5f79eae697ef1fe3bab06 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Thu, 25 Aug 2022 16:43:29 -0300 Subject: [PATCH 034/436] feat(cli): add mobile support to the app template (#5046) --- .../mobile/android/android_studio_script.rs | 2 +- tooling/cli/src/mobile/ios/xcode_script.rs | 2 +- .../app/src-tauri/Cargo.crate-manifest | 13 +++++- .../templates/app/src-tauri/src/desktop.rs | 8 ++++ .../cli/templates/app/src-tauri/src/lib.rs | 41 +++++++++++++++++++ .../cli/templates/app/src-tauri/src/main.rs | 11 ++--- .../cli/templates/app/src-tauri/src/mobile.rs | 23 +++++++++++ .../android/app/src/main/TauriActivity.kt | 3 +- 8 files changed, 91 insertions(+), 12 deletions(-) create mode 100644 tooling/cli/templates/app/src-tauri/src/desktop.rs create mode 100644 tooling/cli/templates/app/src-tauri/src/lib.rs create mode 100644 tooling/cli/templates/app/src-tauri/src/mobile.rs diff --git a/tooling/cli/src/mobile/android/android_studio_script.rs b/tooling/cli/src/mobile/android/android_studio_script.rs index 018ee155961e..f2397016b032 100644 --- a/tooling/cli/src/mobile/android/android_studio_script.rs +++ b/tooling/cli/src/mobile/android/android_studio_script.rs @@ -31,7 +31,7 @@ pub fn command(options: Options) -> Result<()> { } else { Profile::Debug }; - let noise_level = NoiseLevel::FranklyQuitePedantic; + let noise_level = NoiseLevel::LoudAndProud; with_config(None, |root_conf, config, metadata| { ensure_init(config.project_dir(), MobileTarget::Android) diff --git a/tooling/cli/src/mobile/ios/xcode_script.rs b/tooling/cli/src/mobile/ios/xcode_script.rs index 90576b152d5d..f04ec025a6c2 100644 --- a/tooling/cli/src/mobile/ios/xcode_script.rs +++ b/tooling/cli/src/mobile/ios/xcode_script.rs @@ -44,7 +44,7 @@ pub fn command(options: Options) -> Result<()> { let profile = profile_from_configuration(&options.configuration); let macos = macos_from_platform(&options.platform); - let noise_level = NoiseLevel::FranklyQuitePedantic; + let noise_level = NoiseLevel::LoudAndProud; with_config(None, |root_conf, config, metadata| { let env = env()?; diff --git a/tooling/cli/templates/app/src-tauri/Cargo.crate-manifest b/tooling/cli/templates/app/src-tauri/Cargo.crate-manifest index 1249d3cc6b3f..08e75dfa3310 100755 --- a/tooling/cli/templates/app/src-tauri/Cargo.crate-manifest +++ b/tooling/cli/templates/app/src-tauri/Cargo.crate-manifest @@ -5,12 +5,14 @@ description = "A Tauri App" authors = ["you"] license = "" repository = "" -default-run = "app" edition = "2021" rust-version = "1.57" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lib] +crate-type = ["staticlib", "cdylib", "rlib"] + [build-dependencies] tauri-build = {{{ tauri_build_dep }}} @@ -19,6 +21,15 @@ serde_json = "1.0" serde = { version = "1.0", features = ["derive"] } tauri = {{{ tauri_dep }}} +[target.'cfg(any(target_os = "android", target_os = "ios"))'.dependencies] +log = "0.4" + +[target.'cfg(target_os = "android")'.dependencies] +android_logger = "0.9.0" + +[target.'cfg(target_os = "ios")'.dependencies] +env_logger = "0.9.0" + [features] # by default Tauri runs in production mode # when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL diff --git a/tooling/cli/templates/app/src-tauri/src/desktop.rs b/tooling/cli/templates/app/src-tauri/src/desktop.rs new file mode 100644 index 000000000000..ef900d6533f8 --- /dev/null +++ b/tooling/cli/templates/app/src-tauri/src/desktop.rs @@ -0,0 +1,8 @@ +#![cfg_attr( + all(not(debug_assertions), target_os = "windows"), + windows_subsystem = "windows" +)] + +fn main() { + app::AppBuilder::new() +} diff --git a/tooling/cli/templates/app/src-tauri/src/lib.rs b/tooling/cli/templates/app/src-tauri/src/lib.rs new file mode 100644 index 000000000000..d8c1e87726f2 --- /dev/null +++ b/tooling/cli/templates/app/src-tauri/src/lib.rs @@ -0,0 +1,41 @@ +use tauri::App; + +#[cfg(mobile)] +mod mobile; +#[cfg(mobile)] +pub use mobile::*; + +pub type SetupHook = Box Result<(), Box> + Send>; + +#[derive(Default)] +pub struct AppBuilder { + setup: Option, +} + +impl AppBuilder { + pub fn new() -> Self { + Self::default() + } + + #[must_use] + pub fn setup(mut self, setup: F) -> Self + where + F: FnOnce(&mut App) -> Result<(), Box> + Send + 'static, + { + self.setup.replace(Box::new(setup)); + self + } + + pub fn run(self) { + let setup = self.setup; + tauri::Builder::default() + .setup(move |app| { + if let Some(setup) = setup { + (setup)(app)?; + } + Ok(()) + }) + .run(tauri::generate_context!()) + .expect("error while running tauri application"); + } +} diff --git a/tooling/cli/templates/app/src-tauri/src/main.rs b/tooling/cli/templates/app/src-tauri/src/main.rs index e994ea4d199c..1ade16f98e30 100644 --- a/tooling/cli/templates/app/src-tauri/src/main.rs +++ b/tooling/cli/templates/app/src-tauri/src/main.rs @@ -1,10 +1,7 @@ -#![cfg_attr( - all(not(debug_assertions), target_os = "windows"), - windows_subsystem = "windows" -)] +#[cfg(desktop)] +mod desktop; fn main() { - tauri::Builder::default() - .run(tauri::generate_context!()) - .expect("error while running tauri application"); + #[cfg(desktop)] + desktop::main(); } diff --git a/tooling/cli/templates/app/src-tauri/src/mobile.rs b/tooling/cli/templates/app/src-tauri/src/mobile.rs new file mode 100644 index 000000000000..3e22469b256b --- /dev/null +++ b/tooling/cli/templates/app/src-tauri/src/mobile.rs @@ -0,0 +1,23 @@ +#[cfg(target_os = "android")] +fn init_logging(app_name: &str) { + android_logger::init_once( + android_logger::Config::default() + .with_min_level(log::Level::Trace) + .with_tag(app_name), + ); +} + +#[cfg(not(target_os = "android"))] +fn init_logging(_app_name: &str) { + env_logger::init(); +} + +#[tauri::mobile_entry_point] +fn main() { + super::AppBuilder::new() + .setup(|app| { + init_logging(&app.package_info().name); + Ok(()) + }) + .run() +} diff --git a/tooling/cli/templates/mobile/android/app/src/main/TauriActivity.kt b/tooling/cli/templates/mobile/android/app/src/main/TauriActivity.kt index 2d1ffa69a320..b630718275ed 100644 --- a/tooling/cli/templates/mobile/android/app/src/main/TauriActivity.kt +++ b/tooling/cli/templates/mobile/android/app/src/main/TauriActivity.kt @@ -1,6 +1,5 @@ -package {{app-domain-reversed}}.{{app-name-snake-case}} +package {{reverse-domain app.domain}}.{{snake-case app.name}} -import android.os.Bundle import androidx.appcompat.app.AppCompatActivity abstract class TauriActivity : AppCompatActivity() From 69aaff55070337836037f16e2620eec4cdacd3f3 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Fri, 26 Aug 2022 09:24:23 -0300 Subject: [PATCH 035/436] feat(cli): persist verbosity for the IDE scripts (#5047) --- tooling/cli/src/mobile/android.rs | 17 +++++----- .../mobile/android/android_studio_script.rs | 14 +++++--- tooling/cli/src/mobile/android/build.rs | 34 +++++++++++-------- tooling/cli/src/mobile/android/dev.rs | 26 ++++++++------ tooling/cli/src/mobile/android/open.rs | 13 ++++--- tooling/cli/src/mobile/init.rs | 2 +- tooling/cli/src/mobile/ios.rs | 16 ++++----- tooling/cli/src/mobile/ios/build.rs | 30 +++++++++------- tooling/cli/src/mobile/ios/dev.rs | 16 +++++---- tooling/cli/src/mobile/ios/open.rs | 13 ++++--- tooling/cli/src/mobile/ios/xcode_script.rs | 11 ++---- tooling/cli/src/mobile/mod.rs | 14 ++------ 12 files changed, 111 insertions(+), 95 deletions(-) diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index 0c10d8b9dfd8..73aea69d4f47 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -13,6 +13,7 @@ use cargo_mobile::{ config::Config, device::PromptError, env::Error as EnvError, + opts::NoiseLevel, os, util::prompt, }; @@ -84,7 +85,7 @@ enum Commands { } pub fn command(cli: Cli, verbosity: usize) -> Result<()> { - let noise_level = super::verbosity_to_noise_level(verbosity); + let noise_level = NoiseLevel::from_occurrences(verbosity as u64); match cli.command { Commands::Init(options) => init_command(options, MobileTarget::Android)?, Commands::Open => open::command()?, @@ -98,19 +99,19 @@ pub fn command(cli: Cli, verbosity: usize) -> Result<()> { fn with_config( cli_options: Option, - f: impl FnOnce(&Config, &AndroidConfig, &AndroidMetadata) -> Result, + f: impl FnOnce(&Config, &AndroidConfig, &AndroidMetadata, CliOptions) -> Result, ) -> Result { - let (config, metadata) = { + let (config, metadata, cli_options) = { let tauri_config = get_tauri_config(None).map_err(|e| Error::InvalidTauriConfig(e.to_string()))?; let tauri_config_guard = tauri_config.lock().unwrap(); let tauri_config_ = tauri_config_guard.as_ref().unwrap(); - get_config( - tauri_config_, - cli_options.unwrap_or_else(|| read_options(tauri_config_, MobileTarget::Android)), - ) + let cli_options = + cli_options.unwrap_or_else(|| read_options(tauri_config_, MobileTarget::Android)); + let (config, metadata) = get_config(tauri_config_, &cli_options); + (config, metadata, cli_options) }; - f(&config, config.android(), metadata.android()) + f(&config, config.android(), metadata.android(), cli_options) } fn env() -> Result { diff --git a/tooling/cli/src/mobile/android/android_studio_script.rs b/tooling/cli/src/mobile/android/android_studio_script.rs index f2397016b032..eb37490e6041 100644 --- a/tooling/cli/src/mobile/android/android_studio_script.rs +++ b/tooling/cli/src/mobile/android/android_studio_script.rs @@ -4,7 +4,7 @@ use clap::Parser; use cargo_mobile::{ android::target::Target, - opts::{NoiseLevel, Profile}, + opts::Profile, target::{call_for_targets_with_fallback, TargetTrait}, }; @@ -31,9 +31,8 @@ pub fn command(options: Options) -> Result<()> { } else { Profile::Debug }; - let noise_level = NoiseLevel::LoudAndProud; - with_config(None, |root_conf, config, metadata| { + with_config(None, |root_conf, config, metadata, cli_options| { ensure_init(config.project_dir(), MobileTarget::Android) .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; @@ -46,7 +45,14 @@ pub fn command(options: Options) -> Result<()> { &env, |target: &Target| { target - .build(config, metadata, &env, noise_level, true, profile) + .build( + config, + metadata, + &env, + cli_options.noise_level, + true, + profile, + ) .map_err(Error::AndroidStudioScriptFailed) }, ) diff --git a/tooling/cli/src/mobile/android/build.rs b/tooling/cli/src/mobile/android/build.rs index 4388b98caada..f1ed0939b4f0 100644 --- a/tooling/cli/src/mobile/android/build.rs +++ b/tooling/cli/src/mobile/android/build.rs @@ -69,26 +69,29 @@ impl From for crate::build::Options { pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { delete_codegen_vars(); - with_config(Some(Default::default()), |root_conf, config, _metadata| { - set_var("WRY_RUSTWEBVIEWCLIENT_CLASS_EXTENSION", ""); - set_var("WRY_RUSTWEBVIEW_CLASS_INIT", ""); + with_config( + Some(Default::default()), + |root_conf, config, _metadata, _cli_options| { + set_var("WRY_RUSTWEBVIEWCLIENT_CLASS_EXTENSION", ""); + set_var("WRY_RUSTWEBVIEW_CLASS_INIT", ""); - ensure_init(config.project_dir(), MobileTarget::Android) - .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; + ensure_init(config.project_dir(), MobileTarget::Android) + .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; - let env = env()?; - init_dot_cargo(root_conf, Some(&env)).map_err(Error::InitDotCargo)?; + let env = env()?; + init_dot_cargo(root_conf, Some(&env)).map_err(Error::InitDotCargo)?; - let open = options.open; - run_build(options, config, env, noise_level) - .map_err(|e| Error::BuildFailed(format!("{:#}", e)))?; + let open = options.open; + run_build(options, config, env, noise_level) + .map_err(|e| Error::BuildFailed(format!("{:#}", e)))?; - if open { - open_and_wait(config); - } + if open { + open_and_wait(config); + } - Ok(()) - }) + Ok(()) + }, + ) .map_err(Into::into) } @@ -131,6 +134,7 @@ fn run_build( let cli_options = CliOptions { features: build_options.features.clone(), args: build_options.args.clone(), + noise_level, vars: Default::default(), }; write_options(cli_options, &bundle_identifier, MobileTarget::Android)?; diff --git a/tooling/cli/src/mobile/android/dev.rs b/tooling/cli/src/mobile/android/dev.rs index 6fa94000c0e2..a91f9383308a 100644 --- a/tooling/cli/src/mobile/android/dev.rs +++ b/tooling/cli/src/mobile/android/dev.rs @@ -64,17 +64,20 @@ impl From for crate::dev::Options { pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { delete_codegen_vars(); - with_config(Some(Default::default()), |root_conf, config, metadata| { - set_var( - "WRY_RUSTWEBVIEWCLIENT_CLASS_EXTENSION", - WEBVIEW_CLIENT_CLASS_EXTENSION, - ); - set_var("WRY_RUSTWEBVIEW_CLASS_INIT", WEBVIEW_CLASS_INIT); - ensure_init(config.project_dir(), MobileTarget::Android) - .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; - run_dev(options, root_conf, config, metadata, noise_level) - .map_err(|e| Error::DevFailed(format!("{:#}", e))) - }) + with_config( + Some(Default::default()), + |root_conf, config, metadata, _cli_options| { + set_var( + "WRY_RUSTWEBVIEWCLIENT_CLASS_EXTENSION", + WEBVIEW_CLIENT_CLASS_EXTENSION, + ); + set_var("WRY_RUSTWEBVIEW_CLASS_INIT", WEBVIEW_CLASS_INIT); + ensure_init(config.project_dir(), MobileTarget::Android) + .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; + run_dev(options, root_conf, config, metadata, noise_level) + .map_err(|e| Error::DevFailed(format!("{:#}", e))) + }, + ) .map_err(Into::into) } @@ -116,6 +119,7 @@ fn run_dev( let cli_options = CliOptions { features: options.features.clone(), args: options.args.clone(), + noise_level, vars: Default::default(), }; write_options(cli_options, &bundle_identifier, MobileTarget::Android)?; diff --git a/tooling/cli/src/mobile/android/open.rs b/tooling/cli/src/mobile/android/open.rs index c6ba84967d3b..97db6129a03a 100644 --- a/tooling/cli/src/mobile/android/open.rs +++ b/tooling/cli/src/mobile/android/open.rs @@ -3,10 +3,13 @@ use crate::Result; use cargo_mobile::os; pub fn command() -> Result<()> { - with_config(Some(Default::default()), |_, 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) - }) + with_config( + Some(Default::default()), + |_root_conf, config, _metadata, _cli_options| { + 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) } diff --git a/tooling/cli/src/mobile/init.rs b/tooling/cli/src/mobile/init.rs index ea87100ff41e..7bcd965a3ecb 100644 --- a/tooling/cli/src/mobile/init.rs +++ b/tooling/cli/src/mobile/init.rs @@ -107,7 +107,7 @@ pub fn exec( let tauri_config_guard = tauri_config.lock().unwrap(); let tauri_config_ = tauri_config_guard.as_ref().unwrap(); - let (config, metadata) = get_config(tauri_config_, Default::default()); + let (config, metadata) = get_config(tauri_config_, &Default::default()); let asset_dir = config.app().asset_dir(); if !asset_dir.is_dir() { diff --git a/tooling/cli/src/mobile/ios.rs b/tooling/cli/src/mobile/ios.rs index f98b3ea38345..5fbcfe3dd1c9 100644 --- a/tooling/cli/src/mobile/ios.rs +++ b/tooling/cli/src/mobile/ios.rs @@ -12,6 +12,7 @@ use cargo_mobile::{ config::Config, device::PromptError, env::{Env, Error as EnvError}, + opts::NoiseLevel, os, util, util::prompt, }; @@ -92,7 +93,7 @@ enum Commands { } pub fn command(cli: Cli, verbosity: usize) -> Result<()> { - let noise_level = super::verbosity_to_noise_level(verbosity); + let noise_level = NoiseLevel::from_occurrences(verbosity as u64); match cli.command { Commands::Init(options) => init_command(options, MobileTarget::Ios)?, Commands::Open => open::command()?, @@ -106,19 +107,18 @@ pub fn command(cli: Cli, verbosity: usize) -> Result<()> { fn with_config( cli_options: Option, - f: impl FnOnce(&Config, &AppleConfig, &AppleMetadata) -> Result, + f: impl FnOnce(&Config, &AppleConfig, &AppleMetadata, CliOptions) -> Result, ) -> Result { - let (config, metadata) = { + let (config, metadata, cli_options) = { let tauri_config = get_tauri_config(None).map_err(|e| Error::InvalidTauriConfig(e.to_string()))?; let tauri_config_guard = tauri_config.lock().unwrap(); let tauri_config_ = tauri_config_guard.as_ref().unwrap(); - get_config( - tauri_config_, - cli_options.unwrap_or_else(|| read_options(tauri_config_, MobileTarget::Ios)), - ) + let cli_options = cli_options.unwrap_or_else(|| read_options(tauri_config_, MobileTarget::Ios)); + let (config, metadata) = get_config(tauri_config_, &cli_options); + (config, metadata, cli_options) }; - f(&config, config.apple(), metadata.apple()) + f(&config, config.apple(), metadata.apple(), cli_options) } fn device_prompt<'a>(env: &'_ Env) -> Result, PromptError> { diff --git a/tooling/cli/src/mobile/ios/build.rs b/tooling/cli/src/mobile/ios/build.rs index 556714430669..99f5f6d9a192 100644 --- a/tooling/cli/src/mobile/ios/build.rs +++ b/tooling/cli/src/mobile/ios/build.rs @@ -64,23 +64,26 @@ impl From for crate::build::Options { } pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { - with_config(Some(Default::default()), |root_conf, config, _metadata| { - ensure_init(config.project_dir(), MobileTarget::Ios) - .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; + with_config( + Some(Default::default()), + |root_conf, config, _metadata, _cli_options| { + ensure_init(config.project_dir(), MobileTarget::Ios) + .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; - let env = env()?; - init_dot_cargo(root_conf, None).map_err(Error::InitDotCargo)?; + let env = env()?; + init_dot_cargo(root_conf, None).map_err(Error::InitDotCargo)?; - let open = options.open; - run_build(options, config, env, noise_level) - .map_err(|e| Error::BuildFailed(format!("{:#}", e)))?; + let open = options.open; + run_build(options, config, env, noise_level) + .map_err(|e| Error::BuildFailed(format!("{:#}", e)))?; - if open { - open_and_wait(config); - } + if open { + open_and_wait(config); + } - Ok(()) - }) + Ok(()) + }, + ) .map_err(Into::into) } @@ -117,6 +120,7 @@ fn run_build( let cli_options = CliOptions { features: build_options.features.clone(), args: build_options.args.clone(), + noise_level, vars: Default::default(), }; write_options(cli_options, &bundle_identifier, MobileTarget::Ios)?; diff --git a/tooling/cli/src/mobile/ios/dev.rs b/tooling/cli/src/mobile/ios/dev.rs index 4cbb8b30a3b1..5e29575c686c 100644 --- a/tooling/cli/src/mobile/ios/dev.rs +++ b/tooling/cli/src/mobile/ios/dev.rs @@ -54,12 +54,15 @@ impl From for crate::dev::Options { } pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { - with_config(Some(Default::default()), |root_conf, config, _metadata| { - ensure_init(config.project_dir(), MobileTarget::Ios) - .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; - run_dev(options, root_conf, config, noise_level) - .map_err(|e| Error::DevFailed(format!("{:#}", e))) - }) + with_config( + Some(Default::default()), + |root_conf, config, _metadata, _cli_options| { + ensure_init(config.project_dir(), MobileTarget::Ios) + .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; + run_dev(options, root_conf, config, noise_level) + .map_err(|e| Error::DevFailed(format!("{:#}", e))) + }, + ) .map_err(Into::into) } @@ -101,6 +104,7 @@ fn run_dev( let cli_options = CliOptions { features: options.features.clone(), args: options.args.clone(), + noise_level, vars: Default::default(), }; write_options(cli_options, &bundle_identifier, MobileTarget::Ios)?; diff --git a/tooling/cli/src/mobile/ios/open.rs b/tooling/cli/src/mobile/ios/open.rs index 2173498792c5..9d28d232280a 100644 --- a/tooling/cli/src/mobile/ios/open.rs +++ b/tooling/cli/src/mobile/ios/open.rs @@ -3,10 +3,13 @@ use crate::Result; use cargo_mobile::os; pub fn command() -> Result<()> { - with_config(Some(Default::default()), |_, config, _metadata| { - ensure_init(config.project_dir(), MobileTarget::Ios) - .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; - os::open_file_with("Xcode", config.project_dir()).map_err(Error::OpenFailed) - }) + with_config( + Some(Default::default()), + |_root_conf, config, _metadata, _cli_options| { + ensure_init(config.project_dir(), MobileTarget::Ios) + .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; + os::open_file_with("Xcode", config.project_dir()).map_err(Error::OpenFailed) + }, + ) .map_err(Into::into) } diff --git a/tooling/cli/src/mobile/ios/xcode_script.rs b/tooling/cli/src/mobile/ios/xcode_script.rs index f04ec025a6c2..4ff2e5bffe55 100644 --- a/tooling/cli/src/mobile/ios/xcode_script.rs +++ b/tooling/cli/src/mobile/ios/xcode_script.rs @@ -2,11 +2,7 @@ use super::{env, init_dot_cargo, with_config, Error}; use crate::Result; use clap::Parser; -use cargo_mobile::{ - apple::target::Target, - opts::{NoiseLevel, Profile}, - util, -}; +use cargo_mobile::{apple::target::Target, opts::Profile, util}; use std::{collections::HashMap, ffi::OsStr, path::PathBuf}; @@ -44,9 +40,8 @@ pub fn command(options: Options) -> Result<()> { let profile = profile_from_configuration(&options.configuration); let macos = macos_from_platform(&options.platform); - let noise_level = NoiseLevel::LoudAndProud; - with_config(None, |root_conf, config, metadata| { + with_config(None, |root_conf, config, metadata, cli_options| { let env = env()?; init_dot_cargo(root_conf, None).map_err(Error::InitDotCargo)?; // The `PATH` env var Xcode gives us is missing any additions @@ -127,7 +122,7 @@ pub fn command(options: Options) -> Result<()> { .compile_lib( config, metadata, - noise_level, + cli_options.noise_level, true, profile, &env, diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index 8ff69d19d775..9ac0ce9a6e24 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -108,6 +108,7 @@ impl Target { pub struct CliOptions { pub features: Option>, pub args: Vec, + pub noise_level: NoiseLevel, pub vars: HashMap, } @@ -189,7 +190,7 @@ fn read_options(config: &TauriConfig, target: Target) -> CliOptions { options } -fn get_config(config: &TauriConfig, cli_options: CliOptions) -> (Config, Metadata) { +fn get_config(config: &TauriConfig, cli_options: &CliOptions) -> (Config, Metadata) { let mut s = config.tauri.bundle.identifier.rsplit('.'); let app_name = s.next().unwrap_or("app").to_string(); let mut domain = String::new(); @@ -226,7 +227,7 @@ fn get_config(config: &TauriConfig, cli_options: CliOptions) -> (Config, Metadat #[cfg(target_os = "macos")] let ios_options = cli_options.clone(); - let android_options = cli_options; + let android_options = cli_options.clone(); let raw = Raw { app: RawAppConfig { @@ -347,12 +348,3 @@ fn log_finished(outputs: Vec, kind: &str) { log::info!(action = "Finished"; "{} {}{} at:\n{}", outputs.len(), kind, if outputs.len() == 1 { "" } else { "s" }, printable_paths); } } - -fn verbosity_to_noise_level(verbosity: usize) -> NoiseLevel { - match verbosity { - 0 => NoiseLevel::Polite, - 1 => NoiseLevel::LoudAndProud, - 2.. => NoiseLevel::FranklyQuitePedantic, - _ => panic!(), - } -} From 53a3398beb7d947af3f082f5e1682b9cc83c00d3 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Fri, 26 Aug 2022 16:08:44 -0300 Subject: [PATCH 036/436] feat(cli): improve DX on android dev and ios dev commands (#5059) --- tooling/cli/Cargo.lock | 2 +- tooling/cli/src/dev.rs | 26 ++++++- tooling/cli/src/interface/mod.rs | 6 +- tooling/cli/src/interface/rust/desktop.rs | 38 +++++---- tooling/cli/src/mobile/android.rs | 4 +- tooling/cli/src/mobile/android/build.rs | 10 +-- tooling/cli/src/mobile/android/dev.rs | 34 ++++++--- tooling/cli/src/mobile/android/open.rs | 6 +- tooling/cli/src/mobile/ios.rs | 4 +- tooling/cli/src/mobile/ios/build.rs | 14 ++-- tooling/cli/src/mobile/ios/dev.rs | 31 +++++--- tooling/cli/src/mobile/ios/open.rs | 5 +- tooling/cli/src/mobile/mod.rs | 93 +++++++++-------------- 13 files changed, 153 insertions(+), 120 deletions(-) diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 3f0b1a190464..73d03d2aceee 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -293,7 +293,7 @@ checksum = "c1db59621ec70f09c5e9b597b220c7a2b43611f4710dc03ceb8748637775692c" [[package]] name = "cargo-mobile" version = "0.1.0" -source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#5b866af17df4e2310e084efd3550ec31f62ff984" +source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#228f0eb83ccbc7bfeb0103d2f68b6664691a289d" dependencies = [ "cocoa", "colored 1.9.3", diff --git a/tooling/cli/src/dev.rs b/tooling/cli/src/dev.rs index 53502e2d63fd..f989f1501577 100644 --- a/tooling/cli/src/dev.rs +++ b/tooling/cli/src/dev.rs @@ -8,7 +8,7 @@ use crate::{ command_env, config::{get as get_config, AppUrl, BeforeDevCommand, WindowUrl}, }, - interface::{AppInterface, ExitReason, Interface}, + interface::{AppInterface, DevProcess, ExitReason, Interface}, CommandExt, Result, }; use clap::Parser; @@ -78,7 +78,7 @@ fn command_internal(mut options: Options) -> Result<()> { let exit_on_panic = options.exit_on_panic; let no_watch = options.no_watch; interface.dev(options.into(), move |status, reason| { - on_dev_exit(status, reason, exit_on_panic, no_watch) + on_app_exit(status, reason, exit_on_panic, no_watch) }) } @@ -275,7 +275,27 @@ pub fn setup(options: &mut Options) -> Result { Ok(interface) } -fn on_dev_exit(status: ExitStatus, reason: ExitReason, exit_on_panic: bool, no_watch: bool) { +pub fn wait_dev_process< + C: DevProcess + Send + 'static, + F: Fn(ExitStatus, ExitReason) + Send + Sync + 'static, +>( + child: C, + on_exit: F, +) { + std::thread::spawn(move || { + let status = child.wait().expect("failed to wait on app"); + on_exit( + status, + if child.manually_killed_process() { + ExitReason::TriggeredKill + } else { + ExitReason::NormalExit + }, + ); + }); +} + +pub fn on_app_exit(status: ExitStatus, reason: ExitReason, exit_on_panic: bool, no_watch: bool) { if no_watch || (!matches!(reason, ExitReason::TriggeredKill) && (exit_on_panic || matches!(reason, ExitReason::NormalExit))) diff --git a/tooling/cli/src/interface/mod.rs b/tooling/cli/src/interface/mod.rs index 178eead72ae7..c35e48a5d406 100644 --- a/tooling/cli/src/interface/mod.rs +++ b/tooling/cli/src/interface/mod.rs @@ -15,8 +15,10 @@ use tauri_bundler::bundle::{PackageType, Settings, SettingsBuilder}; pub use rust::{manifest, MobileOptions, Options, Rust as AppInterface}; pub trait DevProcess { - fn kill(&mut self) -> std::io::Result<()>; - fn try_wait(&mut self) -> std::io::Result>; + fn kill(&self) -> std::io::Result<()>; + fn try_wait(&self) -> std::io::Result>; + fn wait(&self) -> std::io::Result; + fn manually_killed_process(&self) -> bool; } pub trait AppSettings { diff --git a/tooling/cli/src/interface/rust/desktop.rs b/tooling/cli/src/interface/rust/desktop.rs index 66a785a87470..8de0a90b111f 100644 --- a/tooling/cli/src/interface/rust/desktop.rs +++ b/tooling/cli/src/interface/rust/desktop.rs @@ -23,7 +23,7 @@ pub struct DevChild { } impl DevProcess for DevChild { - fn kill(&mut self) -> std::io::Result<()> { + fn kill(&self) -> std::io::Result<()> { if let Some(child) = &*self.app_child.lock().unwrap() { child.kill()?; } else if let Some(child) = &self.build_child { @@ -33,7 +33,7 @@ impl DevProcess for DevChild { Ok(()) } - fn try_wait(&mut self) -> std::io::Result> { + fn try_wait(&self) -> std::io::Result> { if let Some(child) = &*self.app_child.lock().unwrap() { child.try_wait() } else if let Some(child) = &self.build_child { @@ -42,6 +42,20 @@ impl DevProcess for DevChild { unreachable!() } } + + fn wait(&self) -> std::io::Result { + if let Some(child) = &*self.app_child.lock().unwrap() { + child.wait() + } else if let Some(child) = &self.build_child { + child.wait() + } else { + unreachable!() + } + } + + fn manually_killed_process(&self) -> bool { + self.manually_killed_app.load(Ordering::Relaxed) + } } pub fn run_dev( @@ -73,18 +87,14 @@ pub fn run_dev( app.stderr(os_pipe::dup_stderr().unwrap()); app.args(run_args); let app_child = Arc::new(SharedChild::spawn(&mut app).unwrap()); - let app_child_t = app_child.clone(); - std::thread::spawn(move || { - let status = app_child_t.wait().expect("failed to wait on app"); - on_exit( - status, - if manually_killed_app_.load(Ordering::Relaxed) { - ExitReason::TriggeredKill - } else { - ExitReason::NormalExit - }, - ); - }); + crate::dev::wait_dev_process( + DevChild { + manually_killed_app: manually_killed_app_, + build_child: None, + app_child: Arc::new(Mutex::new(Some(app_child.clone()))), + }, + on_exit, + ); app_child_.lock().unwrap().replace(app_child); } else { diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index 73aea69d4f47..9a8563ea48b6 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -159,9 +159,9 @@ fn detect_target_ok<'a>(env: &Env) -> Option<&'a Target<'a>> { device_prompt(env).map(|device| device.target()).ok() } -fn open_and_wait(config: &AndroidConfig) -> ! { +fn open_and_wait(config: &AndroidConfig, env: &Env) -> ! { log::info!("Opening Android Studio"); - if let Err(e) = os::open_file_with("Android Studio", config.project_dir()) { + if let Err(e) = os::open_file_with("Android Studio", config.project_dir(), &env.base) { log::error!("{}", e); } loop { diff --git a/tooling/cli/src/mobile/android/build.rs b/tooling/cli/src/mobile/android/build.rs index f1ed0939b4f0..833c1c8175b3 100644 --- a/tooling/cli/src/mobile/android/build.rs +++ b/tooling/cli/src/mobile/android/build.rs @@ -82,11 +82,11 @@ pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { init_dot_cargo(root_conf, Some(&env)).map_err(Error::InitDotCargo)?; let open = options.open; - run_build(options, config, env, noise_level) + run_build(options, config, &env, noise_level) .map_err(|e| Error::BuildFailed(format!("{:#}", e)))?; if open { - open_and_wait(config); + open_and_wait(config, &env); } Ok(()) @@ -98,7 +98,7 @@ pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { fn run_build( mut options: Options, config: &AndroidConfig, - env: Env, + env: &Env, noise_level: NoiseLevel, ) -> Result<()> { let profile = if options.debug { @@ -147,7 +147,7 @@ fn run_build( let apk_outputs = if options.apk { apk::build( config, - &env, + env, noise_level, profile, get_targets_or_all(Vec::new())?, @@ -160,7 +160,7 @@ fn run_build( let aab_outputs = if options.aab { aab::build( config, - &env, + env, noise_level, profile, get_targets_or_all(Vec::new())?, diff --git a/tooling/cli/src/mobile/android/dev.rs b/tooling/cli/src/mobile/android/dev.rs index a91f9383308a..bde02562448f 100644 --- a/tooling/cli/src/mobile/android/dev.rs +++ b/tooling/cli/src/mobile/android/dev.rs @@ -11,7 +11,10 @@ use crate::{ use clap::Parser; use cargo_mobile::{ - android::config::{Config as AndroidConfig, Metadata as AndroidMetadata}, + android::{ + config::{Config as AndroidConfig, Metadata as AndroidMetadata}, + env::Env, + }, config::Config, opts::{NoiseLevel, Profile}, }; @@ -106,7 +109,12 @@ fn run_dev( let out_dir = bin_path.parent().unwrap(); let _lock = flock::open_rw(&out_dir.join("lock").with_extension("android"), "Android")?; + let env = env()?; + init_dot_cargo(root_conf, Some(&env)).map_err(Error::InitDotCargo)?; + let open = options.open; + let exit_on_panic = options.exit_on_panic; + let no_watch = options.no_watch; interface.mobile_dev( MobileOptions { debug: true, @@ -125,13 +133,18 @@ fn run_dev( write_options(cli_options, &bundle_identifier, MobileTarget::Android)?; if open { - open_and_wait(config) + open_and_wait(config, &env) } else { - match run(options, root_conf, config, metadata, noise_level) { - Ok(c) => Ok(Box::new(c) as Box), + match run(options, config, &env, metadata, noise_level) { + Ok(c) => { + crate::dev::wait_dev_process(c.clone(), move |status, reason| { + crate::dev::on_app_exit(status, reason, exit_on_panic, no_watch) + }); + Ok(Box::new(c) as Box) + } Err(Error::FailedToPromptForDevice(e)) => { log::error!("{}", e); - open_and_wait(config) + open_and_wait(config, &env) } Err(e) => Err(e.into()), } @@ -142,8 +155,8 @@ fn run_dev( fn run( options: MobileOptions, - root_conf: &Config, config: &AndroidConfig, + env: &Env, metadata: &AndroidMetadata, noise_level: NoiseLevel, ) -> Result { @@ -155,14 +168,11 @@ fn run( let build_app_bundle = metadata.asset_packs().is_some(); - let env = env()?; - init_dot_cargo(root_conf, Some(&env)).map_err(Error::InitDotCargo)?; - - device_prompt(&env) + device_prompt(env) .map_err(Error::FailedToPromptForDevice)? .run( config, - &env, + env, noise_level, profile, None, @@ -170,6 +180,6 @@ fn run( false, ".MainActivity".into(), ) - .map(|c| DevChild(Some(c))) + .map(DevChild::new) .map_err(Error::RunFailed) } diff --git a/tooling/cli/src/mobile/android/open.rs b/tooling/cli/src/mobile/android/open.rs index 97db6129a03a..f4f147ad9f8c 100644 --- a/tooling/cli/src/mobile/android/open.rs +++ b/tooling/cli/src/mobile/android/open.rs @@ -1,4 +1,4 @@ -use super::{ensure_init, with_config, Error, MobileTarget}; +use super::{ensure_init, env, with_config, Error, MobileTarget}; use crate::Result; use cargo_mobile::os; @@ -8,7 +8,9 @@ pub fn command() -> Result<()> { |_root_conf, config, _metadata, _cli_options| { 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) + let env = env()?; + os::open_file_with("Android Studio", config.project_dir(), &env.base) + .map_err(Error::OpenFailed) }, ) .map_err(Into::into) diff --git a/tooling/cli/src/mobile/ios.rs b/tooling/cli/src/mobile/ios.rs index 5fbcfe3dd1c9..4382188244c9 100644 --- a/tooling/cli/src/mobile/ios.rs +++ b/tooling/cli/src/mobile/ios.rs @@ -153,9 +153,9 @@ fn detect_target_ok<'a>(env: &Env) -> Option<&'a Target<'a>> { device_prompt(env).map(|device| device.target()).ok() } -fn open_and_wait(config: &AppleConfig) -> ! { +fn open_and_wait(config: &AppleConfig, env: &Env) -> ! { log::info!("Opening Xcode"); - if let Err(e) = os::open_file_with("Xcode", config.project_dir()) { + if let Err(e) = os::open_file_with("Xcode", config.project_dir(), env) { log::error!("{}", e); } loop { diff --git a/tooling/cli/src/mobile/ios/build.rs b/tooling/cli/src/mobile/ios/build.rs index 99f5f6d9a192..0577ab3b6e60 100644 --- a/tooling/cli/src/mobile/ios/build.rs +++ b/tooling/cli/src/mobile/ios/build.rs @@ -74,11 +74,11 @@ pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { init_dot_cargo(root_conf, None).map_err(Error::InitDotCargo)?; let open = options.open; - run_build(options, config, env, noise_level) + run_build(options, config, &env, noise_level) .map_err(|e| Error::BuildFailed(format!("{:#}", e)))?; if open { - open_and_wait(config); + open_and_wait(config, &env); } Ok(()) @@ -90,7 +90,7 @@ pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { fn run_build( mut options: Options, config: &AppleConfig, - env: Env, + env: &Env, noise_level: NoiseLevel, ) -> Result<()> { let profile = if options.debug { @@ -135,16 +135,16 @@ fn run_build( call_for_targets_with_fallback( options.targets.iter(), &detect_target_ok, - &env, + env, |target: &Target| { let mut app_version = config.bundle_version().clone(); if let Some(build_number) = options.build_number { app_version.push_extra(build_number); } - target.build(config, &env, noise_level, profile)?; - target.archive(config, &env, noise_level, profile, Some(app_version))?; - target.export(config, &env, noise_level)?; + target.build(config, env, noise_level, profile)?; + target.archive(config, env, noise_level, profile, Some(app_version))?; + target.export(config, env, noise_level)?; if let Ok(ipa_path) = config.ipa_path() { let out_dir = config.export_dir().join(target.arch); diff --git a/tooling/cli/src/mobile/ios/dev.rs b/tooling/cli/src/mobile/ios/dev.rs index 5e29575c686c..1914c0f655a5 100644 --- a/tooling/cli/src/mobile/ios/dev.rs +++ b/tooling/cli/src/mobile/ios/dev.rs @@ -12,6 +12,7 @@ use clap::Parser; use cargo_mobile::{ apple::config::Config as AppleConfig, config::Config, + env::Env, opts::{NoiseLevel, Profile}, }; @@ -91,7 +92,12 @@ fn run_dev( let out_dir = bin_path.parent().unwrap(); let _lock = flock::open_rw(&out_dir.join("lock").with_extension("ios"), "iOS")?; + let env = env()?; + init_dot_cargo(root_conf, None).map_err(Error::InitDotCargo)?; + let open = options.open; + let exit_on_panic = options.exit_on_panic; + let no_watch = options.no_watch; interface.mobile_dev( MobileOptions { debug: true, @@ -108,14 +114,20 @@ fn run_dev( vars: Default::default(), }; write_options(cli_options, &bundle_identifier, MobileTarget::Ios)?; + if open { - open_and_wait(config) + open_and_wait(config, &env) } else { - match run(options, root_conf, config, noise_level) { - Ok(c) => Ok(Box::new(c) as Box), + match run(options, config, &env, noise_level) { + Ok(c) => { + crate::dev::wait_dev_process(c.clone(), move |status, reason| { + crate::dev::on_app_exit(status, reason, exit_on_panic, no_watch) + }); + Ok(Box::new(c) as Box) + } Err(Error::FailedToPromptForDevice(e)) => { log::error!("{}", e); - open_and_wait(config) + open_and_wait(config, &env) } Err(e) => Err(e.into()), } @@ -126,8 +138,8 @@ fn run_dev( fn run( options: MobileOptions, - root_conf: &Config, config: &AppleConfig, + env: &Env, noise_level: NoiseLevel, ) -> Result { let profile = if options.debug { @@ -136,12 +148,11 @@ fn run( Profile::Release }; - let env = env()?; - init_dot_cargo(root_conf, None).map_err(Error::InitDotCargo)?; + let non_interactive = true; // ios-deploy --noninteractive (quit when app crashes or exits) - device_prompt(&env) + device_prompt(env) .map_err(Error::FailedToPromptForDevice)? - .run(config, &env, noise_level, false, profile) - .map(|c| DevChild(Some(c))) + .run(config, env, noise_level, non_interactive, profile) + .map(DevChild::new) .map_err(Error::RunFailed) } diff --git a/tooling/cli/src/mobile/ios/open.rs b/tooling/cli/src/mobile/ios/open.rs index 9d28d232280a..0304516ddc7a 100644 --- a/tooling/cli/src/mobile/ios/open.rs +++ b/tooling/cli/src/mobile/ios/open.rs @@ -1,4 +1,4 @@ -use super::{ensure_init, with_config, Error, MobileTarget}; +use super::{ensure_init, env, with_config, Error, MobileTarget}; use crate::Result; use cargo_mobile::os; @@ -8,7 +8,8 @@ pub fn command() -> Result<()> { |_root_conf, config, _metadata, _cli_options| { ensure_init(config.project_dir(), MobileTarget::Ios) .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; - os::open_file_with("Xcode", config.project_dir()).map_err(Error::OpenFailed) + let env = env()?; + os::open_file_with("Xcode", config.project_dir(), &env).map_err(Error::OpenFailed) }, ) .map_err(Into::into) diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index 9ac0ce9a6e24..f0b4646858e4 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -20,6 +20,7 @@ use cargo_mobile::{ }; use interprocess::local_socket::{LocalSocketListener, LocalSocketStream}; use serde::{Deserialize, Serialize}; +use shared_child::SharedChild; use std::{ collections::HashMap, env::set_var, @@ -28,6 +29,10 @@ use std::{ io::{BufRead, BufReader, Write as _}, path::PathBuf, process::ExitStatus, + sync::{ + atomic::{AtomicBool, Ordering}, + Arc, + }, }; #[cfg(not(windows))] @@ -40,34 +45,38 @@ mod init; #[cfg(target_os = "macos")] pub mod ios; -pub struct DevChild(Option); +#[derive(Clone)] +pub struct DevChild { + child: Arc, + manually_killed_process: Arc, +} -impl Drop for DevChild { - fn drop(&mut self) { - // consume the handle since we're not waiting on it - // just to prevent a log error - // note that this doesn't leak any memory - self.0.take().unwrap().leak(); +impl DevChild { + fn new(handle: bossy::Handle) -> Self { + Self { + child: Arc::new(SharedChild::new(handle.into()).unwrap()), + manually_killed_process: Default::default(), + } } } impl DevProcess for DevChild { - fn kill(&mut self) -> std::io::Result<()> { - self - .0 - .as_mut() - .unwrap() - .kill() - .map_err(|_| std::io::Error::new(std::io::ErrorKind::Other, "failed to kill")) + fn kill(&self) -> std::io::Result<()> { + self.child.kill()?; + self.manually_killed_process.store(true, Ordering::Relaxed); + Ok(()) + } + + fn try_wait(&self) -> std::io::Result> { + self.child.try_wait() + } + + fn wait(&self) -> std::io::Result { + self.child.wait() } - fn try_wait(&mut self) -> std::io::Result> { - self - .0 - .as_mut() - .unwrap() - .try_wait() - .map_err(|_| std::io::Error::new(std::io::ErrorKind::Other, "failed to wait")) + fn manually_killed_process(&self) -> bool { + self.manually_killed_process.load(Ordering::Relaxed) } } @@ -243,25 +252,15 @@ fn get_config(config: &TauriConfig, cli_options: &CliOptions) -> (Config, Metada .ok() .or_else(|| config.tauri.ios.development_team.clone()) .expect("you must set `tauri > iOS > developmentTeam` config value or the `TAURI_APPLE_DEVELOPMENT_TEAM` environment variable"), - project_dir: None, - ios_no_default_features: None, + ios_features: ios_options.features.clone(), - macos_no_default_features: None, - macos_features: None, bundle_version: config.package.version.clone(), bundle_version_short: config.package.version.clone(), - ios_version: None, - macos_version: None, - use_legacy_build_system: None, - plist_pairs: None, - enable_bitcode: None, + ..Default::default() }), android: Some(RawAndroidConfig { - min_sdk_version: None, - vulkan_validation: None, - project_dir: None, - no_default_features: None, features: android_options.features.clone(), + ..Default::default() }), }; let config = Config::from_raw(tauri_dir(), raw).unwrap(); @@ -271,39 +270,17 @@ fn get_config(config: &TauriConfig, cli_options: &CliOptions) -> (Config, Metada apple: AppleMetadata { supported: true, ios: ApplePlatform { - no_default_features: false, cargo_args: Some(ios_options.args), features: ios_options.features, - libraries: None, - frameworks: None, - valid_archs: None, - vendor_frameworks: None, - vendor_sdks: None, - asset_catalogs: None, - pods: None, - pod_options: None, - additional_targets: None, - pre_build_scripts: None, - post_compile_scripts: None, - post_build_scripts: None, - command_line_arguments: None, + ..Default::default() }, macos: Default::default(), }, android: AndroidMetadata { supported: true, - no_default_features: false, cargo_args: Some(android_options.args), features: android_options.features, - app_sources: None, - app_plugins: None, - project_dependencies: None, - app_dependencies: None, - app_dependencies_platform: None, - asset_packs: None, - app_activity_name: None, - app_permissions: None, - app_theme_parent: None, + ..Default::default() }, }; From dee19784f9ab6731aae2ae376c828d61427f20a2 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Sat, 27 Aug 2022 16:35:57 -0300 Subject: [PATCH 037/436] fix(cli): only require development team when running iOS commands (#5071) --- tooling/cli/src/mobile/android.rs | 2 +- tooling/cli/src/mobile/init.rs | 2 +- tooling/cli/src/mobile/ios.rs | 2 +- tooling/cli/src/mobile/mod.rs | 15 +++++++++++---- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index 9a8563ea48b6..bee6da19cfa9 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -108,7 +108,7 @@ fn with_config( let tauri_config_ = tauri_config_guard.as_ref().unwrap(); let cli_options = cli_options.unwrap_or_else(|| read_options(tauri_config_, MobileTarget::Android)); - let (config, metadata) = get_config(tauri_config_, &cli_options); + let (config, metadata) = get_config(tauri_config_, &cli_options, MobileTarget::Android); (config, metadata, cli_options) }; f(&config, config.android(), metadata.android(), cli_options) diff --git a/tooling/cli/src/mobile/init.rs b/tooling/cli/src/mobile/init.rs index 7bcd965a3ecb..2e08bd4bc90c 100644 --- a/tooling/cli/src/mobile/init.rs +++ b/tooling/cli/src/mobile/init.rs @@ -107,7 +107,7 @@ pub fn exec( let tauri_config_guard = tauri_config.lock().unwrap(); let tauri_config_ = tauri_config_guard.as_ref().unwrap(); - let (config, metadata) = get_config(tauri_config_, &Default::default()); + let (config, metadata) = get_config(tauri_config_, &Default::default(), target); let asset_dir = config.app().asset_dir(); if !asset_dir.is_dir() { diff --git a/tooling/cli/src/mobile/ios.rs b/tooling/cli/src/mobile/ios.rs index 4382188244c9..50094bf01690 100644 --- a/tooling/cli/src/mobile/ios.rs +++ b/tooling/cli/src/mobile/ios.rs @@ -115,7 +115,7 @@ fn with_config( let tauri_config_guard = tauri_config.lock().unwrap(); let tauri_config_ = tauri_config_guard.as_ref().unwrap(); let cli_options = cli_options.unwrap_or_else(|| read_options(tauri_config_, MobileTarget::Ios)); - let (config, metadata) = get_config(tauri_config_, &cli_options); + let (config, metadata) = get_config(tauri_config_, &cli_options, MobileTarget::Ios); (config, metadata, cli_options) }; f(&config, config.apple(), metadata.apple(), cli_options) diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index f0b4646858e4..f3a59023f3f5 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -199,7 +199,11 @@ fn read_options(config: &TauriConfig, target: Target) -> CliOptions { options } -fn get_config(config: &TauriConfig, cli_options: &CliOptions) -> (Config, Metadata) { +fn get_config( + config: &TauriConfig, + cli_options: &CliOptions, + #[allow(unused_variables)] target: Target, +) -> (Config, Metadata) { let mut s = config.tauri.bundle.identifier.rsplit('.'); let app_name = s.next().unwrap_or("app").to_string(); let mut domain = String::new(); @@ -248,11 +252,14 @@ fn get_config(config: &TauriConfig, cli_options: &CliOptions) -> (Config, Metada }, #[cfg(target_os = "macos")] apple: Some(RawAppleConfig { - development_team: std::env::var("TAURI_APPLE_DEVELOPMENT_TEAM") + development_team: if target == Target::Ios { + std::env::var("TAURI_APPLE_DEVELOPMENT_TEAM") .ok() .or_else(|| config.tauri.ios.development_team.clone()) - .expect("you must set `tauri > iOS > developmentTeam` config value or the `TAURI_APPLE_DEVELOPMENT_TEAM` environment variable"), - + .expect("you must set `tauri > iOS > developmentTeam` config value or the `TAURI_APPLE_DEVELOPMENT_TEAM` environment variable") + } else { + Default::default() + }, ios_features: ios_options.features.clone(), bundle_version: config.package.version.clone(), bundle_version_short: config.package.version.clone(), From 0a203a13ae8d2634c4eaead41cad33d5e5b7c190 Mon Sep 17 00:00:00 2001 From: Jeffrey Hutchins Date: Sun, 28 Aug 2022 11:48:15 -0600 Subject: [PATCH 038/436] fix(cli): config issues on macos (#5075) Co-authored-by: Lucas Nogueira --- tooling/cli/src/mobile/android.rs | 57 ++++++++++-- .../mobile/android/android_studio_script.rs | 4 +- tooling/cli/src/mobile/android/build.rs | 4 +- tooling/cli/src/mobile/android/dev.rs | 10 +-- tooling/cli/src/mobile/init.rs | 82 +++++++++-------- tooling/cli/src/mobile/ios.rs | 57 ++++++++++-- tooling/cli/src/mobile/ios/build.rs | 4 +- tooling/cli/src/mobile/ios/dev.rs | 11 ++- tooling/cli/src/mobile/mod.rs | 88 ++----------------- 9 files changed, 164 insertions(+), 153 deletions(-) diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index bee6da19cfa9..407f623a6083 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -5,12 +5,12 @@ use cargo_mobile::{ android::{ adb, - config::{Config as AndroidConfig, Metadata as AndroidMetadata}, + config::{Config as AndroidConfig, Metadata as AndroidMetadata, Raw as RawAndroidConfig}, device::{Device, RunError}, env::{Env, Error as AndroidEnvError}, target::{BuildError, Target}, }, - config::Config, + config::app::App, device::PromptError, env::Error as EnvError, opts::NoiseLevel, @@ -18,13 +18,17 @@ use cargo_mobile::{ util::prompt, }; use clap::{Parser, Subcommand}; +use std::env::set_var; use super::{ - ensure_init, get_config, + ensure_init, get_app, init::{command as init_command, init_dot_cargo, Options as InitOptions}, log_finished, read_options, CliOptions, Target as MobileTarget, }; -use crate::{helpers::config::get as get_tauri_config, Result}; +use crate::{ + helpers::config::{get as get_tauri_config, Config as TauriConfig}, + Result, +}; mod android_studio_script; mod build; @@ -97,21 +101,56 @@ pub fn command(cli: Cli, verbosity: usize) -> Result<()> { Ok(()) } +pub fn get_config( + app: Option, + config: &TauriConfig, + cli_options: &CliOptions, +) -> (App, AndroidConfig, AndroidMetadata) { + let app = app.unwrap_or_else(|| get_app(config)); + let android_options = cli_options.clone(); + + let raw = RawAndroidConfig { + features: android_options.features.clone(), + ..Default::default() + }; + let config = AndroidConfig::from_raw(app.clone(), Some(raw)).unwrap(); + + let metadata = AndroidMetadata { + supported: true, + cargo_args: Some(android_options.args), + features: android_options.features, + ..Default::default() + }; + + set_var("WRY_ANDROID_REVERSED_DOMAIN", app.reverse_domain()); + set_var("WRY_ANDROID_APP_NAME_SNAKE_CASE", app.name()); + set_var( + "WRY_ANDROID_KOTLIN_FILES_OUT_DIR", + config.project_dir().join("app/src/main").join(format!( + "java/{}/{}", + app.reverse_domain().replace('.', "/"), + app.name() + )), + ); + + (app, config, metadata) +} + fn with_config( cli_options: Option, - f: impl FnOnce(&Config, &AndroidConfig, &AndroidMetadata, CliOptions) -> Result, + f: impl FnOnce(&App, &AndroidConfig, &AndroidMetadata, CliOptions) -> Result, ) -> Result { - let (config, metadata, cli_options) = { + let (app, config, metadata, cli_options) = { let tauri_config = get_tauri_config(None).map_err(|e| Error::InvalidTauriConfig(e.to_string()))?; let tauri_config_guard = tauri_config.lock().unwrap(); let tauri_config_ = tauri_config_guard.as_ref().unwrap(); let cli_options = cli_options.unwrap_or_else(|| read_options(tauri_config_, MobileTarget::Android)); - let (config, metadata) = get_config(tauri_config_, &cli_options, MobileTarget::Android); - (config, metadata, cli_options) + let (app, config, metadata) = get_config(None, tauri_config_, &cli_options); + (app, config, metadata, cli_options) }; - f(&config, config.android(), metadata.android(), cli_options) + f(&app, &config, &metadata, cli_options) } fn env() -> Result { diff --git a/tooling/cli/src/mobile/android/android_studio_script.rs b/tooling/cli/src/mobile/android/android_studio_script.rs index eb37490e6041..1c91f2f9f746 100644 --- a/tooling/cli/src/mobile/android/android_studio_script.rs +++ b/tooling/cli/src/mobile/android/android_studio_script.rs @@ -32,12 +32,12 @@ pub fn command(options: Options) -> Result<()> { Profile::Debug }; - with_config(None, |root_conf, config, metadata, cli_options| { + with_config(None, |app, config, metadata, cli_options| { ensure_init(config.project_dir(), MobileTarget::Android) .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; let env = env()?; - init_dot_cargo(root_conf, Some(&env)).map_err(Error::InitDotCargo)?; + init_dot_cargo(app, Some((&env, config))).map_err(Error::InitDotCargo)?; call_for_targets_with_fallback( options.targets.unwrap_or_default().iter(), diff --git a/tooling/cli/src/mobile/android/build.rs b/tooling/cli/src/mobile/android/build.rs index 833c1c8175b3..4b37173cc798 100644 --- a/tooling/cli/src/mobile/android/build.rs +++ b/tooling/cli/src/mobile/android/build.rs @@ -71,7 +71,7 @@ pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { delete_codegen_vars(); with_config( Some(Default::default()), - |root_conf, config, _metadata, _cli_options| { + |app, config, _metadata, _cli_options| { set_var("WRY_RUSTWEBVIEWCLIENT_CLASS_EXTENSION", ""); set_var("WRY_RUSTWEBVIEW_CLASS_INIT", ""); @@ -79,7 +79,7 @@ pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; let env = env()?; - init_dot_cargo(root_conf, Some(&env)).map_err(Error::InitDotCargo)?; + init_dot_cargo(app, Some((&env, config))).map_err(Error::InitDotCargo)?; let open = options.open; run_build(options, config, &env, noise_level) diff --git a/tooling/cli/src/mobile/android/dev.rs b/tooling/cli/src/mobile/android/dev.rs index bde02562448f..66eaf1c1279e 100644 --- a/tooling/cli/src/mobile/android/dev.rs +++ b/tooling/cli/src/mobile/android/dev.rs @@ -15,7 +15,7 @@ use cargo_mobile::{ config::{Config as AndroidConfig, Metadata as AndroidMetadata}, env::Env, }, - config::Config, + config::app::App, opts::{NoiseLevel, Profile}, }; @@ -69,7 +69,7 @@ pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { delete_codegen_vars(); with_config( Some(Default::default()), - |root_conf, config, metadata, _cli_options| { + |app, config, metadata, _cli_options| { set_var( "WRY_RUSTWEBVIEWCLIENT_CLASS_EXTENSION", WEBVIEW_CLIENT_CLASS_EXTENSION, @@ -77,7 +77,7 @@ pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { set_var("WRY_RUSTWEBVIEW_CLASS_INIT", WEBVIEW_CLASS_INIT); ensure_init(config.project_dir(), MobileTarget::Android) .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; - run_dev(options, root_conf, config, metadata, noise_level) + run_dev(options, app, config, metadata, noise_level) .map_err(|e| Error::DevFailed(format!("{:#}", e))) }, ) @@ -86,7 +86,7 @@ pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { fn run_dev( options: Options, - root_conf: &Config, + app: &App, config: &AndroidConfig, metadata: &AndroidMetadata, noise_level: NoiseLevel, @@ -110,7 +110,7 @@ fn run_dev( let _lock = flock::open_rw(&out_dir.join("lock").with_extension("android"), "Android")?; let env = env()?; - init_dot_cargo(root_conf, Some(&env)).map_err(Error::InitDotCargo)?; + init_dot_cargo(app, Some((&env, config))).map_err(Error::InitDotCargo)?; let open = options.open; let exit_on_panic = options.exit_on_panic; diff --git a/tooling/cli/src/mobile/init.rs b/tooling/cli/src/mobile/init.rs index 2e08bd4bc90c..13204def507c 100644 --- a/tooling/cli/src/mobile/init.rs +++ b/tooling/cli/src/mobile/init.rs @@ -2,13 +2,16 @@ // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT -use super::{get_config, Target}; +use super::{get_app, Target}; use crate::helpers::{config::get as get_tauri_config, template::JsonMap}; use crate::Result; use cargo_mobile::{ - android::{self, env::Env as AndroidEnv, ndk, target::Target as AndroidTarget}, + android::{ + self, config::Config as AndroidConfig, env::Env as AndroidEnv, ndk, + target::Target as AndroidTarget, + }, bossy, - config::Config, + config::app::App, dot_cargo, os::code_command, target::TargetTrait as _, @@ -66,8 +69,11 @@ pub enum Error { DotCargoWrite(dot_cargo::WriteError), } -pub fn init_dot_cargo(config: &Config, android_env: Option<&AndroidEnv>) -> Result<(), Error> { - let mut dot_cargo = dot_cargo::DotCargo::load(config.app()).map_err(Error::DotCargoLoad)?; +pub fn init_dot_cargo( + app: &App, + android: Option<(&AndroidEnv, &AndroidConfig)>, +) -> Result<(), Error> { + let mut dot_cargo = dot_cargo::DotCargo::load(app).map_err(Error::DotCargoLoad)?; // Mysteriously, builds that don't specify `--target` seem to fight over // the build cache with builds that use `--target`! This means that // alternating between i.e. `cargo run` and `cargo apple run` would @@ -81,18 +87,18 @@ pub fn init_dot_cargo(config: &Config, android_env: Option<&AndroidEnv>) -> Resu dot_cargo .set_default_target(util::host_target_triple().map_err(Error::HostTargetTripleDetection)?); - if let Some(env) = android_env { + if let Some((env, config)) = android { for target in AndroidTarget::all().values() { dot_cargo.insert_target( target.triple.to_owned(), target - .generate_cargo_config(config.android(), env) + .generate_cargo_config(config, env) .map_err(Error::DotCargoGenFailed)?, ); } } - dot_cargo.write(config.app()).map_err(Error::DotCargoWrite) + dot_cargo.write(app).map_err(Error::DotCargoWrite) } pub fn exec( @@ -101,15 +107,15 @@ pub fn exec( non_interactive: bool, skip_dev_tools: bool, #[allow(unused_variables)] reinstall_deps: bool, -) -> Result { +) -> Result { let tauri_config = get_tauri_config(None).map_err(|e| Error::InvalidTauriConfig(e.to_string()))?; let tauri_config_guard = tauri_config.lock().unwrap(); let tauri_config_ = tauri_config_guard.as_ref().unwrap(); - let (config, metadata) = get_config(tauri_config_, &Default::default(), target); + let app = get_app(tauri_config_); - let asset_dir = config.app().asset_dir(); + let asset_dir = app.asset_dir(); if !asset_dir.is_dir() { fs::create_dir_all(&asset_dir).map_err(|cause| Error::AssetDirCreation { asset_dir, cause })?; } @@ -124,7 +130,7 @@ pub fn exec( .map_err(Error::LldbExtensionInstall)?; } - let (handlebars, mut map) = handlebars(&config); + let (handlebars, mut map) = handlebars(&app); let mut args = std::env::args_os(); let tauri_binary = args @@ -160,18 +166,17 @@ pub fn exec( map.insert("tauri-binary-args", &build_args); map.insert("tauri-binary-args-str", build_args.join(" ")); - // Generate Android Studio project - let android_env = if target == Target::Android { - match AndroidEnv::new() { + let app = match target { + // Generate Android Studio project + Target::Android => match AndroidEnv::new() { Ok(env) => { - super::android::project::gen( - config.android(), - metadata.android(), - (handlebars, map), - wrapper, - ) - .map_err(Error::AndroidInit)?; - Some(env) + let (app, config, metadata) = + super::android::get_config(Some(app), tauri_config_, &Default::default()); + map.insert("android", &config); + super::android::project::gen(&config, &metadata, (handlebars, map), wrapper) + .map_err(Error::AndroidInit)?; + init_dot_cargo(&app, Some((&env, &config)))?; + app } Err(err) => { if err.sdk_or_ndk_issue() { @@ -180,19 +185,22 @@ pub fn exec( err, ) .print(wrapper); - None + init_dot_cargo(&app, None)?; + app } else { return Err(Error::AndroidEnv(err)); } } - } - } else { - // Generate Xcode project + }, #[cfg(target_os = "macos")] - if target == Target::Ios { + // Generate Xcode project + Target::Ios => { + let (app, config, metadata) = + super::ios::get_config(Some(app), tauri_config_, &Default::default()); + map.insert("apple", &config); super::ios::project::gen( - config.apple(), - metadata.apple(), + &config, + &metadata, (handlebars, map), wrapper, non_interactive, @@ -200,21 +208,20 @@ pub fn exec( reinstall_deps, ) .map_err(Error::IosInit)?; + init_dot_cargo(&app, None)?; + app } - None }; - init_dot_cargo(&config, android_env.as_ref())?; - Report::victory( "Project generated successfully!", "Make cool apps! 🌻 🐕 🎉", ) .print(wrapper); - Ok(config) + Ok(app) } -fn handlebars(config: &Config) -> (Handlebars<'static>, JsonMap) { +fn handlebars(app: &App) -> (Handlebars<'static>, JsonMap) { let mut h = Handlebars::new(); h.register_escape_fn(handlebars::no_escape); @@ -236,10 +243,7 @@ fn handlebars(config: &Config) -> (Handlebars<'static>, JsonMap) { h.register_helper("unprefix-path", Box::new(unprefix_path)); let mut map = JsonMap::default(); - map.insert("app", config.app()); - #[cfg(target_os = "macos")] - map.insert("apple", config.apple()); - map.insert("android", config.android()); + map.insert("app", app); (h, map) } diff --git a/tooling/cli/src/mobile/ios.rs b/tooling/cli/src/mobile/ios.rs index 50094bf01690..e37de65ddef3 100644 --- a/tooling/cli/src/mobile/ios.rs +++ b/tooling/cli/src/mobile/ios.rs @@ -4,12 +4,15 @@ use cargo_mobile::{ apple::{ - config::{Config as AppleConfig, Metadata as AppleMetadata}, + config::{ + Config as AppleConfig, Metadata as AppleMetadata, Platform as ApplePlatform, + Raw as RawAppleConfig, + }, device::{Device, RunError}, ios_deploy, target::{CompileLibError, Target}, }, - config::Config, + config::app::App, device::PromptError, env::{Env, Error as EnvError}, opts::NoiseLevel, @@ -19,11 +22,14 @@ use cargo_mobile::{ use clap::{Parser, Subcommand}; use super::{ - ensure_init, env, get_config, + ensure_init, env, get_app, init::{command as init_command, init_dot_cargo, Options as InitOptions}, log_finished, read_options, CliOptions, Target as MobileTarget, }; -use crate::{helpers::config::get as get_tauri_config, Result}; +use crate::{ + helpers::config::{get as get_tauri_config, Config as TauriConfig}, + Result, +}; use std::path::PathBuf; @@ -105,20 +111,53 @@ pub fn command(cli: Cli, verbosity: usize) -> Result<()> { Ok(()) } +pub fn get_config( + app: Option, + config: &TauriConfig, + cli_options: &CliOptions, +) -> (App, AppleConfig, AppleMetadata) { + let app = app.unwrap_or_else(|| get_app(config)); + let ios_options = cli_options.clone(); + + let raw = RawAppleConfig { + development_team: std::env::var("TAURI_APPLE_DEVELOPMENT_TEAM") + .ok() + .or_else(|| config.tauri.ios.development_team.clone()) + .expect("you must set `tauri > iOS > developmentTeam` config value or the `TAURI_APPLE_DEVELOPMENT_TEAM` environment variable"), + ios_features: ios_options.features.clone(), + bundle_version: config.package.version.clone(), + bundle_version_short: config.package.version.clone(), + ..Default::default() + }; + let config = AppleConfig::from_raw(app.clone(), Some(raw)).unwrap(); + + let metadata = AppleMetadata { + supported: true, + ios: ApplePlatform { + cargo_args: Some(ios_options.args), + features: ios_options.features, + ..Default::default() + }, + macos: Default::default(), + }; + + (app, config, metadata) +} + fn with_config( cli_options: Option, - f: impl FnOnce(&Config, &AppleConfig, &AppleMetadata, CliOptions) -> Result, + f: impl FnOnce(&App, &AppleConfig, &AppleMetadata, CliOptions) -> Result, ) -> Result { - let (config, metadata, cli_options) = { + let (app, config, metadata, cli_options) = { let tauri_config = get_tauri_config(None).map_err(|e| Error::InvalidTauriConfig(e.to_string()))?; let tauri_config_guard = tauri_config.lock().unwrap(); let tauri_config_ = tauri_config_guard.as_ref().unwrap(); let cli_options = cli_options.unwrap_or_else(|| read_options(tauri_config_, MobileTarget::Ios)); - let (config, metadata) = get_config(tauri_config_, &cli_options, MobileTarget::Ios); - (config, metadata, cli_options) + let (app, config, metadata) = get_config(None, tauri_config_, &cli_options); + (app, config, metadata, cli_options) }; - f(&config, config.apple(), metadata.apple(), cli_options) + f(&app, &config, &metadata, cli_options) } fn device_prompt<'a>(env: &'_ Env) -> Result, PromptError> { diff --git a/tooling/cli/src/mobile/ios/build.rs b/tooling/cli/src/mobile/ios/build.rs index 0577ab3b6e60..be6a2143701d 100644 --- a/tooling/cli/src/mobile/ios/build.rs +++ b/tooling/cli/src/mobile/ios/build.rs @@ -66,12 +66,12 @@ impl From for crate::build::Options { pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { with_config( Some(Default::default()), - |root_conf, config, _metadata, _cli_options| { + |app, config, _metadata, _cli_options| { ensure_init(config.project_dir(), MobileTarget::Ios) .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; let env = env()?; - init_dot_cargo(root_conf, None).map_err(Error::InitDotCargo)?; + init_dot_cargo(app, None).map_err(Error::InitDotCargo)?; let open = options.open; run_build(options, config, &env, noise_level) diff --git a/tooling/cli/src/mobile/ios/dev.rs b/tooling/cli/src/mobile/ios/dev.rs index 1914c0f655a5..c1e2621982ac 100644 --- a/tooling/cli/src/mobile/ios/dev.rs +++ b/tooling/cli/src/mobile/ios/dev.rs @@ -11,7 +11,7 @@ use clap::Parser; use cargo_mobile::{ apple::config::Config as AppleConfig, - config::Config, + config::app::App, env::Env, opts::{NoiseLevel, Profile}, }; @@ -57,11 +57,10 @@ impl From for crate::dev::Options { pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { with_config( Some(Default::default()), - |root_conf, config, _metadata, _cli_options| { + |app, config, _metadata, _cli_options| { ensure_init(config.project_dir(), MobileTarget::Ios) .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; - run_dev(options, root_conf, config, noise_level) - .map_err(|e| Error::DevFailed(format!("{:#}", e))) + run_dev(options, app, config, noise_level).map_err(|e| Error::DevFailed(format!("{:#}", e))) }, ) .map_err(Into::into) @@ -69,7 +68,7 @@ pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { fn run_dev( options: Options, - root_conf: &Config, + app: &App, config: &AppleConfig, noise_level: NoiseLevel, ) -> Result<()> { @@ -93,7 +92,7 @@ fn run_dev( let _lock = flock::open_rw(&out_dir.join("lock").with_extension("ios"), "iOS")?; let env = env()?; - init_dot_cargo(root_conf, None).map_err(Error::InitDotCargo)?; + init_dot_cargo(app, None).map_err(Error::InitDotCargo)?; let open = options.open; let exit_on_panic = options.exit_on_panic; diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index f3a59023f3f5..9ad44e0428a4 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -7,14 +7,9 @@ use crate::{ interface::DevProcess, }; use anyhow::{bail, Result}; -#[cfg(target_os = "macos")] -use cargo_mobile::apple::config::{ - Metadata as AppleMetadata, Platform as ApplePlatform, Raw as RawAppleConfig, -}; use cargo_mobile::{ - android::config::{Metadata as AndroidMetadata, Raw as RawAndroidConfig}, bossy, - config::{app::Raw as RawAppConfig, metadata::Metadata, Config, Raw}, + config::app::{App, Raw as RawAppConfig}, env::Error as EnvError, opts::NoiseLevel, }; @@ -199,11 +194,7 @@ fn read_options(config: &TauriConfig, target: Target) -> CliOptions { options } -fn get_config( - config: &TauriConfig, - cli_options: &CliOptions, - #[allow(unused_variables)] target: Target, -) -> (Config, Metadata) { +fn get_app(config: &TauriConfig) -> App { let mut s = config.tauri.bundle.identifier.rsplit('.'); let app_name = s.next().unwrap_or("app").to_string(); let mut domain = String::new(); @@ -238,75 +229,14 @@ fn get_config( app_name }; - #[cfg(target_os = "macos")] - let ios_options = cli_options.clone(); - let android_options = cli_options.clone(); - - let raw = Raw { - app: RawAppConfig { - name: app_name.clone(), - stylized_name: config.package.product_name.clone(), - domain, - asset_dir: None, - template_pack: None, - }, - #[cfg(target_os = "macos")] - apple: Some(RawAppleConfig { - development_team: if target == Target::Ios { - std::env::var("TAURI_APPLE_DEVELOPMENT_TEAM") - .ok() - .or_else(|| config.tauri.ios.development_team.clone()) - .expect("you must set `tauri > iOS > developmentTeam` config value or the `TAURI_APPLE_DEVELOPMENT_TEAM` environment variable") - } else { - Default::default() - }, - ios_features: ios_options.features.clone(), - bundle_version: config.package.version.clone(), - bundle_version_short: config.package.version.clone(), - ..Default::default() - }), - android: Some(RawAndroidConfig { - features: android_options.features.clone(), - ..Default::default() - }), - }; - let config = Config::from_raw(tauri_dir(), raw).unwrap(); - - let metadata = Metadata { - #[cfg(target_os = "macos")] - apple: AppleMetadata { - supported: true, - ios: ApplePlatform { - cargo_args: Some(ios_options.args), - features: ios_options.features, - ..Default::default() - }, - macos: Default::default(), - }, - android: AndroidMetadata { - supported: true, - cargo_args: Some(android_options.args), - features: android_options.features, - ..Default::default() - }, + let raw = RawAppConfig { + name: app_name, + stylized_name: config.package.product_name.clone(), + domain, + asset_dir: None, + template_pack: None, }; - - set_var("WRY_ANDROID_REVERSED_DOMAIN", &reverse_domain); - set_var("WRY_ANDROID_APP_NAME_SNAKE_CASE", &app_name); - set_var( - "WRY_ANDROID_KOTLIN_FILES_OUT_DIR", - config - .android() - .project_dir() - .join("app/src/main") - .join(format!( - "java/{}/{}", - config.app().reverse_domain().replace('.', "/"), - config.app().name() - )), - ); - - (config, metadata) + App::from_raw(tauri_dir(), raw).unwrap() } fn ensure_init(project_dir: PathBuf, target: Target) -> Result<()> { From 8cf9af93ebeeb5a2c1a35e2ffd2be77c90e78e64 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Sun, 28 Aug 2022 15:32:50 -0300 Subject: [PATCH 039/436] refactor(cli): remove mobile Error enum, use anyhow instead (#5076) --- tooling/cli/src/mobile/android.rs | 48 +++--------- .../mobile/android/android_studio_script.rs | 12 ++- tooling/cli/src/mobile/android/build.rs | 19 +++-- tooling/cli/src/mobile/android/dev.rs | 28 ++++--- tooling/cli/src/mobile/android/open.rs | 9 +-- tooling/cli/src/mobile/android/project.rs | 64 ++++++---------- tooling/cli/src/mobile/init.rs | 74 +++++-------------- tooling/cli/src/mobile/ios.rs | 53 ++----------- tooling/cli/src/mobile/ios/build.rs | 12 ++- tooling/cli/src/mobile/ios/dev.rs | 31 ++++---- tooling/cli/src/mobile/ios/open.rs | 8 +- tooling/cli/src/mobile/ios/project.rs | 50 ++++--------- tooling/cli/src/mobile/ios/xcode_script.rs | 61 ++++++++------- 13 files changed, 167 insertions(+), 302 deletions(-) diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index 407f623a6083..6c1b17792292 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -6,13 +6,12 @@ use cargo_mobile::{ android::{ adb, config::{Config as AndroidConfig, Metadata as AndroidMetadata, Raw as RawAndroidConfig}, - device::{Device, RunError}, - env::{Env, Error as AndroidEnvError}, - target::{BuildError, Target}, + device::Device, + env::Env, + target::Target, }, config::app::App, device::PromptError, - env::Error as EnvError, opts::NoiseLevel, os, util::prompt, @@ -36,34 +35,6 @@ mod dev; mod open; pub(crate) mod project; -#[derive(Debug, thiserror::Error)] -enum Error { - #[error(transparent)] - EnvInitFailed(EnvError), - #[error(transparent)] - AndroidEnvInitFailed(AndroidEnvError), - #[error(transparent)] - InitDotCargo(super::init::Error), - #[error("invalid tauri configuration: {0}")] - InvalidTauriConfig(String), - #[error("{0}")] - ProjectNotInitialized(String), - #[error(transparent)] - OpenFailed(os::OpenFileError), - #[error("{0}")] - DevFailed(String), - #[error("{0}")] - BuildFailed(String), - #[error(transparent)] - AndroidStudioScriptFailed(BuildError), - #[error(transparent)] - RunFailed(RunError), - #[error("{0}")] - TargetInvalid(String), - #[error(transparent)] - FailedToPromptForDevice(PromptError), -} - #[derive(Parser)] #[clap( author, @@ -138,11 +109,10 @@ pub fn get_config( fn with_config( cli_options: Option, - f: impl FnOnce(&App, &AndroidConfig, &AndroidMetadata, CliOptions) -> Result, -) -> Result { + f: impl FnOnce(&App, &AndroidConfig, &AndroidMetadata, CliOptions) -> Result, +) -> Result { let (app, config, metadata, cli_options) = { - let tauri_config = - get_tauri_config(None).map_err(|e| Error::InvalidTauriConfig(e.to_string()))?; + let tauri_config = get_tauri_config(None)?; let tauri_config_guard = tauri_config.lock().unwrap(); let tauri_config_ = tauri_config_guard.as_ref().unwrap(); let cli_options = @@ -153,9 +123,9 @@ fn with_config( f(&app, &config, &metadata, cli_options) } -fn env() -> Result { - let env = super::env().map_err(Error::EnvInitFailed)?; - cargo_mobile::android::env::Env::from_env(env).map_err(Error::AndroidEnvInitFailed) +fn env() -> Result { + let env = super::env()?; + cargo_mobile::android::env::Env::from_env(env).map_err(Into::into) } fn delete_codegen_vars() { diff --git a/tooling/cli/src/mobile/android/android_studio_script.rs b/tooling/cli/src/mobile/android/android_studio_script.rs index 1c91f2f9f746..cf3bc974a8fc 100644 --- a/tooling/cli/src/mobile/android/android_studio_script.rs +++ b/tooling/cli/src/mobile/android/android_studio_script.rs @@ -1,4 +1,4 @@ -use super::{detect_target_ok, ensure_init, env, init_dot_cargo, with_config, Error, MobileTarget}; +use super::{detect_target_ok, ensure_init, env, init_dot_cargo, with_config, MobileTarget}; use crate::Result; use clap::Parser; @@ -33,11 +33,10 @@ pub fn command(options: Options) -> Result<()> { }; with_config(None, |app, config, metadata, cli_options| { - ensure_init(config.project_dir(), MobileTarget::Android) - .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; + ensure_init(config.project_dir(), MobileTarget::Android)?; let env = env()?; - init_dot_cargo(app, Some((&env, config))).map_err(Error::InitDotCargo)?; + init_dot_cargo(app, Some((&env, config)))?; call_for_targets_with_fallback( options.targets.unwrap_or_default().iter(), @@ -53,10 +52,9 @@ pub fn command(options: Options) -> Result<()> { true, profile, ) - .map_err(Error::AndroidStudioScriptFailed) + .map_err(Into::into) }, ) - .map_err(|e| Error::TargetInvalid(e.to_string()))? + .map_err(|e| anyhow::anyhow!(e.to_string()))? }) - .map_err(Into::into) } diff --git a/tooling/cli/src/mobile/android/build.rs b/tooling/cli/src/mobile/android/build.rs index 4b37173cc798..4827557200cd 100644 --- a/tooling/cli/src/mobile/android/build.rs +++ b/tooling/cli/src/mobile/android/build.rs @@ -1,6 +1,6 @@ use super::{ delete_codegen_vars, ensure_init, env, init_dot_cargo, log_finished, open_and_wait, with_config, - Error, MobileTarget, + MobileTarget, }; use crate::{ helpers::{config::get as get_tauri_config, flock}, @@ -75,15 +75,13 @@ pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { set_var("WRY_RUSTWEBVIEWCLIENT_CLASS_EXTENSION", ""); set_var("WRY_RUSTWEBVIEW_CLASS_INIT", ""); - ensure_init(config.project_dir(), MobileTarget::Android) - .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; + ensure_init(config.project_dir(), MobileTarget::Android)?; let env = env()?; - init_dot_cargo(app, Some((&env, config))).map_err(Error::InitDotCargo)?; + init_dot_cargo(app, Some((&env, config)))?; let open = options.open; - run_build(options, config, &env, noise_level) - .map_err(|e| Error::BuildFailed(format!("{:#}", e)))?; + run_build(options, config, &env, noise_level)?; if open { open_and_wait(config, &env); @@ -176,7 +174,7 @@ fn run_build( Ok(()) } -fn get_targets_or_all<'a>(targets: Vec) -> Result>, Error> { +fn get_targets_or_all<'a>(targets: Vec) -> Result>> { if targets.is_empty() { Ok(Target::all().iter().map(|t| t.1).collect()) } else { @@ -190,10 +188,11 @@ fn get_targets_or_all<'a>(targets: Vec) -> Result>, E for t in targets { let target = Target::for_name(&t).ok_or_else(|| { - Error::TargetInvalid(format!( + anyhow::anyhow!( "Target {} is invalid; the possible targets are {}", - t, possible_targets - )) + t, + possible_targets + ) })?; outs.push(target); } diff --git a/tooling/cli/src/mobile/android/dev.rs b/tooling/cli/src/mobile/android/dev.rs index 66eaf1c1279e..d308886efee8 100644 --- a/tooling/cli/src/mobile/android/dev.rs +++ b/tooling/cli/src/mobile/android/dev.rs @@ -1,6 +1,6 @@ use super::{ delete_codegen_vars, device_prompt, ensure_init, env, init_dot_cargo, open_and_wait, with_config, - Error, MobileTarget, + MobileTarget, PromptError, }; use crate::{ helpers::{config::get as get_tauri_config, flock}, @@ -12,7 +12,9 @@ use clap::Parser; use cargo_mobile::{ android::{ + adb, config::{Config as AndroidConfig, Metadata as AndroidMetadata}, + device::RunError as DeviceRunError, env::Env, }, config::app::App, @@ -75,10 +77,8 @@ pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { WEBVIEW_CLIENT_CLASS_EXTENSION, ); set_var("WRY_RUSTWEBVIEW_CLASS_INIT", WEBVIEW_CLASS_INIT); - ensure_init(config.project_dir(), MobileTarget::Android) - .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; - run_dev(options, app, config, metadata, noise_level) - .map_err(|e| Error::DevFailed(format!("{:#}", e))) + ensure_init(config.project_dir(), MobileTarget::Android)?; + run_dev(options, app, config, metadata, noise_level).map_err(Into::into) }, ) .map_err(Into::into) @@ -110,7 +110,7 @@ fn run_dev( let _lock = flock::open_rw(&out_dir.join("lock").with_extension("android"), "Android")?; let env = env()?; - init_dot_cargo(app, Some((&env, config))).map_err(Error::InitDotCargo)?; + init_dot_cargo(app, Some((&env, config)))?; let open = options.open; let exit_on_panic = options.exit_on_panic; @@ -142,7 +142,7 @@ fn run_dev( }); Ok(Box::new(c) as Box) } - Err(Error::FailedToPromptForDevice(e)) => { + Err(RunError::FailedToPromptForDevice(e)) => { log::error!("{}", e); open_and_wait(config, &env) } @@ -153,13 +153,21 @@ fn run_dev( ) } +#[derive(Debug, thiserror::Error)] +enum RunError { + #[error(transparent)] + FailedToPromptForDevice(PromptError), + #[error(transparent)] + RunFailed(DeviceRunError), +} + fn run( options: MobileOptions, config: &AndroidConfig, env: &Env, metadata: &AndroidMetadata, noise_level: NoiseLevel, -) -> Result { +) -> Result { let profile = if options.debug { Profile::Debug } else { @@ -169,7 +177,7 @@ fn run( let build_app_bundle = metadata.asset_packs().is_some(); device_prompt(env) - .map_err(Error::FailedToPromptForDevice)? + .map_err(RunError::FailedToPromptForDevice)? .run( config, env, @@ -181,5 +189,5 @@ fn run( ".MainActivity".into(), ) .map(DevChild::new) - .map_err(Error::RunFailed) + .map_err(RunError::RunFailed) } diff --git a/tooling/cli/src/mobile/android/open.rs b/tooling/cli/src/mobile/android/open.rs index f4f147ad9f8c..b67c2aaec3ae 100644 --- a/tooling/cli/src/mobile/android/open.rs +++ b/tooling/cli/src/mobile/android/open.rs @@ -1,4 +1,4 @@ -use super::{ensure_init, env, with_config, Error, MobileTarget}; +use super::{ensure_init, env, with_config, MobileTarget}; use crate::Result; use cargo_mobile::os; @@ -6,12 +6,9 @@ pub fn command() -> Result<()> { with_config( Some(Default::default()), |_root_conf, config, _metadata, _cli_options| { - ensure_init(config.project_dir(), MobileTarget::Android) - .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; + ensure_init(config.project_dir(), MobileTarget::Android)?; let env = env()?; - os::open_file_with("Android Studio", config.project_dir(), &env.base) - .map_err(Error::OpenFailed) + os::open_file_with("Android Studio", config.project_dir(), &env.base).map_err(Into::into) }, ) - .map_err(Into::into) } diff --git a/tooling/cli/src/mobile/android/project.rs b/tooling/cli/src/mobile/android/project.rs index c40c54a84bcc..9182c7c8e029 100644 --- a/tooling/cli/src/mobile/android/project.rs +++ b/tooling/cli/src/mobile/android/project.rs @@ -2,13 +2,14 @@ // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT -use crate::helpers::template; +use crate::{helpers::template, Result}; +use anyhow::Context; use cargo_mobile::{ android::{ config::{Config, Metadata}, target::Target, }, - bossy, os, + os, target::TargetTrait as _, util::{ self, @@ -19,45 +20,18 @@ use cargo_mobile::{ use handlebars::Handlebars; use include_dir::{include_dir, Dir}; -use std::{ - ffi::OsStr, - fs, - path::{Path, PathBuf}, -}; +use std::{ffi::OsStr, fs, path::Path}; const TEMPLATE_DIR: Dir<'_> = include_dir!("templates/mobile/android"); -#[derive(Debug, thiserror::Error)] -pub enum Error { - #[error("failed to run rustup: {0}")] - RustupFailed(bossy::Error), - #[error("failed to process template: {0}")] - TemplateProcessingFailed(String), - #[error("failed to create directory at {path}: {cause}")] - DirectoryCreationFailed { - path: PathBuf, - cause: std::io::Error, - }, - #[error("failed to symlink asset directory")] - AssetDirSymlinkFailed, - #[error("failed to copy {src} to {dest}: {cause}")] - FileCopyFailed { - src: PathBuf, - dest: PathBuf, - cause: std::io::Error, - }, - #[error("asset source {0} is invalid")] - AssetSourceInvalid(PathBuf), -} - pub fn gen( config: &Config, metadata: &Metadata, (handlebars, mut map): (Handlebars, template::JsonMap), wrapper: &TextWrapper, -) -> Result<(), Error> { +) -> Result<()> { println!("Installing Android toolchains..."); - Target::install_all().map_err(Error::RustupFailed)?; + Target::install_all().with_context(|| "failed to run rustup")?; println!("Generating Android Studio project..."); let dest = config.project_dir(); let asset_packs = metadata.asset_packs().unwrap_or_default(); @@ -143,7 +117,7 @@ pub fn gen( options.create_new(true).write(true).open(path) }, ) - .map_err(|e| Error::TemplateProcessingFailed(e.to_string()))?; + .with_context(|| "failed to process template")?; if !asset_packs.is_empty() { Report::action_request( @@ -157,23 +131,27 @@ pub fn gen( let source_src = config.app().root_dir().join(&source); let source_file = source_src .file_name() - .ok_or_else(|| Error::AssetSourceInvalid(source_src.clone()))?; + .ok_or_else(|| anyhow::anyhow!("asset source {} is invalid", source_src.display()))?; fs::copy(&source_src, source_dest.join(source_file)).map_err(|cause| { - Error::FileCopyFailed { - src: source_src, - dest: source_dest.clone(), - cause, - } + anyhow::anyhow!( + "failed to copy {} to {}: {}", + source_src.display(), + source_dest.display(), + cause + ) })?; } let dest = prefix_path(dest, "app/src/main/"); - fs::create_dir_all(&dest).map_err(|cause| Error::DirectoryCreationFailed { - path: dest.clone(), - cause, + fs::create_dir_all(&dest).map_err(|cause| { + anyhow::anyhow!( + "failed to create directory at {}: {}", + dest.display(), + cause + ) })?; os::ln::force_symlink_relative(config.app().asset_dir(), dest, ln::TargetStyle::Directory) - .map_err(|_| Error::AssetDirSymlinkFailed)?; + .map_err(|_| anyhow::anyhow!("failed to symlink asset directory"))?; Ok(()) } diff --git a/tooling/cli/src/mobile/init.rs b/tooling/cli/src/mobile/init.rs index 13204def507c..26838e2b624d 100644 --- a/tooling/cli/src/mobile/init.rs +++ b/tooling/cli/src/mobile/init.rs @@ -7,10 +7,8 @@ use crate::helpers::{config::get as get_tauri_config, template::JsonMap}; use crate::Result; use cargo_mobile::{ android::{ - self, config::Config as AndroidConfig, env::Env as AndroidEnv, ndk, - target::Target as AndroidTarget, + config::Config as AndroidConfig, env::Env as AndroidEnv, target::Target as AndroidTarget, }, - bossy, config::app::App, dot_cargo, os::code_command, @@ -23,7 +21,7 @@ use cargo_mobile::{ use clap::Parser; use handlebars::{Context, Handlebars, Helper, HelperResult, Output, RenderContext, RenderError}; -use std::{env::current_dir, fs, io, path::PathBuf}; +use std::{env::current_dir, fs, path::PathBuf}; #[derive(Debug, Parser)] #[clap(about = "Initializes a Tauri Android project")] @@ -41,39 +39,8 @@ pub fn command(mut options: Options, target: Target) -> Result<()> { Ok(()) } -#[derive(Debug, thiserror::Error)] -pub enum Error { - #[error("invalid tauri configuration: {0}")] - InvalidTauriConfig(String), - #[error("failed to create asset dir {asset_dir}: {cause}")] - AssetDirCreation { - asset_dir: PathBuf, - cause: io::Error, - }, - #[error("failed to install LLDB VS Code extension: {0}")] - LldbExtensionInstall(bossy::Error), - #[error(transparent)] - DotCargoLoad(dot_cargo::LoadError), - #[error(transparent)] - DotCargoGenFailed(ndk::MissingToolError), - #[error(transparent)] - HostTargetTripleDetection(util::HostTargetTripleError), - #[cfg(target_os = "macos")] - #[error(transparent)] - IosInit(super::ios::project::Error), - #[error(transparent)] - AndroidEnv(android::env::Error), - #[error(transparent)] - AndroidInit(super::android::project::Error), - #[error(transparent)] - DotCargoWrite(dot_cargo::WriteError), -} - -pub fn init_dot_cargo( - app: &App, - android: Option<(&AndroidEnv, &AndroidConfig)>, -) -> Result<(), Error> { - let mut dot_cargo = dot_cargo::DotCargo::load(app).map_err(Error::DotCargoLoad)?; +pub fn init_dot_cargo(app: &App, android: Option<(&AndroidEnv, &AndroidConfig)>) -> Result<()> { + let mut dot_cargo = dot_cargo::DotCargo::load(app)?; // Mysteriously, builds that don't specify `--target` seem to fight over // the build cache with builds that use `--target`! This means that // alternating between i.e. `cargo run` and `cargo apple run` would @@ -84,21 +51,18 @@ pub fn init_dot_cargo( // // This behavior could be explained here: // https://doc.rust-lang.org/cargo/reference/config.html#buildrustflags - dot_cargo - .set_default_target(util::host_target_triple().map_err(Error::HostTargetTripleDetection)?); + dot_cargo.set_default_target(util::host_target_triple()?); if let Some((env, config)) = android { for target in AndroidTarget::all().values() { dot_cargo.insert_target( target.triple.to_owned(), - target - .generate_cargo_config(config, env) - .map_err(Error::DotCargoGenFailed)?, + target.generate_cargo_config(config, env)?, ); } } - dot_cargo.write(app).map_err(Error::DotCargoWrite) + dot_cargo.write(app).map_err(Into::into) } pub fn exec( @@ -107,9 +71,8 @@ pub fn exec( non_interactive: bool, skip_dev_tools: bool, #[allow(unused_variables)] reinstall_deps: bool, -) -> Result { - let tauri_config = - get_tauri_config(None).map_err(|e| Error::InvalidTauriConfig(e.to_string()))?; +) -> Result { + let tauri_config = get_tauri_config(None)?; let tauri_config_guard = tauri_config.lock().unwrap(); let tauri_config_ = tauri_config_guard.as_ref().unwrap(); @@ -117,7 +80,12 @@ pub fn exec( let asset_dir = app.asset_dir(); if !asset_dir.is_dir() { - fs::create_dir_all(&asset_dir).map_err(|cause| Error::AssetDirCreation { asset_dir, cause })?; + fs::create_dir_all(&asset_dir).map_err(|cause| { + anyhow::anyhow!( + "failed to create asset dir {path}: {cause}", + path = asset_dir.display() + ) + })?; } if !skip_dev_tools && util::command_present("code").unwrap_or_default() { let mut command = code_command(); @@ -125,9 +93,7 @@ pub fn exec( if non_interactive { command.add_arg("--force"); } - command - .run_and_wait() - .map_err(Error::LldbExtensionInstall)?; + command.run_and_wait()?; } let (handlebars, mut map) = handlebars(&app); @@ -173,8 +139,7 @@ pub fn exec( let (app, config, metadata) = super::android::get_config(Some(app), tauri_config_, &Default::default()); map.insert("android", &config); - super::android::project::gen(&config, &metadata, (handlebars, map), wrapper) - .map_err(Error::AndroidInit)?; + super::android::project::gen(&config, &metadata, (handlebars, map), wrapper)?; init_dot_cargo(&app, Some((&env, &config)))?; app } @@ -188,7 +153,7 @@ pub fn exec( init_dot_cargo(&app, None)?; app } else { - return Err(Error::AndroidEnv(err)); + return Err(err.into()); } } }, @@ -206,8 +171,7 @@ pub fn exec( non_interactive, skip_dev_tools, reinstall_deps, - ) - .map_err(Error::IosInit)?; + )?; init_dot_cargo(&app, None)?; app } diff --git a/tooling/cli/src/mobile/ios.rs b/tooling/cli/src/mobile/ios.rs index e37de65ddef3..907bfaf6bc4e 100644 --- a/tooling/cli/src/mobile/ios.rs +++ b/tooling/cli/src/mobile/ios.rs @@ -8,15 +8,15 @@ use cargo_mobile::{ Config as AppleConfig, Metadata as AppleMetadata, Platform as ApplePlatform, Raw as RawAppleConfig, }, - device::{Device, RunError}, + device::Device, ios_deploy, - target::{CompileLibError, Target}, + target::Target, }, config::app::App, device::PromptError, - env::{Env, Error as EnvError}, + env::Env, opts::NoiseLevel, - os, util, + os, util::prompt, }; use clap::{Parser, Subcommand}; @@ -31,50 +31,12 @@ use crate::{ Result, }; -use std::path::PathBuf; - mod build; mod dev; mod open; pub(crate) mod project; mod xcode_script; -#[derive(Debug, thiserror::Error)] -enum Error { - #[error(transparent)] - EnvInitFailed(#[from] EnvError), - #[error(transparent)] - InitDotCargo(super::init::Error), - #[error("invalid tauri configuration: {0}")] - InvalidTauriConfig(String), - #[error("{0}")] - ProjectNotInitialized(String), - #[error(transparent)] - OpenFailed(os::OpenFileError), - #[error("{0}")] - DevFailed(String), - #[error("{0}")] - BuildFailed(String), - #[error(transparent)] - NoHomeDir(util::NoHomeDir), - #[error("SDK root provided by Xcode was invalid. {sdk_root} doesn't exist or isn't a directory")] - SdkRootInvalid { sdk_root: PathBuf }, - #[error("Include dir was invalid. {include_dir} doesn't exist or isn't a directory")] - IncludeDirInvalid { include_dir: PathBuf }, - #[error("macOS SDK root was invalid. {macos_sdk_root} doesn't exist or isn't a directory")] - MacosSdkRootInvalid { macos_sdk_root: PathBuf }, - #[error("Arch specified by Xcode was invalid. {arch} isn't a known arch")] - ArchInvalid { arch: String }, - #[error(transparent)] - CompileLibFailed(CompileLibError), - #[error(transparent)] - FailedToPromptForDevice(PromptError), - #[error(transparent)] - RunFailed(RunError), - #[error("{0}")] - TargetInvalid(String), -} - #[derive(Parser)] #[clap( author, @@ -146,11 +108,10 @@ pub fn get_config( fn with_config( cli_options: Option, - f: impl FnOnce(&App, &AppleConfig, &AppleMetadata, CliOptions) -> Result, -) -> Result { + f: impl FnOnce(&App, &AppleConfig, &AppleMetadata, CliOptions) -> Result, +) -> Result { let (app, config, metadata, cli_options) = { - let tauri_config = - get_tauri_config(None).map_err(|e| Error::InvalidTauriConfig(e.to_string()))?; + let tauri_config = get_tauri_config(None)?; let tauri_config_guard = tauri_config.lock().unwrap(); let tauri_config_ = tauri_config_guard.as_ref().unwrap(); let cli_options = cli_options.unwrap_or_else(|| read_options(tauri_config_, MobileTarget::Ios)); diff --git a/tooling/cli/src/mobile/ios/build.rs b/tooling/cli/src/mobile/ios/build.rs index be6a2143701d..9f771eed969f 100644 --- a/tooling/cli/src/mobile/ios/build.rs +++ b/tooling/cli/src/mobile/ios/build.rs @@ -1,6 +1,6 @@ use super::{ detect_target_ok, ensure_init, env, init_dot_cargo, log_finished, open_and_wait, with_config, - Error, MobileTarget, + MobileTarget, }; use crate::{ helpers::{config::get as get_tauri_config, flock}, @@ -67,15 +67,13 @@ pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { with_config( Some(Default::default()), |app, config, _metadata, _cli_options| { - ensure_init(config.project_dir(), MobileTarget::Ios) - .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; + ensure_init(config.project_dir(), MobileTarget::Ios)?; let env = env()?; - init_dot_cargo(app, None).map_err(Error::InitDotCargo)?; + init_dot_cargo(app, None)?; let open = options.open; - run_build(options, config, &env, noise_level) - .map_err(|e| Error::BuildFailed(format!("{:#}", e)))?; + run_build(options, config, &env, noise_level)?; if open { open_and_wait(config, &env); @@ -157,7 +155,7 @@ fn run_build( anyhow::Result::Ok(()) }, ) - .map_err(|e: TargetInvalid| Error::TargetInvalid(e.to_string()))? + .map_err(|e: TargetInvalid| anyhow::anyhow!(e.to_string()))? .map_err(|e: anyhow::Error| e)?; log_finished(out_files, "IPA"); diff --git a/tooling/cli/src/mobile/ios/dev.rs b/tooling/cli/src/mobile/ios/dev.rs index c1e2621982ac..3f8001de1d21 100644 --- a/tooling/cli/src/mobile/ios/dev.rs +++ b/tooling/cli/src/mobile/ios/dev.rs @@ -1,5 +1,5 @@ use super::{ - device_prompt, ensure_init, env, init_dot_cargo, open_and_wait, with_config, Error, MobileTarget, + device_prompt, ensure_init, env, init_dot_cargo, open_and_wait, with_config, MobileTarget, }; use crate::{ helpers::{config::get as get_tauri_config, flock}, @@ -10,8 +10,9 @@ use crate::{ use clap::Parser; use cargo_mobile::{ - apple::config::Config as AppleConfig, + apple::{config::Config as AppleConfig, device::RunError as DeviceRunError, ios_deploy}, config::app::App, + device::PromptError, env::Env, opts::{NoiseLevel, Profile}, }; @@ -58,12 +59,10 @@ pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { with_config( Some(Default::default()), |app, config, _metadata, _cli_options| { - ensure_init(config.project_dir(), MobileTarget::Ios) - .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; - run_dev(options, app, config, noise_level).map_err(|e| Error::DevFailed(format!("{:#}", e))) + ensure_init(config.project_dir(), MobileTarget::Ios)?; + run_dev(options, app, config, noise_level).map_err(Into::into) }, ) - .map_err(Into::into) } fn run_dev( @@ -76,8 +75,7 @@ fn run_dev( let mut interface = crate::dev::setup(&mut dev_options)?; let bundle_identifier = { - let tauri_config = - get_tauri_config(None).map_err(|e| Error::InvalidTauriConfig(e.to_string()))?; + let tauri_config = get_tauri_config(None)?; let tauri_config_guard = tauri_config.lock().unwrap(); let tauri_config_ = tauri_config_guard.as_ref().unwrap(); tauri_config_.tauri.bundle.identifier.clone() @@ -92,7 +90,7 @@ fn run_dev( let _lock = flock::open_rw(&out_dir.join("lock").with_extension("ios"), "iOS")?; let env = env()?; - init_dot_cargo(app, None).map_err(Error::InitDotCargo)?; + init_dot_cargo(app, None)?; let open = options.open; let exit_on_panic = options.exit_on_panic; @@ -124,7 +122,7 @@ fn run_dev( }); Ok(Box::new(c) as Box) } - Err(Error::FailedToPromptForDevice(e)) => { + Err(RunError::FailedToPromptForDevice(e)) => { log::error!("{}", e); open_and_wait(config, &env) } @@ -135,12 +133,19 @@ fn run_dev( ) } +#[derive(Debug, thiserror::Error)] +enum RunError { + #[error(transparent)] + FailedToPromptForDevice(PromptError), + #[error(transparent)] + RunFailed(DeviceRunError), +} fn run( options: MobileOptions, config: &AppleConfig, env: &Env, noise_level: NoiseLevel, -) -> Result { +) -> Result { let profile = if options.debug { Profile::Debug } else { @@ -150,8 +155,8 @@ fn run( let non_interactive = true; // ios-deploy --noninteractive (quit when app crashes or exits) device_prompt(env) - .map_err(Error::FailedToPromptForDevice)? + .map_err(RunError::FailedToPromptForDevice)? .run(config, env, noise_level, non_interactive, profile) .map(DevChild::new) - .map_err(Error::RunFailed) + .map_err(RunError::RunFailed) } diff --git a/tooling/cli/src/mobile/ios/open.rs b/tooling/cli/src/mobile/ios/open.rs index 0304516ddc7a..9d3f52b42322 100644 --- a/tooling/cli/src/mobile/ios/open.rs +++ b/tooling/cli/src/mobile/ios/open.rs @@ -1,4 +1,4 @@ -use super::{ensure_init, env, with_config, Error, MobileTarget}; +use super::{ensure_init, env, with_config, MobileTarget}; use crate::Result; use cargo_mobile::os; @@ -6,11 +6,9 @@ pub fn command() -> Result<()> { with_config( Some(Default::default()), |_root_conf, config, _metadata, _cli_options| { - ensure_init(config.project_dir(), MobileTarget::Ios) - .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?; + ensure_init(config.project_dir(), MobileTarget::Ios)?; let env = env()?; - os::open_file_with("Xcode", config.project_dir(), &env).map_err(Error::OpenFailed) + os::open_file_with("Xcode", config.project_dir(), &env).map_err(Into::into) }, ) - .map_err(Into::into) } diff --git a/tooling/cli/src/mobile/ios/project.rs b/tooling/cli/src/mobile/ios/project.rs index a0e5a8f35f5e..e1ae7213ce6f 100644 --- a/tooling/cli/src/mobile/ios/project.rs +++ b/tooling/cli/src/mobile/ios/project.rs @@ -2,7 +2,8 @@ // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT -use crate::helpers::template; +use crate::{helpers::template, Result}; +use anyhow::Context; use cargo_mobile::{ apple::{ config::{Config, Metadata}, @@ -23,29 +24,6 @@ use std::{ const TEMPLATE_DIR: Dir<'_> = include_dir!("templates/mobile/ios"); -#[derive(Debug, thiserror::Error)] -pub enum Error { - #[error(transparent)] - Rustup(bossy::Error), - #[error(transparent)] - RustVersionCheck(util::RustVersionError), - #[error("failed to install Apple dependencies: {0}")] - DepsInstall(deps::Error), - #[error("failed to process template: {0}")] - TemplateProcessing(String), - #[error("failed to symlink asset directory")] - AssetDirSymlink, - #[error("failed to create directory at {path}: {cause}")] - DirectoryCreation { - path: PathBuf, - cause: std::io::Error, - }, - #[error("failed to run `xcodegen`: {0}")] - Xcodegen(bossy::Error), - #[error("failed to run `pod install`: {0}")] - PodInstall(bossy::Error), -} - // unprefixed app_root seems pretty dangerous!! // TODO: figure out what cargo-mobile meant by that pub fn gen( @@ -56,13 +34,13 @@ pub fn gen( non_interactive: bool, skip_dev_tools: bool, reinstall_deps: bool, -) -> Result<(), Error> { +) -> Result<()> { println!("Installing iOS toolchains..."); - Target::install_all().map_err(Error::Rustup)?; - rust_version_check(wrapper).map_err(Error::RustVersionCheck)?; + Target::install_all()?; + rust_version_check(wrapper)?; deps::install_all(wrapper, non_interactive, skip_dev_tools, reinstall_deps) - .map_err(Error::DepsInstall)?; + .with_context(|| "failed to install Apple dependencies")?; let dest = config.project_dir(); let rel_prefix = util::relativize_path(config.app().root_dir(), &dest); @@ -161,16 +139,18 @@ pub fn gen( File::create(path) }, ) - .map_err(|e| Error::TemplateProcessing(e.to_string()))?; + .with_context(|| "failed to process template")?; ln::force_symlink_relative(config.app().asset_dir(), &dest, ln::TargetStyle::Directory) - .map_err(|_| Error::AssetDirSymlink)?; + .map_err(|_| anyhow::anyhow!("failed to symlink asset directory"))?; // Create all asset catalog directories if they don't already exist for dir in asset_catalogs { - std::fs::create_dir_all(dir).map_err(|cause| Error::DirectoryCreation { - path: dest.clone(), - cause, + std::fs::create_dir_all(dir).map_err(|cause| { + anyhow::anyhow!( + "failed to create directory at {path}: {cause}", + path = dir.display() + ) })?; } @@ -181,13 +161,13 @@ pub fn gen( .with_args(&["generate", "--spec"]) .with_arg(dest.join("project.yml")) .run_and_wait() - .map_err(Error::Xcodegen)?; + .with_context(|| "failed to run `xcodegen`")?; if !ios_pods.is_empty() || !macos_pods.is_empty() { bossy::Command::impure_parse("pod install") .with_arg(format!("--project-directory={}", dest.display())) .run_and_wait() - .map_err(Error::PodInstall)?; + .with_context(|| "failed to run `pod install`")?; } Ok(()) } diff --git a/tooling/cli/src/mobile/ios/xcode_script.rs b/tooling/cli/src/mobile/ios/xcode_script.rs index 4ff2e5bffe55..870edf52da82 100644 --- a/tooling/cli/src/mobile/ios/xcode_script.rs +++ b/tooling/cli/src/mobile/ios/xcode_script.rs @@ -1,4 +1,4 @@ -use super::{env, init_dot_cargo, with_config, Error}; +use super::{env, init_dot_cargo, with_config}; use crate::Result; use clap::Parser; @@ -43,24 +43,24 @@ pub fn command(options: Options) -> Result<()> { with_config(None, |root_conf, config, metadata, cli_options| { let env = env()?; - init_dot_cargo(root_conf, None).map_err(Error::InitDotCargo)?; + init_dot_cargo(root_conf, None)?; // The `PATH` env var Xcode gives us is missing any additions // made by the user's profile, so we'll manually add cargo's // `PATH`. - let env = env.prepend_to_path( - util::home_dir() - .map_err(Error::NoHomeDir)? - .join(".cargo/bin"), - ); + let env = env.prepend_to_path(util::home_dir()?.join(".cargo/bin")); if !options.sdk_root.is_dir() { - return Err(Error::SdkRootInvalid { - sdk_root: options.sdk_root, - }); + return Err(anyhow::anyhow!( + "SDK root provided by Xcode was invalid. {} doesn't exist or isn't a directory", + options.sdk_root.display(), + )); } let include_dir = options.sdk_root.join("usr/include"); if !include_dir.is_dir() { - return Err(Error::IncludeDirInvalid { include_dir }); + return Err(anyhow::anyhow!( + "Include dir was invalid. {} doesn't exist or isn't a directory", + include_dir.display() + )); } let mut host_env = HashMap::<&str, &OsStr>::new(); @@ -71,7 +71,10 @@ pub fn command(options: Options) -> Result<()> { .sdk_root .join("../../../../MacOSX.platform/Developer/SDKs/MacOSX.sdk"); if !macos_sdk_root.is_dir() { - return Err(Error::MacosSdkRootInvalid { macos_sdk_root }); + return Err(anyhow::anyhow!( + "macOS SDK root was invalid. {0} doesn't exist or isn't a directory", + macos_sdk_root.display() + )); } ( format!("-isysroot {}", macos_sdk_root.display()), @@ -98,7 +101,12 @@ pub fn command(options: Options) -> Result<()> { let triple = match arch.as_str() { "arm64" => "aarch64_apple_ios", "x86_64" => "x86_64_apple_ios", - _ => return Err(Error::ArchInvalid { arch }), + _ => { + return Err(anyhow::anyhow!( + "Arch specified by Xcode was invalid. {} isn't a known arch", + arch + )) + } }; let cflags = format!("CFLAGS_{}", triple); let cxxflags = format!("CFLAGS_{}", triple); @@ -114,21 +122,22 @@ pub fn command(options: Options) -> Result<()> { let target = if macos { &macos_target } else { - Target::for_arch(&arch).ok_or_else(|| Error::ArchInvalid { - arch: arch.to_owned(), + Target::for_arch(&arch).ok_or_else(|| { + anyhow::anyhow!( + "Arch specified by Xcode was invalid. {} isn't a known arch", + arch + ) })? }; - target - .compile_lib( - config, - metadata, - cli_options.noise_level, - true, - profile, - &env, - target_env, - ) - .map_err(Error::CompileLibFailed)?; + target.compile_lib( + config, + metadata, + cli_options.noise_level, + true, + profile, + &env, + target_env, + )?; } Ok(()) }) From 1d9226b28cc06f670ca248e3fcff9e9ffcc11a2b Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Sun, 28 Aug 2022 15:34:41 -0300 Subject: [PATCH 040/436] refactor:move iOS configuration to the bundle object (#5072) --- core/tauri-utils/src/config.rs | 16 +++++------ core/tauri/src/test/mod.rs | 1 - tooling/cli/schema.json | 49 +++++++++++++++++----------------- tooling/cli/src/mobile/ios.rs | 2 +- 4 files changed, 34 insertions(+), 34 deletions(-) diff --git a/core/tauri-utils/src/config.rs b/core/tauri-utils/src/config.rs index 36298eb600d2..6f0c13fd7688 100644 --- a/core/tauri-utils/src/config.rs +++ b/core/tauri-utils/src/config.rs @@ -594,6 +594,9 @@ pub struct BundleConfig { /// Configuration for the Windows bundle. #[serde(default)] pub windows: WindowsConfig, + /// iOS configuration. + #[serde(rename = "iOS", default)] + pub ios: IosConfig, } /// A CLI argument definition. @@ -2085,9 +2088,6 @@ pub struct TauriConfig { /// MacOS private API configuration. Enables the transparent background API and sets the `fullScreenEnabled` preference to `true`. #[serde(rename = "macOSPrivateApi", alias = "macos-private-api", default)] pub macos_private_api: bool, - /// iOS configuration. - #[serde(rename = "iOS", default)] - pub ios: IosConfig, } impl TauriConfig { @@ -3120,6 +3120,7 @@ mod build { let macos = quote!(Default::default()); let external_bin = opt_vec_str_lit(self.external_bin.as_ref()); let windows = &self.windows; + let ios = quote!(Default::default()); literal_struct!( tokens, @@ -3137,7 +3138,8 @@ mod build { deb, macos, external_bin, - windows + windows, + ios ); } } @@ -3458,7 +3460,6 @@ mod build { let system_tray = opt_lit(self.system_tray.as_ref()); let allowlist = &self.allowlist; let macos_private_api = self.macos_private_api; - let ios = quote!(Default::default()); literal_struct!( tokens, @@ -3471,8 +3472,7 @@ mod build { security, system_tray, allowlist, - macos_private_api, - ios + macos_private_api ); } } @@ -3552,6 +3552,7 @@ mod test { macos: Default::default(), external_bin: None, windows: Default::default(), + ios: Default::default(), }, cli: None, updater: UpdaterConfig { @@ -3570,7 +3571,6 @@ mod test { allowlist: AllowlistConfig::default(), system_tray: None, macos_private_api: false, - ios: Default::default(), }; // create a build config diff --git a/core/tauri/src/test/mod.rs b/core/tauri/src/test/mod.rs index 9f4357b36efe..bf0bb33e074b 100644 --- a/core/tauri/src/test/mod.rs +++ b/core/tauri/src/test/mod.rs @@ -61,7 +61,6 @@ pub fn mock_context(assets: A) -> crate::Context { updater: Default::default(), system_tray: None, macos_private_api: false, - ios: Default::default(), }, build: Default::default(), plugins: Default::default(), diff --git a/tooling/cli/schema.json b/tooling/cli/schema.json index 6322c3c7c6c5..141dba7de1a5 100644 --- a/tooling/cli/schema.json +++ b/tooling/cli/schema.json @@ -124,6 +124,7 @@ "deb": { "files": {} }, + "iOS": {}, "icon": [], "identifier": "", "macOS": { @@ -144,7 +145,6 @@ "wix": null } }, - "iOS": {}, "macOSPrivateApi": false, "pattern": { "use": "brownfield" @@ -260,6 +260,7 @@ "deb": { "files": {} }, + "iOS": {}, "icon": [], "identifier": "", "macOS": { @@ -427,15 +428,6 @@ "description": "MacOS private API configuration. Enables the transparent background API and sets the `fullScreenEnabled` preference to `true`.", "default": false, "type": "boolean" - }, - "iOS": { - "description": "iOS configuration.", - "default": {}, - "allOf": [ - { - "$ref": "#/definitions/IosConfig" - } - ] } }, "additionalProperties": false @@ -1042,6 +1034,15 @@ "$ref": "#/definitions/WindowsConfig" } ] + }, + "iOS": { + "description": "iOS configuration.", + "default": {}, + "allOf": [ + { + "$ref": "#/definitions/IosConfig" + } + ] } }, "additionalProperties": false @@ -1493,6 +1494,20 @@ }, "additionalProperties": false }, + "IosConfig": { + "description": "General configuration for the iOS target.", + "type": "object", + "properties": { + "developmentTeam": { + "description": "The development team. This value is required for iOS development because code signing is enforced. The `TAURI_APPLE_DEVELOPMENT_TEAM` environment variable can be set to overwrite it.", + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + }, "AllowlistConfig": { "description": "Allowlist configuration.", "type": "object", @@ -2428,20 +2443,6 @@ }, "additionalProperties": false }, - "IosConfig": { - "description": "General configuration for the iOS target.", - "type": "object", - "properties": { - "developmentTeam": { - "description": "The development team. This value is required for iOS development because code signing is enforced. The `TAURI_APPLE_DEVELOPMENT_TEAM` environment variable can be set to overwrite it.", - "type": [ - "string", - "null" - ] - } - }, - "additionalProperties": false - }, "BuildConfig": { "description": "The Build configuration object.", "type": "object", diff --git a/tooling/cli/src/mobile/ios.rs b/tooling/cli/src/mobile/ios.rs index 907bfaf6bc4e..f9c8d3cc1546 100644 --- a/tooling/cli/src/mobile/ios.rs +++ b/tooling/cli/src/mobile/ios.rs @@ -84,7 +84,7 @@ pub fn get_config( let raw = RawAppleConfig { development_team: std::env::var("TAURI_APPLE_DEVELOPMENT_TEAM") .ok() - .or_else(|| config.tauri.ios.development_team.clone()) + .or_else(|| config.tauri.bundle.ios.development_team.clone()) .expect("you must set `tauri > iOS > developmentTeam` config value or the `TAURI_APPLE_DEVELOPMENT_TEAM` environment variable"), ios_features: ios_options.features.clone(), bundle_version: config.package.version.clone(), From c4d323b70fa9fe02098be76ef7e8728b01a4d7b4 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Sun, 28 Aug 2022 17:50:05 -0300 Subject: [PATCH 041/436] fix(ci): set target on test-core.yml --- .github/workflows/test-core.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-core.yml b/.github/workflows/test-core.yml index a89eb8690a58..5735c3bb9c8c 100644 --- a/.github/workflows/test-core.yml +++ b/.github/workflows/test-core.yml @@ -101,6 +101,6 @@ jobs: - name: test run: | - cargo test - cargo test --features api-all - cargo test --features compression,wry,isolation,custom-protocol,api-all,cli,updater,system-tray,windows7-compat,http-multipart + cargo test --target ${{ matrix.platform.target }} + cargo test --target ${{ matrix.platform.target }} --features api-all + cargo test --target ${{ matrix.platform.target }} --features compression,wry,isolation,custom-protocol,api-all,cli,updater,system-tray,windows7-compat,http-multipart From 65e7085d2f6aecbe69500a9d9fa3f1e9bb186dc1 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Sun, 28 Aug 2022 17:52:40 -0300 Subject: [PATCH 042/436] fix(ci): checkout repo in udeps.yml --- .github/workflows/udeps.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/udeps.yml b/.github/workflows/udeps.yml index 8a98eafe6209..1bd56bcc9833 100644 --- a/.github/workflows/udeps.yml +++ b/.github/workflows/udeps.yml @@ -33,6 +33,7 @@ jobs: bundler: ${{ steps.filter.outputs.bundler }} cli: ${{ steps.filter.outputs.cli }} steps: + - uses: actions/checkout@v2 - uses: dorny/paths-filter@v2 id: filter with: From b36ccb7e991997efe45ec68e6c264974c4018066 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Sun, 28 Aug 2022 23:02:32 -0300 Subject: [PATCH 043/436] feat(ci): test mobile targets (#5078) --- .github/workflows/test-core.yml | 61 +++++++++++++++++++++++--- Cargo.toml | 1 - core/tauri-codegen/Cargo.toml | 4 +- core/tauri-codegen/src/context.rs | 1 + core/tests/app-updater/tests/update.rs | 7 ++- 5 files changed, 64 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test-core.yml b/.github/workflows/test-core.yml index 5735c3bb9c8c..855de09eeb5a 100644 --- a/.github/workflows/test-core.yml +++ b/.github/workflows/test-core.yml @@ -18,6 +18,9 @@ env: RUST_BACKTRACE: 1 CARGO_INCREMENTAL: 0 # This is set to 0 by the https://github.com/Swatinem/rust-cache CARGO_PROFILE_DEV_DEBUG: 0 # This would add unnecessary bloat to the target folder, decreasing cache efficiency. + WRY_ANDROID_REVERSED_DOMAIN: 'app.tauri' + WRY_ANDROID_APP_NAME_SNAKE_CASE: 'dev' + WRY_ANDROID_KOTLIN_FILES_OUT_DIR: 'out' concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -34,17 +37,37 @@ jobs: - { target: x86_64-pc-windows-msvc, os: windows-latest, - toolchain: '1.61.0' + toolchain: '1.61.0', + cross: false, + command: 'test' } - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, - toolchain: '1.57.0' + toolchain: '1.57.0', + cross: false, + command: 'test' } - { target: x86_64-apple-darwin, os: macos-latest, - toolchain: '1.57.0' + toolchain: '1.57.0', + cross: false, + command: 'test' + } + - { + target: aarch64-apple-ios, + os: macos-latest, + toolchain: '1.57.0', + cross: false, + acommand: 'build' + } + - { + target: aarch64-linux-android, + os: ubuntu-latest, + toolchain: '1.57.0', + cross: true, + command: 'build' } steps: @@ -54,6 +77,7 @@ jobs: with: toolchain: ${{ matrix.platform.toolchain }} target: ${{ matrix.platform.target }} + override: true - name: install Linux dependencies if: contains(matrix.platform.target, 'unknown-linux') run: | @@ -99,8 +123,31 @@ jobs: ${{ matrix.platform.os }}-${{ matrix.platform.toolchain }}- ${{ matrix.platform.os }}- - - name: test + - name: create kotlin out dir + if: contains(matrix.platform.target, 'android') + run: mkdir out + + - name: pin time run: | - cargo test --target ${{ matrix.platform.target }} - cargo test --target ${{ matrix.platform.target }} --features api-all - cargo test --target ${{ matrix.platform.target }} --features compression,wry,isolation,custom-protocol,api-all,cli,updater,system-tray,windows7-compat,http-multipart + cargo update -p time --precise 0.3.13 + + - name: test + uses: actions-rs/cargo@v1 + with: + use-cross: ${{ matrix.platform.cross }} + command: ${{ matrix.platform.command }} + args: --target ${{ matrix.platform.target }} --features native-tls-vendored + + - name: test api-all + uses: actions-rs/cargo@v1 + with: + use-cross: ${{ matrix.platform.cross }} + command: ${{ matrix.platform.command }} + args: --target ${{ matrix.platform.target }} --features native-tls-vendored,api-all + + - name: test all features + uses: actions-rs/cargo@v1 + with: + use-cross: ${{ matrix.platform.cross }} + command: ${{ matrix.platform.command }} + args: --target ${{ matrix.platform.target }} --features native-tls-vendored,compression,wry,isolation,custom-protocol,api-all,cli,updater,system-tray,windows7-compat,http-multipart diff --git a/Cargo.toml b/Cargo.toml index 4d739f1489f8..53de27cd06d3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,6 @@ exclude = [ # default to small, optimized workspace release binaries [profile.release] -strip = true panic = "abort" codegen-units = 1 lto = true diff --git a/core/tauri-codegen/Cargo.toml b/core/tauri-codegen/Cargo.toml index 0c90dff3ef85..f8c17181d0f7 100644 --- a/core/tauri-codegen/Cargo.toml +++ b/core/tauri-codegen/Cargo.toml @@ -29,9 +29,11 @@ semver = "1" ico = "0.1" png = "0.17" json-patch = "0.2" -local-ip-address = "0.4" url = "2" +[target."cfg(any(windows, target_os = \"linux\", target_os = \"macos\"))".dependencies] +local-ip-address = "0.4" + [target."cfg(target_os = \"macos\")".dependencies] plist = "1" time = { version = "0.3", features = [ "parsing", "formatting" ] } diff --git a/core/tauri-codegen/src/context.rs b/core/tauri-codegen/src/context.rs index 977c41513ad7..b454b4e39d09 100644 --- a/core/tauri-codegen/src/context.rs +++ b/core/tauri-codegen/src/context.rs @@ -155,6 +155,7 @@ pub fn context_codegen(data: ContextData) -> Result PathBuf { #[cfg(target_os = "ios")] fn bundle_path(root_dir: &Path, _version: &str) -> PathBuf { - root_dir.join(format!("target/debug/bundle/ios/app-updater.app")) + root_dir.join(format!("target/debug/bundle/ios/app-updater.ipa")) +} + +#[cfg(target_os = "android")] +fn bundle_path(root_dir: &Path, _version: &str) -> PathBuf { + root_dir.join(format!("target/debug/bundle/android/app-updater.apk")) } #[cfg(windows)] From e22d21beaf2ec20ac8e8a6def2c2c45f8f98c436 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Mon, 29 Aug 2022 14:46:37 -0300 Subject: [PATCH 044/436] fix(cli): add timeout on interprocess communication (#5090) --- tooling/cli/src/mobile/mod.rs | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index 9ad44e0428a4..5da42b40b113 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -179,14 +179,24 @@ fn read_options(config: &TauriConfig, target: Target) -> CliOptions { .set_nonblocking(true) .expect("failed to set local socket stream to nonblocking"); let mut conn = BufReader::new(conn); - let mut buffer = String::new(); - conn.read_line(&mut buffer).unwrap_or_else(|_| { - log::error!( + + let mut attempt = 0; + let max_tries = 5; + let buffer = loop { + let mut buffer = String::new(); + if conn.read_line(&mut buffer).is_ok() { + break buffer; + } + std::thread::sleep(std::time::Duration::from_secs(1)); + attempt += 1; + if attempt == max_tries { + log::error!( "failed to connect to local socket. You must keep the Tauri CLI alive with the `{cmd} dev` or `{cmd} build --open` commands.", cmd = target.command_name() ); - std::process::exit(1); - }); + std::process::exit(1); + } + }; let options: CliOptions = serde_json::from_str(&buffer).expect("invalid CLI options"); for (k, v) in &options.vars { set_var(k, v); From 82e8751ae8ad93d1ccae75e0ef474403ed6fc8fa Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Tue, 30 Aug 2022 10:27:53 -0300 Subject: [PATCH 045/436] feat(cli): add option to run on specific Android emulator/device (#5093) --- tooling/cli/Cargo.lock | 2 +- tooling/cli/Cargo.toml | 2 +- tooling/cli/src/mobile/android.rs | 99 +++++++++++++++++++++++---- tooling/cli/src/mobile/android/dev.rs | 41 ++++++++++- 4 files changed, 127 insertions(+), 17 deletions(-) diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 3fe7a070c3c8..20e2d86e5781 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -293,7 +293,7 @@ checksum = "c1db59621ec70f09c5e9b597b220c7a2b43611f4710dc03ceb8748637775692c" [[package]] name = "cargo-mobile" version = "0.1.0" -source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#228f0eb83ccbc7bfeb0103d2f68b6664691a289d" +source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#909edf9337ec0cb42c76e0a34af61e99b15ccfe0" dependencies = [ "cocoa", "colored 1.9.3", diff --git a/tooling/cli/Cargo.toml b/tooling/cli/Cargo.toml index f10c14a6ceee..a7c40d28ccd0 100644 --- a/tooling/cli/Cargo.toml +++ b/tooling/cli/Cargo.toml @@ -28,7 +28,7 @@ name = "cargo-tauri" path = "src/main.rs" [dependencies] -# cargo-mobile = { path = "../../../cargo-mobile/", default-features = false } +#cargo-mobile = { path = "../../../cargo-mobile/", default-features = false } cargo-mobile = { git = "https://github.com/tauri-apps/cargo-mobile", branch = "dev", default-features = false } textwrap = { version = "0.11.0", features = ["term_size"] } interprocess = "1" diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index 6c1b17792292..a65ee2995a8e 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -7,6 +7,7 @@ use cargo_mobile::{ adb, config::{Config as AndroidConfig, Metadata as AndroidMetadata, Raw as RawAndroidConfig}, device::Device, + emulator, env::Env, target::Target, }, @@ -17,7 +18,11 @@ use cargo_mobile::{ util::prompt, }; use clap::{Parser, Subcommand}; -use std::env::set_var; +use std::{ + env::set_var, + thread::{sleep, spawn}, + time::Duration, +}; use super::{ ensure_init, get_app, @@ -136,19 +141,30 @@ fn delete_codegen_vars() { } } -fn device_prompt<'a>(env: &'_ Env) -> Result, PromptError> { +fn adb_device_prompt<'a>( + env: &'_ Env, + target: Option<&str>, +) -> Result, PromptError> { let device_list = adb::device_list(env).map_err(|cause| PromptError::detection_failed("Android", cause))?; if !device_list.is_empty() { let index = if device_list.len() > 1 { - prompt::list( - concat!("Detected ", "Android", " devices"), - device_list.iter(), - "device", - None, - "Device", - ) - .map_err(|cause| PromptError::prompt_failed("Android", cause))? + if let Some(t) = target { + let t = t.to_lowercase(); + device_list + .iter() + .position(|d| d.name().to_lowercase().starts_with(&t)) + .unwrap_or_default() + } else { + prompt::list( + concat!("Detected ", "Android", " devices"), + device_list.iter(), + "device", + None, + "Device", + ) + .map_err(|cause| PromptError::prompt_failed("Android", cause))? + } } else { 0 }; @@ -164,8 +180,67 @@ fn device_prompt<'a>(env: &'_ Env) -> Result, PromptError, +) -> Result> { + let emulator_list = emulator::avd_list(env).unwrap_or_default(); + if emulator_list.is_empty() { + Err(PromptError::none_detected("Android emulator")) + } else { + let index = if emulator_list.len() > 1 { + if let Some(t) = target { + let t = t.to_lowercase(); + emulator_list + .iter() + .position(|d| d.name().to_lowercase().starts_with(&t)) + .unwrap_or_default() + } else { + prompt::list( + concat!("Detected ", "Android", " emulators"), + emulator_list.iter(), + "emulator", + None, + "Emulator", + ) + .map_err(|cause| PromptError::prompt_failed("Android emulator", cause))? + } + } else { + 0 + }; + + Ok(emulator_list.iter().nth(index).cloned().unwrap()) + } +} + +fn device_prompt<'a>( + env: &'_ Env, + target: Option<&str>, +) -> Result, PromptError> { + if let Ok(device) = adb_device_prompt(env, target) { + Ok(device) + } else { + let emulator = emulator_prompt(env, target)?; + let handle = emulator.start(env).map_err(|e| { + PromptError::prompt_failed( + "Android emulator", + std::io::Error::new(std::io::ErrorKind::Other, e.to_string()), + ) + })?; + spawn(move || { + let _ = handle.wait(); + }); + loop { + sleep(Duration::from_secs(2)); + if let Ok(device) = adb_device_prompt(env, Some(emulator.name())) { + return Ok(device); + } + } + } +} + fn detect_target_ok<'a>(env: &Env) -> Option<&'a Target<'a>> { - device_prompt(env).map(|device| device.target()).ok() + device_prompt(env, None).map(|device| device.target()).ok() } fn open_and_wait(config: &AndroidConfig, env: &Env) -> ! { @@ -174,6 +249,6 @@ fn open_and_wait(config: &AndroidConfig, env: &Env) -> ! { log::error!("{}", e); } loop { - std::thread::sleep(std::time::Duration::from_secs(24 * 60 * 60)); + sleep(Duration::from_secs(24 * 60 * 60)); } } diff --git a/tooling/cli/src/mobile/android/dev.rs b/tooling/cli/src/mobile/android/dev.rs index d308886efee8..52fb6a2c0354 100644 --- a/tooling/cli/src/mobile/android/dev.rs +++ b/tooling/cli/src/mobile/android/dev.rs @@ -15,13 +15,18 @@ use cargo_mobile::{ adb, config::{Config as AndroidConfig, Metadata as AndroidMetadata}, device::RunError as DeviceRunError, + emulator, env::Env, }, config::app::App, opts::{NoiseLevel, Profile}, }; -use std::env::set_var; +use std::{ + env::set_var, + thread::{sleep, spawn}, + time::Duration, +}; const WEBVIEW_CLIENT_CLASS_EXTENSION: &str = " @android.annotation.SuppressLint(\"WebViewClientOnReceivedSslError\") @@ -50,6 +55,8 @@ pub struct Options { /// Open Android Studio instead of trying to run on a connected device #[clap(short, long)] pub open: bool, + /// Runs on the given device name + pub device: Option, } impl From for crate::dev::Options { @@ -112,9 +119,29 @@ fn run_dev( let env = env()?; init_dot_cargo(app, Some((&env, config)))?; + if let Some(device) = &options.device { + let emulators = emulator::avd_list(&env).unwrap_or_default(); + for emulator in emulators { + if emulator + .name() + .to_lowercase() + .starts_with(&device.to_lowercase()) + { + log::info!("Starting emulator {}", emulator.name()); + let handle = emulator.start(&env)?; + spawn(move || { + let _ = handle.wait(); + }); + sleep(Duration::from_secs(3)); + break; + } + } + } + let open = options.open; let exit_on_panic = options.exit_on_panic; let no_watch = options.no_watch; + let device = options.device; interface.mobile_dev( MobileOptions { debug: true, @@ -135,7 +162,14 @@ fn run_dev( if open { open_and_wait(config, &env) } else { - match run(options, config, &env, metadata, noise_level) { + match run( + device.as_deref(), + options, + config, + &env, + metadata, + noise_level, + ) { Ok(c) => { crate::dev::wait_dev_process(c.clone(), move |status, reason| { crate::dev::on_app_exit(status, reason, exit_on_panic, no_watch) @@ -162,6 +196,7 @@ enum RunError { } fn run( + device: Option<&str>, options: MobileOptions, config: &AndroidConfig, env: &Env, @@ -176,7 +211,7 @@ fn run( let build_app_bundle = metadata.asset_packs().is_some(); - device_prompt(env) + device_prompt(env, device) .map_err(RunError::FailedToPromptForDevice)? .run( config, From 9f9e3ae54d084dd50b5efffba7c43f28ef811905 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Tue, 30 Aug 2022 13:22:26 -0300 Subject: [PATCH 046/436] fix: improve target check on context codegen --- core/tauri-build/src/lib.rs | 3 +++ core/tauri-codegen/src/context.rs | 29 +++++++++-------------------- 2 files changed, 12 insertions(+), 20 deletions(-) diff --git a/core/tauri-build/src/lib.rs b/core/tauri-build/src/lib.rs index 0841dfcebabc..ac0d7bf1ae65 100644 --- a/core/tauri-build/src/lib.rs +++ b/core/tauri-build/src/lib.rs @@ -286,6 +286,9 @@ pub fn try_build(attributes: Attributes) -> Result<()> { } let target_triple = std::env::var("TARGET").unwrap(); + + println!("cargo:rustc-env=TAURI_TARGET_TRIPLE={}", target_triple); + let out_dir = PathBuf::from(std::env::var("OUT_DIR").unwrap()); // TODO: far from ideal, but there's no other way to get the target dir, see let target_dir = out_dir diff --git a/core/tauri-codegen/src/context.rs b/core/tauri-codegen/src/context.rs index b454b4e39d09..1faf2899bdc2 100644 --- a/core/tauri-codegen/src/context.rs +++ b/core/tauri-codegen/src/context.rs @@ -127,32 +127,21 @@ pub fn context_codegen(data: ContextData) -> Result Date: Tue, 30 Aug 2022 16:09:06 -0300 Subject: [PATCH 047/436] feat(cli): add option to run on specific iOS simulator/device (#5098) --- tooling/cli/Cargo.lock | 2 +- tooling/cli/Cargo.toml | 2 +- tooling/cli/src/mobile/android.rs | 2 +- tooling/cli/src/mobile/ios.rs | 87 +++++++++++++++++--- tooling/cli/src/mobile/ios/dev.rs | 41 +++++++-- tooling/cli/src/mobile/ios/project.rs | 6 +- tooling/cli/src/mobile/ios/xcode_script.rs | 1 + tooling/cli/templates/mobile/ios/project.yml | 2 +- 8 files changed, 119 insertions(+), 24 deletions(-) diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 20e2d86e5781..2d0cec6b2bcc 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -293,7 +293,7 @@ checksum = "c1db59621ec70f09c5e9b597b220c7a2b43611f4710dc03ceb8748637775692c" [[package]] name = "cargo-mobile" version = "0.1.0" -source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#909edf9337ec0cb42c76e0a34af61e99b15ccfe0" +source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#ff88cc91fbf008ee0b9b33c8e4bcb5c9b5b743e6" dependencies = [ "cocoa", "colored 1.9.3", diff --git a/tooling/cli/Cargo.toml b/tooling/cli/Cargo.toml index a7c40d28ccd0..f10c14a6ceee 100644 --- a/tooling/cli/Cargo.toml +++ b/tooling/cli/Cargo.toml @@ -28,7 +28,7 @@ name = "cargo-tauri" path = "src/main.rs" [dependencies] -#cargo-mobile = { path = "../../../cargo-mobile/", default-features = false } +# cargo-mobile = { path = "../../../cargo-mobile/", default-features = false } cargo-mobile = { git = "https://github.com/tauri-apps/cargo-mobile", branch = "dev", default-features = false } textwrap = { version = "0.11.0", features = ["term_size"] } interprocess = "1" diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index a65ee2995a8e..9b6a00632830 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -209,7 +209,7 @@ fn emulator_prompt( 0 }; - Ok(emulator_list.iter().nth(index).cloned().unwrap()) + Ok(emulator_list.into_iter().nth(index).unwrap()) } } diff --git a/tooling/cli/src/mobile/ios.rs b/tooling/cli/src/mobile/ios.rs index f9c8d3cc1546..0cc0e1a712f4 100644 --- a/tooling/cli/src/mobile/ios.rs +++ b/tooling/cli/src/mobile/ios.rs @@ -9,7 +9,7 @@ use cargo_mobile::{ Raw as RawAppleConfig, }, device::Device, - ios_deploy, + ios_deploy, simctl, target::Target, }, config::app::App, @@ -31,6 +31,11 @@ use crate::{ Result, }; +use std::{ + thread::{sleep, spawn}, + time::Duration, +}; + mod build; mod dev; mod open; @@ -121,19 +126,30 @@ fn with_config( f(&app, &config, &metadata, cli_options) } -fn device_prompt<'a>(env: &'_ Env) -> Result, PromptError> { +fn ios_deploy_device_prompt<'a>( + env: &'_ Env, + target: Option<&str>, +) -> Result, PromptError> { let device_list = ios_deploy::device_list(env).map_err(|cause| PromptError::detection_failed("iOS", cause))?; if !device_list.is_empty() { let index = if device_list.len() > 1 { - prompt::list( - concat!("Detected ", "iOS", " devices"), - device_list.iter(), - "device", - None, - "Device", - ) - .map_err(|cause| PromptError::prompt_failed("iOS", cause))? + if let Some(t) = target { + let t = t.to_lowercase(); + device_list + .iter() + .position(|d| d.name().to_lowercase().starts_with(&t)) + .unwrap_or_default() + } else { + prompt::list( + concat!("Detected ", "iOS", " devices"), + device_list.iter(), + "device", + None, + "Device", + ) + .map_err(|cause| PromptError::prompt_failed("iOS", cause))? + } } else { 0 }; @@ -149,8 +165,55 @@ fn device_prompt<'a>(env: &'_ Env) -> Result, PromptError, +) -> Result> { + let simulator_list = simctl::device_list(env) + .map_err(|cause| PromptError::detection_failed("iOS Simulator", cause))?; + if !simulator_list.is_empty() { + let index = if simulator_list.len() > 1 { + if let Some(t) = target { + let t = t.to_lowercase(); + simulator_list + .iter() + .position(|d| d.name().to_lowercase().starts_with(&t)) + .unwrap_or_default() + } else { + prompt::list( + concat!("Detected ", "iOS", " simulators"), + simulator_list.iter(), + "simulator", + None, + "Simulator", + ) + .map_err(|cause| PromptError::prompt_failed("iOS Simulator", cause))? + } + } else { + 0 + }; + let device = simulator_list.into_iter().nth(index).unwrap(); + Ok(device) + } else { + Err(PromptError::none_detected("iOS Simulator")) + } +} + +fn device_prompt<'a>(env: &'_ Env, target: Option<&str>) -> Result> { + if let Ok(device) = ios_deploy_device_prompt(env, target) { + Ok(device) + } else { + let simulator = simulator_prompt(env, target)?; + let handle = simulator.start(env)?; + spawn(move || { + let _ = handle.wait(); + }); + Ok(simulator.into()) + } +} + fn detect_target_ok<'a>(env: &Env) -> Option<&'a Target<'a>> { - device_prompt(env).map(|device| device.target()).ok() + device_prompt(env, None).map(|device| device.target()).ok() } fn open_and_wait(config: &AppleConfig, env: &Env) -> ! { @@ -159,6 +222,6 @@ fn open_and_wait(config: &AppleConfig, env: &Env) -> ! { log::error!("{}", e); } loop { - std::thread::sleep(std::time::Duration::from_secs(24 * 60 * 60)); + sleep(Duration::from_secs(24 * 60 * 60)); } } diff --git a/tooling/cli/src/mobile/ios/dev.rs b/tooling/cli/src/mobile/ios/dev.rs index 3f8001de1d21..4ab79826c71a 100644 --- a/tooling/cli/src/mobile/ios/dev.rs +++ b/tooling/cli/src/mobile/ios/dev.rs @@ -10,13 +10,17 @@ use crate::{ use clap::Parser; use cargo_mobile::{ - apple::{config::Config as AppleConfig, device::RunError as DeviceRunError, ios_deploy}, + apple::{config::Config as AppleConfig, device::RunError as DeviceRunError, simctl}, config::app::App, - device::PromptError, env::Env, opts::{NoiseLevel, Profile}, }; +use std::{ + thread::{sleep, spawn}, + time::Duration, +}; + #[derive(Debug, Clone, Parser)] #[clap(about = "iOS dev")] pub struct Options { @@ -38,6 +42,8 @@ pub struct Options { /// Open Xcode instead of trying to run on a connected device #[clap(short, long)] pub open: bool, + /// Runs on the given device name + pub device: Option, } impl From for crate::dev::Options { @@ -92,9 +98,29 @@ fn run_dev( let env = env()?; init_dot_cargo(app, None)?; + if let Some(device) = &options.device { + let simulators = simctl::device_list(&env).unwrap_or_default(); + for simulator in simulators { + if simulator + .name() + .to_lowercase() + .starts_with(&device.to_lowercase()) + { + log::info!("Starting simulator {}", simulator.name()); + let handle = simulator.start(&env)?; + spawn(move || { + let _ = handle.wait(); + }); + sleep(Duration::from_secs(3)); + break; + } + } + } + let open = options.open; let exit_on_panic = options.exit_on_panic; let no_watch = options.no_watch; + let device = options.device; interface.mobile_dev( MobileOptions { debug: true, @@ -115,7 +141,7 @@ fn run_dev( if open { open_and_wait(config, &env) } else { - match run(options, config, &env, noise_level) { + match run(device.as_deref(), options, config, &env, noise_level) { Ok(c) => { crate::dev::wait_dev_process(c.clone(), move |status, reason| { crate::dev::on_app_exit(status, reason, exit_on_panic, no_watch) @@ -135,12 +161,13 @@ fn run_dev( #[derive(Debug, thiserror::Error)] enum RunError { - #[error(transparent)] - FailedToPromptForDevice(PromptError), + #[error("{0}")] + FailedToPromptForDevice(String), #[error(transparent)] RunFailed(DeviceRunError), } fn run( + device: Option<&str>, options: MobileOptions, config: &AppleConfig, env: &Env, @@ -154,8 +181,8 @@ fn run( let non_interactive = true; // ios-deploy --noninteractive (quit when app crashes or exits) - device_prompt(env) - .map_err(RunError::FailedToPromptForDevice)? + device_prompt(env, device) + .map_err(|e| RunError::FailedToPromptForDevice(e.to_string()))? .run(config, env, noise_level, non_interactive, profile) .map(DevChild::new) .map_err(RunError::RunFailed) diff --git a/tooling/cli/src/mobile/ios/project.rs b/tooling/cli/src/mobile/ios/project.rs index e1ae7213ce6f..5a44bb11bd8c 100644 --- a/tooling/cli/src/mobile/ios/project.rs +++ b/tooling/cli/src/mobile/ios/project.rs @@ -50,7 +50,11 @@ pub fn gen( let ios_pods = metadata.ios().pods().unwrap_or_default(); let macos_pods = metadata.macos().pods().unwrap_or_default(); - let default_archs = [String::from("arm64"), String::from("x86_64")]; + let default_archs = [ + String::from("arm64"), + String::from("arm64-sim"), + String::from("x86_64"), + ]; map.insert("file-groups", &source_dirs); map.insert("ios-frameworks", metadata.ios().frameworks()); diff --git a/tooling/cli/src/mobile/ios/xcode_script.rs b/tooling/cli/src/mobile/ios/xcode_script.rs index 870edf52da82..ded473c650a2 100644 --- a/tooling/cli/src/mobile/ios/xcode_script.rs +++ b/tooling/cli/src/mobile/ios/xcode_script.rs @@ -100,6 +100,7 @@ pub fn command(options: Options) -> Result<()> { // Set target-specific flags let triple = match arch.as_str() { "arm64" => "aarch64_apple_ios", + "arm64-sim" => "aarch64_apple_ios_sim", "x86_64" => "x86_64_apple_ios", _ => { return Err(anyhow::anyhow!( diff --git a/tooling/cli/templates/mobile/ios/project.yml b/tooling/cli/templates/mobile/ios/project.yml index 9f9c8742d89b..fb72413cb71d 100644 --- a/tooling/cli/templates/mobile/ios/project.yml +++ b/tooling/cli/templates/mobile/ios/project.yml @@ -72,7 +72,7 @@ targets: ARCHS: [{{join ios-valid-archs}}] VALID_ARCHS: {{~#each ios-valid-archs}} {{this}} {{/each}} LIBRARY_SEARCH_PATHS[sdk=iphoneos*]: $(inherited) "{{prefix-path "target/aarch64-apple-ios/$(CONFIGURATION)"}}" - LIBRARY_SEARCH_PATHS[sdk=iphonesimulator*]: $(inherited) "{{prefix-path "target/x86_64-apple-ios/$(CONFIGURATION)"}}" + LIBRARY_SEARCH_PATHS[sdk=iphonesimulator*]: $(inherited) "{{prefix-path "target/aarch64-apple-ios-sim/$(CONFIGURATION)"}}" ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES: true groups: [app] dependencies: From 5d3242c496baa84217d8f7b1e1fcc3aab0ff922c Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Wed, 31 Aug 2022 20:53:00 -0300 Subject: [PATCH 048/436] fix(examples): keep the target fallback --- core/tauri-codegen/src/context.rs | 44 ++++++++++++++++++++----------- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/core/tauri-codegen/src/context.rs b/core/tauri-codegen/src/context.rs index 1faf2899bdc2..45b2e88c685d 100644 --- a/core/tauri-codegen/src/context.rs +++ b/core/tauri-codegen/src/context.rs @@ -127,22 +127,34 @@ pub fn context_codegen(data: ContextData) -> Result Date: Wed, 31 Aug 2022 21:40:51 -0300 Subject: [PATCH 049/436] feat(cli): iOS simulator support on Intel based devices (#5112) --- core/tauri/src/manager.rs | 2 +- tooling/cli/Cargo.lock | 2 +- .../mobile/android/android_studio_script.rs | 5 +- tooling/cli/src/mobile/ios/project.rs | 14 +-- tooling/cli/src/mobile/ios/xcode_script.rs | 33 +---- tooling/cli/templates/mobile/ios/project.yml | 114 +----------------- 6 files changed, 14 insertions(+), 156 deletions(-) diff --git a/core/tauri/src/manager.rs b/core/tauri/src/manager.rs index 7cf82e59a5b5..ef59d5453c3e 100644 --- a/core/tauri/src/manager.rs +++ b/core/tauri/src/manager.rs @@ -858,7 +858,7 @@ impl WindowManager { builder.status(r.status()).body(r.bytes()?)? } Err(e) => { - debug_eprintln!("Failed to request {}: {}", url.path(), e); + debug_eprintln!("Failed to request {}: {}", url.as_str(), e); return Err(Box::new(e)); } } diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 2d0cec6b2bcc..1692bb078ec8 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -293,7 +293,7 @@ checksum = "c1db59621ec70f09c5e9b597b220c7a2b43611f4710dc03ceb8748637775692c" [[package]] name = "cargo-mobile" version = "0.1.0" -source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#ff88cc91fbf008ee0b9b33c8e4bcb5c9b5b743e6" +source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#4a28c9e2370c07b4cb83458e58da0d7bfe4e9b1e" dependencies = [ "cocoa", "colored 1.9.3", diff --git a/tooling/cli/src/mobile/android/android_studio_script.rs b/tooling/cli/src/mobile/android/android_studio_script.rs index cf3bc974a8fc..be7bd52acc89 100644 --- a/tooling/cli/src/mobile/android/android_studio_script.rs +++ b/tooling/cli/src/mobile/android/android_studio_script.rs @@ -1,4 +1,4 @@ -use super::{detect_target_ok, ensure_init, env, init_dot_cargo, with_config, MobileTarget}; +use super::{detect_target_ok, ensure_init, env, with_config, MobileTarget}; use crate::Result; use clap::Parser; @@ -32,11 +32,10 @@ pub fn command(options: Options) -> Result<()> { Profile::Debug }; - with_config(None, |app, config, metadata, cli_options| { + with_config(None, |_app, config, metadata, cli_options| { ensure_init(config.project_dir(), MobileTarget::Android)?; let env = env()?; - init_dot_cargo(app, Some((&env, config)))?; call_for_targets_with_fallback( options.targets.unwrap_or_default().iter(), diff --git a/tooling/cli/src/mobile/ios/project.rs b/tooling/cli/src/mobile/ios/project.rs index 5a44bb11bd8c..841f8488ed42 100644 --- a/tooling/cli/src/mobile/ios/project.rs +++ b/tooling/cli/src/mobile/ios/project.rs @@ -50,18 +50,14 @@ pub fn gen( let ios_pods = metadata.ios().pods().unwrap_or_default(); let macos_pods = metadata.macos().pods().unwrap_or_default(); - let default_archs = [ - String::from("arm64"), - String::from("arm64-sim"), - String::from("x86_64"), - ]; + #[cfg(target_arch = "aarch64")] + let default_archs = ["arm64", "arm64-sim"]; + #[cfg(not(target_arch = "aarch64"))] + let default_archs = ["arm64", "x86_64"]; map.insert("file-groups", &source_dirs); map.insert("ios-frameworks", metadata.ios().frameworks()); - map.insert( - "ios-valid-archs", - metadata.ios().valid_archs().unwrap_or(&default_archs), - ); + map.insert("ios-valid-archs", default_archs); map.insert("ios-vendor-frameworks", metadata.ios().vendor_frameworks()); map.insert("ios-vendor-sdks", metadata.ios().vendor_sdks()); map.insert("macos-frameworks", metadata.macos().frameworks()); diff --git a/tooling/cli/src/mobile/ios/xcode_script.rs b/tooling/cli/src/mobile/ios/xcode_script.rs index ded473c650a2..1f2da48e3c68 100644 --- a/tooling/cli/src/mobile/ios/xcode_script.rs +++ b/tooling/cli/src/mobile/ios/xcode_script.rs @@ -1,4 +1,4 @@ -use super::{env, init_dot_cargo, with_config}; +use super::{env, with_config}; use crate::Result; use clap::Parser; @@ -41,9 +41,8 @@ pub fn command(options: Options) -> Result<()> { let profile = profile_from_configuration(&options.configuration); let macos = macos_from_platform(&options.platform); - with_config(None, |root_conf, config, metadata, cli_options| { + with_config(None, |_root_conf, config, metadata, cli_options| { let env = env()?; - init_dot_cargo(root_conf, None)?; // The `PATH` env var Xcode gives us is missing any additions // made by the user's profile, so we'll manually add cargo's // `PATH`. @@ -65,31 +64,6 @@ pub fn command(options: Options) -> Result<()> { let mut host_env = HashMap::<&str, &OsStr>::new(); - // Host flags that are used by build scripts - let (macos_isysroot, library_path) = { - let macos_sdk_root = options - .sdk_root - .join("../../../../MacOSX.platform/Developer/SDKs/MacOSX.sdk"); - if !macos_sdk_root.is_dir() { - return Err(anyhow::anyhow!( - "macOS SDK root was invalid. {0} doesn't exist or isn't a directory", - macos_sdk_root.display() - )); - } - ( - format!("-isysroot {}", macos_sdk_root.display()), - format!("{}/usr/lib", macos_sdk_root.display()), - ) - }; - host_env.insert("MAC_FLAGS", macos_isysroot.as_ref()); - host_env.insert("CFLAGS_x86_64_apple_darwin", macos_isysroot.as_ref()); - host_env.insert("CXXFLAGS_x86_64_apple_darwin", macos_isysroot.as_ref()); - - host_env.insert( - "OBJC_INCLUDE_PATH_x86_64_apple_darwin", - include_dir.as_os_str(), - ); - host_env.insert("RUST_BACKTRACE", "1".as_ref()); let macos_target = Target::macos(); @@ -116,9 +90,6 @@ pub fn command(options: Options) -> Result<()> { target_env.insert(cflags.as_ref(), isysroot.as_ref()); target_env.insert(cxxflags.as_ref(), isysroot.as_ref()); target_env.insert(objc_include_path.as_ref(), include_dir.as_ref()); - // Prevents linker errors in build scripts and proc macros: - // https://github.com/signalapp/libsignal-client/commit/02899cac643a14b2ced7c058cc15a836a2165b6d - target_env.insert("LIBRARY_PATH", library_path.as_ref()); let target = if macos { &macos_target diff --git a/tooling/cli/templates/mobile/ios/project.yml b/tooling/cli/templates/mobile/ios/project.yml index fb72413cb71d..af7263b22a74 100644 --- a/tooling/cli/templates/mobile/ios/project.yml +++ b/tooling/cli/templates/mobile/ios/project.yml @@ -3,7 +3,6 @@ options: bundleIdPrefix: {{reverse-domain app.domain}} deploymentTarget: iOS: {{apple.ios-version}} - macOS: {{apple.macos-version}} fileGroups: [{{join file-groups}}] configs: debug: debug @@ -71,8 +70,9 @@ targets: ENABLE_BITCODE: false ARCHS: [{{join ios-valid-archs}}] VALID_ARCHS: {{~#each ios-valid-archs}} {{this}} {{/each}} - LIBRARY_SEARCH_PATHS[sdk=iphoneos*]: $(inherited) "{{prefix-path "target/aarch64-apple-ios/$(CONFIGURATION)"}}" - LIBRARY_SEARCH_PATHS[sdk=iphonesimulator*]: $(inherited) "{{prefix-path "target/aarch64-apple-ios-sim/$(CONFIGURATION)"}}" + LIBRARY_SEARCH_PATHS[arch=x86_64]: $(inherited) "{{prefix-path "target/x86_64-apple-ios/$(CONFIGURATION)"}}" + LIBRARY_SEARCH_PATHS[arch=arm64]: $(inherited) "{{prefix-path "target/aarch64-apple-ios/$(CONFIGURATION)"}}" + LIBRARY_SEARCH_PATHS[arch=arm64-sim]: $(inherited) "{{prefix-path "target/aarch64-apple-ios-sim/$(CONFIGURATION)"}}" ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES: true groups: [app] dependencies: @@ -158,106 +158,6 @@ targets: {{~/each~}} {{~/if}} - {{app.name}}_macOS: - type: application - platform: macOS - sources: Sources - {{~#each macos-additional-targets}} - - path: {{prefix-path this}}{{/each}} - info: - path: {{app.name}}_macOS/Info.plist - properties: - NSHighResolutionCapable: true - scheme: - environmentVariables: - RUST_BACKTRACE: full - RUST_LOG: info - {{~#if ios-command-line-arguments}} - commandLineArguments: - {{~#each ios-command-line-arguments}} - "{{this}}": true - {{/each}}{{~/if}} - settings: - base: - LIBRARY_SEARCH_PATHS: $(inherited) "{{prefix-path "target/x86_64-apple-darwin/$(CONFIGURATION)"}}" - groups: [app] - dependencies: - - target: lib_{{app.name}}_macOS - embed: false - link: false - - framework: lib{{snake-case app.name}}.a - embed: false - {{~#each macos-vendor-frameworks}} - - framework: {{prefix-path this}}{{/each}} - {{~#each macos-vendor-sdks}} - - sdk: {{prefix-path this}}{{/each}} - - sdk: Metal.framework - {{~#each macos-frameworks}} - - sdk: {{this}}.framework{{/each}} - {{~#if macos-pre-build-scripts}} - preBuildScripts: - {{~#each macos-pre-build-scripts}}{{#if this.path}} - - path {{this.path}}{{/if}}{{#if this.script}} - - script: {{this.script}}{{/if}}{{#if this.name}} - name: {{this.name}}{{/if}}{{#if this.input-files}} - inputFiles: {{~#each this.input-files}} - - {{this}}{{/each}}{{/if}}{{#if this.output-files}} - outputFiles: {{~#each this.output-files}} - - {{this}}{{/each}}{{/if}}{{#if this.input-file-lists}} - inputFileLists: {{~#each this.output-files}} - - {{this}}{{/each}}{{/if}}{{#if this.output-file-lists}} - outputFileLists: {{~#each this.output-files}} - - {{this}}{{/each}}{{/if}}{{#if this.shell}} - shell: {{this.shell}}{{/if}}{{#if this.show-env-vars}} - showEnvVars: {{this.show_env_vars}}{{/if}}{{#if this.run-only-when-installing}} - runOnlyWhenInstalling: {{this.run-only-when-installing}}{{/if}}{{#if this.based-on-dependency-analysis}} - basedOnDependencyAnalysis: {{this.based-on-dependency-analysis}}{{/if}}{{#if this.discovered-dependency-file}} - discoveredDependencyFile: {{this.discovered-dependency-file}}{{/if}} - {{~/each~}} - {{~/if~}} - {{#if macos-post-compile-scripts}} - postCompileScripts: - {{~#each macos-post-compile-scripts}}{{#if this.path}} - - path {{this.path}}{{/if}}{{#if this.script}} - - script: {{this.script}}{{/if}}{{#if this.name}} - name: {{this.name}}{{/if}}{{#if this.input-files}} - inputFiles: {{~#each this.input-files}} - - {{this}}{{/each}}{{/if}}{{#if this.output-files}} - outputFiles: {{~#each this.output-files}} - - {{this}}{{/each}}{{/if}}{{#if this.input-file-lists}} - inputFileLists: {{~#each this.output-files}} - - {{this}}{{/each}}{{/if}}{{#if this.output-file-lists}} - outputFileLists: {{~#each this.output-files}} - - {{this}}{{/each}}{{/if}}{{#if this.shell}} - shell: {{this.shell}}{{/if}}{{#if this.show-env-vars}} - showEnvVars: {{this.show_env_vars}}{{/if}}{{#if this.run-only-when-installing}} - runOnlyWhenInstalling: {{this.run-only-when-installing}}{{/if}}{{#if this.based-on-dependency-analysis}} - basedOnDependencyAnalysis: {{this.based-on-dependency-analysis}}{{/if}}{{#if this.discovered-dependency-file}} - discoveredDependencyFile: {{this.discovered-dependency-file}}{{/if}} - {{~/each~}} - {{~/if~}} - {{#if macos-post-build-scripts}} - postBuildScripts: - {{~#each macos-post-build-scripts}}{{#if this.path}} - - path {{this.path}}{{/if}}{{#if this.script}} - - script: {{this.script}}{{/if}}{{#if this.name}} - name: {{this.name}}{{/if}}{{#if this.input-files}} - inputFiles: {{~#each this.input-files}} - - {{this}}{{/each}}{{/if}}{{#if this.output-files}} - outputFiles: {{~#each this.output-files}} - - {{this}}{{/each}}{{/if}}{{#if this.input-file-lists}} - inputFileLists: {{~#each this.output-files}} - - {{this}}{{/each}}{{/if}}{{#if this.output-file-lists}} - outputFileLists: {{~#each this.output-files}} - - {{this}}{{/each}}{{/if}}{{#if this.shell}} - shell: {{this.shell}}{{/if}}{{#if this.show-env-vars}} - showEnvVars: {{this.show_env_vars}}{{/if}}{{#if this.run-only-when-installing}} - runOnlyWhenInstalling: {{this.run-only-when-installing}}{{/if}}{{#if this.based-on-dependency-analysis}} - basedOnDependencyAnalysis: {{this.based-on-dependency-analysis}}{{/if}}{{#if this.discovered-dependency-file}} - discoveredDependencyFile: {{this.discovered-dependency-file}}{{/if}} - {{~/each~}} - {{~/if}} - lib_{{app.name}}_iOS: type: "" platform: iOS @@ -270,11 +170,3 @@ targets: arguments: {{ tauri-binary-args-str }} -v --platform ${PLATFORM_DISPLAY_NAME:?} --sdk-root ${SDKROOT:?} --configuration ${CONFIGURATION:?} ${FORCE_COLOR} ${ARCHS:?} passSettings: false # prevents evil linker errors workingDirectory: $(SRCROOT)/../.. - lib_{{app.name}}_macOS: - type: "" - platform: macOS - legacy: - toolPath: {{ tauri-binary }} - arguments: {{ tauri-binary-args-str }} -v --platform ${PLATFORM_DISPLAY_NAME:?} --sdk-root ${SDKROOT:?} --configuration ${CONFIGURATION:?} ${FORCE_COLOR} ${ARCHS:?} - passSettings: false - workingDirectory: $(SRCROOT)/../.. From 8f3a9c5cf623c0d138a0b4734bd54102b77455e6 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Thu, 1 Sep 2022 12:00:17 -0300 Subject: [PATCH 050/436] feat(cli): improve device/simulator prompt logic (#5114) --- tooling/cli/Cargo.lock | 9 +- tooling/cli/Cargo.toml | 1 + tooling/cli/src/mobile/android.rs | 128 ++++++++++++++------------ tooling/cli/src/mobile/android/dev.rs | 42 ++------- tooling/cli/src/mobile/ios.rs | 110 +++++++++++++--------- tooling/cli/src/mobile/ios/dev.rs | 32 +------ tooling/cli/src/mobile/mod.rs | 2 + 7 files changed, 156 insertions(+), 168 deletions(-) diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 1692bb078ec8..5b1dea645b5c 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -293,7 +293,7 @@ checksum = "c1db59621ec70f09c5e9b597b220c7a2b43611f4710dc03ceb8748637775692c" [[package]] name = "cargo-mobile" version = "0.1.0" -source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#4a28c9e2370c07b4cb83458e58da0d7bfe4e9b1e" +source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#123b8cf58e9a894375bb9d9e7a098419a7d67b5f" dependencies = [ "cocoa", "colored 1.9.3", @@ -3410,6 +3410,12 @@ dependencies = [ "syn", ] +[[package]] +name = "sublime_fuzzy" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa7986063f7c0ab374407e586d7048a3d5aac94f103f751088bf398e07cd5400" + [[package]] name = "subtle" version = "2.4.1" @@ -3528,6 +3534,7 @@ dependencies = [ "serde_json", "serde_with 2.0.0", "shared_child", + "sublime_fuzzy", "tauri-bundler", "tauri-utils", "tempfile", diff --git a/tooling/cli/Cargo.toml b/tooling/cli/Cargo.toml index f10c14a6ceee..d1cf49764bb0 100644 --- a/tooling/cli/Cargo.toml +++ b/tooling/cli/Cargo.toml @@ -33,6 +33,7 @@ cargo-mobile = { git = "https://github.com/tauri-apps/cargo-mobile", branch = "d textwrap = { version = "0.11.0", features = ["term_size"] } interprocess = "1" thiserror = "1" +sublime_fuzzy = "0.7" clap = { version = "3.2", features = [ "derive" ] } anyhow = "1.0" tauri-bundler = { version = "1.0.5", path = "../bundler" } diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index 9b6a00632830..697ba1470bb0 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -12,7 +12,6 @@ use cargo_mobile::{ target::Target, }, config::app::App, - device::PromptError, opts::NoiseLevel, os, util::prompt, @@ -23,11 +22,12 @@ use std::{ thread::{sleep, spawn}, time::Duration, }; +use sublime_fuzzy::best_match; use super::{ ensure_init, get_app, init::{command as init_command, init_dot_cargo, Options as InitOptions}, - log_finished, read_options, CliOptions, Target as MobileTarget, + log_finished, read_options, CliOptions, Target as MobileTarget, MIN_DEVICE_MATCH_SCORE, }; use crate::{ helpers::config::{get as get_tauri_config, Config as TauriConfig}, @@ -141,34 +141,39 @@ fn delete_codegen_vars() { } } -fn adb_device_prompt<'a>( - env: &'_ Env, - target: Option<&str>, -) -> Result, PromptError> { - let device_list = - adb::device_list(env).map_err(|cause| PromptError::detection_failed("Android", cause))?; +fn adb_device_prompt<'a>(env: &'_ Env, target: Option<&str>) -> Result> { + let device_list = adb::device_list(env) + .map_err(|cause| anyhow::anyhow!("Failed to detect connected Android devices: {cause}"))?; if !device_list.is_empty() { - let index = if device_list.len() > 1 { - if let Some(t) = target { - let t = t.to_lowercase(); - device_list - .iter() - .position(|d| d.name().to_lowercase().starts_with(&t)) - .unwrap_or_default() + let device = if let Some(t) = target { + let (device, score) = device_list + .into_iter() + .rev() + .map(|d| { + let score = best_match(t, d.name()).map_or(0, |m| m.score()); + (d, score) + }) + .max_by_key(|(_, score)| *score) + // we already checked the list is not empty + .unwrap(); + if score > MIN_DEVICE_MATCH_SCORE { + device } else { - prompt::list( - concat!("Detected ", "Android", " devices"), - device_list.iter(), - "device", - None, - "Device", - ) - .map_err(|cause| PromptError::prompt_failed("Android", cause))? + anyhow::bail!("Could not find an Android device matching {t}") } + } else if device_list.len() > 1 { + let index = prompt::list( + concat!("Detected ", "Android", " devices"), + device_list.iter(), + "device", + None, + "Device", + ) + .map_err(|cause| anyhow::anyhow!("Failed to prompt for Android device: {cause}"))?; + device_list.into_iter().nth(index).unwrap() } else { - 0 + device_list.into_iter().next().unwrap() }; - let device = device_list.into_iter().nth(index).unwrap(); println!( "Detected connected device: {} with target {:?}", device, @@ -176,57 +181,60 @@ fn adb_device_prompt<'a>( ); Ok(device) } else { - Err(PromptError::none_detected("Android")) + Err(anyhow::anyhow!("No connected Android devices detected")) } } -fn emulator_prompt( - env: &'_ Env, - target: Option<&str>, -) -> Result> { +fn emulator_prompt(env: &'_ Env, target: Option<&str>) -> Result { let emulator_list = emulator::avd_list(env).unwrap_or_default(); - if emulator_list.is_empty() { - Err(PromptError::none_detected("Android emulator")) - } else { - let index = if emulator_list.len() > 1 { - if let Some(t) = target { - let t = t.to_lowercase(); - emulator_list - .iter() - .position(|d| d.name().to_lowercase().starts_with(&t)) - .unwrap_or_default() + if !emulator_list.is_empty() { + let emulator = if let Some(t) = target { + let (device, score) = emulator_list + .into_iter() + .rev() + .map(|d| { + let score = best_match(t, d.name()).map_or(0, |m| m.score()); + (d, score) + }) + .max_by_key(|(_, score)| *score) + // we already checked the list is not empty + .unwrap(); + if score > MIN_DEVICE_MATCH_SCORE { + device } else { - prompt::list( - concat!("Detected ", "Android", " emulators"), - emulator_list.iter(), - "emulator", - None, - "Emulator", - ) - .map_err(|cause| PromptError::prompt_failed("Android emulator", cause))? + anyhow::bail!("Could not find an Android Emulator matching {t}") } + } else if emulator_list.len() > 1 { + let index = prompt::list( + concat!("Detected ", "Android", " emulators"), + emulator_list.iter(), + "emulator", + None, + "Emulator", + ) + .map_err(|cause| anyhow::anyhow!("Failed to prompt for Android Emulator device: {cause}"))?; + emulator_list.into_iter().nth(index).unwrap() } else { - 0 + emulator_list.into_iter().next().unwrap() }; - Ok(emulator_list.into_iter().nth(index).unwrap()) + let handle = emulator.start(env)?; + spawn(move || { + let _ = handle.wait(); + }); + + Ok(emulator) + } else { + Err(anyhow::anyhow!("No available Android Emulator detected")) } } -fn device_prompt<'a>( - env: &'_ Env, - target: Option<&str>, -) -> Result, PromptError> { +fn device_prompt<'a>(env: &'_ Env, target: Option<&str>) -> Result> { if let Ok(device) = adb_device_prompt(env, target) { Ok(device) } else { let emulator = emulator_prompt(env, target)?; - let handle = emulator.start(env).map_err(|e| { - PromptError::prompt_failed( - "Android emulator", - std::io::Error::new(std::io::ErrorKind::Other, e.to_string()), - ) - })?; + let handle = emulator.start(env)?; spawn(move || { let _ = handle.wait(); }); diff --git a/tooling/cli/src/mobile/android/dev.rs b/tooling/cli/src/mobile/android/dev.rs index 52fb6a2c0354..1fac4ce4d7ed 100644 --- a/tooling/cli/src/mobile/android/dev.rs +++ b/tooling/cli/src/mobile/android/dev.rs @@ -1,6 +1,6 @@ use super::{ delete_codegen_vars, device_prompt, ensure_init, env, init_dot_cargo, open_and_wait, with_config, - MobileTarget, PromptError, + MobileTarget, }; use crate::{ helpers::{config::get as get_tauri_config, flock}, @@ -12,21 +12,14 @@ use clap::Parser; use cargo_mobile::{ android::{ - adb, config::{Config as AndroidConfig, Metadata as AndroidMetadata}, - device::RunError as DeviceRunError, - emulator, env::Env, }, config::app::App, opts::{NoiseLevel, Profile}, }; -use std::{ - env::set_var, - thread::{sleep, spawn}, - time::Duration, -}; +use std::env::set_var; const WEBVIEW_CLIENT_CLASS_EXTENSION: &str = " @android.annotation.SuppressLint(\"WebViewClientOnReceivedSslError\") @@ -119,25 +112,6 @@ fn run_dev( let env = env()?; init_dot_cargo(app, Some((&env, config)))?; - if let Some(device) = &options.device { - let emulators = emulator::avd_list(&env).unwrap_or_default(); - for emulator in emulators { - if emulator - .name() - .to_lowercase() - .starts_with(&device.to_lowercase()) - { - log::info!("Starting emulator {}", emulator.name()); - let handle = emulator.start(&env)?; - spawn(move || { - let _ = handle.wait(); - }); - sleep(Duration::from_secs(3)); - break; - } - } - } - let open = options.open; let exit_on_panic = options.exit_on_panic; let no_watch = options.no_watch; @@ -189,10 +163,10 @@ fn run_dev( #[derive(Debug, thiserror::Error)] enum RunError { - #[error(transparent)] - FailedToPromptForDevice(PromptError), - #[error(transparent)] - RunFailed(DeviceRunError), + #[error("{0}")] + FailedToPromptForDevice(String), + #[error("{0}")] + RunFailed(String), } fn run( @@ -212,7 +186,7 @@ fn run( let build_app_bundle = metadata.asset_packs().is_some(); device_prompt(env, device) - .map_err(RunError::FailedToPromptForDevice)? + .map_err(|e| RunError::FailedToPromptForDevice(e.to_string()))? .run( config, env, @@ -224,5 +198,5 @@ fn run( ".MainActivity".into(), ) .map(DevChild::new) - .map_err(RunError::RunFailed) + .map_err(|e| RunError::RunFailed(e.to_string())) } diff --git a/tooling/cli/src/mobile/ios.rs b/tooling/cli/src/mobile/ios.rs index 0cc0e1a712f4..ade5c71cbff6 100644 --- a/tooling/cli/src/mobile/ios.rs +++ b/tooling/cli/src/mobile/ios.rs @@ -13,18 +13,18 @@ use cargo_mobile::{ target::Target, }, config::app::App, - device::PromptError, env::Env, opts::NoiseLevel, os, util::prompt, }; use clap::{Parser, Subcommand}; +use sublime_fuzzy::best_match; use super::{ ensure_init, env, get_app, init::{command as init_command, init_dot_cargo, Options as InitOptions}, - log_finished, read_options, CliOptions, Target as MobileTarget, + log_finished, read_options, CliOptions, Target as MobileTarget, MIN_DEVICE_MATCH_SCORE, }; use crate::{ helpers::config::{get as get_tauri_config, Config as TauriConfig}, @@ -126,21 +126,28 @@ fn with_config( f(&app, &config, &metadata, cli_options) } -fn ios_deploy_device_prompt<'a>( - env: &'_ Env, - target: Option<&str>, -) -> Result, PromptError> { - let device_list = - ios_deploy::device_list(env).map_err(|cause| PromptError::detection_failed("iOS", cause))?; +fn ios_deploy_device_prompt<'a>(env: &'_ Env, target: Option<&str>) -> Result> { + let device_list = ios_deploy::device_list(env) + .map_err(|cause| anyhow::anyhow!("Failed to detect connected iOS devices: {cause}"))?; if !device_list.is_empty() { - let index = if device_list.len() > 1 { - if let Some(t) = target { - let t = t.to_lowercase(); - device_list - .iter() - .position(|d| d.name().to_lowercase().starts_with(&t)) - .unwrap_or_default() + let device = if let Some(t) = target { + let (device, score) = device_list + .into_iter() + .rev() + .map(|d| { + let score = best_match(t, d.name()).map_or(0, |m| m.score()); + (d, score) + }) + .max_by_key(|(_, score)| *score) + // we already checked the list is not empty + .unwrap(); + if score > MIN_DEVICE_MATCH_SCORE { + device } else { + anyhow::bail!("Could not find an iOS device matching {t}") + } + } else { + let index = if device_list.len() > 1 { prompt::list( concat!("Detected ", "iOS", " devices"), device_list.iter(), @@ -148,12 +155,12 @@ fn ios_deploy_device_prompt<'a>( None, "Device", ) - .map_err(|cause| PromptError::prompt_failed("iOS", cause))? - } - } else { - 0 + .map_err(|cause| anyhow::anyhow!("Failed to prompt for iOS device: {cause}"))? + } else { + 0 + }; + device_list.into_iter().nth(index).unwrap() }; - let device = device_list.into_iter().nth(index).unwrap(); println!( "Detected connected device: {} with target {:?}", device, @@ -161,41 +168,54 @@ fn ios_deploy_device_prompt<'a>( ); Ok(device) } else { - Err(PromptError::none_detected("iOS")) + Err(anyhow::anyhow!("No connected iOS devices detected")) } } -fn simulator_prompt( - env: &'_ Env, - target: Option<&str>, -) -> Result> { - let simulator_list = simctl::device_list(env) - .map_err(|cause| PromptError::detection_failed("iOS Simulator", cause))?; +fn simulator_prompt(env: &'_ Env, target: Option<&str>) -> Result { + let simulator_list = simctl::device_list(env).map_err(|cause| { + anyhow::anyhow!("Failed to detect connected iOS Simulator devices: {cause}") + })?; if !simulator_list.is_empty() { - let index = if simulator_list.len() > 1 { - if let Some(t) = target { - let t = t.to_lowercase(); - simulator_list - .iter() - .position(|d| d.name().to_lowercase().starts_with(&t)) - .unwrap_or_default() + let device = if let Some(t) = target { + let (device, score) = simulator_list + .into_iter() + .rev() + .map(|d| { + let score = best_match(t, d.name()).map_or(0, |m| m.score()); + (d, score) + }) + .max_by_key(|(_, score)| *score) + // we already checked the list is not empty + .unwrap(); + if score > MIN_DEVICE_MATCH_SCORE { + device } else { - prompt::list( - concat!("Detected ", "iOS", " simulators"), - simulator_list.iter(), - "simulator", - None, - "Simulator", - ) - .map_err(|cause| PromptError::prompt_failed("iOS Simulator", cause))? + anyhow::bail!("Could not find an iOS Simulator matching {t}") } + } else if simulator_list.len() > 1 { + let index = prompt::list( + concat!("Detected ", "iOS", " simulators"), + simulator_list.iter(), + "simulator", + None, + "Simulator", + ) + .map_err(|cause| anyhow::anyhow!("Failed to prompt for iOS Simulator device: {cause}"))?; + simulator_list.into_iter().nth(index).unwrap() } else { - 0 + simulator_list.into_iter().next().unwrap() }; - let device = simulator_list.into_iter().nth(index).unwrap(); + + log::info!("Starting simulator {}", device.name()); + let handle = device.start(env)?; + spawn(move || { + let _ = handle.wait(); + }); + Ok(device) } else { - Err(PromptError::none_detected("iOS Simulator")) + Err(anyhow::anyhow!("No available iOS Simulator detected")) } } diff --git a/tooling/cli/src/mobile/ios/dev.rs b/tooling/cli/src/mobile/ios/dev.rs index 4ab79826c71a..14f6b21062b6 100644 --- a/tooling/cli/src/mobile/ios/dev.rs +++ b/tooling/cli/src/mobile/ios/dev.rs @@ -10,17 +10,12 @@ use crate::{ use clap::Parser; use cargo_mobile::{ - apple::{config::Config as AppleConfig, device::RunError as DeviceRunError, simctl}, + apple::config::Config as AppleConfig, config::app::App, env::Env, opts::{NoiseLevel, Profile}, }; -use std::{ - thread::{sleep, spawn}, - time::Duration, -}; - #[derive(Debug, Clone, Parser)] #[clap(about = "iOS dev")] pub struct Options { @@ -98,25 +93,6 @@ fn run_dev( let env = env()?; init_dot_cargo(app, None)?; - if let Some(device) = &options.device { - let simulators = simctl::device_list(&env).unwrap_or_default(); - for simulator in simulators { - if simulator - .name() - .to_lowercase() - .starts_with(&device.to_lowercase()) - { - log::info!("Starting simulator {}", simulator.name()); - let handle = simulator.start(&env)?; - spawn(move || { - let _ = handle.wait(); - }); - sleep(Duration::from_secs(3)); - break; - } - } - } - let open = options.open; let exit_on_panic = options.exit_on_panic; let no_watch = options.no_watch; @@ -163,8 +139,8 @@ fn run_dev( enum RunError { #[error("{0}")] FailedToPromptForDevice(String), - #[error(transparent)] - RunFailed(DeviceRunError), + #[error("{0}")] + RunFailed(String), } fn run( device: Option<&str>, @@ -185,5 +161,5 @@ fn run( .map_err(|e| RunError::FailedToPromptForDevice(e.to_string()))? .run(config, env, noise_level, non_interactive, profile) .map(DevChild::new) - .map_err(RunError::RunFailed) + .map_err(|e| RunError::RunFailed(e.to_string())) } diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index 5da42b40b113..dba5eda472b4 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -40,6 +40,8 @@ mod init; #[cfg(target_os = "macos")] pub mod ios; +const MIN_DEVICE_MATCH_SCORE: isize = 0; + #[derive(Clone)] pub struct DevChild { child: Arc, From 5d82357166b163fde92129d9ebe87b5c6d196a43 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Thu, 1 Sep 2022 12:07:06 -0300 Subject: [PATCH 051/436] feat(cli): add `--reinstall-deps` option to `ios init` --- tooling/cli/src/mobile/android.rs | 12 ++++++++-- tooling/cli/src/mobile/init.rs | 32 +++++++-------------------- tooling/cli/src/mobile/ios.rs | 15 +++++++++++-- tooling/cli/src/mobile/ios/project.rs | 3 +-- 4 files changed, 32 insertions(+), 30 deletions(-) diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index 697ba1470bb0..35ed4a306e8b 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -26,7 +26,7 @@ use sublime_fuzzy::best_match; use super::{ ensure_init, get_app, - init::{command as init_command, init_dot_cargo, Options as InitOptions}, + init::{command as init_command, init_dot_cargo}, log_finished, read_options, CliOptions, Target as MobileTarget, MIN_DEVICE_MATCH_SCORE, }; use crate::{ @@ -53,6 +53,14 @@ pub struct Cli { command: Commands, } +#[derive(Debug, Parser)] +#[clap(about = "Initializes a Tauri Android project")] +pub struct InitOptions { + /// Skip prompting for values + #[clap(long)] + ci: bool, +} + #[derive(Subcommand)] enum Commands { Init(InitOptions), @@ -67,7 +75,7 @@ enum Commands { pub fn command(cli: Cli, verbosity: usize) -> Result<()> { let noise_level = NoiseLevel::from_occurrences(verbosity as u64); match cli.command { - Commands::Init(options) => init_command(options, MobileTarget::Android)?, + Commands::Init(options) => init_command(MobileTarget::Android, options.ci, false)?, Commands::Open => open::command()?, Commands::Dev(options) => dev::command(options, noise_level)?, Commands::Build(options) => build::command(options, noise_level)?, diff --git a/tooling/cli/src/mobile/init.rs b/tooling/cli/src/mobile/init.rs index 26838e2b624d..07094e9d01a2 100644 --- a/tooling/cli/src/mobile/init.rs +++ b/tooling/cli/src/mobile/init.rs @@ -11,31 +11,25 @@ use cargo_mobile::{ }, config::app::App, dot_cargo, - os::code_command, target::TargetTrait as _, util::{ self, cli::{Report, TextWrapper}, }, }; -use clap::Parser; use handlebars::{Context, Handlebars, Helper, HelperResult, Output, RenderContext, RenderError}; use std::{env::current_dir, fs, path::PathBuf}; -#[derive(Debug, Parser)] -#[clap(about = "Initializes a Tauri Android project")] -pub struct Options { - /// Skip prompting for values - #[clap(long)] - ci: bool, -} - -pub fn command(mut options: Options, target: Target) -> Result<()> { - options.ci = options.ci || std::env::var("CI").is_ok(); - +pub fn command(target: Target, ci: bool, reinstall_deps: bool) -> Result<()> { let wrapper = TextWrapper::with_splitter(textwrap::termwidth(), textwrap::NoHyphenation); - exec(target, &wrapper, options.ci, true, true).map_err(|e| anyhow::anyhow!("{:#}", e))?; + exec( + target, + &wrapper, + ci || std::env::var("CI").is_ok(), + reinstall_deps, + ) + .map_err(|e| anyhow::anyhow!("{:#}", e))?; Ok(()) } @@ -69,7 +63,6 @@ pub fn exec( target: Target, wrapper: &TextWrapper, non_interactive: bool, - skip_dev_tools: bool, #[allow(unused_variables)] reinstall_deps: bool, ) -> Result { let tauri_config = get_tauri_config(None)?; @@ -87,14 +80,6 @@ pub fn exec( ) })?; } - if !skip_dev_tools && util::command_present("code").unwrap_or_default() { - let mut command = code_command(); - command.add_args(&["--install-extension", "vadimcn.vscode-lldb"]); - if non_interactive { - command.add_arg("--force"); - } - command.run_and_wait()?; - } let (handlebars, mut map) = handlebars(&app); @@ -169,7 +154,6 @@ pub fn exec( (handlebars, map), wrapper, non_interactive, - skip_dev_tools, reinstall_deps, )?; init_dot_cargo(&app, None)?; diff --git a/tooling/cli/src/mobile/ios.rs b/tooling/cli/src/mobile/ios.rs index ade5c71cbff6..4a3bae8aeeac 100644 --- a/tooling/cli/src/mobile/ios.rs +++ b/tooling/cli/src/mobile/ios.rs @@ -23,7 +23,7 @@ use sublime_fuzzy::best_match; use super::{ ensure_init, env, get_app, - init::{command as init_command, init_dot_cargo, Options as InitOptions}, + init::{command as init_command, init_dot_cargo}, log_finished, read_options, CliOptions, Target as MobileTarget, MIN_DEVICE_MATCH_SCORE, }; use crate::{ @@ -55,6 +55,17 @@ pub struct Cli { command: Commands, } +#[derive(Debug, Parser)] +#[clap(about = "Initializes a Tauri iOS project")] +pub struct InitOptions { + /// Skip prompting for values + #[clap(long)] + ci: bool, + /// Reinstall dependencies + #[clap(short, long)] + reinstall_deps: bool, +} + #[derive(Subcommand)] enum Commands { Init(InitOptions), @@ -68,7 +79,7 @@ enum Commands { pub fn command(cli: Cli, verbosity: usize) -> Result<()> { let noise_level = NoiseLevel::from_occurrences(verbosity as u64); match cli.command { - Commands::Init(options) => init_command(options, MobileTarget::Ios)?, + Commands::Init(options) => init_command(MobileTarget::Ios, options.ci, options.reinstall_deps)?, Commands::Open => open::command()?, Commands::Dev(options) => dev::command(options, noise_level)?, Commands::Build(options) => build::command(options, noise_level)?, diff --git a/tooling/cli/src/mobile/ios/project.rs b/tooling/cli/src/mobile/ios/project.rs index 841f8488ed42..533488ec124e 100644 --- a/tooling/cli/src/mobile/ios/project.rs +++ b/tooling/cli/src/mobile/ios/project.rs @@ -32,14 +32,13 @@ pub fn gen( (handlebars, mut map): (Handlebars, template::JsonMap), wrapper: &TextWrapper, non_interactive: bool, - skip_dev_tools: bool, reinstall_deps: bool, ) -> Result<()> { println!("Installing iOS toolchains..."); Target::install_all()?; rust_version_check(wrapper)?; - deps::install_all(wrapper, non_interactive, skip_dev_tools, reinstall_deps) + deps::install_all(wrapper, non_interactive, true, reinstall_deps) .with_context(|| "failed to install Apple dependencies")?; let dest = config.project_dir(); From 349895b296502f70ecfde57789526e90e77d214e Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Thu, 1 Sep 2022 12:25:08 -0300 Subject: [PATCH 052/436] refactor(cli): remove mobile assets folder symlink --- tooling/cli/src/mobile/android/project.rs | 15 ++++++++++++--- tooling/cli/src/mobile/init.rs | 12 +----------- tooling/cli/src/mobile/ios/project.rs | 14 +++++++++++--- 3 files changed, 24 insertions(+), 17 deletions(-) diff --git a/tooling/cli/src/mobile/android/project.rs b/tooling/cli/src/mobile/android/project.rs index 9182c7c8e029..39160b2d0a14 100644 --- a/tooling/cli/src/mobile/android/project.rs +++ b/tooling/cli/src/mobile/android/project.rs @@ -9,12 +9,13 @@ use cargo_mobile::{ config::{Config, Metadata}, target::Target, }, + config::app::DEFAULT_ASSET_DIR, os, target::TargetTrait as _, util::{ self, cli::{Report, TextWrapper}, - ln, prefix_path, + prefix_path, }, }; use handlebars::Handlebars; @@ -150,8 +151,16 @@ pub fn gen( cause ) })?; - os::ln::force_symlink_relative(config.app().asset_dir(), dest, ln::TargetStyle::Directory) - .map_err(|_| anyhow::anyhow!("failed to symlink asset directory"))?; + + let asset_dir = dest.join(DEFAULT_ASSET_DIR); + if !asset_dir.is_dir() { + fs::create_dir_all(&asset_dir).map_err(|cause| { + anyhow::anyhow!( + "failed to create asset dir {path}: {cause}", + path = asset_dir.display() + ) + })?; + } Ok(()) } diff --git a/tooling/cli/src/mobile/init.rs b/tooling/cli/src/mobile/init.rs index 07094e9d01a2..c1a9fcdb33d9 100644 --- a/tooling/cli/src/mobile/init.rs +++ b/tooling/cli/src/mobile/init.rs @@ -19,7 +19,7 @@ use cargo_mobile::{ }; use handlebars::{Context, Handlebars, Helper, HelperResult, Output, RenderContext, RenderError}; -use std::{env::current_dir, fs, path::PathBuf}; +use std::{env::current_dir, path::PathBuf}; pub fn command(target: Target, ci: bool, reinstall_deps: bool) -> Result<()> { let wrapper = TextWrapper::with_splitter(textwrap::termwidth(), textwrap::NoHyphenation); @@ -71,16 +71,6 @@ pub fn exec( let app = get_app(tauri_config_); - let asset_dir = app.asset_dir(); - if !asset_dir.is_dir() { - fs::create_dir_all(&asset_dir).map_err(|cause| { - anyhow::anyhow!( - "failed to create asset dir {path}: {cause}", - path = asset_dir.display() - ) - })?; - } - let (handlebars, mut map) = handlebars(&app); let mut args = std::env::args_os(); diff --git a/tooling/cli/src/mobile/ios/project.rs b/tooling/cli/src/mobile/ios/project.rs index 533488ec124e..a2ddc1a3a947 100644 --- a/tooling/cli/src/mobile/ios/project.rs +++ b/tooling/cli/src/mobile/ios/project.rs @@ -11,8 +11,9 @@ use cargo_mobile::{ target::Target, }, bossy, + config::app::DEFAULT_ASSET_DIR, target::TargetTrait as _, - util::{self, cli::TextWrapper, ln}, + util::{self, cli::TextWrapper}, }; use handlebars::Handlebars; use include_dir::{include_dir, Dir}; @@ -140,8 +141,15 @@ pub fn gen( ) .with_context(|| "failed to process template")?; - ln::force_symlink_relative(config.app().asset_dir(), &dest, ln::TargetStyle::Directory) - .map_err(|_| anyhow::anyhow!("failed to symlink asset directory"))?; + let asset_dir = dest.join(DEFAULT_ASSET_DIR); + if !asset_dir.is_dir() { + create_dir_all(&asset_dir).map_err(|cause| { + anyhow::anyhow!( + "failed to create asset dir {path}: {cause}", + path = asset_dir.display() + ) + })?; + } // Create all asset catalog directories if they don't already exist for dir in asset_catalogs { From aae91a9b53ea8e6d673a258e5fc9f871f40e08fd Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Thu, 1 Sep 2022 16:58:41 -0300 Subject: [PATCH 053/436] refactor(tauri-codegen): panic if local IP address cannot be resolved --- core/tauri-codegen/src/context.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/tauri-codegen/src/context.rs b/core/tauri-codegen/src/context.rs index 45b2e88c685d..1ace8c10ab35 100644 --- a/core/tauri-codegen/src/context.rs +++ b/core/tauri-codegen/src/context.rs @@ -167,9 +167,8 @@ pub fn context_codegen(data: ContextData) -> Result false, }; if localhost { - if let Ok(ip) = local_ip_address::local_ip() { - url.set_host(Some(&ip.to_string())).unwrap(); - } + let ip = local_ip_address::local_ip().expect("failed to resolve local IP address"); + url.set_host(Some(&ip.to_string())).unwrap(); } } } From 5643ece77c327bad2bca260ca1c24645bf3f05d9 Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Fri, 2 Sep 2022 15:30:42 +0200 Subject: [PATCH 054/436] fix(cli/mobile): strip `\n` before parsing json (#5126) --- tooling/cli/src/mobile/init.rs | 2 +- tooling/cli/src/mobile/mod.rs | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/tooling/cli/src/mobile/init.rs b/tooling/cli/src/mobile/init.rs index c1a9fcdb33d9..991e85d12434 100644 --- a/tooling/cli/src/mobile/init.rs +++ b/tooling/cli/src/mobile/init.rs @@ -62,7 +62,7 @@ pub fn init_dot_cargo(app: &App, android: Option<(&AndroidEnv, &AndroidConfig)>) pub fn exec( target: Target, wrapper: &TextWrapper, - non_interactive: bool, + #[allow(unused_variables)] non_interactive: bool, #[allow(unused_variables)] reinstall_deps: bool, ) -> Result { let tauri_config = get_tauri_config(None)?; diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index dba5eda472b4..4e62c6d7e626 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -184,10 +184,10 @@ fn read_options(config: &TauriConfig, target: Target) -> CliOptions { let mut attempt = 0; let max_tries = 5; - let buffer = loop { + let (buffer, len) = loop { let mut buffer = String::new(); - if conn.read_line(&mut buffer).is_ok() { - break buffer; + if let Ok(len) = conn.read_line(&mut buffer) { + break (buffer, len); } std::thread::sleep(std::time::Duration::from_secs(1)); attempt += 1; @@ -199,7 +199,8 @@ fn read_options(config: &TauriConfig, target: Target) -> CliOptions { std::process::exit(1); } }; - let options: CliOptions = serde_json::from_str(&buffer).expect("invalid CLI options"); + + let options: CliOptions = serde_json::from_str(&buffer[..len - 1]).expect("invalid CLI options"); for (k, v) in &options.vars { set_var(k, v); } From 30d0e190bb22f261c32b5041e9587fcc76fa6a03 Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Fri, 2 Sep 2022 17:21:15 +0200 Subject: [PATCH 055/436] fix(cli/templates): fix desktop entrypoint template (#5127) --- tooling/cli/templates/app/src-tauri/src/desktop.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tooling/cli/templates/app/src-tauri/src/desktop.rs b/tooling/cli/templates/app/src-tauri/src/desktop.rs index ef900d6533f8..c43e6eaf38f7 100644 --- a/tooling/cli/templates/app/src-tauri/src/desktop.rs +++ b/tooling/cli/templates/app/src-tauri/src/desktop.rs @@ -3,6 +3,6 @@ windows_subsystem = "windows" )] -fn main() { - app::AppBuilder::new() +pub fn main() { + app::AppBuilder::new().run(); } From 4c1c78ebf004cdc0f64c2b7787a2220e4292fe2f Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Sun, 4 Sep 2022 13:49:49 -0300 Subject: [PATCH 056/436] chore(cli): update lockfile --- tooling/cli/Cargo.lock | 57 ++++++------------------------------------ 1 file changed, 7 insertions(+), 50 deletions(-) diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 3d1f042eb98f..c7b86d41aac9 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -327,7 +327,7 @@ dependencies = [ "toml", "ureq", "winapi 0.3.9", - "windows 0.39.0", + "windows", ] [[package]] @@ -3558,7 +3558,7 @@ dependencies = [ "toml", "url", "walkdir", - "windows 0.37.0", + "windows", ] [[package]] @@ -4143,26 +4143,13 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" -[[package]] -name = "windows" -version = "0.37.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57b543186b344cc61c85b5aab0d2e3adf4e0f99bc076eff9aa5927bcc0b8a647" -dependencies = [ - "windows-implement", - "windows_aarch64_msvc 0.37.0", - "windows_i686_gnu 0.37.0", - "windows_i686_msvc 0.37.0", - "windows_x86_64_gnu 0.37.0", - "windows_x86_64_msvc 0.37.0", -] - [[package]] name = "windows" version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1c4bd0a50ac6020f65184721f758dba47bb9fbc2133df715ec74a237b26794a" dependencies = [ + "windows-implement", "windows_aarch64_msvc 0.39.0", "windows_i686_gnu 0.39.0", "windows_i686_msvc 0.39.0", @@ -4172,9 +4159,9 @@ dependencies = [ [[package]] name = "windows-implement" -version = "0.37.0" +version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67a1062e555f7d9d66fd1130ed4f7c6ec41a47529ee0850cd0e926d95b26bb14" +checksum = "ba01f98f509cb5dc05f4e5fc95e535f78260f15fea8fe1a8abdd08f774f1cee7" dependencies = [ "syn", "windows-tokens", @@ -4195,9 +4182,9 @@ dependencies = [ [[package]] name = "windows-tokens" -version = "0.37.0" +version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3263d25f1170419995b78ff10c06b949e8a986c35c208dc24333c64753a87169" +checksum = "f838de2fe15fe6bac988e74b798f26499a8b21a9d97edec321e79b28d1d7f597" [[package]] name = "windows_aarch64_msvc" @@ -4205,12 +4192,6 @@ version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47" -[[package]] -name = "windows_aarch64_msvc" -version = "0.37.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2623277cb2d1c216ba3b578c0f3cf9cdebeddb6e66b1b218bb33596ea7769c3a" - [[package]] name = "windows_aarch64_msvc" version = "0.39.0" @@ -4223,12 +4204,6 @@ version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6" -[[package]] -name = "windows_i686_gnu" -version = "0.37.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3925fd0b0b804730d44d4b6278c50f9699703ec49bcd628020f46f4ba07d9e1" - [[package]] name = "windows_i686_gnu" version = "0.39.0" @@ -4241,12 +4216,6 @@ version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024" -[[package]] -name = "windows_i686_msvc" -version = "0.37.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce907ac74fe331b524c1298683efbf598bb031bc84d5e274db2083696d07c57c" - [[package]] name = "windows_i686_msvc" version = "0.39.0" @@ -4259,12 +4228,6 @@ version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1" -[[package]] -name = "windows_x86_64_gnu" -version = "0.37.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2babfba0828f2e6b32457d5341427dcbb577ceef556273229959ac23a10af33d" - [[package]] name = "windows_x86_64_gnu" version = "0.39.0" @@ -4277,12 +4240,6 @@ version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680" -[[package]] -name = "windows_x86_64_msvc" -version = "0.37.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4dd6dc7df2d84cf7b33822ed5b86318fb1781948e9663bacd047fc9dd52259d" - [[package]] name = "windows_x86_64_msvc" version = "0.39.0" From f33365687649bc75741d3c094b6081419a1b9c8b Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Sun, 4 Sep 2022 14:16:52 -0300 Subject: [PATCH 057/436] fix(core): set response mimetype on dev --- core/tauri/src/manager.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/tauri/src/manager.rs b/core/tauri/src/manager.rs index 2efe16af42d9..a3048890b6f4 100644 --- a/core/tauri/src/manager.rs +++ b/core/tauri/src/manager.rs @@ -856,6 +856,9 @@ impl WindowManager { { Ok(r) => { for (name, value) in r.headers() { + if name == "Content-Type" { + builder = builder.mimetype(value.to_str().unwrap()); + } builder = builder.header(name, value); } builder.status(r.status()).body(r.bytes()?)? From e1b8ee2b7affb74fb1cb7a1a85e3bd7ea84449a5 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Sun, 4 Sep 2022 22:06:56 -0300 Subject: [PATCH 058/436] refactor(cli): move generated Kotlin files to the `generated` folder --- tooling/cli/src/mobile/android.rs | 14 ++++++---- tooling/cli/src/mobile/android/project.rs | 28 ++++++++++++++----- .../templates/mobile/android/app/.gitignore | 3 +- .../src/main/{ => generated}/TauriActivity.kt | 0 4 files changed, 32 insertions(+), 13 deletions(-) rename tooling/cli/templates/mobile/android/app/src/main/{ => generated}/TauriActivity.kt (100%) diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index 35ed4a306e8b..d76d86c676bb 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -110,11 +110,15 @@ pub fn get_config( set_var("WRY_ANDROID_APP_NAME_SNAKE_CASE", app.name()); set_var( "WRY_ANDROID_KOTLIN_FILES_OUT_DIR", - config.project_dir().join("app/src/main").join(format!( - "java/{}/{}", - app.reverse_domain().replace('.', "/"), - app.name() - )), + config + .project_dir() + .join("app/src/main") + .join(format!( + "java/{}/{}", + app.reverse_domain().replace('.', "/"), + app.name() + )) + .join("generated"), ); (app, config, metadata) diff --git a/tooling/cli/src/mobile/android/project.rs b/tooling/cli/src/mobile/android/project.rs index 39160b2d0a14..8a06701f66f4 100644 --- a/tooling/cli/src/mobile/android/project.rs +++ b/tooling/cli/src/mobile/android/project.rs @@ -85,6 +85,8 @@ pub fn gen( let domain = config.app().reverse_domain().replace('.', "/"); let package_path = format!("java/{}/{}", domain, config.app().name()); + map.insert("package-path", &package_path); + let mut created_dirs = Vec::new(); template::render_with_generator( &handlebars, @@ -92,13 +94,25 @@ pub fn gen( &TEMPLATE_DIR, &dest, &mut |path| { - let path = if path.extension() == Some(OsStr::new("kt")) { - let parent = path.parent().unwrap(); - let file_name = path.file_name().unwrap(); - let out_dir = dest.join(parent).join(&package_path); - out_dir.join(file_name) - } else { - dest.join(path) + let mut iter = path.iter(); + let root = iter.next().unwrap().to_str().unwrap(); + let path_without_root: std::path::PathBuf = iter.collect(); + let path = match ( + root, + path.extension().and_then(|o| o.to_str()), + path_without_root.strip_prefix("src/main"), + ) { + ("app" | "buildSrc", Some("kt"), Ok(path)) => { + let parent = path.parent().unwrap(); + let file_name = path.file_name().unwrap(); + let out_dir = dest + .join(root) + .join("src/main") + .join(&package_path) + .join(parent); + out_dir.join(file_name) + } + _ => dest.join(path), }; let parent = path.parent().unwrap().to_path_buf(); diff --git a/tooling/cli/templates/mobile/android/app/.gitignore b/tooling/cli/templates/mobile/android/app/.gitignore index 42afabfd2abe..357fc705cecd 100644 --- a/tooling/cli/templates/mobile/android/app/.gitignore +++ b/tooling/cli/templates/mobile/android/app/.gitignore @@ -1 +1,2 @@ -/build \ No newline at end of file +/build +/src/main/{{package-path}}/generated diff --git a/tooling/cli/templates/mobile/android/app/src/main/TauriActivity.kt b/tooling/cli/templates/mobile/android/app/src/main/generated/TauriActivity.kt similarity index 100% rename from tooling/cli/templates/mobile/android/app/src/main/TauriActivity.kt rename to tooling/cli/templates/mobile/android/app/src/main/generated/TauriActivity.kt From bc1622c5abd3ac2e1d85b55ac456a379641dc611 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Mon, 5 Sep 2022 16:16:59 -0300 Subject: [PATCH 059/436] feat(core): use native window dialogs on Android (#5137) --- .github/workflows/test-core.yml | 7 ----- core/tauri/scripts/core.js | 37 -------------------------- core/tauri/scripts/init.js | 4 +++ core/tauri/scripts/window_dialogs.js | 19 ++++++++++++++ core/tauri/scripts/window_print.js | 13 ++++++++++ core/tauri/src/manager.rs | 17 ++++++++++++ examples/api/src-tauri/Cargo.lock | 39 ++++++++-------------------- 7 files changed, 64 insertions(+), 72 deletions(-) create mode 100644 core/tauri/scripts/window_dialogs.js create mode 100644 core/tauri/scripts/window_print.js diff --git a/.github/workflows/test-core.yml b/.github/workflows/test-core.yml index 855de09eeb5a..fa5b6fb784e6 100644 --- a/.github/workflows/test-core.yml +++ b/.github/workflows/test-core.yml @@ -18,9 +18,6 @@ env: RUST_BACKTRACE: 1 CARGO_INCREMENTAL: 0 # This is set to 0 by the https://github.com/Swatinem/rust-cache CARGO_PROFILE_DEV_DEBUG: 0 # This would add unnecessary bloat to the target folder, decreasing cache efficiency. - WRY_ANDROID_REVERSED_DOMAIN: 'app.tauri' - WRY_ANDROID_APP_NAME_SNAKE_CASE: 'dev' - WRY_ANDROID_KOTLIN_FILES_OUT_DIR: 'out' concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -123,10 +120,6 @@ jobs: ${{ matrix.platform.os }}-${{ matrix.platform.toolchain }}- ${{ matrix.platform.os }}- - - name: create kotlin out dir - if: contains(matrix.platform.target, 'android') - run: mkdir out - - name: pin time run: | cargo update -p time --precise 0.3.13 diff --git a/core/tauri/scripts/core.js b/core/tauri/scripts/core.js index bc1887495ede..5fa5bbd8e87d 100644 --- a/core/tauri/scripts/core.js +++ b/core/tauri/scripts/core.js @@ -245,41 +245,4 @@ setNotificationPermission(response ? 'granted' : 'denied') } }) - - window.alert = function (message) { - window.__TAURI_INVOKE__('tauri', { - __tauriModule: 'Dialog', - message: { - cmd: 'messageDialog', - message: message.toString() - } - }) - } - - window.confirm = function (message) { - return window.__TAURI_INVOKE__('tauri', { - __tauriModule: 'Dialog', - message: { - cmd: 'confirmDialog', - message: message.toString() - } - }) - } - - // window.print works on Linux/Windows; need to use the API on macOS - if (navigator.userAgent.includes('Mac')) { - window.print = function () { - return window.__TAURI_INVOKE__('tauri', { - __tauriModule: 'Window', - message: { - cmd: 'manage', - data: { - cmd: { - type: 'print' - } - } - } - }) - } - } })() diff --git a/core/tauri/scripts/init.js b/core/tauri/scripts/init.js index 581b4f27df36..8c820a11c91c 100644 --- a/core/tauri/scripts/init.js +++ b/core/tauri/scripts/init.js @@ -17,6 +17,10 @@ __RAW_core_script__ + __RAW_window_dialogs_script__ + + __RAW_window_print_script__ + __RAW_event_initialization_script__ if (window.ipc) { diff --git a/core/tauri/scripts/window_dialogs.js b/core/tauri/scripts/window_dialogs.js new file mode 100644 index 000000000000..7bdf1bafb82e --- /dev/null +++ b/core/tauri/scripts/window_dialogs.js @@ -0,0 +1,19 @@ +window.alert = function (message) { + window.__TAURI_INVOKE__('tauri', { + __tauriModule: 'Dialog', + message: { + cmd: 'messageDialog', + message: message.toString() + } + }) +} + +window.confirm = function (message) { + return window.__TAURI_INVOKE__('tauri', { + __tauriModule: 'Dialog', + message: { + cmd: 'confirmDialog', + message: message.toString() + } + }) +} diff --git a/core/tauri/scripts/window_print.js b/core/tauri/scripts/window_print.js new file mode 100644 index 000000000000..bffd4867157c --- /dev/null +++ b/core/tauri/scripts/window_print.js @@ -0,0 +1,13 @@ +window.print = function () { + return window.__TAURI_INVOKE__('tauri', { + __tauriModule: 'Window', + message: { + cmd: 'manage', + data: { + cmd: { + type: 'print' + } + } + } + }) +} diff --git a/core/tauri/src/manager.rs b/core/tauri/src/manager.rs index a3048890b6f4..8410154a2dc5 100644 --- a/core/tauri/src/manager.rs +++ b/core/tauri/src/manager.rs @@ -917,6 +917,10 @@ impl WindowManager { #[raw] core_script: &'a str, #[raw] + window_dialogs_script: &'a str, + #[raw] + window_print_script: &'a str, + #[raw] event_initialization_script: &'a str, #[raw] plugin_initialization_script: &'a str, @@ -982,6 +986,19 @@ impl WindowManager { ) ), core_script: include_str!("../scripts/core.js"), + + // window.print works on Linux/Windows; need to use the API on macOS + #[cfg(any(target_os = "macos", target_os = "ios"))] + window_print_script: include_str!("../scripts/window_print.js"), + #[cfg(not(any(target_os = "macos", target_os = "ios")))] + window_print_script: "", + + // dialogs are implemented natively on Android + #[cfg(not(target_os = "android"))] + window_dialogs_script: include_str!("../scripts/window_dialogs.js"), + #[cfg(target_os = "android")] + window_dialogs_script: "", + event_initialization_script: &self.event_initialization_script(), plugin_initialization_script, freeze_prototype, diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index e6a5f212c473..6dfe2d18f6fd 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -2030,9 +2030,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.13.0" +version = "1.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18a6dbe30758c9f83eb00cbea4ac95966305f5a7772f3f42ebfc7fc7eddbd8e1" +checksum = "2f7254b99e31cad77da24b08ebf628882739a608578bb1bcdfc1f9c21260d7c0" [[package]] name = "opaque-debug" @@ -3107,7 +3107,7 @@ dependencies = [ [[package]] name = "tao" version = "0.13.3" -source = "git+https://github.com/tauri-apps/tao?branch=dev#816ca49dc648a5286eab943c6fc936629fd3a596" +source = "git+https://github.com/tauri-apps/tao?branch=dev#0ae71fc887f0cbc498f7a2f5053201b4546f5a4d" dependencies = [ "bitflags", "cairo-rs", @@ -3146,8 +3146,8 @@ dependencies = [ "serde", "unicode-segmentation", "uuid 1.1.2", - "windows 0.37.0", - "windows-implement 0.37.0", + "windows 0.39.0", + "windows-implement", "x11-dl", ] @@ -3893,7 +3893,7 @@ dependencies = [ "webview2-com-macros", "webview2-com-sys", "windows 0.39.0", - "windows-implement 0.39.0", + "windows-implement", ] [[package]] @@ -4024,7 +4024,6 @@ version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57b543186b344cc61c85b5aab0d2e3adf4e0f99bc076eff9aa5927bcc0b8a647" dependencies = [ - "windows-implement 0.37.0", "windows_aarch64_msvc 0.37.0", "windows_i686_gnu 0.37.0", "windows_i686_msvc 0.37.0", @@ -4038,7 +4037,7 @@ version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1c4bd0a50ac6020f65184721f758dba47bb9fbc2133df715ec74a237b26794a" dependencies = [ - "windows-implement 0.39.0", + "windows-implement", "windows_aarch64_msvc 0.39.0", "windows_i686_gnu 0.39.0", "windows_i686_msvc 0.39.0", @@ -4053,17 +4052,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "68003dbd0e38abc0fb85b939240f4bce37c43a5981d3df37ccbaaa981b47cb41" dependencies = [ "windows-metadata", - "windows-tokens 0.39.0", -] - -[[package]] -name = "windows-implement" -version = "0.37.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67a1062e555f7d9d66fd1130ed4f7c6ec41a47529ee0850cd0e926d95b26bb14" -dependencies = [ - "syn", - "windows-tokens 0.37.0", + "windows-tokens", ] [[package]] @@ -4073,7 +4062,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ba01f98f509cb5dc05f4e5fc95e535f78260f15fea8fe1a8abdd08f774f1cee7" dependencies = [ "syn", - "windows-tokens 0.39.0", + "windows-tokens", ] [[package]] @@ -4095,12 +4084,6 @@ dependencies = [ "windows_x86_64_msvc 0.36.1", ] -[[package]] -name = "windows-tokens" -version = "0.37.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3263d25f1170419995b78ff10c06b949e8a986c35c208dc24333c64753a87169" - [[package]] name = "windows-tokens" version = "0.39.0" @@ -4283,7 +4266,7 @@ dependencies = [ [[package]] name = "wry" version = "0.20.2" -source = "git+https://github.com/tauri-apps/wry?branch=dev#854d2226f4161d4fc783f64e79b6a8add31ac4eb" +source = "git+https://github.com/tauri-apps/wry?branch=dev#3624414faa53386660b9d066c00e91e240b7681d" dependencies = [ "base64", "block", @@ -4312,7 +4295,7 @@ dependencies = [ "webkit2gtk-sys", "webview2-com", "windows 0.39.0", - "windows-implement 0.39.0", + "windows-implement", ] [[package]] From c9ad2a73af5b2473e58464bf20c5984e244d4957 Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Wed, 7 Sep 2022 17:05:11 +0200 Subject: [PATCH 060/436] fix(cli/mobile): use one `write_all` call (#5155) Co-authored-by: Lucas Nogueira --- tooling/cli/src/mobile/mod.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index 4e62c6d7e626..dd07b14849bc 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -155,13 +155,13 @@ pub fn write_options( options.vars.extend(env_vars()); let name = options_local_socket_name(bundle_identifier, target); let _ = std::fs::remove_file(&name); - let value = serde_json::to_string(&options)?; + let mut value = serde_json::to_string(&options)?; + value.push('\n'); std::thread::spawn(move || { let listener = LocalSocketListener::bind(name).expect("failed to start local socket"); for mut conn in listener.incoming().flatten() { let _ = conn.write_all(value.as_bytes()); - let _ = conn.write_all(b"\n"); } }); @@ -184,10 +184,10 @@ fn read_options(config: &TauriConfig, target: Target) -> CliOptions { let mut attempt = 0; let max_tries = 5; - let (buffer, len) = loop { + let buffer = loop { let mut buffer = String::new(); - if let Ok(len) = conn.read_line(&mut buffer) { - break (buffer, len); + if conn.read_line(&mut buffer).is_ok() { + break buffer; } std::thread::sleep(std::time::Duration::from_secs(1)); attempt += 1; @@ -200,7 +200,7 @@ fn read_options(config: &TauriConfig, target: Target) -> CliOptions { } }; - let options: CliOptions = serde_json::from_str(&buffer[..len - 1]).expect("invalid CLI options"); + let options: CliOptions = serde_json::from_str(&buffer).expect("invalid CLI options"); for (k, v) in &options.vars { set_var(k, v); } From 8ea87e9c9ca8ba4c7017c8281f78aacd08f45785 Mon Sep 17 00:00:00 2001 From: Jeffrey Hutchins Date: Thu, 8 Sep 2022 07:57:10 -0600 Subject: [PATCH 061/436] feat(android): with_webview access for jni execution (#5148) --- .changes/mobile-webview-access.md | 6 ++++++ core/tauri-runtime-wry/src/lib.rs | 16 ++++++++------ core/tauri-runtime-wry/src/webview.rs | 6 ++++++ core/tauri/src/window.rs | 30 ++++++++++++++++++++++----- 4 files changed, 47 insertions(+), 11 deletions(-) create mode 100644 .changes/mobile-webview-access.md diff --git a/.changes/mobile-webview-access.md b/.changes/mobile-webview-access.md new file mode 100644 index 000000000000..9d7fd65ad74b --- /dev/null +++ b/.changes/mobile-webview-access.md @@ -0,0 +1,6 @@ +--- +"tauri-runtime-wry": minor +"tauri": minor +--- + +Support `with_webview` for Android platform alowing execution of JNI code in context. diff --git a/core/tauri-runtime-wry/src/lib.rs b/core/tauri-runtime-wry/src/lib.rs index 2ebc42de5ca0..f054e4fb76c1 100644 --- a/core/tauri-runtime-wry/src/lib.rs +++ b/core/tauri-runtime-wry/src/lib.rs @@ -102,9 +102,9 @@ type FileDropHandler = dyn Fn(&Window, WryFileDropEvent) -> bool + 'static; #[cfg(all(desktop, feature = "system-tray"))] pub use tauri_runtime::TrayId; -#[cfg(desktop)] +#[cfg(any(desktop, target_os = "android"))] mod webview; -#[cfg(desktop)] +#[cfg(any(desktop, target_os = "android"))] pub use webview::Webview; #[cfg(all(desktop, feature = "system-tray"))] @@ -987,7 +987,7 @@ pub struct RawWindowHandle(pub raw_window_handle::RawWindowHandle); unsafe impl Send for RawWindowHandle {} pub enum WindowMessage { - #[cfg(desktop)] + #[cfg(any(desktop, target_os = "android"))] WithWebview(Box), AddEventListener(Uuid, Box), AddMenuEventListener(Uuid, Box), @@ -1133,7 +1133,7 @@ pub struct WryDispatcher { unsafe impl Sync for WryDispatcher {} impl WryDispatcher { - #[cfg(desktop)] + #[cfg(any(desktop, target_os = "android"))] pub fn with_webview(&self, f: F) -> Result<()> { send_user_message( &self.context, @@ -2166,7 +2166,7 @@ fn handle_user_message( }); if let Some((Some(window), window_event_listeners, menu_event_listeners)) = w { match window_message { - #[cfg(desktop)] + #[cfg(any(target_os = "android", desktop))] WindowMessage::WithWebview(f) => { if let WindowHandle::Webview(w) = window { #[cfg(any( @@ -2189,13 +2189,17 @@ fn handle_user_message( ns_window: w.ns_window(), }); } - #[cfg(windows)] { f(Webview { controller: w.controller(), }); } + #[cfg(target_os = "android")] + { + use wry::webview::WebviewExtAndroid; + f(w.handle()) + } } } diff --git a/core/tauri-runtime-wry/src/webview.rs b/core/tauri-runtime-wry/src/webview.rs index 8d200fdf30a3..f95b19a3d097 100644 --- a/core/tauri-runtime-wry/src/webview.rs +++ b/core/tauri-runtime-wry/src/webview.rs @@ -34,4 +34,10 @@ mod imp { } } +#[cfg(target_os = "android")] +mod imp { + use wry::webview::JniHandle; + pub type Webview = JniHandle; +} + pub use imp::*; diff --git a/core/tauri/src/window.rs b/core/tauri/src/window.rs index fb987564a1d9..002bfc85b5d2 100644 --- a/core/tauri/src/window.rs +++ b/core/tauri/src/window.rs @@ -587,11 +587,14 @@ impl<'de, R: Runtime> CommandArg<'de, R> for Window { } /// The platform webview handle. Accessed with [`Window#method.with_webview`]; -#[cfg(all(desktop, feature = "wry"))] -#[cfg_attr(doc_cfg, doc(cfg(all(desktop, feature = "wry"))))] +#[cfg(all(any(desktop, target_os = "android"), feature = "wry"))] +#[cfg_attr( + doc_cfg, + doc(cfg(all(any(desktop, target_os = "android"), feature = "wry"))) +)] pub struct PlatformWebview(tauri_runtime_wry::Webview); -#[cfg(all(desktop, feature = "wry"))] +#[cfg(all(any(desktop, target_os = "android"), feature = "wry"))] impl PlatformWebview { /// Returns [`webkit2gtk::WebView`] handle. #[cfg(any( @@ -650,6 +653,12 @@ impl PlatformWebview { pub fn ns_window(&self) -> cocoa::base::id { self.0.ns_window } + + /// Returns handle for JNI execution. + #[cfg(target_os = "android")] + pub fn jni_handle(&self) -> tauri_runtime_wry::wry::webview::JniHandle { + self.0 + } } /// APIs specific to the wry runtime. @@ -693,13 +702,24 @@ impl Window { /// let bg_color: cocoa::base::id = msg_send![class!(NSColor), colorWithDeviceRed:0.5 green:0.2 blue:0.4 alpha:1.]; /// let () = msg_send![webview.ns_window(), setBackgroundColor: bg_color]; /// } + /// + /// #[cfg(target_os = "android")] + /// { + /// use jni::objects::JValue; + /// webview.jni_handle().exec(|env, _, webview| { + /// env.call_method(webview, "zoomBy", "(F)V", &[JValue::Float(4.)]).unwrap(); + /// }) + /// } /// }); /// Ok(()) /// }); /// } /// ``` - #[cfg(desktop)] - #[cfg_attr(doc_cfg, doc(cfg(all(feature = "wry", desktop))))] + #[cfg(any(desktop, target_os = "android"))] + #[cfg_attr( + doc_cfg, + doc(cfg(all(feature = "wry", any(desktop, target_os = "android")))) + )] pub fn with_webview( &self, f: F, From 10ab3e2f5ef3f24f67755339587bd7ced13ff2d5 Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Mon, 12 Sep 2022 21:46:09 +0200 Subject: [PATCH 062/436] feat(cli/mobile): allow checking `gen` folder into source control (#5146) Co-authored-by: Lucas Nogueira --- tooling/cli/src/helpers/template.rs | 19 ++++++++++--------- tooling/cli/src/info.rs | 2 +- tooling/cli/src/mobile/android/project.rs | 7 ++++++- tooling/cli/src/mobile/ios/project.rs | 13 ++++++++++--- .../cli/templates/mobile/android/.gitignore | 4 +++- .../templates/mobile/android/app/.gitignore | 1 - 6 files changed, 30 insertions(+), 16 deletions(-) diff --git a/tooling/cli/src/helpers/template.rs b/tooling/cli/src/helpers/template.rs index 20e64cf01e1f..3bc03eeb2597 100644 --- a/tooling/cli/src/helpers/template.rs +++ b/tooling/cli/src/helpers/template.rs @@ -54,7 +54,7 @@ pub fn render, D: Serialize>( create_dir_all(&parent)?; created_dirs.push(parent); } - File::create(path) + File::create(path).map(Some) }, ) } @@ -62,7 +62,7 @@ pub fn render, D: Serialize>( pub fn render_with_generator< P: AsRef, D: Serialize, - F: FnMut(&PathBuf) -> std::io::Result, + F: FnMut(&PathBuf) -> std::io::Result>, >( handlebars: &Handlebars<'_>, data: &D, @@ -80,13 +80,14 @@ pub fn render_with_generator< file_path.set_extension("toml"); } } - let mut output_file = out_file_generator(&file_path)?; - if let Some(utf8) = file.contents_utf8() { - handlebars - .render_template_to_write(utf8, &data, &mut output_file) - .expect("Failed to render template"); - } else { - output_file.write_all(file.contents())?; + if let Some(mut output_file) = out_file_generator(&file_path)? { + if let Some(utf8) = file.contents_utf8() { + handlebars + .render_template_to_write(utf8, &data, &mut output_file) + .expect("Failed to render template"); + } else { + output_file.write_all(file.contents())?; + } } } for dir in dir.dirs() { diff --git a/tooling/cli/src/info.rs b/tooling/cli/src/info.rs index 1f5d78f56ab8..b4b4b3c90d2d 100644 --- a/tooling/cli/src/info.rs +++ b/tooling/cli/src/info.rs @@ -641,7 +641,7 @@ pub fn command(_options: Options) -> Result<()> { InfoBlock::new("MSVC", "").display(); for i in build_tools { indent(6); - println!("{}", format!("{} {}", "-".cyan(), i)); + println!("{} {}", "-".cyan(), i); } } } diff --git a/tooling/cli/src/mobile/android/project.rs b/tooling/cli/src/mobile/android/project.rs index 8a06701f66f4..16b5cacfe7d9 100644 --- a/tooling/cli/src/mobile/android/project.rs +++ b/tooling/cli/src/mobile/android/project.rs @@ -122,6 +122,7 @@ pub fn gen( } let mut options = fs::OpenOptions::new(); + options.write(true); #[cfg(unix)] if path.file_name().unwrap() == OsStr::new("gradlew") { @@ -129,7 +130,11 @@ pub fn gen( options.mode(0o755); } - options.create_new(true).write(true).open(path) + if path.file_name().unwrap() == OsStr::new("BuildTask.kt") || !path.exists() { + options.create(true).open(path).map(Some) + } else { + Ok(None) + } }, ) .with_context(|| "failed to process template")?; diff --git a/tooling/cli/src/mobile/ios/project.rs b/tooling/cli/src/mobile/ios/project.rs index a2ddc1a3a947..ea7bf3035da3 100644 --- a/tooling/cli/src/mobile/ios/project.rs +++ b/tooling/cli/src/mobile/ios/project.rs @@ -18,8 +18,8 @@ use cargo_mobile::{ use handlebars::Handlebars; use include_dir::{include_dir, Dir}; use std::{ - ffi::OsString, - fs::{create_dir_all, File}, + ffi::{OsStr, OsString}, + fs::{create_dir_all, OpenOptions}, path::{Component, PathBuf}, }; @@ -136,7 +136,14 @@ pub fn gen( created_dirs.push(parent); } - File::create(path) + let mut options = OpenOptions::new(); + options.write(true); + + if path.file_name().unwrap() == OsStr::new("BuildTask.kt") || !path.exists() { + options.create(true).open(path).map(Some) + } else { + Ok(None) + } }, ) .with_context(|| "failed to process template")?; diff --git a/tooling/cli/templates/mobile/android/.gitignore b/tooling/cli/templates/mobile/android/.gitignore index aa724b77071a..09f56a44322b 100644 --- a/tooling/cli/templates/mobile/android/.gitignore +++ b/tooling/cli/templates/mobile/android/.gitignore @@ -8,7 +8,9 @@ /.idea/navEditor.xml /.idea/assetWizardSettings.xml .DS_Store -/build +build +/buildSrc/src/main/{{package-path}}/kotlin/BuildTask.kt +/buildSrc/src/main/{{package-path}}/kotlin/RustPlugin.kt /captures .externalNativeBuild .cxx diff --git a/tooling/cli/templates/mobile/android/app/.gitignore b/tooling/cli/templates/mobile/android/app/.gitignore index 357fc705cecd..5da460648004 100644 --- a/tooling/cli/templates/mobile/android/app/.gitignore +++ b/tooling/cli/templates/mobile/android/app/.gitignore @@ -1,2 +1 @@ -/build /src/main/{{package-path}}/generated From 348b26ffed6c0b031df5350a57b238f1c71c1c03 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Mon, 31 Oct 2022 13:27:22 -0300 Subject: [PATCH 063/436] fix(ci): minimum rustc is now 1.59 --- .github/workflows/test-core.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-core.yml b/.github/workflows/test-core.yml index b79063bd5c78..e1bff7f5a7e1 100644 --- a/.github/workflows/test-core.yml +++ b/.github/workflows/test-core.yml @@ -56,14 +56,14 @@ jobs: - { target: aarch64-apple-ios, os: macos-latest, - toolchain: '1.57.0', + toolchain: '1.59.0', cross: false, acommand: 'build' } - { target: aarch64-linux-android, os: ubuntu-latest, - toolchain: '1.57.0', + toolchain: '1.59.0', cross: true, command: 'build' } From 69414a487ff680875cff5924c39efc01e2f501c8 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Wed, 9 Nov 2022 11:38:08 -0300 Subject: [PATCH 064/436] chore(cli): lint --- examples/api/src-tauri/Cargo.lock | 19 ++----------------- examples/api/src-tauri/Cargo.toml | 3 --- tooling/cli/src/interface/rust/desktop.rs | 2 +- tooling/cli/src/mobile/ios/build.rs | 7 +++---- tooling/cli/src/mobile/ios/project.rs | 2 +- 5 files changed, 7 insertions(+), 26 deletions(-) diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index e604447b0db9..bd54e02d6f19 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -103,7 +103,6 @@ version = "0.1.0" dependencies = [ "android_logger", "env_logger 0.9.3", - "jni 0.19.0", "log", "serde", "serde_json", @@ -1501,20 +1500,6 @@ dependencies = [ "walkdir", ] -[[package]] -name = "jni" -version = "0.20.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "039022cdf4d7b1cf548d31f60ae783138e5fd42013f6271049d7df7afadef96c" -dependencies = [ - "cesu8", - "combine", - "jni-sys", - "log", - "thiserror", - "walkdir", -] - [[package]] name = "jni-sys" version = "0.3.0" @@ -1626,7 +1611,7 @@ dependencies = [ "libc", "neli", "thiserror", - "windows-sys", + "windows-sys 0.36.1", ] [[package]] @@ -3110,7 +3095,7 @@ dependencies = [ "gtk", "image", "instant", - "jni 0.20.0", + "jni", "lazy_static", "libappindicator", "libc", diff --git a/examples/api/src-tauri/Cargo.toml b/examples/api/src-tauri/Cargo.toml index 6dad7c673e23..8bec982b3316 100644 --- a/examples/api/src-tauri/Cargo.toml +++ b/examples/api/src-tauri/Cargo.toml @@ -6,9 +6,6 @@ edition = "2021" rust-version = "1.59" license = "Apache-2.0 OR MIT" -[patch.crates-io] -tao = { git = "https://github.com/tauri-apps/tao", branch = "dev" } - [lib] crate-type = ["staticlib", "cdylib", "rlib"] diff --git a/tooling/cli/src/interface/rust/desktop.rs b/tooling/cli/src/interface/rust/desktop.rs index e477e6eea7be..b84c6e5526cf 100644 --- a/tooling/cli/src/interface/rust/desktop.rs +++ b/tooling/cli/src/interface/rust/desktop.rs @@ -383,7 +383,7 @@ fn rename_app(bin_path: &Path, product_name: Option<&str>) -> crate::Result Result<()> { let mut app_version = config.bundle_version().clone(); if let Some(build_number) = options.build_number { app_version.push_extra(build_number); @@ -152,11 +152,10 @@ fn run_build( out_files.push(path); } - anyhow::Result::Ok(()) + Ok(()) }, ) - .map_err(|e: TargetInvalid| anyhow::anyhow!(e.to_string()))? - .map_err(|e: anyhow::Error| e)?; + .map_err(|e: TargetInvalid| anyhow::anyhow!(e.to_string()))??; log_finished(out_files, "IPA"); diff --git a/tooling/cli/src/mobile/ios/project.rs b/tooling/cli/src/mobile/ios/project.rs index ea7bf3035da3..051af0eeedd6 100644 --- a/tooling/cli/src/mobile/ios/project.rs +++ b/tooling/cli/src/mobile/ios/project.rs @@ -172,7 +172,7 @@ pub fn gen( // often necessary. println!("Generating Xcode project..."); bossy::Command::impure("xcodegen") - .with_args(&["generate", "--spec"]) + .with_args(["generate", "--spec"]) .with_arg(dest.join("project.yml")) .run_and_wait() .with_context(|| "failed to run `xcodegen`")?; From 7c26514340f0637ed9052cb0f534436a78b60284 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Fri, 11 Nov 2022 11:41:20 -0300 Subject: [PATCH 065/436] fix(cli): kill beforeDevCommand process when mobile fails to compile --- tooling/cli/src/dev.rs | 2 +- tooling/cli/src/mobile/android/dev.rs | 5 ++++- tooling/cli/src/mobile/ios/dev.rs | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/tooling/cli/src/dev.rs b/tooling/cli/src/dev.rs index ca4bc4269aa2..af04cdda5e52 100644 --- a/tooling/cli/src/dev.rs +++ b/tooling/cli/src/dev.rs @@ -357,7 +357,7 @@ fn check_for_updates() -> Result<()> { Ok(()) } -fn kill_before_dev_process() { +pub fn kill_before_dev_process() { if let Some(child) = BEFORE_DEV.get() { let child = child.lock().unwrap(); KILL_BEFORE_DEV_FLAG diff --git a/tooling/cli/src/mobile/android/dev.rs b/tooling/cli/src/mobile/android/dev.rs index d9814bbf123f..67617e5e16ab 100644 --- a/tooling/cli/src/mobile/android/dev.rs +++ b/tooling/cli/src/mobile/android/dev.rs @@ -154,7 +154,10 @@ fn run_dev( log::error!("{}", e); open_and_wait(config, &env) } - Err(e) => Err(e.into()), + Err(e) => { + crate::dev::kill_before_dev_process(); + Err(e.into()) + } } } }, diff --git a/tooling/cli/src/mobile/ios/dev.rs b/tooling/cli/src/mobile/ios/dev.rs index 5b205abdb0d3..6fd4e66184fd 100644 --- a/tooling/cli/src/mobile/ios/dev.rs +++ b/tooling/cli/src/mobile/ios/dev.rs @@ -128,7 +128,10 @@ fn run_dev( log::error!("{}", e); open_and_wait(config, &env) } - Err(e) => Err(e.into()), + Err(e) => { + crate::dev::kill_before_dev_process(); + Err(e.into()) + } } } }, From f9b529a96eadf7b7b9bc6de50063c285d45f93d9 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Fri, 11 Nov 2022 11:43:25 -0300 Subject: [PATCH 066/436] feat(cli): update project.yml syntax --- tooling/cli/src/mobile/ios/xcode_script.rs | 57 +++++++++++++++++++- tooling/cli/src/mobile/mod.rs | 1 + tooling/cli/templates/mobile/ios/project.yml | 30 ++++------- 3 files changed, 68 insertions(+), 20 deletions(-) diff --git a/tooling/cli/src/mobile/ios/xcode_script.rs b/tooling/cli/src/mobile/ios/xcode_script.rs index 1f2da48e3c68..59e509a2b7ac 100644 --- a/tooling/cli/src/mobile/ios/xcode_script.rs +++ b/tooling/cli/src/mobile/ios/xcode_script.rs @@ -14,6 +14,15 @@ pub struct Options { /// Value of `SDKROOT` env var #[clap(long)] sdk_root: PathBuf, + /// Value of `FRAMEWORK_SEARCH_PATHS` env var + #[clap(long)] + framework_search_paths: String, + /// Value of `GCC_PREPROCESSOR_DEFINITIONS` env var + #[clap(long)] + gcc_preprocessor_definitions: String, + /// Value of `HEADER_SEARCH_PATHS` env var + #[clap(long)] + header_search_paths: String, /// Value of `CONFIGURATION` env var #[clap(long)] configuration: String, @@ -38,6 +47,17 @@ pub fn command(options: Options) -> Result<()> { } } + // `xcode-script` is ran from the `gen/apple` folder. + std::env::set_current_dir( + std::env::current_dir() + .unwrap() + .parent() + .unwrap() + .parent() + .unwrap(), + ) + .unwrap(); + let profile = profile_from_configuration(&options.configuration); let macos = macos_from_platform(&options.platform); @@ -46,7 +66,9 @@ pub fn command(options: Options) -> Result<()> { // The `PATH` env var Xcode gives us is missing any additions // made by the user's profile, so we'll manually add cargo's // `PATH`. - let env = env.prepend_to_path(util::home_dir()?.join(".cargo/bin")); + let env = env + .explicit_env_vars(cli_options.vars) + .prepend_to_path(util::home_dir()?.join(".cargo/bin")); if !options.sdk_root.is_dir() { return Err(anyhow::anyhow!( @@ -62,10 +84,42 @@ pub fn command(options: Options) -> Result<()> { )); } + // Host flags that are used by build scripts + let macos_isysroot = { + let macos_sdk_root = options + .sdk_root + .join("../../../../MacOSX.platform/Developer/SDKs/MacOSX.sdk"); + if !macos_sdk_root.is_dir() { + return Err(anyhow::anyhow!( + "Invalid SDK root {}", + macos_sdk_root.display() + )); + } + format!("-isysroot {}", macos_sdk_root.display()) + }; + let mut host_env = HashMap::<&str, &OsStr>::new(); host_env.insert("RUST_BACKTRACE", "1".as_ref()); + host_env.insert("CFLAGS_x86_64_apple_darwin", macos_isysroot.as_ref()); + host_env.insert("CXXFLAGS_x86_64_apple_darwin", macos_isysroot.as_ref()); + + host_env.insert( + "OBJC_INCLUDE_PATH_x86_64_apple_darwin", + include_dir.as_os_str(), + ); + + host_env.insert( + "FRAMEWORK_SEARCH_PATHS", + options.framework_search_paths.as_ref(), + ); + host_env.insert( + "GCC_PREPROCESSOR_DEFINITIONS", + options.gcc_preprocessor_definitions.as_ref(), + ); + host_env.insert("HEADER_SEARCH_PATHS", options.header_search_paths.as_ref()); + let macos_target = Target::macos(); let isysroot = format!("-isysroot {}", options.sdk_root.display()); @@ -76,6 +130,7 @@ pub fn command(options: Options) -> Result<()> { "arm64" => "aarch64_apple_ios", "arm64-sim" => "aarch64_apple_ios_sim", "x86_64" => "x86_64_apple_ios", + "Simulator" => continue, _ => { return Err(anyhow::anyhow!( "Arch specified by Xcode was invalid. {} isn't a known arch", diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index c8cdbe3ab576..67adff880692 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -138,6 +138,7 @@ fn env_vars() -> HashMap { if (k.starts_with("TAURI") && k != "TAURI_PRIVATE_KEY" && k != "TAURI_KEY_PASSWORD") || k.starts_with("WRY") || k == "TMPDIR" + || k == "PATH" { vars.insert(k.into_owned(), v); } diff --git a/tooling/cli/templates/mobile/ios/project.yml b/tooling/cli/templates/mobile/ios/project.yml index af7263b22a74..7f190c73cef7 100644 --- a/tooling/cli/templates/mobile/ios/project.yml +++ b/tooling/cli/templates/mobile/ios/project.yml @@ -76,11 +76,11 @@ targets: ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES: true groups: [app] dependencies: - - target: lib_{{app.name}}_iOS - embed: false - link: false - framework: lib{{snake-case app.name}}.a embed: false + {{~#each ios-libraries}} + - framework: {{this}} + embed: false{{/each}} {{~#each ios-vendor-frameworks}} - framework: {{prefix-path this}}{{/each}} {{~#each ios-vendor-sdks}} @@ -94,7 +94,6 @@ targets: {{~#each ios-frameworks}} - sdk: {{this}}.framework{{/each}} - sdk: WebKit.framework - {{~#if ios-pre-build-scripts}} preBuildScripts: {{~#each ios-pre-build-scripts}}{{#if this.path}} - path {{this.path}}{{/if}}{{#if this.script}} @@ -113,8 +112,14 @@ targets: runOnlyWhenInstalling: {{this.run-only-when-installing}}{{/if}}{{#if this.based-on-dependency-analysis}} basedOnDependencyAnalysis: {{this.based-on-dependency-analysis}}{{/if}}{{#if this.discovered-dependency-file}} discoveredDependencyFile: {{this.discovered-dependency-file}}{{/if}} - {{~/each~}} - {{~/if~}} + {{~/each}} + + - script: {{ tauri-binary }} {{ tauri-binary-args-str }} -v --platform ${PLATFORM_DISPLAY_NAME:?} --sdk-root ${SDKROOT:?} --framework-search-paths "${FRAMEWORK_SEARCH_PATHS:?}" --header-search-paths "${HEADER_SEARCH_PATHS:?}" --gcc-preprocessor-definitions "${GCC_PREPROCESSOR_DEFINITIONS:?}" --configuration ${CONFIGURATION:?} ${FORCE_COLOR} ${ARCHS:?} + name: Build Rust Code + basedOnDependencyAnalysis: false + outputFiles: + - $(SRCROOT)/target/aarch64-apple-ios/${CONFIGURATION}/deps/lib{{snake-case app.name}}.a + - $(SRCROOT)/target/x86_64-apple-ios/${CONFIGURATION}/deps/lib{{snake-case app.name}}.a {{~#if ios-post-compile-scripts}} postCompileScripts: {{~#each ios-post-compile-scripts}}{{#if this.path}} @@ -157,16 +162,3 @@ targets: discoveredDependencyFile: {{this.discovered-dependency-file}}{{/if}} {{~/each~}} {{~/if}} - - lib_{{app.name}}_iOS: - type: "" - platform: iOS - settings: - ENABLE_BITCODE: false - ARCHS: [{{join ios-valid-archs}}] - VALID_ARCHS: {{~#each ios-valid-archs}} {{this}} {{/each}} - legacy: - toolPath: {{ tauri-binary }} - arguments: {{ tauri-binary-args-str }} -v --platform ${PLATFORM_DISPLAY_NAME:?} --sdk-root ${SDKROOT:?} --configuration ${CONFIGURATION:?} ${FORCE_COLOR} ${ARCHS:?} - passSettings: false # prevents evil linker errors - workingDirectory: $(SRCROOT)/../.. From 8c576222ba072481f471116f30e011a1cd0808f9 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Mon, 14 Nov 2022 18:31:51 -0300 Subject: [PATCH 067/436] feat(cli): find development teams for iOS development (#5627) --- tooling/cli/Cargo.lock | 2 +- tooling/cli/src/info.rs | 23 ++++++++++++++++++++ tooling/cli/src/mobile/init.rs | 2 ++ tooling/cli/src/mobile/ios.rs | 21 ++++++++++++++++-- tooling/cli/src/mobile/ios/dev.rs | 36 ++++++++++++++++++++++++++++++- 5 files changed, 80 insertions(+), 4 deletions(-) diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 073c81bceb60..dde6e91dc079 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -387,7 +387,7 @@ checksum = "c1db59621ec70f09c5e9b597b220c7a2b43611f4710dc03ceb8748637775692c" [[package]] name = "cargo-mobile" version = "0.1.0" -source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#bf876273afc0b3e5e1e2cdcc232cdfe81ff4428d" +source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#22337b1fbde028e8c66b00e9f9ac97f60146bbb5" dependencies = [ "cocoa", "colored 1.9.3", diff --git a/tooling/cli/src/info.rs b/tooling/cli/src/info.rs index c1b3fa1b7b4b..4db28bf6ed57 100644 --- a/tooling/cli/src/info.rs +++ b/tooling/cli/src/info.rs @@ -885,6 +885,29 @@ pub fn command(_options: Options) -> Result<()> { } } + #[cfg(target_os = "macos")] + if tauri_dir.is_some() { + let p = tauri_dir.as_ref().unwrap(); + if p.join("gen/apple").exists() { + let teams = cargo_mobile::apple::teams::find_development_teams().unwrap_or_default(); + Section("iOS").display(); + InfoBlock::new( + "Teams", + if teams.is_empty() { + "None".red().to_string() + } else { + teams + .iter() + .map(|t| format!("{} (ID: {})", t.name, t.id)) + .collect::>() + .join(", ") + .to_string() + }, + ) + .display(); + } + } + Ok(()) } diff --git a/tooling/cli/src/mobile/init.rs b/tooling/cli/src/mobile/init.rs index 991e85d12434..99fedd9fc0d6 100644 --- a/tooling/cli/src/mobile/init.rs +++ b/tooling/cli/src/mobile/init.rs @@ -135,6 +135,8 @@ pub fn exec( #[cfg(target_os = "macos")] // Generate Xcode project Target::Ios => { + // the apple development team is not required on init + std::env::set_var(super::ios::APPLE_DEVELOPMENT_TEAM_ENV_VAR_NAME, ""); let (app, config, metadata) = super::ios::get_config(Some(app), tauri_config_, &Default::default()); map.insert("apple", &config); diff --git a/tooling/cli/src/mobile/ios.rs b/tooling/cli/src/mobile/ios.rs index a7f5e1275d85..c2783ba92b07 100644 --- a/tooling/cli/src/mobile/ios.rs +++ b/tooling/cli/src/mobile/ios.rs @@ -11,6 +11,7 @@ use cargo_mobile::{ device::Device, ios_deploy, simctl, target::Target, + teams::find_development_teams, }, config::app::App, env::Env, @@ -32,6 +33,7 @@ use crate::{ }; use std::{ + process::exit, thread::{sleep, spawn}, time::Duration, }; @@ -42,6 +44,8 @@ mod open; pub(crate) mod project; mod xcode_script; +pub const APPLE_DEVELOPMENT_TEAM_ENV_VAR_NAME: &str = "TAURI_APPLE_DEVELOPMENT_TEAM"; + #[derive(Parser)] #[clap( author, @@ -98,10 +102,23 @@ pub fn get_config( let ios_options = cli_options.clone(); let raw = RawAppleConfig { - development_team: std::env::var("TAURI_APPLE_DEVELOPMENT_TEAM") + development_team: std::env::var(APPLE_DEVELOPMENT_TEAM_ENV_VAR_NAME) .ok() .or_else(|| config.tauri.bundle.ios.development_team.clone()) - .expect("you must set `tauri > iOS > developmentTeam` config value or the `TAURI_APPLE_DEVELOPMENT_TEAM` environment variable"), + .unwrap_or_else(|| { + let teams = find_development_teams().unwrap_or_default(); + match teams.len() { + 0 => { + log::error!("No code signing certificates found. You must add one and set the certificate development team ID on the `tauri > iOS > developmentTeam` config value or the `{APPLE_DEVELOPMENT_TEAM_ENV_VAR_NAME}` environment variable. To list the available certificates, run `tauri info`."); + exit(1); + } + 1 => teams.first().unwrap().id.clone(), + _ => { + log::error!("You must set the code signing certificate development team ID on the `tauri > iOS > developmentTeam` config value or the `{APPLE_DEVELOPMENT_TEAM_ENV_VAR_NAME}` environment variable. Available certificates: {}", teams.iter().map(|t| format!("{} (ID: {})", t.name, t.id)).collect::>().join(", ")); + exit(1); + } + } + }), ios_features: ios_options.features.clone(), bundle_version: config.package.version.clone(), bundle_version_short: config.package.version.clone(), diff --git a/tooling/cli/src/mobile/ios/dev.rs b/tooling/cli/src/mobile/ios/dev.rs index 6fd4e66184fd..732010e7b698 100644 --- a/tooling/cli/src/mobile/ios/dev.rs +++ b/tooling/cli/src/mobile/ios/dev.rs @@ -1,5 +1,6 @@ use super::{ device_prompt, ensure_init, env, init_dot_cargo, open_and_wait, with_config, MobileTarget, + APPLE_DEVELOPMENT_TEAM_ENV_VAR_NAME, }; use crate::{ helpers::{config::get as get_tauri_config, flock}, @@ -10,11 +11,14 @@ use crate::{ use clap::{ArgAction, Parser}; use cargo_mobile::{ - apple::config::Config as AppleConfig, + apple::{config::Config as AppleConfig, teams::find_development_teams}, config::app::App, env::Env, opts::{NoiseLevel, Profile}, }; +use dialoguer::{theme::ColorfulTheme, Select}; + +use std::env::{set_var, var_os}; #[derive(Debug, Clone, Parser)] #[clap(about = "iOS dev")] @@ -57,6 +61,36 @@ impl From for crate::dev::Options { } pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { + if var_os(APPLE_DEVELOPMENT_TEAM_ENV_VAR_NAME).is_none() { + if let Ok(teams) = find_development_teams() { + let index = match teams.len() { + 0 => None, + 1 => Some(0), + _ => { + let index = Select::with_theme(&ColorfulTheme::default()) + .items( + &teams + .iter() + .map(|t| format!("{} (ID: {})", t.name, t.id)) + .collect::>(), + ) + .default(0) + .interact()?; + Some(index) + } + }; + if let Some(index) = index { + let team = teams.get(index).unwrap(); + log::info!( + "Using development team `{}`. To make this permanent, set the `{}` environment variable to `{}`", + team.name, + APPLE_DEVELOPMENT_TEAM_ENV_VAR_NAME, + team.id + ); + set_var(APPLE_DEVELOPMENT_TEAM_ENV_VAR_NAME, &team.id); + } + } + } with_config( Some(Default::default()), |app, config, _metadata, _cli_options| { From 634c6b832ca2629651ff25761f45b2f8f43c36a8 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Mon, 14 Nov 2022 19:59:46 -0300 Subject: [PATCH 068/436] feat(cli): update cargo-mobile including Android env var cleanup --- tooling/cli/Cargo.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index dde6e91dc079..8a6d5322990f 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -387,7 +387,7 @@ checksum = "c1db59621ec70f09c5e9b597b220c7a2b43611f4710dc03ceb8748637775692c" [[package]] name = "cargo-mobile" version = "0.1.0" -source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#22337b1fbde028e8c66b00e9f9ac97f60146bbb5" +source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#76e6e8e7ba289ff5e2c74f72d003f19572c9dba9" dependencies = [ "cocoa", "colored 1.9.3", From 658bb1165e34a718a8777aa172553a6fd092c06a Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Fri, 18 Nov 2022 13:10:20 -0300 Subject: [PATCH 069/436] feat(cli): automatically enable native-tls-vendored feature on mobile (#5651) --- examples/api/src-tauri/Cargo.lock | 10 ----- examples/api/src-tauri/Cargo.toml | 1 - tooling/cli/src/build.rs | 22 ++++++----- tooling/cli/src/interface/rust.rs | 50 +++++++++++++++++++++---- tooling/cli/src/mobile/android/build.rs | 2 +- tooling/cli/src/mobile/ios/build.rs | 2 +- 6 files changed, 56 insertions(+), 31 deletions(-) diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index bd54e02d6f19..ac88c602827b 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -2039,15 +2039,6 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" -[[package]] -name = "openssl-src" -version = "111.22.0+1.1.1q" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f31f0d509d1c1ae9cada2f9539ff8f37933831fd5098879e482aa687d659853" -dependencies = [ - "cc", -] - [[package]] name = "openssl-sys" version = "0.9.77" @@ -2057,7 +2048,6 @@ dependencies = [ "autocfg", "cc", "libc", - "openssl-src", "pkg-config", "vcpkg", ] diff --git a/examples/api/src-tauri/Cargo.toml b/examples/api/src-tauri/Cargo.toml index 8bec982b3316..5deaab6e6f79 100644 --- a/examples/api/src-tauri/Cargo.toml +++ b/examples/api/src-tauri/Cargo.toml @@ -30,7 +30,6 @@ features = [ "macos-private-api", "windows7-compat", "reqwest-client", - "reqwest-native-tls-vendored", "system-tray", "updater" ] diff --git a/tooling/cli/src/build.rs b/tooling/cli/src/build.rs index 22624f23877c..6bf24ac5e6bd 100644 --- a/tooling/cli/src/build.rs +++ b/tooling/cli/src/build.rs @@ -57,7 +57,7 @@ pub struct Options { } pub fn command(mut options: Options) -> Result<()> { - let mut interface = setup(&mut options)?; + let mut interface = setup(&mut options, false)?; let config = get_config(options.config.as_deref())?; let config_guard = config.lock().unwrap(); @@ -222,7 +222,7 @@ pub fn command(mut options: Options) -> Result<()> { Ok(()) } -pub fn setup(options: &mut Options) -> Result { +pub fn setup(options: &mut Options, mobile: bool) -> Result { let (merge_config, merge_config_path) = if let Some(config) = &options.config { if config.starts_with('{') { (Some(config.to_string()), None) @@ -309,11 +309,11 @@ pub fn setup(options: &mut Options) -> Result { } if !out_folders.is_empty() { return Err(anyhow::anyhow!( - "The configured distDir includes the `{:?}` {}. Please isolate your web assets on a separate folder and update `tauri.conf.json > build > distDir`.", - out_folders, - if out_folders.len() == 1 { "folder" }else { "folders" } - ) - ); + "The configured distDir includes the `{:?}` {}. Please isolate your web assets on a separate folder and update `tauri.conf.json > build > distDir`.", + out_folders, + if out_folders.len() == 1 { "folder" }else { "folders" } + ) + ); } } @@ -321,9 +321,11 @@ pub fn setup(options: &mut Options) -> Result { options.runner = config_.build.runner.clone(); } - if let Some(list) = options.features.as_mut() { - list.extend(config_.build.features.clone().unwrap_or_default()); - } + options + .features + .get_or_insert(Vec::new()) + .extend(config_.build.features.clone().unwrap_or_default()); + interface.build_options(&mut options.features, mobile); Ok(interface) } diff --git a/tooling/cli/src/interface/rust.rs b/tooling/cli/src/interface/rust.rs index 27c5b2577cb7..595138293323 100644 --- a/tooling/cli/src/interface/rust.rs +++ b/tooling/cli/src/interface/rust.rs @@ -148,11 +148,7 @@ impl Interface for Rust { &self.app_settings } - fn build(&mut self, mut options: Options) -> crate::Result<()> { - options - .features - .get_or_insert(Vec::new()) - .push("custom-protocol".into()); + fn build(&mut self, options: Options) -> crate::Result<()> { desktop::build( options, &self.app_settings, @@ -172,10 +168,11 @@ impl Interface for Rust { let mut run_args = Vec::new(); dev_options( + false, &mut options.args, &mut run_args, &mut options.features, - self.app_settings.manifest.features(), + &self.app_settings, ); if options.no_watch { @@ -206,10 +203,11 @@ impl Interface for Rust { ) -> crate::Result<()> { let mut run_args = Vec::new(); dev_options( + true, &mut options.args, &mut run_args, &mut options.features, - self.app_settings.manifest.features(), + &self.app_settings, ); if options.no_watch { @@ -346,11 +344,37 @@ fn lookup(dir: &Path, mut f: F) { } } +fn shared_options( + mobile: bool, + features: &mut Option>, + app_settings: &RustAppSettings, +) { + if mobile { + let all_features = app_settings + .manifest + .all_enabled_features(if let Some(f) = features { f } else { &[] }); + if !all_features.contains(&"tauri/native-tls-vendored".into()) + && !all_features.contains(&"tauri/reqwest-native-tls-vendored".into()) + { + if all_features.contains(&"tauri/reqwest-client".into()) { + features + .get_or_insert(Vec::new()) + .push("tauri/reqwest-native-tls-vendored".into()); + } else { + features + .get_or_insert(Vec::new()) + .push("tauri/native-tls-vendored".into()); + } + } + } +} + fn dev_options( + mobile: bool, args: &mut Vec, run_args: &mut Vec, features: &mut Option>, - manifest_features: HashMap>, + app_settings: &RustAppSettings, ) { let mut dev_args = Vec::new(); let mut reached_run_args = false; @@ -365,7 +389,10 @@ fn dev_options( } *args = dev_args; + shared_options(mobile, features, app_settings); + if !args.contains(&"--no-default-features".into()) { + let manifest_features = app_settings.manifest.features(); let enable_features: Vec = manifest_features .get("default") .cloned() @@ -387,6 +414,13 @@ fn dev_options( } impl Rust { + pub fn build_options(&self, features: &mut Option>, mobile: bool) { + features + .get_or_insert(Vec::new()) + .push("custom-protocol".into()); + shared_options(mobile, features, &self.app_settings); + } + fn run_dev( &mut self, options: Options, diff --git a/tooling/cli/src/mobile/android/build.rs b/tooling/cli/src/mobile/android/build.rs index 398510a24e29..d46aa2fb0c04 100644 --- a/tooling/cli/src/mobile/android/build.rs +++ b/tooling/cli/src/mobile/android/build.rs @@ -119,7 +119,7 @@ fn run_build( }; let mut build_options = options.clone().into(); - let interface = crate::build::setup(&mut build_options)?; + let interface = crate::build::setup(&mut build_options, true)?; let app_settings = interface.app_settings(); let bin_path = app_settings.app_binary_path(&InterfaceOptions { diff --git a/tooling/cli/src/mobile/ios/build.rs b/tooling/cli/src/mobile/ios/build.rs index ce0269cacf4d..47f1fcc46da3 100644 --- a/tooling/cli/src/mobile/ios/build.rs +++ b/tooling/cli/src/mobile/ios/build.rs @@ -105,7 +105,7 @@ fn run_build( }; let mut build_options = options.clone().into(); - let interface = crate::build::setup(&mut build_options)?; + let interface = crate::build::setup(&mut build_options, true)?; let app_settings = interface.app_settings(); let bin_path = app_settings.app_binary_path(&InterfaceOptions { From 538e21e2e7102426f894d77f18b9fdafca0dc50a Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Sat, 19 Nov 2022 14:25:23 -0300 Subject: [PATCH 070/436] fix(cli): iOS development team is required on init --- tooling/cli/src/mobile/init.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/tooling/cli/src/mobile/init.rs b/tooling/cli/src/mobile/init.rs index 99fedd9fc0d6..991e85d12434 100644 --- a/tooling/cli/src/mobile/init.rs +++ b/tooling/cli/src/mobile/init.rs @@ -135,8 +135,6 @@ pub fn exec( #[cfg(target_os = "macos")] // Generate Xcode project Target::Ios => { - // the apple development team is not required on init - std::env::set_var(super::ios::APPLE_DEVELOPMENT_TEAM_ENV_VAR_NAME, ""); let (app, config, metadata) = super::ios::get_config(Some(app), tauri_config_, &Default::default()); map.insert("apple", &config); From 03d6c6a68faadc6fb5b8ca7953826dbf6b0746cc Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Sun, 20 Nov 2022 09:48:02 -0300 Subject: [PATCH 071/436] refactor(cli): use jsonrpsee for mobile CLI options communication (#5657) --- tooling/cli/Cargo.lock | 450 +++++++++++++++++++----- tooling/cli/Cargo.toml | 2 +- tooling/cli/src/mobile/android.rs | 3 +- tooling/cli/src/mobile/android/build.rs | 17 +- tooling/cli/src/mobile/android/dev.rs | 12 +- tooling/cli/src/mobile/ios.rs | 2 +- tooling/cli/src/mobile/ios/build.rs | 17 +- tooling/cli/src/mobile/ios/dev.rs | 12 +- tooling/cli/src/mobile/mod.rs | 101 +++--- 9 files changed, 420 insertions(+), 196 deletions(-) diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 8a6d5322990f..265b0fe21afd 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -98,21 +98,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" [[package]] -name = "async-channel" -version = "1.7.1" +name = "arrayvec" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e14485364214912d3b19cc3435dde4df66065127f05fa0d75c712f36f12c2f28" -dependencies = [ - "concurrent-queue", - "event-listener", - "futures-core", -] +checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6" [[package]] -name = "async-task" -version = "4.3.0" +name = "async-lock" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a40729d2133846d9ed0ea60a8b9541bccddab49cd30f0715a1da672fe9a2524" +checksum = "c8101efe8695a6c17e02911402145357e718ac92d3ff88ae8419e84b1707b685" +dependencies = [ + "event-listener", + "futures-lite", +] [[package]] name = "async-trait" @@ -125,12 +124,6 @@ dependencies = [ "syn", ] -[[package]] -name = "atomic-waker" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "065374052e7df7ee4047b1160cca5e1467a12351a40b3da123c870ba0b8eda2a" - [[package]] name = "attohttpc" version = "0.23.1" @@ -223,6 +216,15 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a32fd6af2b5827bce66c29053ba0e7c42b9dcab01835835058558c10851a46b" +[[package]] +name = "beef" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a8241f3ebb85c056b509d4327ad0358fbbba6ffb340bf388f26350aeda225b1" +dependencies = [ + "serde", +] + [[package]] name = "bit-set" version = "0.5.3" @@ -280,6 +282,15 @@ dependencies = [ "generic-array 0.12.4", ] +[[package]] +name = "block-buffer" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" +dependencies = [ + "generic-array 0.14.5", +] + [[package]] name = "block-buffer" version = "0.10.2" @@ -298,20 +309,6 @@ dependencies = [ "byte-tools", ] -[[package]] -name = "blocking" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6ccb65d468978a086b69884437ded69a90faab3bbe6e67f242173ea728acccc" -dependencies = [ - "async-channel", - "async-task", - "atomic-waker", - "fastrand", - "futures-lite", - "once_cell", -] - [[package]] name = "bstr" version = "0.2.17" @@ -378,16 +375,10 @@ dependencies = [ "pkg-config", ] -[[package]] -name = "cache-padded" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1db59621ec70f09c5e9b597b220c7a2b43611f4710dc03ceb8748637775692c" - [[package]] name = "cargo-mobile" version = "0.1.0" -source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#76e6e8e7ba289ff5e2c74f72d003f19572c9dba9" +source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#068cda074b0ff0c42f8d5297d8a2d5c29fd75c03" dependencies = [ "cocoa", "colored 1.9.3", @@ -575,15 +566,6 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2382f75942f4b3be3690fe4f86365e9c853c1587d6ee58212cebf6e2a9ccd101" -[[package]] -name = "concurrent-queue" -version = "1.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af4780a44ab5696ea9e28294517f1fffb421a83a25af521333c838635509db9c" -dependencies = [ - "cache-padded", -] - [[package]] name = "console" version = "0.15.0" @@ -873,6 +855,15 @@ dependencies = [ "generic-array 0.12.4", ] +[[package]] +name = "digest" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" +dependencies = [ + "generic-array 0.14.5", +] + [[package]] name = "digest" version = "0.10.3" @@ -1221,7 +1212,6 @@ checksum = "7f21eda599937fba36daeb58a22e8f5cee2d14c4a17b5b7739c7c8e5e3b8230c" dependencies = [ "futures-channel", "futures-core", - "futures-executor", "futures-io", "futures-sink", "futures-task", @@ -1244,17 +1234,6 @@ version = "0.3.24" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4e5aa3de05362c3fb88de6531e6296e85cde7739cccad4b9dfeeb7f6ebce56bf" -[[package]] -name = "futures-executor" -version = "0.3.24" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ff63c23854bee61b6e9cd331d523909f238fc7636290b96826e9cfa5faa00ab" -dependencies = [ - "futures-core", - "futures-task", - "futures-util", -] - [[package]] name = "futures-io" version = "0.3.24" @@ -1299,6 +1278,16 @@ version = "0.3.24" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a6508c467c73851293f390476d4491cf4d227dbabcd4170f3bb6044959b294f1" +[[package]] +name = "futures-timer" +version = "3.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e64b03909df88034c26dc1547e8970b91f98bdb65165d6a4e9110d94263dbb2c" +dependencies = [ + "gloo-timers", + "send_wrapper", +] + [[package]] name = "futures-util" version = "0.3.24" @@ -1408,6 +1397,51 @@ dependencies = [ "regex", ] +[[package]] +name = "gloo-net" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec897194fb9ac576c708f63d35604bc58f2a262b8cec0fabfed26f3991255f21" +dependencies = [ + "futures-channel", + "futures-core", + "futures-sink", + "gloo-utils", + "js-sys", + "pin-project", + "serde", + "serde_json", + "thiserror", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "gloo-timers" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fb7d06c1c8cc2a29bee7ec961009a0b2caa0793ee4900c2ffb348734ba1c8f9" +dependencies = [ + "futures-channel", + "futures-core", + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "gloo-utils" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40913a05c8297adca04392f707b1e73b12ba7b8eab7244a4961580b1fd34063c" +dependencies = [ + "js-sys", + "serde", + "serde_json", + "wasm-bindgen", + "web-sys", +] + [[package]] name = "h2" version = "0.3.14" @@ -1608,6 +1642,22 @@ dependencies = [ "want", ] +[[package]] +name = "hyper-rustls" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59df7c4e19c950e6e0e868dcc0a300b09a9b88e9ec55bd879ca819087a77355d" +dependencies = [ + "http", + "hyper", + "log", + "rustls", + "rustls-native-certs", + "tokio", + "tokio-rustls", + "webpki-roots", +] + [[package]] name = "ident_case" version = "1.0.1" @@ -1729,29 +1779,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "interprocess" -version = "1.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c58ec7fbda1df9a93f587b780659db3c99f61f4be27f9c82c9b37684ffd0366" -dependencies = [ - "blocking", - "cfg-if", - "futures", - "intmap", - "libc", - "once_cell", - "spinning", - "thiserror", - "winapi", -] - -[[package]] -name = "intmap" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae52f28f45ac2bc96edb7714de995cffc174a395fb0abf5bff453587c980d7b9" - [[package]] name = "ipnet" version = "2.5.0" @@ -1848,6 +1875,153 @@ dependencies = [ "serde", ] +[[package]] +name = "jsonrpsee" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5af9646e616e37c61093ef85e25bd883ae0c22e2fa1e6eedfe590048247116e3" +dependencies = [ + "jsonrpsee-client-transport", + "jsonrpsee-core", + "jsonrpsee-http-client", + "jsonrpsee-server", + "jsonrpsee-types", + "jsonrpsee-wasm-client", + "jsonrpsee-ws-client", +] + +[[package]] +name = "jsonrpsee-client-transport" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e85cfc9c2f17eab237fdfa2efe5c1608fd06a90e1e0d7fd7b10f2d0e153f375" +dependencies = [ + "anyhow", + "futures-channel", + "futures-timer", + "futures-util", + "gloo-net", + "http", + "jsonrpsee-core", + "jsonrpsee-types", + "pin-project", + "rustls-native-certs", + "soketto", + "thiserror", + "tokio", + "tokio-rustls", + "tokio-util", + "tracing", + "webpki-roots", +] + +[[package]] +name = "jsonrpsee-core" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "673d68136e2f0f67323bab95b3a7177df26ac21ddbf395fc32d60f30fe5a1364" +dependencies = [ + "anyhow", + "arrayvec 0.7.2", + "async-lock", + "async-trait", + "beef", + "futures-channel", + "futures-timer", + "futures-util", + "globset", + "hyper", + "jsonrpsee-types", + "parking_lot", + "rand 0.8.5", + "rustc-hash", + "serde", + "serde_json", + "soketto", + "thiserror", + "tokio", + "tracing", + "wasm-bindgen-futures", +] + +[[package]] +name = "jsonrpsee-http-client" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42007820863ab29f3adeacf43886ef54abaedb35bc33dada25771db4e1f94de4" +dependencies = [ + "async-trait", + "hyper", + "hyper-rustls", + "jsonrpsee-core", + "jsonrpsee-types", + "rustc-hash", + "serde", + "serde_json", + "thiserror", + "tokio", + "tracing", +] + +[[package]] +name = "jsonrpsee-server" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a78f34520019321bd466d00620606db2f40827362d0185b3b95040328eb502f6" +dependencies = [ + "futures-channel", + "futures-util", + "http", + "hyper", + "jsonrpsee-core", + "jsonrpsee-types", + "serde", + "serde_json", + "soketto", + "tokio", + "tokio-stream", + "tokio-util", + "tower", + "tracing", +] + +[[package]] +name = "jsonrpsee-types" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7985a27ee315c7c8c5c5033ac133e9472aec881edfd947780f5a9970efb7cbbf" +dependencies = [ + "anyhow", + "beef", + "serde", + "serde_json", + "thiserror", + "tracing", +] + +[[package]] +name = "jsonrpsee-wasm-client" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46811fcec615d8e58228e7e281b3238693b26da1eb2469ac208af40a217bc8d9" +dependencies = [ + "jsonrpsee-client-transport", + "jsonrpsee-core", + "jsonrpsee-types", +] + +[[package]] +name = "jsonrpsee-ws-client" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "480fc9922f10b8fca3f07c07c51e137ddcf13fd60a304f117cfaa9e9bf41c60b" +dependencies = [ + "http", + "jsonrpsee-client-transport", + "jsonrpsee-core", + "jsonrpsee-types", +] + [[package]] name = "jsonschema" version = "0.16.0" @@ -1927,7 +2101,7 @@ version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6607c62aa161d23d17a9072cc5da0be67cdfc89d3afb1e8d9c842bebc2525ffe" dependencies = [ - "arrayvec", + "arrayvec 0.5.2", "bitflags", "cfg-if", "ryu", @@ -3060,6 +3234,12 @@ dependencies = [ "winapi", ] +[[package]] +name = "rustc-hash" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" + [[package]] name = "rustc_version" version = "0.4.0" @@ -3081,6 +3261,27 @@ dependencies = [ "webpki", ] +[[package]] +name = "rustls-native-certs" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0167bac7a9f490495f3c33013e7722b53cb087ecbe082fb0c6387c96f634ea50" +dependencies = [ + "openssl-probe", + "rustls-pemfile", + "schannel", + "security-framework", +] + +[[package]] +name = "rustls-pemfile" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0864aeff53f8c05aa08d86e5ef839d3dfcf07aeba2db32f12db0ef716e87bd55" +dependencies = [ + "base64", +] + [[package]] name = "ryu" version = "1.0.10" @@ -3229,6 +3430,12 @@ version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a41d061efea015927ac527063765e73601444cdc344ba855bc7bd44578b25e1c" +[[package]] +name = "send_wrapper" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f638d531eccd6e23b980caf34876660d38e265409d8e99b397ab71eb3612fad0" + [[package]] name = "serde" version = "1.0.137" @@ -3349,6 +3556,19 @@ dependencies = [ "opaque-debug 0.2.3", ] +[[package]] +name = "sha-1" +version = "0.9.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99cd6713db3cf16b6c84e06321e049a9b9f699826e16096d23bbcc44d15d51a6" +dependencies = [ + "block-buffer 0.9.0", + "cfg-if", + "cpufeatures", + "digest 0.9.0", + "opaque-debug 0.3.0", +] + [[package]] name = "sha-1" version = "0.10.0" @@ -3429,6 +3649,22 @@ dependencies = [ "winapi", ] +[[package]] +name = "soketto" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d1c5305e39e09653383c2c7244f2f78b3bcae37cf50c64cb4789c9f5096ec2" +dependencies = [ + "base64", + "bytes", + "futures", + "http", + "httparse", + "log", + "rand 0.8.5", + "sha-1 0.9.8", +] + [[package]] name = "spin" version = "0.5.2" @@ -3444,15 +3680,6 @@ dependencies = [ "lock_api", ] -[[package]] -name = "spinning" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d4f0e86297cad2658d92a707320d87bf4e6ae1050287f51d19b67ef3f153a7b" -dependencies = [ - "lock_api", -] - [[package]] name = "stable_deref_trait" version = "1.2.0" @@ -3659,8 +3886,8 @@ dependencies = [ "ignore", "image", "include_dir", - "interprocess", "json-patch", + "jsonrpsee", "jsonschema", "kuchiki", "libc", @@ -3923,6 +4150,28 @@ dependencies = [ "syn", ] +[[package]] +name = "tokio-rustls" +version = "0.23.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c43ee83903113e03984cb9e5cebe6c04a5116269e900e3ddba8f068a62adda59" +dependencies = [ + "rustls", + "tokio", + "webpki", +] + +[[package]] +name = "tokio-stream" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d660770404473ccd7bc9f8b28494a811bc18542b915c0855c51e8f419d5223ce" +dependencies = [ + "futures-core", + "pin-project-lite", + "tokio", +] + [[package]] name = "tokio-tungstenite" version = "0.17.2" @@ -3943,6 +4192,7 @@ checksum = "0bb2e075f03b3d66d8d8785356224ba688d2906a371015e225beeb65ca92c740" dependencies = [ "bytes", "futures-core", + "futures-io", "futures-sink", "pin-project-lite", "tokio", @@ -4026,9 +4276,21 @@ dependencies = [ "cfg-if", "log", "pin-project-lite", + "tracing-attributes", "tracing-core", ] +[[package]] +name = "tracing-attributes" +version = "0.1.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4017f8f45139870ca7e672686113917c71c7a6e02d4924eda67186083c03081a" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "tracing-core" version = "0.1.29" @@ -4288,6 +4550,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7c53b543413a17a202f4be280a7e5c62a1c69345f5de525ee64f8cfdbc954994" dependencies = [ "cfg-if", + "serde", + "serde_json", "wasm-bindgen-macro", ] diff --git a/tooling/cli/Cargo.toml b/tooling/cli/Cargo.toml index 9afe8dd7582b..47e67c0f41a0 100644 --- a/tooling/cli/Cargo.toml +++ b/tooling/cli/Cargo.toml @@ -42,7 +42,7 @@ path = "src/main.rs" # cargo-mobile = { path = "../../../cargo-mobile/", default-features = false } cargo-mobile = { git = "https://github.com/tauri-apps/cargo-mobile", branch = "dev", default-features = false } textwrap = { version = "0.11.0", features = ["term_size"] } -interprocess = "1" +jsonrpsee = { version = "0.16", features = [ "client", "server" ]} thiserror = "1" sublime_fuzzy = "0.7" clap = { version = "4.0", features = [ "derive" ] } diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index 915cebba2e36..68170d7ff334 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -132,8 +132,7 @@ fn with_config( let tauri_config = get_tauri_config(None)?; let tauri_config_guard = tauri_config.lock().unwrap(); let tauri_config_ = tauri_config_guard.as_ref().unwrap(); - let cli_options = - cli_options.unwrap_or_else(|| read_options(tauri_config_, MobileTarget::Android)); + let cli_options = cli_options.unwrap_or_else(read_options); let (app, config, metadata) = get_config(None, tauri_config_, &cli_options); (app, config, metadata, cli_options) }; diff --git a/tooling/cli/src/mobile/android/build.rs b/tooling/cli/src/mobile/android/build.rs index d46aa2fb0c04..02b6268079bd 100644 --- a/tooling/cli/src/mobile/android/build.rs +++ b/tooling/cli/src/mobile/android/build.rs @@ -3,7 +3,7 @@ use super::{ MobileTarget, }; use crate::{ - helpers::{config::get as get_tauri_config, flock}, + helpers::flock, interface::{AppSettings, Interface, Options as InterfaceOptions}, mobile::{write_options, CliOptions}, Result, @@ -77,11 +77,11 @@ pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { ensure_init(config.project_dir(), MobileTarget::Android)?; - let env = env()?; + let mut env = env()?; init_dot_cargo(app, Some((&env, config)))?; let open = options.open; - run_build(options, config, &env, noise_level)?; + run_build(options, config, &mut env, noise_level)?; if open { open_and_wait(config, &env); @@ -96,7 +96,7 @@ pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { fn run_build( mut options: Options, config: &AndroidConfig, - env: &Env, + env: &mut Env, noise_level: NoiseLevel, ) -> Result<()> { let profile = if options.debug { @@ -111,13 +111,6 @@ fn run_build( options.aab = true; } - let bundle_identifier = { - let tauri_config = get_tauri_config(None)?; - let tauri_config_guard = tauri_config.lock().unwrap(); - let tauri_config_ = tauri_config_guard.as_ref().unwrap(); - tauri_config_.tauri.bundle.identifier.clone() - }; - let mut build_options = options.clone().into(); let interface = crate::build::setup(&mut build_options, true)?; @@ -135,7 +128,7 @@ fn run_build( noise_level, vars: Default::default(), }; - write_options(cli_options, &bundle_identifier, MobileTarget::Android)?; + let _handle = write_options(cli_options, &mut env.base)?; options .features diff --git a/tooling/cli/src/mobile/android/dev.rs b/tooling/cli/src/mobile/android/dev.rs index 67617e5e16ab..083a814456fb 100644 --- a/tooling/cli/src/mobile/android/dev.rs +++ b/tooling/cli/src/mobile/android/dev.rs @@ -3,7 +3,7 @@ use super::{ MobileTarget, }; use crate::{ - helpers::{config::get as get_tauri_config, flock}, + helpers::flock, interface::{AppSettings, Interface, MobileOptions, Options as InterfaceOptions}, mobile::{write_options, CliOptions, DevChild, DevProcess}, Result, @@ -94,13 +94,6 @@ fn run_dev( let mut dev_options = options.clone().into(); let mut interface = crate::dev::setup(&mut dev_options)?; - let bundle_identifier = { - let tauri_config = get_tauri_config(None)?; - let tauri_config_guard = tauri_config.lock().unwrap(); - let tauri_config_ = tauri_config_guard.as_ref().unwrap(); - tauri_config_.tauri.bundle.identifier.clone() - }; - let app_settings = interface.app_settings(); let bin_path = app_settings.app_binary_path(&InterfaceOptions { debug: !dev_options.release_mode, @@ -125,13 +118,14 @@ fn run_dev( no_watch: options.no_watch, }, |options| { + let mut env = env.clone(); let cli_options = CliOptions { features: options.features.clone(), args: options.args.clone(), noise_level, vars: Default::default(), }; - write_options(cli_options, &bundle_identifier, MobileTarget::Android)?; + let _handle = write_options(cli_options, &mut env.base)?; if open { open_and_wait(config, &env) diff --git a/tooling/cli/src/mobile/ios.rs b/tooling/cli/src/mobile/ios.rs index c2783ba92b07..2edda014b37e 100644 --- a/tooling/cli/src/mobile/ios.rs +++ b/tooling/cli/src/mobile/ios.rs @@ -147,7 +147,7 @@ fn with_config( let tauri_config = get_tauri_config(None)?; let tauri_config_guard = tauri_config.lock().unwrap(); let tauri_config_ = tauri_config_guard.as_ref().unwrap(); - let cli_options = cli_options.unwrap_or_else(|| read_options(tauri_config_, MobileTarget::Ios)); + let cli_options = cli_options.unwrap_or_else(read_options); let (app, config, metadata) = get_config(None, tauri_config_, &cli_options); (app, config, metadata, cli_options) }; diff --git a/tooling/cli/src/mobile/ios/build.rs b/tooling/cli/src/mobile/ios/build.rs index 47f1fcc46da3..679b0c063054 100644 --- a/tooling/cli/src/mobile/ios/build.rs +++ b/tooling/cli/src/mobile/ios/build.rs @@ -3,7 +3,7 @@ use super::{ MobileTarget, }; use crate::{ - helpers::{config::get as get_tauri_config, flock}, + helpers::flock, interface::{AppSettings, Interface, Options as InterfaceOptions}, mobile::{write_options, CliOptions}, Result, @@ -69,11 +69,11 @@ pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { |app, config, _metadata, _cli_options| { ensure_init(config.project_dir(), MobileTarget::Ios)?; - let env = env()?; + let mut env = env()?; init_dot_cargo(app, None)?; let open = options.open; - run_build(options, config, &env, noise_level)?; + run_build(options, config, &mut env, noise_level)?; if open { open_and_wait(config, &env); @@ -88,7 +88,7 @@ pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { fn run_build( mut options: Options, config: &AppleConfig, - env: &Env, + env: &mut Env, noise_level: NoiseLevel, ) -> Result<()> { let profile = if options.debug { @@ -97,13 +97,6 @@ fn run_build( Profile::Release }; - let bundle_identifier = { - let tauri_config = get_tauri_config(None)?; - let tauri_config_guard = tauri_config.lock().unwrap(); - let tauri_config_ = tauri_config_guard.as_ref().unwrap(); - tauri_config_.tauri.bundle.identifier.clone() - }; - let mut build_options = options.clone().into(); let interface = crate::build::setup(&mut build_options, true)?; @@ -121,7 +114,7 @@ fn run_build( noise_level, vars: Default::default(), }; - write_options(cli_options, &bundle_identifier, MobileTarget::Ios)?; + let _handle = write_options(cli_options, env)?; options .features diff --git a/tooling/cli/src/mobile/ios/dev.rs b/tooling/cli/src/mobile/ios/dev.rs index 732010e7b698..a80bf1e37ad0 100644 --- a/tooling/cli/src/mobile/ios/dev.rs +++ b/tooling/cli/src/mobile/ios/dev.rs @@ -3,7 +3,7 @@ use super::{ APPLE_DEVELOPMENT_TEAM_ENV_VAR_NAME, }; use crate::{ - helpers::{config::get as get_tauri_config, flock}, + helpers::flock, interface::{AppSettings, Interface, MobileOptions, Options as InterfaceOptions}, mobile::{write_options, CliOptions, DevChild, DevProcess}, Result, @@ -109,13 +109,6 @@ fn run_dev( let mut dev_options = options.clone().into(); let mut interface = crate::dev::setup(&mut dev_options)?; - let bundle_identifier = { - let tauri_config = get_tauri_config(None)?; - let tauri_config_guard = tauri_config.lock().unwrap(); - let tauri_config_ = tauri_config_guard.as_ref().unwrap(); - tauri_config_.tauri.bundle.identifier.clone() - }; - let app_settings = interface.app_settings(); let bin_path = app_settings.app_binary_path(&InterfaceOptions { debug: !dev_options.release_mode, @@ -140,13 +133,14 @@ fn run_dev( no_watch: options.no_watch, }, |options| { + let mut env = env.clone(); let cli_options = CliOptions { features: options.features.clone(), args: options.args.clone(), noise_level, vars: Default::default(), }; - write_options(cli_options, &bundle_identifier, MobileTarget::Ios)?; + let _handle = write_options(cli_options, &mut env)?; if open { open_and_wait(config, &env) diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index 67adff880692..3a7ab5c247b5 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -13,15 +13,19 @@ use cargo_mobile::{ env::Error as EnvError, opts::NoiseLevel, }; -use interprocess::local_socket::{LocalSocketListener, LocalSocketStream}; +use jsonrpsee::client_transport::ws::WsTransportClientBuilder; +use jsonrpsee::core::client::{Client, ClientBuilder, ClientT}; +use jsonrpsee::rpc_params; +use jsonrpsee::server::{RpcModule, ServerBuilder, ServerHandle}; use serde::{Deserialize, Serialize}; use shared_child::SharedChild; use std::{ collections::HashMap, env::set_var, + env::var, ffi::OsString, fmt::Write, - io::{BufRead, BufReader, Write as _}, + net::SocketAddr, path::PathBuf, process::ExitStatus, sync::{ @@ -29,6 +33,7 @@ use std::{ Arc, }, }; +use tokio::runtime::Runtime; #[cfg(not(windows))] use cargo_mobile::env::Env; @@ -122,15 +127,6 @@ pub struct CliOptions { pub vars: HashMap, } -fn options_local_socket_name(bundle_identifier: &str, target: Target) -> PathBuf { - let out_dir = std::env::temp_dir(); - let out_dir = out_dir.join(".tauri").join(bundle_identifier); - let _ = std::fs::create_dir_all(&out_dir); - out_dir - .join("cli-options") - .with_extension(target.command_name()) -} - fn env_vars() -> HashMap { let mut vars = HashMap::new(); for (k, v) in std::env::vars_os() { @@ -154,58 +150,49 @@ fn env() -> Result { /// Writes CLI options to be used later on the Xcode and Android Studio build commands pub fn write_options( mut options: CliOptions, - bundle_identifier: &str, - target: Target, -) -> crate::Result<()> { + env: &mut Env, +) -> crate::Result<(Runtime, ServerHandle)> { options.vars.extend(env_vars()); - let name = options_local_socket_name(bundle_identifier, target); - let _ = std::fs::remove_file(&name); - let mut value = serde_json::to_string(&options)?; - value.push('\n'); - - std::thread::spawn(move || { - let listener = LocalSocketListener::bind(name).expect("failed to start local socket"); - for mut conn in listener.incoming().flatten() { - let _ = conn.write_all(value.as_bytes()); - } + + let runtime = Runtime::new().unwrap(); + let r: anyhow::Result<(ServerHandle, SocketAddr)> = runtime.block_on(async move { + let server = ServerBuilder::default().build("127.0.0.1:0").await?; + let addr = server.local_addr()?; + + let mut module = RpcModule::new(()); + module.register_method("options", move |_, _| Ok(options.clone()))?; + + let handle = server.start(module)?; + + Ok((handle, addr)) }); + let (handle, addr) = r?; + + env.insert_env_var("TAURI_OPTIONS_SERVER_ADDR".into(), addr.to_string().into()); - Ok(()) + Ok((runtime, handle)) } -fn read_options(config: &TauriConfig, target: Target) -> CliOptions { - let name = options_local_socket_name(&config.tauri.bundle.identifier, target); - let conn = LocalSocketStream::connect(name).unwrap_or_else(|_| { - log::error!( - "failed to connect to local socket. You must keep the Tauri CLI alive with the `{cmd} dev` or `{cmd} build --open` commands.", - cmd = target.command_name() - ); - std::process::exit(1); - }); - conn - .set_nonblocking(true) - .expect("failed to set local socket stream to nonblocking"); - let mut conn = BufReader::new(conn); - - let mut attempt = 0; - let max_tries = 5; - let buffer = loop { - let mut buffer = String::new(); - if conn.read_line(&mut buffer).is_ok() { - break buffer; - } - std::thread::sleep(std::time::Duration::from_secs(1)); - attempt += 1; - if attempt == max_tries { - log::error!( - "failed to connect to local socket. You must keep the Tauri CLI alive with the `{cmd} dev` or `{cmd} build --open` commands.", - cmd = target.command_name() - ); - std::process::exit(1); - } - }; +fn read_options() -> CliOptions { + let runtime = tokio::runtime::Runtime::new().unwrap(); + let options = runtime + .block_on(async move { + let (tx, rx) = WsTransportClientBuilder::default() + .build( + format!( + "ws://{}", + var("TAURI_OPTIONS_SERVER_ADDR").expect("missing addr environment variable") + ) + .parse() + .unwrap(), + ) + .await?; + let client: Client = ClientBuilder::default().build_with_tokio(tx, rx); + let options: CliOptions = client.request("options", rpc_params![]).await?; + Ok::(options) + }) + .expect("failed to read CLI options"); - let options: CliOptions = serde_json::from_str(&buffer).expect("invalid CLI options"); for (k, v) in &options.vars { set_var(k, v); } From f6f9192aa51bd842df8aa1d1aa538b12aa6c2d29 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Sun, 20 Nov 2022 09:49:23 -0300 Subject: [PATCH 072/436] fix(core): Android compilation on Windows (#5658) --- .changes/default-tls-features.md | 5 ++ core/tauri-build/src/lib.rs | 76 +++++++++--------- core/tauri/Cargo.toml | 6 +- core/tauri/src/lib.rs | 2 + examples/api/src-tauri/Cargo.lock | 129 ------------------------------ tooling/cli/src/interface/rust.rs | 4 +- 6 files changed, 52 insertions(+), 170 deletions(-) create mode 100644 .changes/default-tls-features.md diff --git a/.changes/default-tls-features.md b/.changes/default-tls-features.md new file mode 100644 index 000000000000..549ead9ea373 --- /dev/null +++ b/.changes/default-tls-features.md @@ -0,0 +1,5 @@ +--- +"tauri": major +--- + +Added the `default-tls` and `reqwest-default-tls` Cargo features for enabling TLS suppport to connect over HTTPS. diff --git a/core/tauri-build/src/lib.rs b/core/tauri-build/src/lib.rs index 826eb4945c73..40b2dd370df9 100644 --- a/core/tauri-build/src/lib.rs +++ b/core/tauri-build/src/lib.rs @@ -348,11 +348,12 @@ pub fn try_build(attributes: Attributes) -> Result<()> { .window_icon_path .unwrap_or_else(|| find_icon(&config, |i| i.ends_with(".ico"), "icons/icon.ico")); - if window_icon_path.exists() { - let mut res = WindowsResource::new(); + if target_triple.contains("windows") { + if window_icon_path.exists() { + let mut res = WindowsResource::new(); - res.set_manifest( - r#" + res.set_manifest( + r#" @@ -368,42 +369,43 @@ pub fn try_build(attributes: Attributes) -> Result<()> { "#, - ); - - if let Some(sdk_dir) = &attributes.windows_attributes.sdk_dir { - if let Some(sdk_dir_str) = sdk_dir.to_str() { - res.set_toolkit_path(sdk_dir_str); - } else { - return Err(anyhow!( - "sdk_dir path is not valid; only UTF-8 characters are allowed" - )); + ); + + if let Some(sdk_dir) = &attributes.windows_attributes.sdk_dir { + if let Some(sdk_dir_str) = sdk_dir.to_str() { + res.set_toolkit_path(sdk_dir_str); + } else { + return Err(anyhow!( + "sdk_dir path is not valid; only UTF-8 characters are allowed" + )); + } } - } - if let Some(version) = &config.package.version { - if let Ok(v) = Version::parse(version) { - let version = v.major << 48 | v.minor << 32 | v.patch << 16; - res.set_version_info(VersionInfo::FILEVERSION, version); - res.set_version_info(VersionInfo::PRODUCTVERSION, version); + if let Some(version) = &config.package.version { + if let Ok(v) = Version::parse(version) { + let version = v.major << 48 | v.minor << 32 | v.patch << 16; + res.set_version_info(VersionInfo::FILEVERSION, version); + res.set_version_info(VersionInfo::PRODUCTVERSION, version); + } + res.set("FileVersion", version); + res.set("ProductVersion", version); } - res.set("FileVersion", version); - res.set("ProductVersion", version); - } - if let Some(product_name) = &config.package.product_name { - res.set("ProductName", product_name); - res.set("FileDescription", product_name); - } - res.set_icon_with_id(&window_icon_path.display().to_string(), "32512"); - res.compile().with_context(|| { - format!( - "failed to compile `{}` into a Windows Resource file during tauri-build", + if let Some(product_name) = &config.package.product_name { + res.set("ProductName", product_name); + res.set("FileDescription", product_name); + } + res.set_icon_with_id(&window_icon_path.display().to_string(), "32512"); + res.compile().with_context(|| { + format!( + "failed to compile `{}` into a Windows Resource file during tauri-build", + window_icon_path.display() + ) + })?; + } else { + return Err(anyhow!(format!( + "`{}` not found; required for generating a Windows Resource file during tauri-build", window_icon_path.display() - ) - })?; - } else { - return Err(anyhow!(format!( - "`{}` not found; required for generating a Windows Resource file during tauri-build", - window_icon_path.display() - ))); + ))); + } } let target_env = std::env::var("CARGO_CFG_TARGET_ENV").unwrap(); diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml index 3ca59c87a8f2..b23e4f1d229d 100644 --- a/core/tauri/Cargo.toml +++ b/core/tauri/Cargo.toml @@ -67,9 +67,9 @@ dirs-next = "2.0" percent-encoding = "2.2" base64 = { version = "0.13", optional = true } clap = { version = "3", optional = true } -reqwest = { version = "0.11", features = [ "json", "stream" ], optional = true } +reqwest = { version = "0.11", default-features = false, features = [ "json", "stream" ], optional = true } bytes = { version = "1", features = [ "serde" ], optional = true } -attohttpc = { version = "0.22", features = [ "compress", "json", "form" ] } +attohttpc = { version = "0.24", default-features = false, features = [ "compress", "json", "form" ] } open = { version = "3.0", optional = true } shared_child = { version = "1.0", optional = true } os_pipe = { version = "1.0", optional = true } @@ -147,6 +147,8 @@ http-multipart = [ "attohttpc/multipart-form", "reqwest/multipart" ] shell-open-api = [ "open", "regex", "tauri-macros/shell-scope" ] fs-extract-api = [ "zip" ] reqwest-client = [ "reqwest", "bytes" ] +reqwest-default-tls = [ "reqwest-client", "reqwest/default-tls" ] +default-tls = [ "attohttpc/tls-native" ] reqwest-native-tls-vendored = [ "reqwest-client", "reqwest/native-tls-vendored" ] native-tls-vendored = [ "attohttpc/tls-vendored" ] process-command-api = [ "shared_child", "os_pipe" ] diff --git a/core/tauri/src/lib.rs b/core/tauri/src/lib.rs index 5a6ab16e5440..2ceeca538f03 100644 --- a/core/tauri/src/lib.rs +++ b/core/tauri/src/lib.rs @@ -22,6 +22,8 @@ //! - **http-api**: Enables the [`api::http`] module. //! - **http-multipart**: Adds support to `multipart/form-data` requests. //! - **reqwest-client**: Uses `reqwest` as HTTP client on the `http` APIs. Improves performance, but increases the bundle size. +//! - **default-tls**: Provides TLS support to connect over HTTPS (applies to the default HTTP client). +//! - **reqwest-default-tls**: Provides TLS support to connect over HTTPS (applies to the `reqwest` HTTP client). //! - **native-tls-vendored**: Compile and statically link to a vendored copy of OpenSSL (applies to the default HTTP client). //! - **reqwest-native-tls-vendored**: Compile and statically link to a vendored copy of OpenSSL (applies to the `reqwest` HTTP client). //! - **process-command-api**: Enables the [`api::process::Command`] APIs. diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index ac88c602827b..53e65cbb8585 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -154,7 +154,6 @@ dependencies = [ "log", "mime", "multipart", - "native-tls", "serde", "serde_json", "serde_urlencoded", @@ -1329,19 +1328,6 @@ dependencies = [ "want", ] -[[package]] -name = "hyper-tls" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905" -dependencies = [ - "bytes", - "hyper", - "native-tls", - "tokio", - "tokio-native-tls", -] - [[package]] name = "ico" version = "0.1.0" @@ -1785,24 +1771,6 @@ dependencies = [ "tempfile", ] -[[package]] -name = "native-tls" -version = "0.2.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07226173c32f2926027b63cce4bcd8076c3552846cbe7925f3aaffeac0a3b92e" -dependencies = [ - "lazy_static", - "libc", - "log", - "openssl", - "openssl-probe", - "openssl-sys", - "schannel", - "security-framework", - "security-framework-sys", - "tempfile", -] - [[package]] name = "ndk" version = "0.6.0" @@ -2007,51 +1975,6 @@ dependencies = [ "windows-sys 0.36.1", ] -[[package]] -name = "openssl" -version = "0.10.42" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12fc0523e3bd51a692c8850d075d74dc062ccf251c0110668cbd921917118a13" -dependencies = [ - "bitflags", - "cfg-if", - "foreign-types", - "libc", - "once_cell", - "openssl-macros", - "openssl-sys", -] - -[[package]] -name = "openssl-macros" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b501e44f11665960c7e7fcf062c7d96a14ade4aa98116c004b2e37b5be7d736c" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "openssl-probe" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" - -[[package]] -name = "openssl-sys" -version = "0.9.77" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b03b84c3b2d099b81f0953422b4d4ad58761589d0229b5506356afca05a3670a" -dependencies = [ - "autocfg", - "cc", - "libc", - "pkg-config", - "vcpkg", -] - [[package]] name = "os_info" version = "3.5.1" @@ -2567,13 +2490,11 @@ dependencies = [ "http", "http-body", "hyper", - "hyper-tls", "ipnet", "js-sys", "log", "mime", "mime_guess", - "native-tls", "once_cell", "percent-encoding", "pin-project-lite", @@ -2581,7 +2502,6 @@ dependencies = [ "serde_json", "serde_urlencoded", "tokio", - "tokio-native-tls", "tokio-util", "tower-service", "url", @@ -2660,16 +2580,6 @@ dependencies = [ "winapi-util", ] -[[package]] -name = "schannel" -version = "0.1.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88d6731146462ea25d9244b2ed5fd1d716d25c52e4d54aa4fb0f3c4e9854dbe2" -dependencies = [ - "lazy_static", - "windows-sys 0.36.1", -] - [[package]] name = "scoped-tls" version = "1.0.1" @@ -2682,29 +2592,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" -[[package]] -name = "security-framework" -version = "2.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bc1bb97804af6631813c55739f771071e0f2ed33ee20b68c86ec505d906356c" -dependencies = [ - "bitflags", - "core-foundation", - "core-foundation-sys", - "libc", - "security-framework-sys", -] - -[[package]] -name = "security-framework-sys" -version = "2.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0160a13a177a45bfb43ce71c01580998474f556ad854dcbca936dd2841a5c556" -dependencies = [ - "core-foundation-sys", - "libc", -] - [[package]] name = "selectors" version = "0.22.0" @@ -3459,16 +3346,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "tokio-native-tls" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7d995660bd2b7f8c1568414c1126076c13fbb725c40112dc0120b78eb9b717b" -dependencies = [ - "native-tls", - "tokio", -] - [[package]] name = "tokio-util" version = "0.7.4" @@ -3672,12 +3549,6 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" -[[package]] -name = "vcpkg" -version = "0.2.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" - [[package]] name = "version-compare" version = "0.0.11" diff --git a/tooling/cli/src/interface/rust.rs b/tooling/cli/src/interface/rust.rs index 595138293323..5e470282257c 100644 --- a/tooling/cli/src/interface/rust.rs +++ b/tooling/cli/src/interface/rust.rs @@ -353,8 +353,8 @@ fn shared_options( let all_features = app_settings .manifest .all_enabled_features(if let Some(f) = features { f } else { &[] }); - if !all_features.contains(&"tauri/native-tls-vendored".into()) - && !all_features.contains(&"tauri/reqwest-native-tls-vendored".into()) + if all_features.contains(&"tauri/default-tls".into()) + || all_features.contains(&"tauri/reqwest-default-tls".into()) { if all_features.contains(&"tauri/reqwest-client".into()) { features From 6dcb7fbb816f35f34bbdd643af740a809a0ebd22 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Sun, 20 Nov 2022 10:55:38 -0300 Subject: [PATCH 073/436] fix(core): manage mobile logs, fix Android logcat filtering (#5659) --- core/tauri-macros/src/mobile.rs | 2 ++ core/tauri/Cargo.toml | 5 +++++ core/tauri/src/lib.rs | 16 ++++++++++++++ examples/api/src-tauri/Cargo.lock | 9 ++++---- examples/api/src-tauri/Cargo.toml | 9 -------- examples/api/src-tauri/src/mobile.rs | 21 +------------------ tooling/cli/Cargo.lock | 2 +- tooling/cli/src/mobile/android.rs | 1 + tooling/cli/src/mobile/android/dev.rs | 8 +++++-- .../app/src-tauri/Cargo.crate-manifest | 9 -------- .../cli/templates/app/src-tauri/src/mobile.rs | 21 +------------------ 11 files changed, 38 insertions(+), 65 deletions(-) diff --git a/core/tauri-macros/src/mobile.rs b/core/tauri-macros/src/mobile.rs index ca593ea3b12d..99d4efdb07bb 100644 --- a/core/tauri-macros/src/mobile.rs +++ b/core/tauri-macros/src/mobile.rs @@ -43,6 +43,7 @@ pub fn entry_point(_attributes: TokenStream, item: TokenStream) -> TokenStream { &mut error, &function, ); + let app_name_str = var("CARGO_PKG_NAME").unwrap(); if let Some(e) = error { quote!(#e).into() @@ -61,6 +62,7 @@ pub fn entry_point(_attributes: TokenStream, item: TokenStream) -> TokenStream { #function fn _start_app() { + ::tauri::init_logging(#app_name_str); #[cfg(target_os = "android")] { use ::tauri::paste; diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml index b23e4f1d229d..5c110aa30d3e 100644 --- a/core/tauri/Cargo.toml +++ b/core/tauri/Cargo.toml @@ -106,6 +106,11 @@ win7-notifications = { version = "0.3.1", optional = true } [target.'cfg(target_os = "android")'.dependencies] paste = "1.0" +android_logger = "0.9" +log = "0.4" + +[target.'cfg(target_os = "ios")'.dependencies] +env_logger = "0.9.0" [target."cfg(windows)".dependencies.windows] version = "0.39.0" diff --git a/core/tauri/src/lib.rs b/core/tauri/src/lib.rs index 2ceeca538f03..639f172500de 100644 --- a/core/tauri/src/lib.rs +++ b/core/tauri/src/lib.rs @@ -277,6 +277,22 @@ pub use self::runtime::ClipboardManager; #[cfg_attr(doc_cfg, doc(cfg(feature = "global-shortcut")))] pub use self::runtime::GlobalShortcutManager; +#[cfg(target_os = "android")] +#[doc(hidden)] +pub fn init_logging(tag: &str) { + android_logger::init_once( + android_logger::Config::default() + .with_min_level(log::Level::Trace) + .with_tag(tag), + ); +} + +#[cfg(target_os = "ios")] +#[doc(hidden)] +pub fn init_logging(_tag: &str) { + env_logger::init(); +} + /// Updater events. #[cfg(updater)] #[cfg_attr(doc_cfg, doc(cfg(feature = "updater")))] diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index 53e65cbb8585..4f89159f5e4b 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -101,8 +101,6 @@ checksum = "216261ddc8289130e551ddcd5ce8a064710c0d064a4d2895c67151c92b5443f6" name = "api" version = "0.1.0" dependencies = [ - "android_logger", - "env_logger 0.9.3", "log", "serde", "serde_json", @@ -145,9 +143,9 @@ dependencies = [ [[package]] name = "attohttpc" -version = "0.22.0" +version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fcf00bc6d5abb29b5f97e3c61a90b6d3caa12f3faf897d4a3e3607c050a35a7" +checksum = "b85f766c20e6ae766956f7a2fcc4e0931e79a7e1f48b29132b5d647021114914" dependencies = [ "flate2", "http", @@ -3010,6 +3008,7 @@ dependencies = [ name = "tauri" version = "1.2.0" dependencies = [ + "android_logger", "anyhow", "attohttpc", "base64", @@ -3019,6 +3018,7 @@ dependencies = [ "dirs-next", "embed_plist", "encoding_rs", + "env_logger 0.9.3", "flate2", "futures-util", "glib", @@ -3029,6 +3029,7 @@ dependencies = [ "ico", "ignore", "infer 0.9.0", + "log", "minisign-verify", "notify-rust", "objc", diff --git a/examples/api/src-tauri/Cargo.toml b/examples/api/src-tauri/Cargo.toml index 5deaab6e6f79..4f936ca83614 100644 --- a/examples/api/src-tauri/Cargo.toml +++ b/examples/api/src-tauri/Cargo.toml @@ -38,15 +38,6 @@ features = [ window-vibrancy = "0.2" window-shadows= "0.2" -[target.'cfg(any(target_os = "android", target_os = "ios"))'.dependencies] -log = "0.4" - -[target.'cfg(target_os = "android")'.dependencies] -android_logger = "0.9.0" - -[target.'cfg(target_os = "ios")'.dependencies] -env_logger = "0.9.0" - [features] default = [ "custom-protocol" ] custom-protocol = [ "tauri/custom-protocol" ] diff --git a/examples/api/src-tauri/src/mobile.rs b/examples/api/src-tauri/src/mobile.rs index 958fadd2d5cf..ffb9ab03030c 100644 --- a/examples/api/src-tauri/src/mobile.rs +++ b/examples/api/src-tauri/src/mobile.rs @@ -1,23 +1,4 @@ -#[cfg(target_os = "android")] -fn init_logging(app_name: &str) { - android_logger::init_once( - android_logger::Config::default() - .with_min_level(log::Level::Trace) - .with_tag(app_name), - ); -} - -#[cfg(not(target_os = "android"))] -fn init_logging(_app_name: &str) { - env_logger::init(); -} - #[tauri::mobile_entry_point] fn main() { - super::AppBuilder::new() - .setup(|app| { - init_logging(&app.package_info().name); - Ok(()) - }) - .run(); + super::AppBuilder::new().run(); } diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 265b0fe21afd..175bff3ce4d9 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -378,7 +378,7 @@ dependencies = [ [[package]] name = "cargo-mobile" version = "0.1.0" -source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#068cda074b0ff0c42f8d5297d8a2d5c29fd75c03" +source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#51d0e9a6c9b37e3287ebd5210d28798c534cb971" dependencies = [ "cocoa", "colored 1.9.3", diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index 68170d7ff334..d603327f219a 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -95,6 +95,7 @@ pub fn get_config( let raw = RawAndroidConfig { features: android_options.features.clone(), + logcat_filter_specs: vec!["RustStdoutStderr".into()], ..Default::default() }; let config = AndroidConfig::from_raw(app.clone(), Some(raw)).unwrap(); diff --git a/tooling/cli/src/mobile/android/dev.rs b/tooling/cli/src/mobile/android/dev.rs index 083a814456fb..e963b68ebd7f 100644 --- a/tooling/cli/src/mobile/android/dev.rs +++ b/tooling/cli/src/mobile/android/dev.rs @@ -16,7 +16,7 @@ use cargo_mobile::{ env::Env, }, config::app::App, - opts::{NoiseLevel, Profile}, + opts::{FilterLevel, NoiseLevel, Profile}, }; use std::env::set_var; @@ -189,7 +189,11 @@ fn run( env, noise_level, profile, - None, + Some(match noise_level { + NoiseLevel::Polite => FilterLevel::Info, + NoiseLevel::LoudAndProud => FilterLevel::Debug, + NoiseLevel::FranklyQuitePedantic => FilterLevel::Verbose, + }), build_app_bundle, false, ".MainActivity".into(), diff --git a/tooling/cli/templates/app/src-tauri/Cargo.crate-manifest b/tooling/cli/templates/app/src-tauri/Cargo.crate-manifest index 53a184ba7920..8ff358f73a12 100755 --- a/tooling/cli/templates/app/src-tauri/Cargo.crate-manifest +++ b/tooling/cli/templates/app/src-tauri/Cargo.crate-manifest @@ -21,15 +21,6 @@ serde_json = "1.0" serde = { version = "1.0", features = ["derive"] } tauri = {{{ tauri_dep }}} -[target.'cfg(any(target_os = "android", target_os = "ios"))'.dependencies] -log = "0.4" - -[target.'cfg(target_os = "android")'.dependencies] -android_logger = "0.9.0" - -[target.'cfg(target_os = "ios")'.dependencies] -env_logger = "0.9.0" - [features] # by default Tauri runs in production mode # when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL diff --git a/tooling/cli/templates/app/src-tauri/src/mobile.rs b/tooling/cli/templates/app/src-tauri/src/mobile.rs index 3e22469b256b..cacaf5f11d26 100644 --- a/tooling/cli/templates/app/src-tauri/src/mobile.rs +++ b/tooling/cli/templates/app/src-tauri/src/mobile.rs @@ -1,23 +1,4 @@ -#[cfg(target_os = "android")] -fn init_logging(app_name: &str) { - android_logger::init_once( - android_logger::Config::default() - .with_min_level(log::Level::Trace) - .with_tag(app_name), - ); -} - -#[cfg(not(target_os = "android"))] -fn init_logging(_app_name: &str) { - env_logger::init(); -} - #[tauri::mobile_entry_point] fn main() { - super::AppBuilder::new() - .setup(|app| { - init_logging(&app.package_info().name); - Ok(()) - }) - .run() + super::AppBuilder::new().run() } From be808a9f5c50a8cbc9ac5349397a8c9a85c8abc2 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Mon, 21 Nov 2022 11:47:12 -0300 Subject: [PATCH 074/436] feat(ci): add Android test workflow (#5661) --- .github/workflows/test-mobile.yml | 90 +++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 .github/workflows/test-mobile.yml diff --git a/.github/workflows/test-mobile.yml b/.github/workflows/test-mobile.yml new file mode 100644 index 000000000000..6ebdf91eb306 --- /dev/null +++ b/.github/workflows/test-mobile.yml @@ -0,0 +1,90 @@ +name: test mobile + +on: + pull_request: + paths: + - '.github/workflows/test-mobile.yml' + - 'tooling/cli/templates/mobile/**' + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test-android: + runs-on: ${{ matrix.platform }} + + strategy: + fail-fast: false + matrix: + platform: [ubuntu-latest, macos-latest, windows-latest] + + steps: + - uses: actions/checkout@v3 + + - name: install Rust stable + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + - name: install Linux dependencies + if: matrix.platform == 'ubuntu-latest' + run: | + sudo apt-get update + sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 + + - name: setup node + uses: actions/setup-node@v3 + with: + node-version: 16 + cache: yarn + cache-dependency-path: | + tooling/api/yarn.lock + examples/api/yarn.lock + + - uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 11 + cache: gradle + + - name: Setup NDK + uses: nttld/setup-ndk@v1 + id: setup-ndk + with: + ndk-version: r25b + local-cache: true + + - uses: Swatinem/rust-cache@v2 + with: + workspaces: | + tooling/cli + examples/api/src-tauri + + - name: build CLI + uses: actions-rs/cargo@v1 + with: + command: build + args: --manifest-path ./tooling/cli/Cargo.toml + + - name: build Tauri API + working-directory: ./tooling/api + run: yarn && yarn build + + - name: install API example dependencies + working-directory: ./examples/api + run: yarn + + - name: Init Android Studio Project + working-directory: ./examples/api + run: ../../tooling/cli/target/debug/cargo-tauri android init + env: + NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} + + - name: Build apk + working-directory: ./examples/api + run: ../../tooling/cli/target/debug/cargo-tauri android build + env: + NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} From 8baf20dd340a9c404fff69f02774836ff78e9eab Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Mon, 21 Nov 2022 12:50:41 -0300 Subject: [PATCH 075/436] feat(cli): update Android project dependencies (#5663) --- examples/api/src-tauri/Cargo.lock | 1 - .../cli/templates/mobile/android/app/build.gradle.kts | 11 ++++++----- .../mobile/android/app/src/main/AndroidManifest.xml | 3 +-- tooling/cli/templates/mobile/android/build.gradle.kts | 2 +- .../mobile/android/buildSrc/build.gradle.kts | 2 +- .../android/gradle/wrapper/gradle-wrapper.properties | 2 +- 6 files changed, 10 insertions(+), 11 deletions(-) diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index 4f89159f5e4b..1e59701c28c0 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -101,7 +101,6 @@ checksum = "216261ddc8289130e551ddcd5ce8a064710c0d064a4d2895c67151c92b5443f6" name = "api" version = "0.1.0" dependencies = [ - "log", "serde", "serde_json", "tauri", diff --git a/tooling/cli/templates/mobile/android/app/build.gradle.kts b/tooling/cli/templates/mobile/android/app/build.gradle.kts index 7ebfc04805e6..48978e8d6177 100644 --- a/tooling/cli/templates/mobile/android/app/build.gradle.kts +++ b/tooling/cli/templates/mobile/android/app/build.gradle.kts @@ -66,6 +66,7 @@ android { } assetPacks += mutableSetOf({{quote-and-join-colon-prefix asset-packs}}) + namespace = "{{reverse-domain app.domain}}.{{snake-case app.name}}" } rust { @@ -79,12 +80,12 @@ dependencies { implementation(platform("{{this}}")){{/each}} {{~#each android-app-dependencies}} implementation("{{this}}"){{/each}} - implementation("androidx.webkit:webkit:1.4.0") - implementation("androidx.appcompat:appcompat:1.5.0") - implementation("com.google.android.material:material:1.6.1") + implementation("androidx.webkit:webkit:1.5.0") + implementation("androidx.appcompat:appcompat:1.5.1") + implementation("com.google.android.material:material:1.7.0") testImplementation("junit:junit:4.13.2") - androidTestImplementation("androidx.test.ext:junit:1.1.3") - androidTestImplementation("androidx.test.espresso:espresso-core:3.4.0") + androidTestImplementation("androidx.test.ext:junit:1.1.4") + androidTestImplementation("androidx.test.espresso:espresso-core:3.5.0") } afterEvaluate { diff --git a/tooling/cli/templates/mobile/android/app/src/main/AndroidManifest.xml b/tooling/cli/templates/mobile/android/app/src/main/AndroidManifest.xml index de5a85690b12..660f1b3b35e1 100644 --- a/tooling/cli/templates/mobile/android/app/src/main/AndroidManifest.xml +++ b/tooling/cli/templates/mobile/android/app/src/main/AndroidManifest.xml @@ -1,6 +1,5 @@ - + Date: Mon, 21 Nov 2022 17:56:22 -0300 Subject: [PATCH 076/436] feat(cli): generate icons for Android (#5665) --- tooling/cli/src/icon.rs | 123 ++++++++++++++++-- tooling/cli/src/mobile/android.rs | 2 +- .../res/mipmap-anydpi-v26/ic_launcher.xml | 5 - .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3524 bytes .../src/main/res/mipmap-hdpi/ic_launcher.webp | Bin 1404 -> 0 bytes .../mipmap-hdpi/ic_launcher_foreground.png | Bin 0 -> 14102 bytes .../res/mipmap-hdpi/ic_launcher_round.png | Bin 0 -> 3524 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 3377 bytes .../src/main/res/mipmap-mdpi/ic_launcher.webp | Bin 982 -> 0 bytes .../mipmap-mdpi/ic_launcher_foreground.png | Bin 0 -> 9081 bytes .../res/mipmap-mdpi/ic_launcher_round.png | Bin 0 -> 3377 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 7971 bytes .../main/res/mipmap-xhdpi/ic_launcher.webp | Bin 1900 -> 0 bytes .../mipmap-xhdpi/ic_launcher_foreground.png | Bin 0 -> 18900 bytes .../res/mipmap-xhdpi/ic_launcher_round.png | Bin 0 -> 7971 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 12392 bytes .../main/res/mipmap-xxhdpi/ic_launcher.webp | Bin 2884 -> 0 bytes .../mipmap-xxhdpi/ic_launcher_foreground.png | Bin 0 -> 29506 bytes .../res/mipmap-xxhdpi/ic_launcher_round.png | Bin 0 -> 12392 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 16751 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.webp | Bin 3844 -> 0 bytes .../mipmap-xxxhdpi/ic_launcher_foreground.png | Bin 0 -> 40510 bytes .../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin 0 -> 16751 bytes 23 files changed, 114 insertions(+), 16 deletions(-) delete mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png delete mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.png delete mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png delete mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png delete mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png delete mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png create mode 100644 tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png diff --git a/tooling/cli/src/icon.rs b/tooling/cli/src/icon.rs index 76a1530bc66d..319a15e8fde3 100644 --- a/tooling/cli/src/icon.rs +++ b/tooling/cli/src/icon.rs @@ -30,6 +30,12 @@ struct IcnsEntry { ostype: String, } +struct PngEntry { + name: String, + size: u32, + out_path: PathBuf, +} + #[derive(Debug, Parser)] #[clap(about = "Generates various icons for all major platforms")] pub struct Options { @@ -153,17 +159,114 @@ fn ico(source: &DynamicImage, out_dir: &Path) -> Result<()> { } // Generate .png files in 32x32, 128x128, 256x256, 512x512 (icon.png) -// Main target: Linux +// Main target: Linux & Android fn png(source: &DynamicImage, out_dir: &Path) -> Result<()> { - for size in [32, 128, 256, 512] { - let file_name = match size { - 256 => "128x128@2x.png".to_string(), - 512 => "icon.png".to_string(), - _ => format!("{}x{}.png", size, size), - }; - - log::info!(action = "PNG"; "Creating {}", file_name); - resize_and_save_png(source, size, &out_dir.join(&file_name))?; + fn desktop_entries(out_dir: &Path) -> Vec { + let mut entries = Vec::new(); + + for size in [32, 128, 256, 512] { + let file_name = match size { + 256 => "128x128@2x.png".to_string(), + 512 => "icon.png".to_string(), + _ => format!("{}x{}.png", size, size), + }; + + entries.push(PngEntry { + out_path: out_dir.join(&file_name), + name: file_name, + size, + }); + } + + entries + } + + fn android_entries(out_dir: &Path) -> Result> { + struct AndroidEntry { + name: &'static str, + size: u32, + foreground_size: u32, + } + + let mut entries = Vec::new(); + + let targets = vec![ + AndroidEntry { + name: "hdpi", + size: 49, + foreground_size: 162, + }, + AndroidEntry { + name: "mdpi", + size: 48, + foreground_size: 108, + }, + AndroidEntry { + name: "xhdpi", + size: 96, + foreground_size: 216, + }, + AndroidEntry { + name: "xxhdpi", + size: 144, + foreground_size: 324, + }, + AndroidEntry { + name: "xxxhdpi", + size: 192, + foreground_size: 432, + }, + ]; + + for target in targets { + let folder_name = format!("mipmap-{}", target.name); + let out_folder = out_dir.join(&folder_name); + + create_dir_all(&out_folder).context("Can't create Android mipmap output directory")?; + + entries.push(PngEntry { + name: format!("{}/{}", folder_name, "ic_launcher_foreground.png"), + out_path: out_folder.join("ic_launcher_foreground.png"), + size: target.foreground_size, + }); + entries.push(PngEntry { + name: format!("{}/{}", folder_name, "ic_launcher_round.png"), + out_path: out_folder.join("ic_launcher_round.png"), + size: target.size, + }); + entries.push(PngEntry { + name: format!("{}/{}", folder_name, "ic_launcher.png"), + out_path: out_folder.join("ic_launcher.png"), + size: target.size, + }); + } + + Ok(entries) + } + + let mut entries = desktop_entries(out_dir); + let _ = crate::mobile::android::with_config( + Some(Default::default()), + |_app, config, _metadata, _cli_options| { + let android_out = out_dir.parent().unwrap().join(format!( + "gen/android/{}/app/src/main/res/", + config.app().name() + )); + let out = if android_out.exists() { + android_out + } else { + let out = out_dir.join("android"); + create_dir_all(&out).context("Can't create Android output directory")?; + out + }; + entries.extend(android_entries(&out)?); + Ok(()) + }, + ); + + for entry in entries { + log::info!(action = "PNG"; "Creating {}", entry.name); + resize_and_save_png(source, entry.size, &entry.out_path)?; } Ok(()) diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index d603327f219a..17756f4a47e1 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -125,7 +125,7 @@ pub fn get_config( (app, config, metadata) } -fn with_config( +pub fn with_config( cli_options: Option, f: impl FnOnce(&App, &AndroidConfig, &AndroidMetadata, CliOptions) -> Result, ) -> Result { diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml deleted file mode 100644 index eca70cfe52ea..000000000000 --- a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..28f1aa119119336781390c2531c381499576ed59 GIT binary patch literal 3524 zcmV;#4LkCQP)qWSpyDKsw z@SLEk+Ip+_KCZK+%Yb|B4_LOb-_x9os ziz^f-{8_*&)mxz0ZG+%6?sFnlnbNn1wdb0-omM9&+XoN|F}PKNz#t%%_y@&l5ID%3 z$eZC;t3ayqJw@|A%AdP(N6BU*t32FOz2hJ_eL)2XlFl3*KH-Bo9XAn?BZ`wM_&11} zAwb>)S4q5{0feG3Eendm6hxx}M9IucBv2qbca?4${o2nHDJ(*BfpE8316l?aJrnWI zS7${nBNYn4_Xthkfff)H@iKDrrswiycvU%Rh1tYeI=3@*>K0{*IE`l6dTJW%_`bmmZM;EYOSBGI=LJ_-bJ4sIYM>7vA%!QYNba3PGr%O%RF9l+E9k zu3Gzb$@0&c7aAWiV^zW39g44=e~_eK!-(iVmtN>LKJ26Xi`&L$VN zB{YIUq@xE051IXs$OV{aF+dP`Xm3YPRPTOh)}@h{dkLunzowuXitwt8Z2CCv^Be?5EyX zW2!d;Y9p&JdwG1jX{}lt+JkwaE-=v~azPIa7!c4izNZgILje5~Y>D45iP?T>OWe84 zkGdb8_C)x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;;ECgO%8_*W Kmw_-CKmY()leWbG diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png new file mode 100644 index 0000000000000000000000000000000000000000..85d0c88af65bcef008faba29bfc02688883dda8c GIT binary patch literal 14102 zcma)@W3whavxV>3wr$(CZQC|ybGB{Uwr$(CZJXzL|G}y1B;S*Cy4STT;Rc*Hw(lv#FpIm%kw(fKV=2pCMRD*lU-5pKhhYjx}DH zxeeN_RZ^Qw&&+InZr?sROWF*H{l7wFanDFu0X}i++oyol%d*}h{0}3Jz~PfGKU{9mtYrn%+mJs8@1P$Run{hJF^IsZA^-+lKzX0` zdDe%WR*`@WT2uhZ|5U=GS%?aELSHZE6mbzCCp%cl?yfW9htao3X-u!DhCyc)Z_=u? zz#%GQk!fm|l4)z1i8R}Kwz!@{T3!TMr(;!$6UjS11Kl7bQ_v?FY?_dyzgGiPmz)lI zv(}+IGx#sY{l#|Ya>x6w?R74n$Ua*91NX@tzyQ8mfpLWee2`AzDj4-ZRfqYd4c!Ar zOEVtWL7KJNS$JJwhikLV%siw+v`_*fAc=AfBI6jcEs#=C@{4N-QYA5^^2>e5?+$r~ z*HBc2%jd9^*-N!s?|D9wp|57+QnlSNt6F2#{5m-JP0&dN3z@)3@WTmEj1_)ShIxx~ z-W(~G$I0M&Dv*1b+%VPlTqGgP_MZV3NW@U^Z(u>?i>%#vFXpob9pd;JR2fVRn^u5= zL{-2!yiEtBlN~bCHJhCBt@0a>+BRJ*J`Nqx_!u-F7mzg{4JOF0`>zHD8!kD!2~{#ME=8t%|w8Ot5pzP+8Ql` z?|qtl?p9)^IYX?6x*p#5n@VXFfdaejna2okRnKQj zOf)-~0G=wE22Y~^3`JmAazGAQL>Axzh_h?W2WJ|6#_K!_JHI=hKWvr}))9`6*bJlKKd3mV{VI>M0nn-h><9xm3J)fX$ zUWE_}=HIm|wH0SFIN8iT%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Z4+o(16-%Z4%i?AgZNw>2nlA zCj5c*FIR@0`&nt~d0wnPJ(x&u|6mkqibrAo!zjt=IAGz&ASR7yTycg$c?nt9)R>sf h=>H#uJEOnA6UP3ZI|gE%|NVCZNQ%md)Cd^_{2vweVnP4_ literal 0 HcmV?d00001 diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 0000000000000000000000000000000000000000..28f1aa119119336781390c2531c381499576ed59 GIT binary patch literal 3524 zcmV;#4LkCQP)qWSpyDKsw z@SLEk+Ip+_KCZK+%Yb|B4_LOb-_x9os ziz^f-{8_*&)mxz0ZG+%6?sFnlnbNn1wdb0-omM9&+XoN|F}PKNz#t%%_y@&l5ID%3 z$eZC;t3ayqJw@|A%AdP(N6BU*t32FOz2hJ_eL)2XlFl3*KH-Bo9XAn?BZ`wM_&11} zAwb>)S4q5{0feG3Eendm6hxx}M9IucBv2qbca?4${o2nHDJ(*BfpE8316l?aJrnWI zS7${nBNYn4_Xthkfff)H@iKDrrswiycvU%Rh1tYeI=3@*>K0{*IE`l6dTJW%_`bmmZM;EYOSBGI=LJ_-bJ4sIYM>7vA%!QYNba3PGr%O%RF9l+E9k zu3Gzb$@0&c7aAWiV^zW39g44=e~_eK!-(iVmtN>LKJ26Xi`&L$VN zB{YIUq@xE051IXs$OV{aF+dP`Xm3YPRPTOh)}@h{dkLunzowuXitwt8Z2CCv^Be?5EyX zW2!d;Y9p&JdwG1jX{}lt+JkwaE-=v~azPIa7!c4izNZgILje5~Y>D45iP?T>OWe84 zkGdb8_C)x^#;D+{wXBbO{D?rj=}8`Tq7O@77PHf+i$>`$-Xa1HjRR3BHHC#ag3_LT z-uCG5iI!gX#^*hgHi(e3Iq)Q&P)ZR1P>K%i8+8Bf<=u`D3BvUN69kT=-0$euy^}e1 z<_CH6foK8{kNRi_G*fr~RP|j_N??D6r)8D&>}=@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;yV4w}zLk0`!S?L#J>$aIU_DM<*Qu-yf&Tbb??Ia26OFUaQuA|jp z(+u%>6jR>Fv6gFZxE^38(>%{d6tj%13y>qhqX!R%P8~m`@&g*%imh2z`&|+2_PFRV zG=e78$%Q6BB6K_c`2uwmv|!`lVOJ!-QM3g_Vk#JGA)$Z* z-=NMtIcJ*etaYmGnhEU!Lq<6#i@?@X`@XYwFJm-YWVZ{((Lj*1I~dp66$^pk4{MWOxBuL9 zalEORm1RRlc6z^+>krZlYa}8JFAyU-Dhe_b5M8U6zv}*E_1mG-Co0;#9Q-imjT{v_ zot0^{TC0^EPN zX6CJ<ETEiFX%?bP zArV5BaM+Uc`(VDHe0#p#`r||QPLa>MyeJ3(Vm)3y?{dr1o!}Dt*d32Qzsxdm@@;Ad z^?E2gkFAwzCmPkR1Y49LXh2pie6c2Wjn2^Z30^9T)lVurZr6;y!9$@M8yR{>mh7<>_7yQsuLLg3VOf4 zso*yg3^_wb@O@GSKwFJbXL`S{L9D7c7Wlqwr*Ge`?J%9WFVqxvxE>U2?`}BEXcD5U z+3Sele*O$}kdg4PLc&WUdSp?LgeyAy9}0f)i2u6%G~53G-3(h6(Dps_00000NkvXX Hu0mjfi}+A- literal 0 HcmV?d00001 diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp deleted file mode 100644 index 4f0f1d64e58ba64d180ce43ee13bf9a17835fbca..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 982 zcmV;{11bDcNk&G_0{{S5MM6+kP&il$0000G0000l001ul06|PpNU8t;00Dqo+t#w^ z^1csucXz7-Qrhzl9HuHB%l>&>1tG2^vb*E&k^T3$FG1eQZ51g$uv4V+kI`0<^1Z@N zk?Jjh$olyC%l>)Xq;7!>{iBj&BjJ`P&$fsCfpve_epJOBkTF?nu-B7D!hO=2ZR}

C%4 zc_9eOXvPbC4kzU8Y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93Nq4-G}yVIP=Vd*Oq>3!gZ7Di>jo0^5d!L1MJGMzD=|Z#2q*V+NuY9Ij{p3D*;jkKcdRv2gZ6 zbQkEluzuX3dh%7NA#-wvTDeDzH@mW=Na9Ogc60d{m4j-M=-mw`R?&2EK4eC!{jO7w+Ef3hm5{DgGt)fs; zgyhs%04-IBPfUW0bu73GVX(hdSAV!TX0e!?a|RNTryvrNE#>AEsWn+SW&l`P+NfNr zK(#)=&X+ox_PsEe>(_HZmO!hz(Cpcz3{vX{?0m`7*`+a2*&Fp&wNQxmZgurivrTQS rt+lnb*4EluTWf1=t*y1S|C#pxla(O^#1Bof00000NkvXXu0mjfK#F@# literal 0 HcmV?d00001 diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 0000000000000000000000000000000000000000..73e48dbfb7dc31ed1e951b77820af88b93fcc418 GIT binary patch literal 3377 zcmV-14bJk3P)QSgd_^dWEm#2zvb6^-@HdA8zdoW|L`5&dC6Pv^4I#TRMNHHdIk^#JBgGvgR#^Dg%|e zBXA(y%?RB)QKuPMA?kpX>e!fD3~^kHdV{Ru1nai_yyZkEMu<(^H8 zR@c4yS@HQTcq_-!oF0Uq#R2_;JV#Ui`fJ~Xvu{h7PZ=1B^2(GX5ee)Ds8dA$5Yavg z8DroXo-(uQiLbUat^3obZ;1+nkd*eF3R{~(2%GR#3fOX4KWN0 znq!PmwgRnM9QFWQ5Md7}6g(^HrNG%Z*6S3VH_SgZ8M0E^)lATr0UH(!mHQ_N@uhDM zDzPUS287&Fh{J*;V7nD?A`$BNNq>3iabIb5U8oxIofOA8hNYWwhi92bQPC__SK7s@`=LSOGbMIBmKolM(&7z{bFv0DdXg-!TU)` z0TI8+6>%qf^U0y*IlC^zt2fz-)yQc=o+Y2`8csrA=SpP9a6(E8h;QSSPB3VoRv)~6 zZzuhq5ja}FpG^jaDSt0}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y9}0f)i2u6%G~53G-3(h6(Dps_00000NkvXX Hu0mjfi}+A- literal 0 HcmV?d00001 diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..1d98044f13bdd3afc7cb426644ae118688c03c14 GIT binary patch literal 7971 zcmV+;AKc)HP)JESGv*^#e%LPSO8r`RL~zQt7})VuvTQj3Mw60iuB$~ zAP^Er@5%JJ?LX(ccQ7QAWG1BfZ0?hJQf6*DM_CLAN zfAx!}Y51aP2EV)iE-Q-mKE8S7;|ly8Hj2Dj6j0X-hAUyYprkJuC*@CpkpFB#p?Yyj%Kq81V?U( zP-=I|*~c$9E}qYHrlw{&Gs>-!Tu~Vy1x1z=Noi3)?SePz8ERCYz&^uoG>yKgr|IUz zSbbNXX==+ z$GH$bn6gWhIVo3NUHty|xkN^yO;{j-}c$V^KiQ3McwQZUAdG^aI{wUpnAB6X~ zig5QoqW~UmT+nWO!Nbwh=HA!p4LXnwqbw37ii(I<3=(JR>2!*uLJq_Fu?)r0)YhG4 zKRo$S=2Iuq>^a~`tQxBuE>Jfc1<hJvJKp#a2ecyS;EaoVk6!~Q)t;b#b{fr42Q z5GH6JEWR?w*W!WK_lX7o=j5qij@q!X__ML|(jF5;1tE!ThydN>3eW_^g5acgACH;- z^wj9Zl$F4ZDu~)F7xt6Y%nP$ImSNooC4ZujT*CXvfn@X`rc%;YjS^+dG5BDPOHHwD z9XRvc==>7V0r1EQ^{fQCsf7<;97so8^pDutGaib5M=BC9wS@qSJf(UWp*6ziI93lw zFlY`UD3oB4%m5cQE#T^m{;Ub!=Sip*Wu&5%C_pU1_|4RK4hk&a#RqY^j5Pbv8>gQg zP*5t`>e~~VQ~`+VAT05tCt@F;H8uKUp-7N9mY63~li-n|Pyrx2uX({ zW!;B~R(h_hz$qwp29qm=;$y=3pf;^^@i%nxyKX>t|DnA)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X*5OaT_#R}YcPW^I*{n$U)NUG0*UxphV+pV0Sf~L(5Kk*w{QlErKmF%7 zHAXcL*l9ckREi7ubHGg_28BH~d%nI)w_7Nr@>UDSOA)N~r&!oBIHNf5h0U|5z?O zA`Bb(zM^6Cl=(}o2%6~ zjRM>!RH-U?d?^0T$HayB^&fJxU*Ewa4PCnTW5XlcL#!~++CLY&GOt_VJGOSAgh4@( zEnB#J@u+?O?#^W26JXqKZ_}08L(jm%*O&1*L>k}My8OLo#skApC%O**ed!N(p?C^&0g@$$OIU* z5Le9;R=iQAxFT2|!6EHm_q1#+Tg%q6wQMb0%hs~BY=5!s Z{{b+Ide7&7`HKJm002ovPDHLkV1iT#V`TsU literal 0 HcmV?d00001 diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp deleted file mode 100644 index 948a3070fe34c611c42c0d3ad3013a0dce358be0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1900 zcmV-y2b1_xNk&Fw2LJ$9MM6+kP&il$0000G0001A003VA06|PpNH75a00DqwTbm-~ zullQTcXxO9ki!OCRx^i?oR|n!<8G0=kI^!JSjFi-LL*`V;ET0H2IXfU0*i>o6o6Gy zRq6Ap5(_{XLdXcL-MzlN`ugSdZY_`jXhcENAu)N_0?GhF))9R;E`!bo9p?g?SRgw_ zEXHhFG$0{qYOqhdX<(wE4N@es3VIo$%il%6xP9gjiBri+2pI6aY4 zJbgh-Ud|V%3O!IcHKQx1FQH(_*TK;1>FQWbt^$K1zNn^cczkBs=QHCYZ8b&l!UV{K z{L0$KCf_&KR^}&2Fe|L&?1I7~pBENnCtCuH3sjcx6$c zwqkNkru);ie``q+_QI;IYLD9OV0ZxkuyBz|5<$1BH|vtey$> z5oto4=l-R-Aaq`Dk0}o9N0VrkqW_#;!u{!bJLDq%0092{Ghe=F;(kn} z+sQ@1=UlX30+2nWjkL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^C{r0xd zp#a%}ht55dOq?yhwYPrtp-m1xXp;4X;)NhxxUpgP%XTLmO zcjaFva^}dP3$&sfFTIR_jC=2pHh9kpI@2(6V*GQo7Ws)`j)hd+tr@P~gR*2gO@+1? zG<`_tB+LJuF|SZ9tIec;h%}}6WClT`L>HSW?E{Hp1h^+mlbf_$9zA>!ug>NALJsO{ mU%z=YwVD?}XMya)Bp;vlyE5&E_6!fzx9pwrdz474!~g(M6R?N? diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png new file mode 100644 index 0000000000000000000000000000000000000000..a888b336b5bc84b42c0c266ce9b8ec5d9eafed0b GIT binary patch literal 18900 zcmbrFQ+p*$vxZk}n-gbZ+qP}nwkNjjH+C}N#GKf+ZLB0K*z^5{ebC)!bJOBVdl93iy{dcbYZ^1(U+oMSst^oj}u0~ljqZIi7SEhjvZkYhNv4erJt_|D*)_#TqIecaywIQ@Ik-50Wz#6?JEc_oZgr9Al zs0#qod<{mfv1}WByjtotM3T=kGY+d;3tLR7^4>lfB&Zdo(dLxAlW_KRVDjSSzq`aG zjWxh^t05Bzfv>+0plWDQ*6Fu)u=KY0R&l&hgIwj%1EW}eR22Xe`f<~66HsP zHFC=og{B!jZ7eQ19i44=6BryIX3nn8!1P`5n;vMy*)!%)5GfXaXkmU;|HbE7-T>Dm z3l0AspM?#)M15L?-Veak1v3gK@bZ0p1p2H7wH5mgt@P}K4jzh>ajqqCgs5<&uFD5g zvg?Jgg~EvL4V;(|tdY4Ke zWZhXuxpX;T>uTL-X|5I#>mry=-HUkqNs!uw^{We8-4#Dz2j1@$n3X+DP}&(3GHUC* zUB43*Oe8fx)*B5^h5(uCI5CW)ANQa_Fl<|}8dC$dik8s43^N2+_{Ln3n;x^{vcd61 zsG$>SiLbmvzG;$5NR|MIAU=RmS}lN68D&2Q_TFa9>lVmp^kVQV#l-kir|nd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G$jq|J(zaOy!D6m#(mam zdu+8|5@-@80@Fa@oiBlVxd%Qrl%CN4y0tOyxeD)Dys_IunQR^e%oi?x;lP!vDxfm% z74Y=b)gxd1wY1G~-CK(cZQk9#1`L{sl#ktH_i$7we;6X0?4cmsOm;j)=;4l(zWeQV z?&tWJ!HuumXGS%oM2v;(QDwHN9xVfy0lPbTm0>t0V zSS9@O>cNE!S-(+LGLa@fBbgh`x^6zgDF<4KK%$o*`R|UE8|a%uuoF+_l}J)X+I4DUkc_rpQ6zyM;@n=^ z&Tg&YO0Zd4fyTcmuSgX<-x;=h%}IjdCaM>NMddTr4_sZ5wv0 z*o4v0_NjzD*!EbOsMs+0hl6^u-gTH7|7y(18ZXHbT-?fo$EKMrZk=02&XaXkb%%&W z(Vsa?>+V6#2iN2<{x$yVtohd1_jIx)5yVQOy>%nt#{$LYy_Da$Hqv{& zMck6L9tA1v$7n&`DwX8ahLs}XvDW|Atwxk@Y>e}+o9K5+;^g!ROjE$%=j3j2OW3j_ zO89O2x7hi&(1J%7@5coKOQs(Jz@jI#9+jxPb+wE}JPcz@1&Z#-C#+s%-{?u$?8Q0> zs~++@H(AD7D+Zu4YX+beK4^s5!1Y+e%;rQUaOAXoymNc4sGon!iUy+@Db9PAabw@3 zkAU(8196<+m`#INjiKm5);-OME=*11;N`K}|S9C6#E&Yv+rd_V_@tx{{ zJ>8y}D#jL}!USvhb}4`o@bLI&_HOR;GyJrXSoq4yyZP*v!| z61GZN2NaTY#e&KeX)#rIxEQe-d2vEA_^4<`I|$sXDE)qAeL8AG9Tie1Hr9nU+| I*#%+#2dtK;n*aa+ literal 0 HcmV?d00001 diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 0000000000000000000000000000000000000000..1d98044f13bdd3afc7cb426644ae118688c03c14 GIT binary patch literal 7971 zcmV+;AKc)HP)JESGv*^#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m%*O&1*L>k}My8OLo#skApC%O**ed!N(p?C^&0g@$$OIU* z5Le9;R=iQAxFT2|!6EHm_q1#+Tg%q6wQMb0%hs~BY=5!s Z{{b+Ide7&7`HKJm002ovPDHLkV1iT#V`TsU literal 0 HcmV?d00001 diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..081832466b4a17180fe9255fa0d3fcba2010592c GIT binary patch literal 12392 zcmaKzV{;`;w}y9YOl;duCbqSc9owF0qKWN^lZkEHwr$(C&-4C)Q?*w2msQ!urSMri-6oSF7;r%Kx#|AF4|NA zq;Qa;Cxit-b-#Z|7-EVzU}EZB(7?a7wi)YaX;t{yXo!PqNEpb#$za2z?L|o*g5tNR zR1MyzTCbzwB23xtsZ#x0g+hemJ?^(Uzdgsk6Xhf%O~wD;fOMIOqrGv=vt-k1;Ppvw zMwrYN{ZgTkP`|PNuz(a!*)+t7Ft<$eA1nrgiC|ET?@lqsjSyJ?i#LVD^jG_@V9OA9 z0C7;-G-(<}UX(*FHA>!VIr->d0EcPuG;Y6sO)D>*;$AW)2gm)dtKCmSH>|{POe}KM zc#V@$p^RfDCI)muhtBQ5gg_K<<-P11=y@{~5|9Fb01La7%5sg9eemJR@RX}U>bH71 z)le2=I?no#)@o5lQgksQhuA1K&=9dBqi%ga79l3nC7WM^>;lHYZo8(~`u&Q0>S7Nb zSOunyTtzMyPbLMx(C^9p!IM`Iwsrk@O|a;`k<()H=34i6!rJ~+N}|5>0ER3_)Gq~+ z7nVfQ7C%DxM073?xQOKg_=pVsu49=b=zvTuW57bbGP>)2_eL;c!gK%*G}A(+llzPX znW=Aj`f9dg7Q;Gq5670xVbFGSE?F2cE!chib82EFr`)e;(<+&uq*qd3V-&l|%nQ79lLNzKn-K zb(hK@DLb=%3zF0jbdy@62hxUALGlo39dJyS=U%Il^(p0gu)kO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ei##WKR0kLE7VY32fFNekbXU-0`B^hqMT3{vGg=*Z~ zHONF;d>(I6zPQ?r?eNZ#wWpM%PdIwImu=GcNn}0Fstj0Ztf{o5-w#dk-1>i-j7KfD zO!;x^F}B-`+qr`^mI{~pb7yoFV4%t+fb@!;;&}@gBC`ddpi@qv=XP9C zl|a?O{2ZTg8w?l*ZQ(3lB5A*uPfvrnI)zcUm7;(@z+Y6~+B=;r8H336a}P|*5WQ>>)FTw>x$YoFgFF;&l0*}XJ%~Ny@x2HmIqn#Dmi-v{Ai&>H3$cg$eXgOTB}tBMbGYbaD_=4%Sia02v8I K@hVZnfd2y&>ZwQo literal 0 HcmV?d00001 diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp deleted file mode 100644 index 28d4b77f9f036a47549d47db79c16788749dca10..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2884 zcmV-K3%m4ENk&FI3jhFDMM6+kP&il$0000G0001w0055w06|PpNY()W00EFA*|uso z=UmW3;Ri7@GcyiBW{ey$jes55b5S`|ZVZ{(x$xch{z?D+^{yErVgleVwa9qvGt40r z42;MG=7<0QySlzE=Ig6%01!FBK^$Fsxe@Hfe6aCy?Wh2r0~}@_lQAF90oTUi0FhEr z#(*;kTC(r!tQk6;gxj4h%FdHAt(^M3YvYj(!tOeN)+Hvj6+< zzyJRG?^lZfWuR#t!tUKP&(?%3v&Zd$R2YN>lB(Lq`OInY48%4%yTv2 zYe1{G`3)(PDEio5Y@-I5tUf`c%%OCJMtSW56g3iEg%3`$7XSJJHyA z<|7&N)5Xrlgv~%BO24eFd;Hd;uiK%D`EdK|quUeRZDqbh9l)%j%J#0lfrZumvA<_w zu&=AVvdChf6}eqh(bUz`(`Ue*p01{fBAcTgKyDYLs_I+YyJEk+rM@avU~>fB$n)HS zM7pfJydu`i%gfS<{PF94kZDv$t>06sAkhe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zcUm7;(@z+Y6~+B=;r8H336a}P|*5WQ>>)FTw>x$YoFgFF;&l0*}XJ%~Ny@x2HmIqn#Dmi-v{Ai&>H3$cg$eXgOTB}tBMbGYbaD_=4%Sia02v8I K@hVZnfd2y&>ZwQo literal 0 HcmV?d00001 diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..b18bceb64d257ed31d50e65d7f2b98abcfb21158 GIT binary patch literal 16751 zcmb4KLwhbtvwdURwv8Rzwr$%scWm3XZQIt4Z7279Kj99#dRUWwdQ~k%D#(e$L1RM$ z001~i2@$3L?*9KBNbvuv(zXo*03gUFDI%!ik$tTT;e)!e+PBn7ktHSs9D>iKBwDFd zOhrv73N{?p(}vJ>`|e}p+gi3h5~Oq$5kL$naZCDyECEbptK2I0IorVk6LFj|b7Ph? zecu)qQqRru>hDDYj%5-r`2Q;_hDOoih{555^BBS^-`a1vrp@+P*V8IrO+mkFe&Qo} zgKd?S*mH9R0bEaaNN2Q#IE=CTqS?}oVYi68iN~B_f&MdRUxkzXWaF5lOKg~gYQ@}O zJkYLqXAc{F#)nvoospV=yV1zR3yZ~Z6RZvHS#bZ8{W@D(X&*nuXaAnk?IVP8Jr9<+ zex_q_dGKWFTY?8TiaXdM%5qi}QKt0)g8&QUs=!<@fg+bwx$kVUV%e~b<-VvMv@s?; za=rNZSi_81S>=%FmztUi5j7M+H}1%OjmR95zJ#N*T|MGg3 z%^nNg5qwoe_uuvo=C*p74>)xPT97LN)OP%mf-D(u5D~dWl6j3n$q(gx`PkEqsE<*1 z{6&(Ruil)i;7wL0cVm<{^Z=8eWcv7ivwNy1UdmOV;yZj1c5AtJV1t|N6A0EknY*6I z6+eI$=XVVn8LVoZv)8~(!$pA)e|CKg9nIKyAsDyd)|3Xn=9AinSb zvQE#W3^SuT`~+4H8U9mI+pLUmisCG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-ij1z7>;EZDU#8Jn{z3id3 zp1qjkjm4)v7}z|Y=H=~Tb>UV2JbS&XZtY@A_cZYyYujKhp-?8lbd|a8;6{O4N_r_m zzE0)Nj<+%i%7)-$)m%giMf^ksDg^Bst{J$%`317k@ukI@MQ5(zHjzxIXC XrJNsHnTG=pQeg0O^>bP0l+XkK^)z{o literal 0 HcmV?d00001 diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp deleted file mode 100644 index aa7d6427e6fa1074b79ccd52ef67ac15c5637e85..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3844 zcmV+f5Bu;^Nk&He4gdgGMM6+kP&il$0000G0002L006%L06|PpNQVLd01cqCZJQ!l zdEc+9kGs3OD-bz^9uc|AA8?1rA#x4f-93WH-QAt;uJ6U6Yp<>o!9>IaV6aUZ*?W>} zs4%E?srLW`CJh0GCIK@hTkrW7A15Iu%N&?Q^$0+!{Tv&|t^Y@u%!L zglTg&?Q5q#ijZ;&HBQ?FNPp;k3J5!&{^+SGq?AX~SiOM9jJMRpyP?RCr@z38AQyy&WRMaC;n4una$~nJKSp?q|s8F00c9?Q! zY_ovvjTFm+DeQM^LXJ#v0}6HRt3R1%5PT*}W!k8BEM;Jrj8dIceFo2fhzTqaB3KKk zGlCLI)gU25(#u6ch6GeB1k@eHq7l{EHXv0n6xE#ws#ri}08kkCf8hUt{|Ejb`2YW* zvg}0nSSX1m=76s?sZhRY$K=3dpJ+y*eDULGnL2}4>4nvW^7_<~wIM_5fjvwt4h1|g z)g0Z6ZFq9j<~9~b8((~TN{Z?ZQfw|is&Xp~AC61sj;xItKyCHdI|tCMC_LbXF>~vR z=w6V3^H=W4CbAgR4#xw}ETTwu2guW~=Crl@SMXv85jQ=%y!s^?m4PI0My7MWICO;- z175jm%&PcPWh8QdOU(#8bp4!N7ET-+)N}N2zk2)8ch|4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nvpXlM$OcWijdOSW7K(u@Y?=p zntP6`sy}_v_OHAk(?GP2m}5&8{i(!+m0YcK>w!^Xnu4wCbEq%lqzmLRg;14%9Vj= zw$+r$POio)Rv1GEgH0$Hq)$ScRoPMUKBAiRrdZS;ldrJSD%=RMUPDcn!5Z zEP`PLO99p>WW_Eq>0~m0FoV{x%S$rJ8T|j#K5A!4a@U(ueHD?C?fHmf(^tASDhsvH z6OD~6_)N8NtY#Z)tc<)z+sN#_!d;}Iy zF~mZ5cE(}?|L&FjVrR(AC#QJo6cC!R%|gyR95%_H$fNKU3UJvoDgP^#aj2{2+?U

C z(CX6fIh8mroxe4Fy?l{bj%8R307X*fDQ#(v@y+x%4>XY?ax zC^p*eaCfrcq#aa-hT`A*7=V1wKdlx2BoX`y?{jb4s1j@)b7-etD6E@cKXx@8e&Vf zWehdcr8jm&_uNAX*$0NY%B&gn)>)@jQLcO5F3UZEr zds`B64=#T7qE6myk{5rNg+99@E{Zf&GEI$b?&PagH-fv#5k*V6EEmp!A*tE}RWk_SsM5#wN>{l7X5DBVl)bv~bNp*#NXY*I)h$Ng literal 0 HcmV?d00001 diff --git a/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/tooling/cli/templates/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 0000000000000000000000000000000000000000..b18bceb64d257ed31d50e65d7f2b98abcfb21158 GIT binary patch literal 16751 zcmb4KLwhbtvwdURwv8Rzwr$%scWm3XZQIt4Z7279Kj99#dRUWwdQ~k%D#(e$L1RM$ z001~i2@$3L?*9KBNbvuv(zXo*03gUFDI%!ik$tTT;e)!e+PBn7ktHSs9D>iKBwDFd zOhrv73N{?p(}vJ>`|e}p+gi3h5~Oq$5kL$naZCDyECEbptK2I0IorVk6LFj|b7Ph? zecu)qQqRru>hDDYj%5-r`2Q;_hDOoih{555^BBS^-`a1vrp@+P*V8IrO+mkFe&Qo} zgKd?S*mH9R0bEaaNN2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3ib+Ha+1=R?IEB>mpgstgJ^5JM!apm zB7^ntxNxy%DF57Bz;FuU&|pE%R@D724EO&L8G^3Rzx>z+8eRl_9y$q0$Z+_@94s5sT^8X0{v*uviuA7-O*Z4Dd z41>L|Dym&MbEsqsV+hJ}lk)WGeyeq?*Yveii6-6qWV`ck@fQx_Bo^FfXqyR>kW>ti zzo2Tm$*3EImg`tF>f#KG#W}iNxdT~X8HFD`VWRpC6hl;>i1G<)ae%jwse48oxyLkW z&o=UVQYF>aJpYXLktm5@CE0MG57GnB8rLQ|!PC6`k71EriQDtnZ*f^5Le`lmX|bUG zs8j`M`7b;i=rBT6ADl~8Qf@SDW_0anC%qLg;7fd#4vkc0})#$3>UFkcMybA zeI!osc?-K|y$MEa!SJt!JXm{B$lC?SISRwpxDf?)%K5EqkTW z`rCh@b1fPNNLDohNLOf^>KUu-ij1z7>;EZDU#8Jn{z3id3 zp1qjkjm4)v7}z|Y=H=~Tb>UV2JbS&XZtY@A_cZYyYujKhp-?8lbd|a8;6{O4N_r_m zzE0)Nj<+%i%7)-$)m%giMf^ksDg^Bst{J$%`317k@ukI@MQ5(zHjzxIXC XrJNsHnTG=pQeg0O^>bP0l+XkK^)z{o literal 0 HcmV?d00001 From d33fcbc81c3481a354cda3755ad4866fc2261bc5 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Tue, 22 Nov 2022 11:18:56 -0300 Subject: [PATCH 077/436] feat(cli): generate icons for iOS (#5667) --- tooling/cli/src/icon.rs | 91 ++++++++++++++ .../AppIcon.appiconset/AppIcon-20x20@1x.png | Bin 0 -> 975 bytes .../AppIcon.appiconset/AppIcon-20x20@2x-1.png | Bin 0 -> 2590 bytes .../AppIcon.appiconset/AppIcon-20x20@2x.png | Bin 0 -> 2590 bytes .../AppIcon.appiconset/AppIcon-20x20@3x.png | Bin 0 -> 4624 bytes .../AppIcon.appiconset/AppIcon-29x29@1x.png | Bin 0 -> 1641 bytes .../AppIcon.appiconset/AppIcon-29x29@2x-1.png | Bin 0 -> 4437 bytes .../AppIcon.appiconset/AppIcon-29x29@2x.png | Bin 0 -> 4437 bytes .../AppIcon.appiconset/AppIcon-29x29@3x.png | Bin 0 -> 7243 bytes .../AppIcon.appiconset/AppIcon-40x40@1x.png | Bin 0 -> 2590 bytes .../AppIcon.appiconset/AppIcon-40x40@2x-1.png | Bin 0 -> 6524 bytes .../AppIcon.appiconset/AppIcon-40x40@2x.png | Bin 0 -> 6524 bytes .../AppIcon.appiconset/AppIcon-40x40@3x.png | Bin 0 -> 10085 bytes .../AppIcon.appiconset/AppIcon-512@2x.png | Bin 0 -> 149064 bytes .../AppIcon.appiconset/AppIcon-512x512@2x.png | Bin 0 -> 15001 bytes .../AppIcon.appiconset/AppIcon-60x60@2x.png | Bin 0 -> 10085 bytes .../AppIcon.appiconset/AppIcon-60x60@3x.png | Bin 0 -> 15512 bytes .../AppIcon.appiconset/AppIcon-76x76@1x.png | Bin 0 -> 6132 bytes .../AppIcon.appiconset/AppIcon-76x76@2x.png | Bin 0 -> 12970 bytes .../AppIcon-83.5x83.5@2x.png | Bin 0 -> 14550 bytes .../AppIcon.appiconset/Contents.json | 116 ++++++++++++++++++ .../mobile/ios/Assets.xcassets/Contents.json | 6 + tooling/cli/templates/mobile/ios/project.yml | 1 + 23 files changed, 214 insertions(+) create mode 100644 tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@1x.png create mode 100644 tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@2x-1.png create mode 100644 tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@2x.png create mode 100644 tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@3x.png create mode 100644 tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@1x.png create mode 100644 tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@2x-1.png create mode 100644 tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@2x.png create mode 100644 tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@3x.png create mode 100644 tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@1x.png create mode 100644 tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@2x-1.png create mode 100644 tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@2x.png create mode 100644 tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@3x.png create mode 100644 tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png create mode 100644 tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-512x512@2x.png create mode 100644 tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-60x60@2x.png create mode 100644 tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-60x60@3x.png create mode 100644 tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-76x76@1x.png create mode 100644 tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-76x76@2x.png create mode 100644 tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-83.5x83.5@2x.png create mode 100644 tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 tooling/cli/templates/mobile/ios/Assets.xcassets/Contents.json diff --git a/tooling/cli/src/icon.rs b/tooling/cli/src/icon.rs index 319a15e8fde3..6535349d1792 100644 --- a/tooling/cli/src/icon.rs +++ b/tooling/cli/src/icon.rs @@ -30,6 +30,7 @@ struct IcnsEntry { ostype: String, } +#[derive(Debug)] struct PngEntry { name: String, size: u32, @@ -244,6 +245,83 @@ fn png(source: &DynamicImage, out_dir: &Path) -> Result<()> { Ok(entries) } + fn ios_entries(out_dir: &Path) -> Result> { + struct IosEntry { + size: f32, + multipliers: Vec, + has_extra: bool, + } + + let mut entries = Vec::new(); + + let targets = vec![ + IosEntry { + size: 20., + multipliers: vec![1, 2, 3], + has_extra: true, + }, + IosEntry { + size: 29., + multipliers: vec![1, 2, 3], + has_extra: true, + }, + IosEntry { + size: 40., + multipliers: vec![1, 2, 3], + has_extra: true, + }, + IosEntry { + size: 60., + multipliers: vec![2, 3], + has_extra: false, + }, + IosEntry { + size: 76., + multipliers: vec![1, 2], + has_extra: false, + }, + IosEntry { + size: 83.5, + multipliers: vec![2], + has_extra: false, + }, + IosEntry { + size: 512., + multipliers: vec![2], + has_extra: false, + }, + ]; + + for target in targets { + let size_str = if target.size == 512. { + "512".to_string() + } else { + format!("{size}x{size}", size = target.size) + }; + if target.has_extra { + let name = format!("AppIcon-{size_str}@2x-1.png"); + entries.push(PngEntry { + out_path: out_dir.join(&name), + name, + size: (target.size * 2.) as u32, + }); + } + for multiplier in target.multipliers { + let name = format!( + "AppIcon-{size_str}@{multiplier}x.png", + multiplier = multiplier + ); + entries.push(PngEntry { + out_path: out_dir.join(&name), + name, + size: (target.size * multiplier as f32) as u32, + }); + } + } + + Ok(entries) + } + let mut entries = desktop_entries(out_dir); let _ = crate::mobile::android::with_config( Some(Default::default()), @@ -264,6 +342,19 @@ fn png(source: &DynamicImage, out_dir: &Path) -> Result<()> { }, ); + let ios_out = out_dir + .parent() + .unwrap() + .join("gen/apple/Assets.xcassets/AppIcon.appiconset"); + let out = if ios_out.exists() { + ios_out + } else { + let out = out_dir.join("ios"); + create_dir_all(&out).context("Can't create iOS output directory")?; + out + }; + entries.extend(ios_entries(&out)?); + for entry in entries { log::info!(action = "PNG"; "Creating {}", entry.name); resize_and_save_png(source, entry.size, &entry.out_path)?; diff --git a/tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@1x.png b/tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..8a08f3c83f4f00b4f6c772c1ed32e0f6b09424ff GIT binary patch literal 975 zcmV;=12FuFP)xy;VqBso#sp2&7%|4( zC~^BiaR1?g#$rGbjfuNek>G++g8^+3pI$PRhELDKljd=Gv9o3&UX$P%`iq- z!eGfTKN9>*s58t+V1yt7fPe$Ug)50NGf|Oh(z8i&DVDmr{2ja>7=jrZgMMWcjDDpO zOv;z&Hg`KRI-xNKpm`F&qbzV9w>+Hr*O=)-EDpqu$dC`f^md*J)386ee%`|9(%w(L zo>SGX6SX(LUhD1hd-8I}OerbSmUg>+?mLY=cSmI^va8u`z6u}zhN`lJV=4ua4~)r6 zRb{y@rF{ZtHcYdI=L^h8h@4V(^gF@8n$N5qx4*=uDntR-Fw0L5%Y`S|aQlGiMyRI; zsz(^%7NM+DXU{_8^D=`QXxFmX@}|m^X9d=9n;6f7)x({M5T}(!4+kYA0H%r5>MBmx zrF8;mi{~z;zJIdRHu^lusJUwVbMeT5RdIXZSq@AzDKo`qlc3-*;y6EH6>RLGlQ+ly zUpUouxZ+%Aecc7R-O}o9aliMrAsI%uo_ZQYKy?_SMt(rve(oDx^K}Un1~ZKCO3jM( z+frJ6pk2LT$Ix^n=~-j(l(Dm@4(Xbe5oyQebeF3-t)2dhjSyf*7d$&-?IX9rakmXi zqylp+lSx(f{|e>t35i25s92-l3vY6P>QqS8kB%ZlI4n=LOfWZhK;(w)N5n&sW#tu? zmToZA+;5ZXbb9KG(a55%Y)?E7FDJo^$`t2dc8FFb$WYF*SRz53r|YW-sK~J9Lw_HV zB^aY*y0|~7Z?;`CXU2k4TB9ps1KF+jmfA zNJ_?{b9jpc1g*@OY%{;?0E6RRJDZwm9TcJpQ$%gqQr@l literal 0 HcmV?d00001 diff --git a/tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@2x-1.png b/tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@2x-1.png new file mode 100644 index 0000000000000000000000000000000000000000..c39a345126ae20cf2fd40dc4de691165756eb48b GIT binary patch literal 2590 zcmV+(3gPvMP)Z1F{!4g)f!Drtvxo!o|vUEX^pn^ zGdrmm#o%fizbLad2 z@BhC4pF#icf6TMo3^NF0%rG7Il?jn$8Oi^%C^?ql02b~p8R|Ob8_OVz87x71;3xf{ z_z3-glz3BeR0uyX(1-JGvPo^#b*}2d>up!AR0$RB0%AppNdHxUG#hXek^X*dqTkfT z(}I3EYLF?7F|)jqOQP;hzuRO~ep9%-?eL?&t^4PLEe;ov+h7080cx8Mjy6Q^czeL# zQ&KG7MIu3xO_D_sxiE(0VuT^LM3Rw2f9s4ahm06iSGHBo|6}#sV;5S^0Rt>B&}Ams zzJi;a=JUNX>#X_xBMdQ)M$v&>gyFn7mh-|KOAwYN;^1@)2gf+pfH8qAI$A^_pdTNS zJ~?o1V}t8nUYYF@3;RJJ@-xYx2JZP3%jlf-);yXuyC4Y$3umNMW}j``zvo25-l8g@ zwAm)Nm<-sM5UG!wGS=sZGbi|`V>4@TG>HzLWAuyD96n%)9bE?oR_(Cj}fjCdD(F68m^Zj;7O zFk!5o=TsJk#Tes&0a-jbTqGAplAJZM2i0|bry01?wg2BRXy{;_*<@xq)Tn`H@bdJK zU+w=eI&<~H{vQPSa=x8`JiIDqFRfo0YSDHysXin?=dUr)`-aW3%BGCb#P$2xg2e+5 z=2k@=I9n?L+iVUlFvudew#fGK;ymr9+OSY` zLnuMOx+o!80^@bMh?BOrtGDc>T6VMq`B^wK0(;UB%Q9)}IY5?GXf-CMrUorru}P|b zgkYi*S^ofi>#1W0ZcQ2++O%iqHn<(8P_%x!^Jx9Pv$;)24E=dMYhgKKC~v%XO{o0% zA9ZU~5Rx{Q4H{rbL_FgL2p#F}16NJEfO|GSMD9LX7GMFP;0rpv+-7q_1SE0*YD?Cmt!@?=*n@Ndkop-E8y6fJtWOv^27nRl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templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..c39a345126ae20cf2fd40dc4de691165756eb48b GIT binary patch literal 2590 zcmV+(3gPvMP)Z1F{!4g)f!Drtvxo!o|vUEX^pn^ zGdrmm#o%fizbLad2 z@BhC4pF#icf6TMo3^NF0%rG7Il?jn$8Oi^%C^?ql02b~p8R|Ob8_OVz87x71;3xf{ z_z3-glz3BeR0uyX(1-JGvPo^#b*}2d>up!AR0$RB0%AppNdHxUG#hXek^X*dqTkfT z(}I3EYLF?7F|)jqOQP;hzuRO~ep9%-?eL?&t^4PLEe;ov+h7080cx8Mjy6Q^czeL# zQ&KG7MIu3xO_D_sxiE(0VuT^LM3Rw2f9s4ahm06iSGHBo|6}#sV;5S^0Rt>B&}Ams zzJi;a=JUNX>#X_xBMdQ)M$v&>gyFn7mh-|KOAwYN;^1@)2gf+pfH8qAI$A^_pdTNS zJ~?o1V}t8nUYYF@3;RJJ@-xYx2JZP3%jlf-);yXuyC4Y$3umNMW}j``zvo25-l8g@ zwAm)Nm<-sM5UG!wGS=sZGbi|`V>4@TG>HzLWAuyD96n%)9bE?oR_(Cj}fjCdD(F68m^Zj;7O zFk!5o=TsJk#Tes&0a-jbTqGAplAJZM2i0|bry01?wg2BRXy{;_*<@xq)Tn`H@bdJK zU+w=eI&<~H{vQPSa=x8`JiIDqFRfo0YSDHysXin?=dUr)`-aW3%BGCb#P$2xg2e+5 z=2k@=I9n?L+iVUlFvudew#fGK;ymr9+OSY` zLnuMOx+o!80^@bMh?BOrtGDc>T6VMq`B^wK0(;UB%Q9)}IY5?GXf-CMrUorru}P|b zgkYi*S^ofi>#1W0ZcQ2++O%iqHn<(8P_%x!^Jx9Pv$;)24E=dMYhgKKC~v%XO{o0% zA9ZU~5Rx{Q4H{rbL_FgL2p#F}16NJEfO|GSMD9LX7GMFP;0rpv+-7q_1SE0*YD?Cmt!@?=*n@Ndkop-E8y6fJtWOv^27nR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/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..47f66cd3b79734cef7e45a33d5fd199f7f407327 GIT binary patch literal 4624 zcmV+r67TJaP)ek-UBQ8QpjEN9!K84cKDy8yLiJbq#Y4?%+ z$7&B8I_b*syBLA18dWJJ^d}1#H|Yo3C&ijFcYO4$(YHA!#3q6FzB}9V{RjTiV z$GA3j<bDl#Rvnn>O`KWaL#S*!~SW|#C)t?k#BTohJh|)366t!$t!jk*%jhI1f zqCi|K(R`4gRNpk7ixI244KrF_L*O})GXr`HPkd!^#Y^uNzmTz^@CC1r)-&Wk9Wdq_ zgdwi0&Acya+-via*P5fm2wJTY6*dV#kg(8?0Gc7x{2&>44jGMoj*O*((KJcqB;pWB z{z+H%1Aji3zV~Qtc5^{VM`ZFMecd+(J^L5ZOm%*fbIreh%zQHAY|<))IGR z7Z~0$P&RlGqXUd1pb;={5u6k%NEiyUmYkco`lGU~0_OD%g63K=j4>tAGuoy_9bcU? zA^I`7L{?!_%wxD|BpuPhi^M7rFoZAfg7^680`KWcr&nKN#*N^HUYnQn?A(Xr7x_wL#Uye9^QuNv zULXRoi{#>IclMjxOIB{*TeTzSyeGe5p|zTMzE>wp_y4#jV$#DSqvqISO)*-Pigg+v zJVpqsat?t!_|)lNZ`@V!@r{6P6~O)rP8$(9YW=d550wfTLl)QO@O{w=UX`i)nbn1l zFW*$O$}88QN#NGR$ z6J4{TQ?R+TWOIDZ zUwfPZI2MAn6YNZ#s;9V8$shjYsS!s`xz9pAOFqM6H+rCe!LHO-A|rvr=;+C%^%yZpgDtRUS^MjZ$6Q{bkdOUVQI;hWQ&RC z3_=qcV|HM10oTC?g1E-DBz%7VxlXI;cQ;Y_^L{ej-5;M7d_DQDh!K7z)+S*6p#h+T z)qiN8F?w*=5JBLBYU#$JBUprC?sGw!1>=0uIl&yKe9^C#?&(jpFZ*i>0tdiUGj2<3;NBGd59W4VO+`apb)_(QX56;7Z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}eBvp3u0fvXG_fN_g&)qX=$ExShcyS= zi2N}|U0}8@3(m9-(G4NWgo#PU1b{r0FvQ*Kf(ePAA}99N_LW)Y5T5QelWm83NjQ(CNZY8IQj`mDb}(E zY%Q(F#?MxMCyueK63T=nVMPBAF>-cF`o81yknizDqTat_aLU*|lcjOyxoQpgHgm77 z@-B|}y||U}HTuc{X@NLnp?@eKGck1i9W*~8ne#(q_fE*{+Sl`aK-2;ZnGv-b%tsJn)hYcbJ2dZv#mb@{)Dt>?Ny<_eQ)zh^=1Q5LQ;8|N$3l80Xsz~0CG+MQJ z)2_po3snv>R;cV78R=$%P>eDb2CbVrPM!QjSfKZ`2Z$~{NwbqI|II6G~YZJzd z6~~lH)#J_l{QYE#XP(kX-=P+-2}#LF9)dkS(%C7)Efz~b4Hs2dhro^ zE6rsH&5wZ?m# z^9dmTwVSf7<&D^O^&Sq+I&emQB%WQ&C?zDP)0!2s>rkHN_0glT!w!gATOa&#aC=Ao zxzk)ra}%RC7}UdJM|n@1{V^LFZV`pn)X;G2y`*7WQ)83Jnji?C-v*@xP^D6uGj<;F z8b5Iob`e37BgdVcfPml#wF;=w5KBauEDJiT$}8)a%uRINuC0Sz`J3;tYChA`u4SV*y*5QbgS*Btc{IdFPX!)wYEtWihucgFQmev zb%A^d>*~SLu_}vgFi9Y<2~OujSMBvHj?%&c!QRp778hZN2e0DkO@-pPN8$0JH+(4l n_X4F7jp>IlK*d6tc){mCLOyez2KQKm00000NkvXXu0mjf7#|Lx literal 0 HcmV?d00001 diff --git a/tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@2x-1.png b/tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@2x-1.png new file mode 100644 index 0000000000000000000000000000000000000000..7971ff3d68074df304ecb4555df2e1351d60f074 GIT binary patch literal 4437 zcmV-b5vuNqP)|v)0I~^zge?RT_ADeJduBb$-|zd+nK(=)5Ry=6pPuKLWai9S{`Xtn@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cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@2x-1.png b/tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@2x-1.png new file mode 100644 index 0000000000000000000000000000000000000000..e0b5a2e0222344edafab14d522e9393b3a8d3f8f GIT binary patch literal 6524 zcmV-?8H47DP))w+Tp3Me2FDvB*qMJ+}6p%oWItF1~~1wnxpE3#BU zYF#Qy0YTXW5<&u5Ndjb>EVJI_`_K9AoiH;=CXn7MP8_dDl3=e+0KVJ>Z# zwoBWk?I*mkKbi|=J$}Le2+>}L-{ca2t!y02upGy7c#Wz`h)Nixtz8A4?uTHiu&+vf zssMs{u{?mL00hJbFoVc4CIe^g5g`~wf#uHB$u5UWwOJji>U$Ufln2Zec!&HX0Mvow zWrfJ@*ZRa8Vs0D~dd-Ne;Nks}je}Bp7*c}GTvTKTZ{`J-t!q$RE{QZ$)<_lkCmnfv z^K9R3KV;pt@0jfv9ETnQjw!%WfK@W;|15xLEpWrs+Ct16`@pSHV;{UNYU(uuf_}z_ z3*mGp1Vn}(RsS3D;aTnK1y=h(Cw8c$sKmK%!#9?7D?X`Sn_uRv)XyP+RV&@Wm+XbK zI*w&|xG~vma9_G zfDiz~ZDSqTFoIwpA!v0>2+uH0itV*^XBN$0Uh#?xtQh!HkmR#e@uLIKZ3RXM3hzFX z`pV?7F>@HF%1CxqMqmLvE)bvsxORe^3g;7<2!Sa$V%5Ez~n;b=sTGH+bpE#+U;uGWH~ghX)Kf%u_gq72(fd_v-+jLRbn2CCsxxA`Q?8?^I=2B-6N2(b<)iuH5hQ zY)8-%ae*#+3v|0}p9Evrffecd!lJ}9$*LfD2H$;w8)X1QV3EIovxzn+9GxAo#jr=|R_tQDPYKsO+G0(1JrDol)SkJRbYe zMaB0l-%|b2xw><=1Bev`=EXq}X%D@ZvAgeO=BuTKmf&F(feEw_3g+cf?H_(oyZo;o zRj=H2#Clkg+s{5y;|#Icw?~beF*;^;VqbGQ(;z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?d00001 diff --git a/tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png b/tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..d4ceb760374f5fa0d56fdcde8bd5765156d095d7 GIT binary patch literal 149064 zcmeFYRajL0_dYx{(j`bqgMdgpq{N_rbax2~h|-PZ3>Fg7-IAiDbj}FU-5@b^O4k4r z|Bc_H_wYUcalp*Q#onKl_qx~GYe(qmsFIT~k$^xTa&eXX<>ag>U=Z^FEb&tr2A zaTsA*Z_3{*P6)-wgFw(O0+xUO-S~P?e|N-zRm|BYRE80?+4fFPimlmeL34qmrXh;j>YRK5pX(x@jb{V#bN@BP+jtL6Oqyjvq=!q2Vxs{<<5EyQ;7s<_GB zvKxoJQ;#{*d~nGkUPxGeQNbIMnswT2K61RJ(`;}eOfgjkwm-PpO%$FgA8A8EuGzsN4;-T46?MD;0xB9zGP`c zJGmdY`gYiVAK9~C+;_Da?G${adhd0>wY&u9E%Idveg1bpxQu9Qg0LN4T|nny>_~$n_Es0iF)M)ei(ZH6F_q-g+*X96U1Pq@#9|)wTr#YnEQtaS1(XZuTIkR4)__ z-A5*xjg4gFI=jX9gyrx`EZt8hdnkq!5<_Lnx<4umtlu)suP`vxBB&2A<m{~eKD>ojs$F4;>Br@)z8Ja`~HsxZHDd^o;Zn8>xn%_bZ=SmGD} zgQK)8t)3}PAPQYIzrFhKq$re^t*>ltkQ(oVj2e$g0x+R%`pD%!m%~q9%x}3mt%_$;?shBAFg6Q~ zniQ62hw{tf)b>5d3+W4sBT3d7yLp^BQ}}S~AnvMc&Mel8LZ_&!+SYAL6X!L$MJJ=r zMKm!?he$o5k9{Gi@P5Kqw_{QD#-BR6y5o}CL6Y0nb5)g@xdoQ7p?A?`KWeqdTT)(0 zs#h8|ZxVFuxi$P)*ZbBQL5!EF`-0b@@4-vB5l1cp!UK|nGbi0sm%^o|NkPqK%u}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el{4yJa&xI5M$n+Q?nJqx_Ut3o@JElpmUn_g1nd`g|VK9VrkiqdFA z?2V^BKDVdwQQ=>PkK@4E39n`U-$!z6-NH7W8+$CyWK0tHJ-vV!vk!p*a8OxgtxZ!+ z|44G*1|}p@M-43Qz;vbrEg|rZBulOB=hOd6w;d literal 0 HcmV?d00001 diff --git a/tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-512x512@2x.png b/tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-512x512@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..5e9add73161e79c11efd1e2c4e4ee64f243c99e7 GIT binary patch literal 15001 zcmc(G`9D;D^#7eP*~-3F7$hWXM6wLoWev$rSxUB&eVIWK%9;?eWzW8bX-2YUO+uKN z7E897tiv$#x$p1tH+<%onaAs#*L|IP=iKu;&*wR>L<=(m7Upxz006KU8S35w04Vqq z3NX@xU%R2-jsW1gtC6m@b!h(PV$@@9gSVuA$2O1COAIT*79kNNDSG(%^{xolzIXxX;y*(1*$!VWCxZ3nOc<*~8b@wyL*= zM~D)^A z0jT1fB4-s$5K?dL;YCZiqV>+Na|qitpEUUG_dbt>4UA$1qzd|_Y!Gl7afB##Mk`tj z0A#>pl$uekhkt`ngt!RqZRp&~fIi6k`&9ap>pMV1 z1Oh-wM%bBfBbyLLLG*<8sXCO$a)hvB zqt>@#bOGJWbOC0{-R9;PW0^}sfWZ4UAm24Mx_9Jn9;zNL85{k~!Dh~)U^mwYX3tG8 zbx7CDw^%0)3L`%7O6trX=1iefus5cb9G#G5z2R02|WWI*-n zoq?3?=eUpUcXwXfdK90$D8ar<2LK)|0-Ko+7lfDPZU*>Rn6AVi?exS+fmd8AQ&`W1 zn~0(wU4Q`MC~RtT?V~m`lrHeQ<}o)!UK19*>!0PZCYnGovpuozD$jk7EU`q_9lX~7R^ZdoJ= z%3`iz8J5~+rMY!urV~Yhq#kud|LhZlXB41crw6Y21{XlHT0T_pY&71BO5y8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eXDEV?i|{nTnS%qIV@E4IRlv~kP`TtY;4`Gal#|hW?Fjo8G%j_FkcFdOEpiMsRv-O z=d8*Yj653=N!%GnwiUcR_OS_=%4{2ic_o zn0CWT3DD{i-AAuUH4{Qm6}_B>gH$D!91*D?=dgY52h;6y-k+r8um8) z0Irf|jB~Jx9z+_lbCLZA_p;qKVj?h3w=f2i5!*JiU~+1Hgw0 z$xW|7q5>t0#vTu`P^M(!1y}NcRr6p%e*U`>uWww6~WWyHV^HeuI z3qn(sXSas{s6uM<7&g+{*wDOXGG~iv1a{m8zcK3@rf^$KDUqcDpfGd5mS>5l|H#2+ z<>y_Wr{y^G$c;Z0u9pbF)ug&A-G^I#v?PQYz;!UMjQpa1>Ba_tFACt4der)3*4!gg zr!rOjP=-G}pbev8G>nGPFd9a~Xc!HnVKj_}(J&guUwQmLw#1koNf(-(00000NkvXX Hu0mjf2n(UY literal 0 HcmV?d00001 diff --git a/tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-60x60@3x.png b/tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-60x60@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..4bfc2d971a5a7feb92353f579e87257fbdeaa35e GIT binary patch literal 15512 zcma)@LtrFKfQ7qb+x{oEZBJ~gW83D$wv$OFwylY6+qS*4r@ii>aHvBaO7DI3A{6B% z5#jLQ0001@)K4+xe{JLc78t01HUA_O3jn}pASEWO>XCh^2MtnHTk5WnoBo3hgCb%d z^lM8@T&wm!s%pK9sLe<0Sv|eMrVckHrLss2Oj@{~DM&%dijZI-@gWPR_iO%BzV;+E zS1d^xqhy}$oT0KT_FEm#9ozh$D8@MbI73XK%+ZDj|G#edASjx;w5N|H#1I6j>Px5@ z`V}siG~=#T^gV1)@sb%NSTVGL8&EwhWk#i`l}e5fkdT0h*;fX}l@iV{jDppNysUx= z39R00LP*CCh$RfzjS@yV2c)|G{hYLzpBN}6zqd@RpuzQtEfkr7w8aJ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(wuI&Qi}F~9T|pfhj>A+d8Yr-Fa6Dk&k>wJ@1CKl;ZDoQ5g{7|&i}H&l<%9- zPnSYwa*}gU=yL=ui?p>H<=M}_5%!5fH$%JGy{pmi9;t!%tz|_I*D9|awIwX3u>$l2 zE31w_4F5w0Bzv9l*z1~M?Xo&2Mvw);f&r?Gu#EuhqQ^)oSu?M|05iahldHpZwV;gq z-a}{K$pIZ+Kj6U2kb@#5NO&F=s@|_| k^Z(56{$JKN#{NUFr15lpjIdhvU*Z@bB`z;kEdmPqA4n!I>i_@% literal 0 HcmV?d00001 diff --git a/tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-76x76@1x.png b/tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-76x76@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..51ee10c227cc5c691e84343da45355dcd1b5c6d4 GIT binary patch literal 6132 zcmV)Ym>oA*k(qz%x5&hUPHO`E*D-1psczVn@P?hAEo zyS821u5EwfjsC+9jD{ateV}WMRZ$f33m;_s^*;+3!@v(sGk}63%ar8Ldsv3%5KviG zBw3-9{|UfYmS)jjyg>>HWVx7@e9U#NbkSxL8`ip&&M1hAa<0H#Wpm1fr*mAn*+oLG z!zI@M4<2MdPX4b141tnm;#=ebJGC{$4DTOu`z^hKZtEHs(4&Q!i=hG-9mT*faYqBf zBf*qpn{3Z35zZb;x9{J1pmOWRpUSsq<-1E&OJ%{8mF58MssM(>1lGWck|N^&0Meit zV_Hrf*wr+Q3gQfu2*9}ETH#Uh0%dWC&6bZe`dfCC;)-D-jH5FUFS@QoY$vU@NMKpyF?*~G%+ZeL12B2(Zl<&gB2kl z90%?g$Px?O`hD3aGnV8&e>~HfO$?4fj-%v19bh=)2#B7isfAC+&YgI7_&@M@$tDp; zLohFOOb8%YlLR2MY!H~9Q+Bl<-jx9b?# zPbw4eB~c~oIvAi;sPdty>)Ib~D z6~W=n9G{)x_^t2c^qbC?2<4XxTC)SD4G_T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A>FZU)3(#0pU?&*3jPB;dCw`o zr+VFTfb{1#NX4=n&kBsh!IB>Z)VQq1=Vt%j>9yP4RwGoyUu=u4FyNAFc1FoX9N-D< zq?%4w1eNcKOSorb-)q}_x;II6wr=`FX--ZuTR)0A3?HGhfT%kI@pzmetrozcIfy47 zpWHkxOa|e>xjQ_!`E-eYq{*26oI>w?O?zoCOxWnuj%g_d(179C8SNJ>;)n=S-#?nH zy})#xDp!6}*bF;WS@0I|fYmXpG$axkj->FRuMl}K^kdP%LP?`88%(%CE4MDVc@fmq zo1R$DOJ!{M>UQeF%PU?ihrHAFC+Dm31iy$DBL|8%%`Gl3qq=iEoh|&A*YA-xCTzsn zl9ux+%9g(dg+)nc$bt7q<8w2BD@-;0P&JLzYe7GgGnI%(r43#*ucr0?XipJ)P3wGhSEOA~D*f)iQnSW#A@I7#F4wx+U!*e6(3Xva^z9uYqe(z!=)Q89W_!m^z;?>EXJ%fm>P}DulNOVL0~ZS4cyS4%FqPQ zrEek2g16*#gETON|DjEoY~LWkd7tuttU6eztMdO2dHml6blh*0ZCqe|JLcEKe={fm NX>kRyT2X_b{{a_G0iyr_ literal 0 HcmV?d00001 diff --git a/tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-83.5x83.5@2x.png b/tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/AppIcon-83.5x83.5@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..edc9595ce72ba0d46fb31f96dd25f3edb90e4112 GIT binary patch literal 14550 zcmb80V|OOJ7KWeNw(U-BcWT?VZF_2WYTLHmsck%++BVO;KjEwue94DoXRYij_nky4 z%1a=?;=%#|00b#XQRRPq*?$!p@?YzUDSH6`aOFse3aff%U+O{mqML05l-bReCWR&e z3Vy}8`tV2TDGmRk78^ms=vka~##F8Tb81vXc0v=3!CeeXNZjKg2~AR*cFB9`lj~tl zV%%ZNg2!P5%%ij7<-MN?_)-WUMAd1)_&-WOXZjkZsHI6uj+rK8Un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f}LAu zOXTQeo=j!n4P0v7M>bTtfFeJ=#K1$9WUhiv*0T&0qUHN?x#dM0Ywy)-4p$8OWr1rV z+33W4e5zCN$Q+zSLpVuO_hP%^%Z|Nfb2;CIgq4>LzQR@{VN&>6pkigIro=Ua6R#h! z7d2ZdsLu4Y;}o>b8~xZx0@1~rH`#BiIQ7a)FD*t2B%jV?d;5C}GbAAZLO4b~az0wf zS&AG-K9O)(#gLSQ>}v8Q5=}Dm>SmX!{Tpq zzD~t{yW@nU{cgaP*}|P^q>JaO90NWsN(aV`CsdN5&@fW5!l+lAEC;mUN)(J-Bx^u|ua&BJN`pt`rFAx+%rxjUz z{yR5zuEoY*5}wzHQh*P=dK!_60=c8xHQwiSZyn>lbQb;ss8W3?5amdkcdvJk`-4j) zdcU3u4QpcIFDhze%X8p;&MMG5s|Fah>V#+^voQln*GlQzxA#zR`t!@@4d_lDF5eGcp(OBteHL=G9!=CTf$8tR34S9BOjQ(7vLI~H7 z>D8jo87UY8T1gWi8M0-xbn-KwK%}kOf6v(2@Y$q(j`jI$ZuIYLm$}?&@^o;HrX16A zDd^!$kMw)nSBvvOsN%~S&RiuiG+QojZxktb6qr>plvY1oE(z6h=cVR?e~Hs|hkqvL zfY|6fNm0SkLeCyYzjkmBWRvlJ@V44w#1jk@RC`IAnLVQY6)sbyQOOf27{lfoGFC|) z2~5r<`KC)SY~@QNuj;Ug7e)T2>F>M^w5!+0hAX(@(8fgx|!=|eR#;W<6FIa-4h0(W2>)zX|%vw`V*)}I+_k*lo zIV7TFL#V~?b(wf+t}l}Yy^@o(I0&&SqGm1X|0s~XUqmIqS9$JIeCL1v6#-IW@}jjr H4TJv&Jtlf! literal 0 HcmV?d00001 diff --git a/tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/Contents.json b/tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 000000000000..90eea7ec7e21 --- /dev/null +++ b/tooling/cli/templates/mobile/ios/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,116 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "AppIcon-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "AppIcon-20x20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "AppIcon-29x29@2x-1.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "AppIcon-29x29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "AppIcon-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "AppIcon-40x40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "AppIcon-60x60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "AppIcon-60x60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "AppIcon-20x20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "AppIcon-20x20@2x-1.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "AppIcon-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "AppIcon-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "AppIcon-40x40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "AppIcon-40x40@2x-1.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "AppIcon-76x76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "AppIcon-76x76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "AppIcon-83.5x83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "AppIcon-512@2x.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/tooling/cli/templates/mobile/ios/Assets.xcassets/Contents.json b/tooling/cli/templates/mobile/ios/Assets.xcassets/Contents.json new file mode 100644 index 000000000000..da4a164c9186 --- /dev/null +++ b/tooling/cli/templates/mobile/ios/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/tooling/cli/templates/mobile/ios/project.yml b/tooling/cli/templates/mobile/ios/project.yml index 7f190c73cef7..31fe4bf979b8 100644 --- a/tooling/cli/templates/mobile/ios/project.yml +++ b/tooling/cli/templates/mobile/ios/project.yml @@ -30,6 +30,7 @@ targets: platform: iOS sources: - path: Sources + - path: Assets.xcassets - path: {{app.asset-dir}} buildPhase: resources type: folder From 87e47ce1dcd794517d1fb4b3f15bdce3595cf22c Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Mon, 28 Nov 2022 08:27:02 -0300 Subject: [PATCH 078/436] feat(core): proxy request headers, simplify response headers (#5704) --- core/tauri/src/manager.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/core/tauri/src/manager.rs b/core/tauri/src/manager.rs index 071fdb6ac0e5..4ad7c5489109 100644 --- a/core/tauri/src/manager.rs +++ b/core/tauri/src/manager.rs @@ -911,15 +911,13 @@ impl WindowManager { let mut response = { let mut url = url.clone(); url.set_path(&path); - match attohttpc::get(url.as_str()) - .danger_accept_invalid_certs(true) - .send() - { + let mut proxy_builder = attohttpc::get(url.as_str()).danger_accept_invalid_certs(true); + for (name, value) in request.headers() { + proxy_builder = proxy_builder.header(name, value); + } + match proxy_builder.send() { Ok(r) => { for (name, value) in r.headers() { - if name == "Content-Type" { - builder = builder.mimetype(value.to_str().unwrap()); - } builder = builder.header(name, value); } builder.status(r.status()).body(r.bytes()?)? From d38204907e23d8a9254e7361b68a8c88085ed3af Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Mon, 28 Nov 2022 08:30:48 -0300 Subject: [PATCH 079/436] feat(cli): run local dev server on public IP on mobile development (#5705) --- tooling/cli/Cargo.lock | 86 ++++++++++++++++++++++- tooling/cli/Cargo.toml | 1 + tooling/cli/src/dev.rs | 21 ++++-- tooling/cli/src/helpers/web_dev_server.rs | 6 +- tooling/cli/src/mobile/android/dev.rs | 2 +- tooling/cli/src/mobile/ios/dev.rs | 2 +- 6 files changed, 103 insertions(+), 15 deletions(-) diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 175bff3ce4d9..e96d13a4fe01 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -2153,6 +2153,18 @@ dependencies = [ "safemem", ] +[[package]] +name = "local-ip-address" +version = "0.4.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9eab7f092fb08006040e656c2adce6670e6a516bea831a8b2b3d0fb24d4488f5" +dependencies = [ + "libc", + "neli", + "thiserror", + "windows-sys 0.42.0", +] + [[package]] name = "lock_api" version = "0.4.7" @@ -2282,7 +2294,7 @@ dependencies = [ "libc", "log", "wasi 0.11.0+wasi-snapshot-preview1", - "windows-sys", + "windows-sys 0.36.1", ] [[package]] @@ -2367,6 +2379,16 @@ dependencies = [ "tempfile", ] +[[package]] +name = "neli" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9053554eb5dcb7e10d9cdab1206965bde870eed5d0d341532ca035e3ba221508" +dependencies = [ + "byteorder", + "libc", +] + [[package]] name = "new_debug_unreachable" version = "1.0.4" @@ -2685,7 +2707,7 @@ dependencies = [ "libc", "redox_syscall", "smallvec", - "windows-sys", + "windows-sys 0.36.1", ] [[package]] @@ -3319,7 +3341,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "88d6731146462ea25d9244b2ed5fd1d716d25c52e4d54aa4fb0f3c4e9854dbe2" dependencies = [ "lazy_static", - "windows-sys", + "windows-sys 0.36.1", ] [[package]] @@ -3891,6 +3913,7 @@ dependencies = [ "jsonschema", "kuchiki", "libc", + "local-ip-address", "log", "minisign", "notify", @@ -4714,12 +4737,33 @@ dependencies = [ "windows_x86_64_msvc 0.36.1", ] +[[package]] +name = "windows-sys" +version = "0.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc 0.42.0", + "windows_i686_gnu 0.42.0", + "windows_i686_msvc 0.42.0", + "windows_x86_64_gnu 0.42.0", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc 0.42.0", +] + [[package]] name = "windows-tokens" version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f838de2fe15fe6bac988e74b798f26499a8b21a9d97edec321e79b28d1d7f597" +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d2aa71f6f0cbe00ae5167d90ef3cfe66527d6f613ca78ac8024c3ccab9a19e" + [[package]] name = "windows_aarch64_msvc" version = "0.36.1" @@ -4732,6 +4776,12 @@ version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec7711666096bd4096ffa835238905bb33fb87267910e154b18b44eaabb340f2" +[[package]] +name = "windows_aarch64_msvc" +version = "0.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd0f252f5a35cac83d6311b2e795981f5ee6e67eb1f9a7f64eb4500fbc4dcdb4" + [[package]] name = "windows_i686_gnu" version = "0.36.1" @@ -4744,6 +4794,12 @@ version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "763fc57100a5f7042e3057e7e8d9bdd7860d330070251a73d003563a3bb49e1b" +[[package]] +name = "windows_i686_gnu" +version = "0.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fbeae19f6716841636c28d695375df17562ca208b2b7d0dc47635a50ae6c5de7" + [[package]] name = "windows_i686_msvc" version = "0.36.1" @@ -4756,6 +4812,12 @@ version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7bc7cbfe58828921e10a9f446fcaaf649204dcfe6c1ddd712c5eebae6bda1106" +[[package]] +name = "windows_i686_msvc" +version = "0.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "84c12f65daa39dd2babe6e442988fc329d6243fdce47d7d2d155b8d874862246" + [[package]] name = "windows_x86_64_gnu" version = "0.36.1" @@ -4768,6 +4830,18 @@ version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6868c165637d653ae1e8dc4d82c25d4f97dd6605eaa8d784b5c6e0ab2a252b65" +[[package]] +name = "windows_x86_64_gnu" +version = "0.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf7b1b21b5362cbc318f686150e5bcea75ecedc74dd157d874d754a2ca44b0ed" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09d525d2ba30eeb3297665bd434a54297e4170c7f1a44cad4ef58095b4cd2028" + [[package]] name = "windows_x86_64_msvc" version = "0.36.1" @@ -4780,6 +4854,12 @@ version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5e4d40883ae9cae962787ca76ba76390ffa29214667a111db9e0a1ad8377e809" +[[package]] +name = "windows_x86_64_msvc" +version = "0.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5" + [[package]] name = "winreg" version = "0.10.1" diff --git a/tooling/cli/Cargo.toml b/tooling/cli/Cargo.toml index 47e67c0f41a0..8dc472482c3e 100644 --- a/tooling/cli/Cargo.toml +++ b/tooling/cli/Cargo.toml @@ -85,6 +85,7 @@ html5ever = "0.25" kuchiki = "0.8" tokio = { version = "1", features = [ "macros", "sync" ] } common-path = "1" +local-ip-address = "0.4" [target."cfg(windows)".dependencies] winapi = { version = "0.3", features = [ "handleapi", "processenv", "winbase", "wincon", "winnt" ] } diff --git a/tooling/cli/src/dev.rs b/tooling/cli/src/dev.rs index af04cdda5e52..00647b929293 100644 --- a/tooling/cli/src/dev.rs +++ b/tooling/cli/src/dev.rs @@ -20,6 +20,7 @@ use shared_child::SharedChild; use std::{ env::set_current_dir, + net::{Ipv4Addr, SocketAddr}, process::{exit, Command, ExitStatus, Stdio}, sync::{ atomic::{AtomicBool, Ordering}, @@ -74,7 +75,7 @@ pub fn command(options: Options) -> Result<()> { } fn command_internal(mut options: Options) -> Result<()> { - let mut interface = setup(&mut options)?; + let mut interface = setup(&mut options, false)?; let exit_on_panic = options.exit_on_panic; let no_watch = options.no_watch; interface.dev(options.into(), move |status, reason| { @@ -82,7 +83,7 @@ fn command_internal(mut options: Options) -> Result<()> { }) } -pub fn setup(options: &mut Options) -> Result { +pub fn setup(options: &mut Options, mobile: bool) -> Result { let tauri_path = tauri_dir(); options.config = if let Some(config) = &options.config { Some(if config.starts_with('{') { @@ -228,11 +229,19 @@ pub fn setup(options: &mut Options) -> Result { .dev_path .clone(); if let AppUrl::Url(WindowUrl::App(path)) = &dev_path { - use crate::helpers::web_dev_server::{start_dev_server, SERVER_URL}; + use crate::helpers::web_dev_server::start_dev_server; if path.exists() { + let ip = if mobile { + local_ip_address::local_ip().expect("failed to resolve local IP address") + } else { + Ipv4Addr::new(127, 0, 0, 1).into() + }; + let port = 1430; + let server_address = SocketAddr::new(ip, port); let path = path.canonicalize()?; - start_dev_server(path); - dev_path = AppUrl::Url(WindowUrl::External(SERVER_URL.parse().unwrap())); + start_dev_server(server_address, path); + let server_url = format!("http://{}", server_address); + dev_path = AppUrl::Url(WindowUrl::External(server_url.parse().unwrap())); // TODO: in v2, use an env var to pass the url to the app context // or better separate the config passed from the cli internally and @@ -245,7 +254,7 @@ pub fn setup(options: &mut Options) -> Result { } else { options.config = Some(format!( r#"{{ "build": {{ "devPath": "{}" }} }}"#, - SERVER_URL + server_url )) } } diff --git a/tooling/cli/src/helpers/web_dev_server.rs b/tooling/cli/src/helpers/web_dev_server.rs index 41061c1c8571..3b01a524cb86 100644 --- a/tooling/cli/src/helpers/web_dev_server.rs +++ b/tooling/cli/src/helpers/web_dev_server.rs @@ -12,7 +12,6 @@ use notify_debouncer_mini::new_debouncer; use std::{ net::SocketAddr, path::{Path, PathBuf}, - str::FromStr, sync::{mpsc::sync_channel, Arc}, thread, time::Duration, @@ -21,14 +20,13 @@ use tauri_utils::mime_type::MimeType; use tokio::sync::broadcast::{channel, Sender}; const AUTO_RELOAD_SCRIPT: &str = include_str!("./auto-reload.js"); -pub const SERVER_URL: &str = "http://127.0.0.1:1430"; struct State { serve_dir: PathBuf, tx: Sender<()>, } -pub fn start_dev_server>(path: P) { +pub fn start_dev_server>(address: SocketAddr, path: P) { let serve_dir = path.as_ref().to_path_buf(); std::thread::spawn(move || { @@ -80,7 +78,7 @@ pub fn start_dev_server>(path: P) { ws.on_upgrade(|socket| async move { ws_handler(socket, state).await }) }), ); - Server::bind(&SocketAddr::from_str(SERVER_URL.split('/').nth(2).unwrap()).unwrap()) + Server::bind(&address) .serve(router.into_make_service()) .await .unwrap(); diff --git a/tooling/cli/src/mobile/android/dev.rs b/tooling/cli/src/mobile/android/dev.rs index e963b68ebd7f..292c4ec09013 100644 --- a/tooling/cli/src/mobile/android/dev.rs +++ b/tooling/cli/src/mobile/android/dev.rs @@ -92,7 +92,7 @@ fn run_dev( noise_level: NoiseLevel, ) -> Result<()> { let mut dev_options = options.clone().into(); - let mut interface = crate::dev::setup(&mut dev_options)?; + let mut interface = crate::dev::setup(&mut dev_options, true)?; let app_settings = interface.app_settings(); let bin_path = app_settings.app_binary_path(&InterfaceOptions { diff --git a/tooling/cli/src/mobile/ios/dev.rs b/tooling/cli/src/mobile/ios/dev.rs index a80bf1e37ad0..13d58cd8b4ad 100644 --- a/tooling/cli/src/mobile/ios/dev.rs +++ b/tooling/cli/src/mobile/ios/dev.rs @@ -107,7 +107,7 @@ fn run_dev( noise_level: NoiseLevel, ) -> Result<()> { let mut dev_options = options.clone().into(); - let mut interface = crate::dev::setup(&mut dev_options)?; + let mut interface = crate::dev::setup(&mut dev_options, true)?; let app_settings = interface.app_settings(); let bin_path = app_settings.app_binary_path(&InterfaceOptions { From 4a72d5e0ca9f0137d12b674e29c52fcf84fd6d2b Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Mon, 28 Nov 2022 08:53:26 -0300 Subject: [PATCH 080/436] feat(cli): replace $HOST variable on beforeDevCommand - public IP usage (#5709) --- tooling/cli/src/dev.rs | 39 ++++++++++++++++++++++++++++++--------- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/tooling/cli/src/dev.rs b/tooling/cli/src/dev.rs index 00647b929293..1824592cea4a 100644 --- a/tooling/cli/src/dev.rs +++ b/tooling/cli/src/dev.rs @@ -104,6 +104,15 @@ pub fn setup(options: &mut Options, mobile: bool) -> Result { options.target.clone(), )?; + let mut dev_path = config + .lock() + .unwrap() + .as_ref() + .unwrap() + .build + .dev_path + .clone(); + if let Some(before_dev) = config .lock() .unwrap() @@ -121,7 +130,27 @@ pub fn setup(options: &mut Options, mobile: bool) -> Result { } }; let cwd = script_cwd.unwrap_or_else(|| app_dir().clone()); - if let Some(before_dev) = script { + if let Some(mut before_dev) = script { + if before_dev.contains("$HOST") { + if mobile { + let local_ip_address = local_ip_address::local_ip() + .expect("failed to resolve local IP address") + .to_string(); + before_dev = before_dev.replace("$HOST", &local_ip_address); + if let AppUrl::Url(WindowUrl::External(url)) = &mut dev_path { + url.set_host(Some(&local_ip_address))?; + } + } else { + before_dev = before_dev.replace( + "$HOST", + if let AppUrl::Url(WindowUrl::External(url)) = &dev_path { + url.host_str().unwrap_or("0.0.0.0") + } else { + "0.0.0.0" + }, + ); + } + } info!(action = "Running"; "BeforeDevCommand (`{}`)", before_dev); let mut env = command_env(true); env.extend(interface.env()); @@ -220,14 +249,6 @@ pub fn setup(options: &mut Options, mobile: bool) -> Result { cargo_features.extend(features.clone()); } - let mut dev_path = config - .lock() - .unwrap() - .as_ref() - .unwrap() - .build - .dev_path - .clone(); if let AppUrl::Url(WindowUrl::App(path)) = &dev_path { use crate::helpers::web_dev_server::start_dev_server; if path.exists() { From eca131dfbb0974a17fee450d244660fc26636871 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Wed, 30 Nov 2022 09:59:52 -0300 Subject: [PATCH 081/436] feat(cli): show all Android error logs --- tooling/cli/src/mobile/android.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index 17756f4a47e1..675868b0548b 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -95,7 +95,7 @@ pub fn get_config( let raw = RawAndroidConfig { features: android_options.features.clone(), - logcat_filter_specs: vec!["RustStdoutStderr".into()], + logcat_filter_specs: vec!["RustStdoutStderr".into(), "*:E".into()], ..Default::default() }; let config = AndroidConfig::from_raw(app.clone(), Some(raw)).unwrap(); From e938c3dff5ab222285f33584cd12e3decc9f4e0f Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Wed, 30 Nov 2022 10:00:44 -0300 Subject: [PATCH 082/436] feat(core): map 304 status code to 200 on dev proxy Fixes an Android issue when reloading Vite pages --- core/tauri/src/manager.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/tauri/src/manager.rs b/core/tauri/src/manager.rs index 4ad7c5489109..2fb4b3b18f98 100644 --- a/core/tauri/src/manager.rs +++ b/core/tauri/src/manager.rs @@ -909,6 +909,7 @@ impl WindowManager { #[cfg(dev)] let mut response = { + use attohttpc::StatusCode; let mut url = url.clone(); url.set_path(&path); let mut proxy_builder = attohttpc::get(url.as_str()).danger_accept_invalid_certs(true); @@ -920,7 +921,11 @@ impl WindowManager { for (name, value) in r.headers() { builder = builder.header(name, value); } - builder.status(r.status()).body(r.bytes()?)? + let mut status = r.status(); + if status == StatusCode::NOT_MODIFIED { + status = StatusCode::OK; + } + builder.status(status).body(r.bytes()?)? } Err(e) => { debug_eprintln!("Failed to request {}: {}", url.as_str(), e); From fa6d10e39c263a669852992e71917dae3b0a6315 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Wed, 30 Nov 2022 10:30:25 -0300 Subject: [PATCH 083/436] refactor(core): remove window APIs on mobile (#5713) --- core/tauri-runtime-wry/src/lib.rs | 49 +++++++++++++++++-------------- core/tauri/src/window.rs | 26 +++++++++------- examples/api/src-tauri/src/lib.rs | 15 ++++++---- 3 files changed, 51 insertions(+), 39 deletions(-) diff --git a/core/tauri-runtime-wry/src/lib.rs b/core/tauri-runtime-wry/src/lib.rs index 3e5842948918..d377dfb86805 100644 --- a/core/tauri-runtime-wry/src/lib.rs +++ b/core/tauri-runtime-wry/src/lib.rs @@ -696,17 +696,7 @@ impl WindowBuilder for WindowBuilderWrapper { } fn with_config(config: WindowConfig) -> Self { - let mut window = WindowBuilderWrapper::new() - .title(config.title.to_string()) - .inner_size(config.width, config.height) - .visible(config.visible) - .resizable(config.resizable) - .fullscreen(config.fullscreen) - .decorations(config.decorations) - .maximized(config.maximized) - .always_on_top(config.always_on_top) - .skip_taskbar(config.skip_taskbar) - .theme(config.theme); + let mut window = WindowBuilderWrapper::new(); #[cfg(target_os = "macos")] { @@ -734,18 +724,33 @@ impl WindowBuilder for WindowBuilderWrapper { "); } - if let (Some(min_width), Some(min_height)) = (config.min_width, config.min_height) { - window = window.min_inner_size(min_width, min_height); - } - if let (Some(max_width), Some(max_height)) = (config.max_width, config.max_height) { - window = window.max_inner_size(max_width, max_height); - } - if let (Some(x), Some(y)) = (config.x, config.y) { - window = window.position(x, y); - } + #[cfg(desktop)] + { + window = window + .title(config.title.to_string()) + .inner_size(config.width, config.height) + .visible(config.visible) + .resizable(config.resizable) + .fullscreen(config.fullscreen) + .decorations(config.decorations) + .maximized(config.maximized) + .always_on_top(config.always_on_top) + .skip_taskbar(config.skip_taskbar) + .theme(config.theme); + + if let (Some(min_width), Some(min_height)) = (config.min_width, config.min_height) { + window = window.min_inner_size(min_width, min_height); + } + if let (Some(max_width), Some(max_height)) = (config.max_width, config.max_height) { + window = window.max_inner_size(max_width, max_height); + } + if let (Some(x), Some(y)) = (config.x, config.y) { + window = window.position(x, y); + } - if config.center { - window = window.center(); + if config.center { + window = window.center(); + } } window diff --git a/core/tauri/src/window.rs b/core/tauri/src/window.rs index 69058354770e..3aa11cd16d07 100644 --- a/core/tauri/src/window.rs +++ b/core/tauri/src/window.rs @@ -262,9 +262,11 @@ impl<'a, R: Runtime> WindowBuilder<'a, R> { Ok(window) } +} - // --------------------------------------------- Window builder --------------------------------------------- - +/// Desktop APIs. +#[cfg(desktop)] +impl<'a, R: Runtime> WindowBuilder<'a, R> { /// Sets the menu for the window. #[must_use] pub fn menu(mut self, menu: Menu) -> Self { @@ -475,8 +477,16 @@ impl<'a, R: Runtime> WindowBuilder<'a, R> { self } - // ------------------------------------------- Webview attributes ------------------------------------------- + /// Sets whether clicking an inactive window also clicks through to the webview. + #[must_use] + pub fn accept_first_mouse(mut self, accept: bool) -> Self { + self.webview_attributes.accept_first_mouse = accept; + self + } +} +/// Webview attributes. +impl<'a, R: Runtime> WindowBuilder<'a, R> { /// Adds the provided JavaScript to a list of scripts that should be run after the global object has been created, /// but before the HTML document has been parsed and before any other script included by the HTML document is run. /// @@ -548,13 +558,6 @@ impl<'a, R: Runtime> WindowBuilder<'a, R> { self.webview_attributes.clipboard = true; self } - - /// Sets whether clicking an inactive window also clicks through to the webview. - #[must_use] - pub fn accept_first_mouse(mut self, accept: bool) -> Self { - self.webview_attributes.accept_first_mouse = accept; - self - } } // TODO: expand these docs since this is a pretty important type @@ -1016,7 +1019,8 @@ impl Window { } } -/// Window setters and actions. +/// Desktop window setters and actions. +#[cfg(desktop)] impl Window { /// Centers the window. pub fn center(&self) -> crate::Result<()> { diff --git a/examples/api/src-tauri/src/lib.rs b/examples/api/src-tauri/src/lib.rs index b6706674b1d2..ca0017269195 100644 --- a/examples/api/src-tauri/src/lib.rs +++ b/examples/api/src-tauri/src/lib.rs @@ -65,12 +65,15 @@ impl AppBuilder { (setup)(app)?; } - #[allow(unused_mut)] - let mut window_builder = WindowBuilder::new(app, "main", WindowUrl::default()) - .user_agent("Tauri API") - .title("Tauri API Validation") - .inner_size(1000., 800.) - .min_inner_size(600., 400.); + let mut window_builder = WindowBuilder::new(app, "main", WindowUrl::default()); + #[cfg(desktop)] + { + window_builder = window_builder + .user_agent("Tauri API") + .title("Tauri API Validation") + .inner_size(1000., 800.) + .min_inner_size(600., 400.); + } #[cfg(target_os = "windows")] { From debe73ab0ef03a75b7ed749e47b38bc6c7bf98b8 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Wed, 30 Nov 2022 11:45:22 -0300 Subject: [PATCH 084/436] fix(core): remove window setters command handlers on mobile --- core/tauri/src/endpoints/window.rs | 63 +++++++++++++++--------------- 1 file changed, 32 insertions(+), 31 deletions(-) diff --git a/core/tauri/src/endpoints/window.rs b/core/tauri/src/endpoints/window.rs index 58ea4c747dff..a72bbff6aa3e 100644 --- a/core/tauri/src/endpoints/window.rs +++ b/core/tauri/src/endpoints/window.rs @@ -262,73 +262,73 @@ impl Cmd { WindowManagerCmd::AvailableMonitors => return Ok(window.available_monitors()?.into()), WindowManagerCmd::Theme => return Ok(window.theme()?.into()), // Setters - #[cfg(window_center)] + #[cfg(all(desktop, window_center))] WindowManagerCmd::Center => window.center()?, - #[cfg(window_request_user_attention)] + #[cfg(all(desktop, window_request_user_attention))] WindowManagerCmd::RequestUserAttention(request_type) => { window.request_user_attention(request_type)? } - #[cfg(window_set_resizable)] + #[cfg(all(desktop, window_set_resizable))] WindowManagerCmd::SetResizable(resizable) => window.set_resizable(resizable)?, - #[cfg(window_set_title)] + #[cfg(all(desktop, window_set_title))] WindowManagerCmd::SetTitle(title) => window.set_title(&title)?, - #[cfg(window_maximize)] + #[cfg(all(desktop, window_maximize))] WindowManagerCmd::Maximize => window.maximize()?, - #[cfg(window_unmaximize)] + #[cfg(all(desktop, window_unmaximize))] WindowManagerCmd::Unmaximize => window.unmaximize()?, - #[cfg(all(window_maximize, window_unmaximize))] + #[cfg(all(desktop, window_maximize, window_unmaximize))] WindowManagerCmd::ToggleMaximize => match window.is_maximized()? { true => window.unmaximize()?, false => window.maximize()?, }, - #[cfg(window_minimize)] + #[cfg(all(desktop, window_minimize))] WindowManagerCmd::Minimize => window.minimize()?, - #[cfg(window_unminimize)] + #[cfg(all(desktop, window_unminimize))] WindowManagerCmd::Unminimize => window.unminimize()?, - #[cfg(window_show)] + #[cfg(all(desktop, window_show))] WindowManagerCmd::Show => window.show()?, - #[cfg(window_hide)] + #[cfg(all(desktop, window_hide))] WindowManagerCmd::Hide => window.hide()?, - #[cfg(window_close)] + #[cfg(all(desktop, window_close))] WindowManagerCmd::Close => window.close()?, - #[cfg(window_set_decorations)] + #[cfg(all(desktop, window_set_decorations))] WindowManagerCmd::SetDecorations(decorations) => window.set_decorations(decorations)?, - #[cfg(window_set_always_on_top)] + #[cfg(all(desktop, window_set_always_on_top))] WindowManagerCmd::SetAlwaysOnTop(always_on_top) => window.set_always_on_top(always_on_top)?, - #[cfg(window_set_size)] + #[cfg(all(desktop, window_set_size))] WindowManagerCmd::SetSize(size) => window.set_size(size)?, - #[cfg(window_set_min_size)] + #[cfg(all(desktop, window_set_min_size))] WindowManagerCmd::SetMinSize(size) => window.set_min_size(size)?, - #[cfg(window_set_max_size)] + #[cfg(all(desktop, window_set_max_size))] WindowManagerCmd::SetMaxSize(size) => window.set_max_size(size)?, - #[cfg(window_set_position)] + #[cfg(all(desktop, window_set_position))] WindowManagerCmd::SetPosition(position) => window.set_position(position)?, - #[cfg(window_set_fullscreen)] + #[cfg(all(desktop, window_set_fullscreen))] WindowManagerCmd::SetFullscreen(fullscreen) => window.set_fullscreen(fullscreen)?, - #[cfg(window_set_focus)] + #[cfg(all(desktop, window_set_focus))] WindowManagerCmd::SetFocus => window.set_focus()?, - #[cfg(window_set_icon)] + #[cfg(all(desktop, window_set_icon))] WindowManagerCmd::SetIcon { icon } => window.set_icon(icon.into())?, - #[cfg(window_set_skip_taskbar)] + #[cfg(all(desktop, window_set_skip_taskbar))] WindowManagerCmd::SetSkipTaskbar(skip) => window.set_skip_taskbar(skip)?, - #[cfg(window_set_cursor_grab)] + #[cfg(all(desktop, window_set_cursor_grab))] WindowManagerCmd::SetCursorGrab(grab) => window.set_cursor_grab(grab)?, - #[cfg(window_set_cursor_visible)] + #[cfg(all(desktop, window_set_cursor_visible))] WindowManagerCmd::SetCursorVisible(visible) => window.set_cursor_visible(visible)?, - #[cfg(window_set_cursor_icon)] + #[cfg(all(desktop, window_set_cursor_icon))] WindowManagerCmd::SetCursorIcon(icon) => window.set_cursor_icon(icon)?, - #[cfg(window_set_cursor_position)] + #[cfg(all(desktop, window_set_cursor_position))] WindowManagerCmd::SetCursorPosition(position) => window.set_cursor_position(position)?, - #[cfg(window_set_ignore_cursor_events)] + #[cfg(all(desktop, window_set_ignore_cursor_events))] WindowManagerCmd::SetIgnoreCursorEvents(ignore_cursor) => { window.set_ignore_cursor_events(ignore_cursor)? } - #[cfg(window_start_dragging)] + #[cfg(all(desktop, window_start_dragging))] WindowManagerCmd::StartDragging => window.start_dragging()?, - #[cfg(window_print)] + #[cfg(all(desktop, window_print))] WindowManagerCmd::Print => window.print()?, // internals - #[cfg(all(window_maximize, window_unmaximize))] + #[cfg(all(desktop, window_maximize, window_unmaximize))] WindowManagerCmd::InternalToggleMaximize => { if window.is_resizable()? { match window.is_maximized()? { @@ -337,7 +337,7 @@ impl Cmd { } } } - #[cfg(any(debug_assertions, feature = "devtools"))] + #[cfg(all(desktop, any(debug_assertions, feature = "devtools")))] WindowManagerCmd::InternalToggleDevtools => { if window.is_devtools_open() { window.close_devtools(); @@ -345,6 +345,7 @@ impl Cmd { window.open_devtools(); } } + _ => (), } #[allow(unreachable_code)] Ok(().into()) From ad65b950703ca9385e26854a84e30af88c9f1df0 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Wed, 30 Nov 2022 11:52:59 -0300 Subject: [PATCH 085/436] refactor(core): move local ip address resolve to CLI --- core/tauri-codegen/Cargo.toml | 3 --- core/tauri-codegen/src/context.rs | 19 +-------------- core/tauri/src/endpoints/window.rs | 1 + examples/api/src-tauri/Cargo.lock | 23 ------------------- tooling/cli/src/dev.rs | 37 ++++++++++++++++++++++++++---- 5 files changed, 34 insertions(+), 49 deletions(-) diff --git a/core/tauri-codegen/Cargo.toml b/core/tauri-codegen/Cargo.toml index 5bc747a09d1a..2a341b238c80 100644 --- a/core/tauri-codegen/Cargo.toml +++ b/core/tauri-codegen/Cargo.toml @@ -31,9 +31,6 @@ png = "0.17" json-patch = "0.2" url = "2" -[target."cfg(any(windows, target_os = \"linux\", target_os = \"macos\"))".dependencies] -local-ip-address = "0.4" - [target."cfg(target_os = \"macos\")".dependencies] plist = "1" time = { version = "0.3", features = [ "parsing", "formatting" ] } diff --git a/core/tauri-codegen/src/context.rs b/core/tauri-codegen/src/context.rs index e75a2c976300..eb4036f38423 100644 --- a/core/tauri-codegen/src/context.rs +++ b/core/tauri-codegen/src/context.rs @@ -124,7 +124,7 @@ enum Target { pub fn context_codegen(data: ContextData) -> Result { let ContextData { dev, - mut config, + config, config_parent, root, } = data; @@ -158,23 +158,6 @@ pub fn context_codegen(data: ContextData) -> Result d == "localhost", - Some(url::Host::Ipv4(i)) => { - i == std::net::Ipv4Addr::LOCALHOST || i == std::net::Ipv4Addr::UNSPECIFIED - } - _ => false, - }; - if localhost { - let ip = local_ip_address::local_ip().expect("failed to resolve local IP address"); - url.set_host(Some(&ip.to_string())).unwrap(); - } - } - } - let mut options = AssetOptions::new(config.tauri.pattern.clone()) .freeze_prototype(config.tauri.security.freeze_prototype) .dangerous_disable_asset_csp_modification( diff --git a/core/tauri/src/endpoints/window.rs b/core/tauri/src/endpoints/window.rs index a72bbff6aa3e..f4a545cdae2d 100644 --- a/core/tauri/src/endpoints/window.rs +++ b/core/tauri/src/endpoints/window.rs @@ -345,6 +345,7 @@ impl Cmd { window.open_devtools(); } } + #[allow(unreachable_patterns)] _ => (), } #[allow(unreachable_code)] diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index 1e59701c28c0..daed0f08e967 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -1585,18 +1585,6 @@ dependencies = [ "safemem", ] -[[package]] -name = "local-ip-address" -version = "0.4.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74d6f43d42d775afa8073bfa6aba569b340a3635efa8c9f7702c9c6ed209692f" -dependencies = [ - "libc", - "neli", - "thiserror", - "windows-sys 0.36.1", -] - [[package]] name = "lock_api" version = "0.4.9" @@ -1796,16 +1784,6 @@ dependencies = [ "jni-sys", ] -[[package]] -name = "neli" -version = "0.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9053554eb5dcb7e10d9cdab1206965bde870eed5d0d341532ca035e3ba221508" -dependencies = [ - "byteorder", - "libc", -] - [[package]] name = "new_debug_unreachable" version = "1.0.4" @@ -3093,7 +3071,6 @@ dependencies = [ "brotli", "ico", "json-patch", - "local-ip-address", "plist", "png 0.17.7", "proc-macro2", diff --git a/tooling/cli/src/dev.rs b/tooling/cli/src/dev.rs index 1824592cea4a..45e553b5d6df 100644 --- a/tooling/cli/src/dev.rs +++ b/tooling/cli/src/dev.rs @@ -20,7 +20,7 @@ use shared_child::SharedChild; use std::{ env::set_current_dir, - net::{Ipv4Addr, SocketAddr}, + net::{IpAddr, Ipv4Addr, SocketAddr}, process::{exit, Command, ExitStatus, Stdio}, sync::{ atomic::{AtomicBool, Ordering}, @@ -83,6 +83,11 @@ fn command_internal(mut options: Options) -> Result<()> { }) } +fn local_ip_address() -> &'static IpAddr { + static LOCAL_IP: OnceCell = OnceCell::new(); + LOCAL_IP.get_or_init(|| local_ip_address::local_ip().expect("failed to resolve local IP address")) +} + pub fn setup(options: &mut Options, mobile: bool) -> Result { let tauri_path = tauri_dir(); options.config = if let Some(config) = &options.config { @@ -113,6 +118,30 @@ pub fn setup(options: &mut Options, mobile: bool) -> Result { .dev_path .clone(); + if mobile { + if let AppUrl::Url(WindowUrl::External(url)) = &mut dev_path { + let localhost = match url.host() { + Some(url::Host::Domain(d)) => d == "localhost", + Some(url::Host::Ipv4(i)) => { + i == std::net::Ipv4Addr::LOCALHOST || i == std::net::Ipv4Addr::UNSPECIFIED + } + _ => false, + }; + if localhost { + let ip = local_ip_address(); + url.set_host(Some(&ip.to_string())).unwrap(); + if let Some(c) = &options.config { + let mut c: tauri_utils::config::Config = serde_json::from_str(c)?; + c.build.dev_path = dev_path.clone(); + options.config = Some(serde_json::to_string(&c).unwrap()); + } else { + options.config = Some(format!(r#"{{ "build": {{ "devPath": "{}" }} }}"#, url)) + } + reload_config(options.config.as_deref())?; + } + } + } + if let Some(before_dev) = config .lock() .unwrap() @@ -133,9 +162,7 @@ pub fn setup(options: &mut Options, mobile: bool) -> Result { if let Some(mut before_dev) = script { if before_dev.contains("$HOST") { if mobile { - let local_ip_address = local_ip_address::local_ip() - .expect("failed to resolve local IP address") - .to_string(); + let local_ip_address = local_ip_address().to_string(); before_dev = before_dev.replace("$HOST", &local_ip_address); if let AppUrl::Url(WindowUrl::External(url)) = &mut dev_path { url.set_host(Some(&local_ip_address))?; @@ -253,7 +280,7 @@ pub fn setup(options: &mut Options, mobile: bool) -> Result { use crate::helpers::web_dev_server::start_dev_server; if path.exists() { let ip = if mobile { - local_ip_address::local_ip().expect("failed to resolve local IP address") + *local_ip_address() } else { Ipv4Addr::new(127, 0, 0, 1).into() }; From 5024f7905cba0e45dafd92844a79f7a5c7cd24d6 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Wed, 30 Nov 2022 12:48:24 -0300 Subject: [PATCH 086/436] chore(cli): update cargo-mobile including logcat improvement --- tooling/cli/Cargo.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index e96d13a4fe01..ec8063affac0 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -378,7 +378,7 @@ dependencies = [ [[package]] name = "cargo-mobile" version = "0.1.0" -source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#51d0e9a6c9b37e3287ebd5210d28798c534cb971" +source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#f117968d675537bc753b53d608a3743815de9689" dependencies = [ "cocoa", "colored 1.9.3", From 626faf9ec17509bbfb1afd5b39556c733c1ca299 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Sat, 3 Dec 2022 10:20:04 -0300 Subject: [PATCH 087/436] chore(examples): move API dev server config from CLI to vite.config.js --- examples/api/src-tauri/tauri.conf.json | 2 +- examples/api/vite.config.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/api/src-tauri/tauri.conf.json b/examples/api/src-tauri/tauri.conf.json index e16677630c3f..192781efb8d1 100644 --- a/examples/api/src-tauri/tauri.conf.json +++ b/examples/api/src-tauri/tauri.conf.json @@ -3,7 +3,7 @@ "build": { "distDir": "../dist", "devPath": "http://localhost:5173", - "beforeDevCommand": "yarn dev --host", + "beforeDevCommand": "yarn dev", "beforeBuildCommand": "yarn build" }, "package": { diff --git a/examples/api/vite.config.js b/examples/api/vite.config.js index 6ccdda26aa3e..26249285ea4d 100644 --- a/examples/api/vite.config.js +++ b/examples/api/vite.config.js @@ -18,6 +18,7 @@ export default defineConfig(async ({ command, mode }) => { } }, server: { + host: '0.0.0.0', port: 5173, strictPort: true, hmr: { From c1cd0f5253b4ebed4eb258cb70906f8bfd1c4c97 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Tue, 6 Dec 2022 09:19:04 -0300 Subject: [PATCH 088/436] chore(deps): rename cargo-mobile to tauri-mobile --- tooling/cli/Cargo.lock | 82 +++++++++---------- tooling/cli/Cargo.toml | 4 +- tooling/cli/src/info.rs | 2 +- tooling/cli/src/mobile/android.rs | 18 ++-- .../mobile/android/android_studio_script.rs | 2 +- tooling/cli/src/mobile/android/build.rs | 2 +- tooling/cli/src/mobile/android/dev.rs | 2 +- tooling/cli/src/mobile/android/open.rs | 2 +- tooling/cli/src/mobile/android/project.rs | 6 +- tooling/cli/src/mobile/init.rs | 4 +- tooling/cli/src/mobile/ios.rs | 6 +- tooling/cli/src/mobile/ios/build.rs | 2 +- tooling/cli/src/mobile/ios/dev.rs | 4 +- tooling/cli/src/mobile/ios/open.rs | 2 +- tooling/cli/src/mobile/ios/project.rs | 16 ++-- tooling/cli/src/mobile/ios/xcode_script.rs | 2 +- tooling/cli/src/mobile/mod.rs | 16 ++-- 17 files changed, 86 insertions(+), 86 deletions(-) diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index ec8063affac0..e1b316b8ef23 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -375,46 +375,6 @@ dependencies = [ "pkg-config", ] -[[package]] -name = "cargo-mobile" -version = "0.1.0" -source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#f117968d675537bc753b53d608a3743815de9689" -dependencies = [ - "cocoa", - "colored 1.9.3", - "core-foundation 0.7.0", - "deunicode", - "dunce", - "embed-resource", - "english-numbers", - "env_logger 0.7.1", - "freedesktop_entry_parser", - "handlebars 3.5.5", - "heck 0.4.0", - "home", - "ignore", - "indexmap", - "java-properties", - "lexical-core", - "libc", - "log", - "objc", - "objc_id", - "once-cell-regex", - "openssl", - "os_pipe", - "path_abs", - "serde", - "serde_json", - "structopt", - "textwrap", - "thiserror", - "toml", - "ureq", - "winapi", - "windows", -] - [[package]] name = "cc" version = "1.0.73" @@ -3895,7 +3855,6 @@ dependencies = [ "anyhow", "axum", "base64", - "cargo-mobile", "clap 4.0.9", "colored 2.0.0", "common-path", @@ -3929,6 +3888,7 @@ dependencies = [ "sublime_fuzzy", "tauri-bundler", "tauri-icns", + "tauri-mobile", "tauri-utils", "textwrap", "thiserror", @@ -3963,6 +3923,46 @@ dependencies = [ "png", ] +[[package]] +name = "tauri-mobile" +version = "0.1.0" +source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#5318e9bbe5c42c155ce8a0810d79e6e7c699a6bb" +dependencies = [ + "cocoa", + "colored 1.9.3", + "core-foundation 0.7.0", + "deunicode", + "dunce", + "embed-resource", + "english-numbers", + "env_logger 0.7.1", + "freedesktop_entry_parser", + "handlebars 3.5.5", + "heck 0.4.0", + "home", + "ignore", + "indexmap", + "java-properties", + "lexical-core", + "libc", + "log", + "objc", + "objc_id", + "once-cell-regex", + "openssl", + "os_pipe", + "path_abs", + "serde", + "serde_json", + "structopt", + "textwrap", + "thiserror", + "toml", + "ureq", + "winapi", + "windows", +] + [[package]] name = "tauri-utils" version = "1.2.0" diff --git a/tooling/cli/Cargo.toml b/tooling/cli/Cargo.toml index 8dc472482c3e..09ccb234ccb1 100644 --- a/tooling/cli/Cargo.toml +++ b/tooling/cli/Cargo.toml @@ -39,8 +39,8 @@ name = "cargo-tauri" path = "src/main.rs" [dependencies] -# cargo-mobile = { path = "../../../cargo-mobile/", default-features = false } -cargo-mobile = { git = "https://github.com/tauri-apps/cargo-mobile", branch = "dev", default-features = false } +# tauri-mobile = { path = "../../../cargo-mobile/", default-features = false } +tauri-mobile = { git = "https://github.com/tauri-apps/cargo-mobile", branch = "dev", default-features = false } textwrap = { version = "0.11.0", features = ["term_size"] } jsonrpsee = { version = "0.16", features = [ "client", "server" ]} thiserror = "1" diff --git a/tooling/cli/src/info.rs b/tooling/cli/src/info.rs index 4db28bf6ed57..f63b620d800f 100644 --- a/tooling/cli/src/info.rs +++ b/tooling/cli/src/info.rs @@ -889,7 +889,7 @@ pub fn command(_options: Options) -> Result<()> { if tauri_dir.is_some() { let p = tauri_dir.as_ref().unwrap(); if p.join("gen/apple").exists() { - let teams = cargo_mobile::apple::teams::find_development_teams().unwrap_or_default(); + let teams = tauri_mobile::apple::teams::find_development_teams().unwrap_or_default(); Section("iOS").display(); InfoBlock::new( "Teams", diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index 675868b0548b..a89ce7ba0bb1 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -2,7 +2,14 @@ // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT -use cargo_mobile::{ +use clap::{Parser, Subcommand}; +use std::{ + env::set_var, + thread::{sleep, spawn}, + time::Duration, +}; +use sublime_fuzzy::best_match; +use tauri_mobile::{ android::{ adb, config::{Config as AndroidConfig, Metadata as AndroidMetadata, Raw as RawAndroidConfig}, @@ -16,13 +23,6 @@ use cargo_mobile::{ os, util::prompt, }; -use clap::{Parser, Subcommand}; -use std::{ - env::set_var, - thread::{sleep, spawn}, - time::Duration, -}; -use sublime_fuzzy::best_match; use super::{ ensure_init, get_app, @@ -142,7 +142,7 @@ pub fn with_config( fn env() -> Result { let env = super::env()?; - cargo_mobile::android::env::Env::from_env(env).map_err(Into::into) + tauri_mobile::android::env::Env::from_env(env).map_err(Into::into) } fn delete_codegen_vars() { diff --git a/tooling/cli/src/mobile/android/android_studio_script.rs b/tooling/cli/src/mobile/android/android_studio_script.rs index 57677a0c9552..b5996383ec50 100644 --- a/tooling/cli/src/mobile/android/android_studio_script.rs +++ b/tooling/cli/src/mobile/android/android_studio_script.rs @@ -2,7 +2,7 @@ use super::{detect_target_ok, ensure_init, env, with_config, MobileTarget}; use crate::Result; use clap::{ArgAction, Parser}; -use cargo_mobile::{ +use tauri_mobile::{ android::target::Target, opts::Profile, target::{call_for_targets_with_fallback, TargetTrait}, diff --git a/tooling/cli/src/mobile/android/build.rs b/tooling/cli/src/mobile/android/build.rs index 02b6268079bd..fdb99bc9b7d8 100644 --- a/tooling/cli/src/mobile/android/build.rs +++ b/tooling/cli/src/mobile/android/build.rs @@ -10,7 +10,7 @@ use crate::{ }; use clap::{ArgAction, Parser}; -use cargo_mobile::{ +use tauri_mobile::{ android::{aab, apk, config::Config as AndroidConfig, env::Env, target::Target}, opts::{NoiseLevel, Profile}, target::TargetTrait, diff --git a/tooling/cli/src/mobile/android/dev.rs b/tooling/cli/src/mobile/android/dev.rs index 292c4ec09013..981bbd43e6b2 100644 --- a/tooling/cli/src/mobile/android/dev.rs +++ b/tooling/cli/src/mobile/android/dev.rs @@ -10,7 +10,7 @@ use crate::{ }; use clap::{ArgAction, Parser}; -use cargo_mobile::{ +use tauri_mobile::{ android::{ config::{Config as AndroidConfig, Metadata as AndroidMetadata}, env::Env, diff --git a/tooling/cli/src/mobile/android/open.rs b/tooling/cli/src/mobile/android/open.rs index b67c2aaec3ae..33d78ced7763 100644 --- a/tooling/cli/src/mobile/android/open.rs +++ b/tooling/cli/src/mobile/android/open.rs @@ -1,6 +1,6 @@ use super::{ensure_init, env, with_config, MobileTarget}; use crate::Result; -use cargo_mobile::os; +use tauri_mobile::os; pub fn command() -> Result<()> { with_config( diff --git a/tooling/cli/src/mobile/android/project.rs b/tooling/cli/src/mobile/android/project.rs index 2ede33a21e9a..abfe5ad0e1c5 100644 --- a/tooling/cli/src/mobile/android/project.rs +++ b/tooling/cli/src/mobile/android/project.rs @@ -4,7 +4,9 @@ use crate::{helpers::template, Result}; use anyhow::Context; -use cargo_mobile::{ +use handlebars::Handlebars; +use include_dir::{include_dir, Dir}; +use tauri_mobile::{ android::{ config::{Config, Metadata}, target::Target, @@ -18,8 +20,6 @@ use cargo_mobile::{ prefix_path, }, }; -use handlebars::Handlebars; -use include_dir::{include_dir, Dir}; use std::{ffi::OsStr, fs, path::Path}; diff --git a/tooling/cli/src/mobile/init.rs b/tooling/cli/src/mobile/init.rs index 991e85d12434..4a07876c36d9 100644 --- a/tooling/cli/src/mobile/init.rs +++ b/tooling/cli/src/mobile/init.rs @@ -5,7 +5,8 @@ use super::{get_app, Target}; use crate::helpers::{config::get as get_tauri_config, template::JsonMap}; use crate::Result; -use cargo_mobile::{ +use handlebars::{Context, Handlebars, Helper, HelperResult, Output, RenderContext, RenderError}; +use tauri_mobile::{ android::{ config::Config as AndroidConfig, env::Env as AndroidEnv, target::Target as AndroidTarget, }, @@ -17,7 +18,6 @@ use cargo_mobile::{ cli::{Report, TextWrapper}, }, }; -use handlebars::{Context, Handlebars, Helper, HelperResult, Output, RenderContext, RenderError}; use std::{env::current_dir, path::PathBuf}; diff --git a/tooling/cli/src/mobile/ios.rs b/tooling/cli/src/mobile/ios.rs index 2edda014b37e..33ea44d91d6b 100644 --- a/tooling/cli/src/mobile/ios.rs +++ b/tooling/cli/src/mobile/ios.rs @@ -2,7 +2,9 @@ // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT -use cargo_mobile::{ +use clap::{Parser, Subcommand}; +use sublime_fuzzy::best_match; +use tauri_mobile::{ apple::{ config::{ Config as AppleConfig, Metadata as AppleMetadata, Platform as ApplePlatform, @@ -19,8 +21,6 @@ use cargo_mobile::{ os, util::prompt, }; -use clap::{Parser, Subcommand}; -use sublime_fuzzy::best_match; use super::{ ensure_init, env, get_app, diff --git a/tooling/cli/src/mobile/ios/build.rs b/tooling/cli/src/mobile/ios/build.rs index 679b0c063054..5efe53f6564c 100644 --- a/tooling/cli/src/mobile/ios/build.rs +++ b/tooling/cli/src/mobile/ios/build.rs @@ -10,7 +10,7 @@ use crate::{ }; use clap::{ArgAction, Parser}; -use cargo_mobile::{ +use tauri_mobile::{ apple::{config::Config as AppleConfig, target::Target}, env::Env, opts::{NoiseLevel, Profile}, diff --git a/tooling/cli/src/mobile/ios/dev.rs b/tooling/cli/src/mobile/ios/dev.rs index 13d58cd8b4ad..b4bff556b633 100644 --- a/tooling/cli/src/mobile/ios/dev.rs +++ b/tooling/cli/src/mobile/ios/dev.rs @@ -10,13 +10,13 @@ use crate::{ }; use clap::{ArgAction, Parser}; -use cargo_mobile::{ +use dialoguer::{theme::ColorfulTheme, Select}; +use tauri_mobile::{ apple::{config::Config as AppleConfig, teams::find_development_teams}, config::app::App, env::Env, opts::{NoiseLevel, Profile}, }; -use dialoguer::{theme::ColorfulTheme, Select}; use std::env::{set_var, var_os}; diff --git a/tooling/cli/src/mobile/ios/open.rs b/tooling/cli/src/mobile/ios/open.rs index 9d3f52b42322..bff1f7ad9a18 100644 --- a/tooling/cli/src/mobile/ios/open.rs +++ b/tooling/cli/src/mobile/ios/open.rs @@ -1,6 +1,6 @@ use super::{ensure_init, env, with_config, MobileTarget}; use crate::Result; -use cargo_mobile::os; +use tauri_mobile::os; pub fn command() -> Result<()> { with_config( diff --git a/tooling/cli/src/mobile/ios/project.rs b/tooling/cli/src/mobile/ios/project.rs index 051af0eeedd6..4067be50417d 100644 --- a/tooling/cli/src/mobile/ios/project.rs +++ b/tooling/cli/src/mobile/ios/project.rs @@ -4,7 +4,14 @@ use crate::{helpers::template, Result}; use anyhow::Context; -use cargo_mobile::{ +use handlebars::Handlebars; +use include_dir::{include_dir, Dir}; +use std::{ + ffi::{OsStr, OsString}, + fs::{create_dir_all, OpenOptions}, + path::{Component, PathBuf}, +}; +use tauri_mobile::{ apple::{ config::{Config, Metadata}, deps, rust_version_check, @@ -15,13 +22,6 @@ use cargo_mobile::{ target::TargetTrait as _, util::{self, cli::TextWrapper}, }; -use handlebars::Handlebars; -use include_dir::{include_dir, Dir}; -use std::{ - ffi::{OsStr, OsString}, - fs::{create_dir_all, OpenOptions}, - path::{Component, PathBuf}, -}; const TEMPLATE_DIR: Dir<'_> = include_dir!("templates/mobile/ios"); diff --git a/tooling/cli/src/mobile/ios/xcode_script.rs b/tooling/cli/src/mobile/ios/xcode_script.rs index 59e509a2b7ac..7d2746f8cdbf 100644 --- a/tooling/cli/src/mobile/ios/xcode_script.rs +++ b/tooling/cli/src/mobile/ios/xcode_script.rs @@ -2,7 +2,7 @@ use super::{env, with_config}; use crate::Result; use clap::Parser; -use cargo_mobile::{apple::target::Target, opts::Profile, util}; +use tauri_mobile::{apple::target::Target, opts::Profile, util}; use std::{collections::HashMap, ffi::OsStr, path::PathBuf}; diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index 3a7ab5c247b5..21425ea351ec 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -7,12 +7,6 @@ use crate::{ interface::DevProcess, }; use anyhow::{bail, Result}; -use cargo_mobile::{ - bossy, - config::app::{App, Raw as RawAppConfig}, - env::Error as EnvError, - opts::NoiseLevel, -}; use jsonrpsee::client_transport::ws::WsTransportClientBuilder; use jsonrpsee::core::client::{Client, ClientBuilder, ClientT}; use jsonrpsee::rpc_params; @@ -33,12 +27,18 @@ use std::{ Arc, }, }; +use tauri_mobile::{ + bossy, + config::app::{App, Raw as RawAppConfig}, + env::Error as EnvError, + opts::NoiseLevel, +}; use tokio::runtime::Runtime; #[cfg(not(windows))] -use cargo_mobile::env::Env; +use tauri_mobile::env::Env; #[cfg(windows)] -use cargo_mobile::os::Env; +use tauri_mobile::os::Env; pub mod android; mod init; From b874d139f964f23ab79dfb16143ed37b16acaf11 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Tue, 6 Dec 2022 09:50:37 -0300 Subject: [PATCH 089/436] fix(cli): emulator.start called twice --- tooling/cli/src/mobile/android.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index a89ce7ba0bb1..304abcf52dcd 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -230,11 +230,6 @@ fn emulator_prompt(env: &'_ Env, target: Option<&str>) -> Result Date: Tue, 6 Dec 2022 09:58:59 -0300 Subject: [PATCH 090/436] fix(cli): update cargo-mobile fixing adb pidof check --- tooling/cli/Cargo.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index e1b316b8ef23..27e262fd2719 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -3926,7 +3926,7 @@ dependencies = [ [[package]] name = "tauri-mobile" version = "0.1.0" -source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#5318e9bbe5c42c155ce8a0810d79e6e7c699a6bb" +source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#0b10eec445391f459af694ae6646f9dda6c60fc1" dependencies = [ "cocoa", "colored 1.9.3", From 02706c92f63616128df65bdc5f7fcfd104f95e96 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Tue, 6 Dec 2022 14:04:30 -0300 Subject: [PATCH 091/436] chore(cli): force iOS cargo build stdout --- tooling/cli/src/mobile/ios/dev.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tooling/cli/src/mobile/ios/dev.rs b/tooling/cli/src/mobile/ios/dev.rs index b4bff556b633..dbb0a904b2d8 100644 --- a/tooling/cli/src/mobile/ios/dev.rs +++ b/tooling/cli/src/mobile/ios/dev.rs @@ -145,7 +145,7 @@ fn run_dev( if open { open_and_wait(config, &env) } else { - match run(device.as_deref(), options, config, &env, noise_level) { + match run(device.as_deref(), options, config, &env) { Ok(c) => { crate::dev::wait_dev_process(c.clone(), move |status, reason| { crate::dev::on_app_exit(status, reason, exit_on_panic, no_watch) @@ -178,7 +178,6 @@ fn run( options: MobileOptions, config: &AppleConfig, env: &Env, - noise_level: NoiseLevel, ) -> Result { let profile = if options.debug { Profile::Debug @@ -190,7 +189,13 @@ fn run( device_prompt(env, device) .map_err(|e| RunError::FailedToPromptForDevice(e.to_string()))? - .run(config, env, noise_level, non_interactive, profile) + .run( + config, + env, + NoiseLevel::FranklyQuitePedantic, + non_interactive, + profile, + ) .map(DevChild::new) .map_err(|e| RunError::RunFailed(e.to_string())) } From aa18c7d671557386c67a39119f341b4e054c7d60 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Wed, 7 Dec 2022 15:53:41 -0300 Subject: [PATCH 092/436] chore(cli): pin tauri-mobile to v0.1.0 --- tooling/cli/Cargo.lock | 39 +++++---------------------------------- tooling/cli/Cargo.toml | 2 +- 2 files changed, 6 insertions(+), 35 deletions(-) diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 27e262fd2719..2a181283e313 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -987,19 +987,6 @@ version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4e4f5d6e192964d498b45abee72ca445e91909094bc8e8791259e82c2a0d1aa6" -[[package]] -name = "env_logger" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36" -dependencies = [ - "atty", - "humantime 1.3.0", - "log", - "regex", - "termcolor", -] - [[package]] name = "env_logger" version = "0.9.1" @@ -1007,7 +994,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c90bf5f19754d10198ccb95b70664fc925bd1fc090a0fd9a6ebc54acc8cd6272" dependencies = [ "atty", - "humantime 2.1.0", + "humantime", "log", "regex", "termcolor", @@ -1436,7 +1423,7 @@ dependencies = [ "log", "pest", "pest_derive", - "quick-error 2.0.1", + "quick-error", "serde", "serde_json", ] @@ -1563,15 +1550,6 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421" -[[package]] -name = "humantime" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4f" -dependencies = [ - "quick-error 1.2.3", -] - [[package]] name = "humantime" version = "2.1.0" @@ -2979,12 +2957,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "quick-error" -version = "1.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" - [[package]] name = "quick-error" version = "2.0.1" @@ -3860,7 +3832,7 @@ dependencies = [ "common-path", "ctrlc", "dialoguer", - "env_logger 0.9.1", + "env_logger", "handlebars 4.3.1", "heck 0.4.0", "html5ever", @@ -3926,7 +3898,8 @@ dependencies = [ [[package]] name = "tauri-mobile" version = "0.1.0" -source = "git+https://github.com/tauri-apps/cargo-mobile?branch=dev#0b10eec445391f459af694ae6646f9dda6c60fc1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b23191ab3de2efc8d266ec26c16c1c90bd9e171f6f8ccdc56cd31cc9ad97130" dependencies = [ "cocoa", "colored 1.9.3", @@ -3935,7 +3908,6 @@ dependencies = [ "dunce", "embed-resource", "english-numbers", - "env_logger 0.7.1", "freedesktop_entry_parser", "handlebars 3.5.5", "heck 0.4.0", @@ -3954,7 +3926,6 @@ dependencies = [ "path_abs", "serde", "serde_json", - "structopt", "textwrap", "thiserror", "toml", diff --git a/tooling/cli/Cargo.toml b/tooling/cli/Cargo.toml index 09ccb234ccb1..a0d8487ac891 100644 --- a/tooling/cli/Cargo.toml +++ b/tooling/cli/Cargo.toml @@ -40,7 +40,7 @@ path = "src/main.rs" [dependencies] # tauri-mobile = { path = "../../../cargo-mobile/", default-features = false } -tauri-mobile = { git = "https://github.com/tauri-apps/cargo-mobile", branch = "dev", default-features = false } +tauri-mobile = { version = "0.1", default-features = false } textwrap = { version = "0.11.0", features = ["term_size"] } jsonrpsee = { version = "0.16", features = [ "client", "server" ]} thiserror = "1" From fa3a10988a03aed1b66fb17d893b1a9adb90f7cd Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Thu, 8 Dec 2022 11:28:12 -0800 Subject: [PATCH 093/436] feat(ci): prepare 2.0.0-alpha.0 (#5786) --- .changes/config.json | 2 +- .changes/mobile.md | 13 ++ .changes/pre.json | 4 + .../covector-version-or-publish-next.yml | 137 ++++++++++++++++++ .scripts/covector/sync-cli-metadata.js | 9 ++ core/config-schema/Cargo.toml | 2 +- 6 files changed, 165 insertions(+), 2 deletions(-) create mode 100644 .changes/mobile.md create mode 100644 .changes/pre.json create mode 100644 .github/workflows/covector-version-or-publish-next.yml diff --git a/.changes/config.json b/.changes/config.json index 8bc799a56b2b..5df56a75d06e 100644 --- a/.changes/config.json +++ b/.changes/config.json @@ -103,7 +103,7 @@ "pipe": true }, { - "command": "yarn publish --access public --loglevel silly", + "command": "yarn publish --access public --loglevel silly --tag next", "dryRunCommand": "npm publish --dry-run --access public", "pipe": true }, diff --git a/.changes/mobile.md b/.changes/mobile.md new file mode 100644 index 000000000000..caf32195e9c3 --- /dev/null +++ b/.changes/mobile.md @@ -0,0 +1,13 @@ +--- +"api": major +"tauri-utils": major +"tauri-bundler": major +"tauri-codegen": major +"tauri-macros": major +"tauri-build": major +"tauri": major +"cli.rs": major +"cli.js": major +--- + +First mobile alpha release! diff --git a/.changes/pre.json b/.changes/pre.json new file mode 100644 index 000000000000..5914ed91ace2 --- /dev/null +++ b/.changes/pre.json @@ -0,0 +1,4 @@ +{ + "tag": "alpha", + "changes": [] +} diff --git a/.github/workflows/covector-version-or-publish-next.yml b/.github/workflows/covector-version-or-publish-next.yml new file mode 100644 index 000000000000..c958ea368543 --- /dev/null +++ b/.github/workflows/covector-version-or-publish-next.yml @@ -0,0 +1,137 @@ +# Copyright 2019-2022 Tauri Programme within The Commons Conservancy +# SPDX-License-Identifier: Apache-2.0 +# SPDX-License-Identifier: MIT + +name: version or publish + +on: + push: + branches: + - next + +jobs: + run-integration-tests: + runs-on: ${{ matrix.platform }} + + strategy: + fail-fast: false + matrix: + platform: [ubuntu-latest, macos-latest, windows-latest] + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: install stable + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - name: install Linux dependencies + if: matrix.platform == 'ubuntu-latest' + run: | + sudo apt-get update + sudo apt-get install -y webkit2gtk-4.0 libayatana-appindicator3-dev libfuse2 + + - uses: Swatinem/rust-cache@v2 + with: + workspaces: | + core -> ../target + tooling/cli + + - name: build CLI + uses: actions-rs/cargo@v1 + with: + command: build + args: --manifest-path ./tooling/cli/Cargo.toml + + - name: run integration tests + run: cargo test --test '*' -- --ignored + + - name: run CLI tests + timeout-minutes: 30 + run: | + cd ./tooling/cli/node + yarn + yarn build + yarn test + + version-or-publish: + runs-on: ubuntu-latest + timeout-minutes: 65 + outputs: + change: ${{ steps.covector.outputs.change }} + commandRan: ${{ steps.covector.outputs.commandRan }} + successfulPublish: ${{ steps.covector.outputs.successfulPublish }} + needs: + - run-integration-tests + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: actions/setup-node@v2 + with: + node-version: 14 + registry-url: 'https://registry.npmjs.org' + cache: yarn + cache-dependency-path: tooling/*/yarn.lock + + - name: cargo login + run: cargo login ${{ secrets.ORG_CRATES_IO_TOKEN }} + - name: git config + run: | + git config --global user.name "${{ github.event.pusher.name }}" + git config --global user.email "${{ github.event.pusher.email }}" + + - name: covector version or publish (publish when no change files present) + uses: jbolda/covector/packages/action@covector-v0 + id: covector + env: + NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }} + CARGO_AUDIT_OPTIONS: ${{ secrets.CARGO_AUDIT_OPTIONS }} + with: + token: ${{ secrets.GITHUB_TOKEN }} + command: 'version-or-publish' + createRelease: true + + - name: Create Pull Request With Versions Bumped + if: steps.covector.outputs.commandRan == 'version' + uses: tauri-apps/create-pull-request@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + branch: release/version-updates-next + title: (NEXT) Apply Version Updates From Current Changes + commit-message: 'apply version updates' + labels: 'version updates' + body: ${{ steps.covector.outputs.change }} + + - name: Trigger doc update + if: | + steps.covector.outputs.successfulPublish == 'true' && + steps.covector.outputs.packagesPublished != '' + uses: peter-evans/repository-dispatch@v1 + with: + token: ${{ secrets.ORG_TAURI_BOT_PAT }} + repository: tauri-apps/tauri-docs + event-type: update-docs + + - name: Trigger cli.js publishing workflow + if: | + steps.covector.outputs.successfulPublish == 'true' && + contains(steps.covector.outputs.packagesPublished, 'cli.rs') + uses: peter-evans/repository-dispatch@v1 + with: + token: ${{ secrets.ORG_TAURI_BOT_PAT }} + repository: tauri-apps/tauri + event-type: publish-clijs + inputs: '{"releaseId": "${{ steps.covector.outputs.cli.js-releaseId }}" }' + + - name: Trigger cli.rs publishing workflow + if: | + steps.covector.outputs.successfulPublish == 'true' && + contains(steps.covector.outputs.packagesPublished, 'cli.rs') + uses: peter-evans/repository-dispatch@v1 + with: + token: ${{ secrets.ORG_TAURI_BOT_PAT }} + repository: tauri-apps/tauri + event-type: publish-clirs diff --git a/.scripts/covector/sync-cli-metadata.js b/.scripts/covector/sync-cli-metadata.js index f63cfe56ec20..de8ce26b4ac2 100644 --- a/.scripts/covector/sync-cli-metadata.js +++ b/.scripts/covector/sync-cli-metadata.js @@ -11,6 +11,7 @@ rust binaries. */ const { readFileSync, writeFileSync } = require('fs') +const { resolve } = require('path') const packageNickname = process.argv[2] const filePath = @@ -22,6 +23,7 @@ let index = null switch (bump) { case 'major': + case 'premajor': index = 0 break case 'minor': @@ -30,6 +32,9 @@ switch (bump) { case 'patch': index = 2 break + case 'prerelease': + index = 3 + break default: throw new Error('unexpected bump ' + bump) } @@ -43,6 +48,10 @@ const inc = (version) => { v[i] = 0 } } + if (bump === 'premajor') { + const pre = JSON.parse(readFileSync(resolve(filePath, '../../../.changes/pre.json'), 'utf-8')) + return `${v.join('.')}-${pre.tag}.0` + } return v.join('.') } diff --git a/core/config-schema/Cargo.toml b/core/config-schema/Cargo.toml index a304bfa38224..9e5798e3039c 100644 --- a/core/config-schema/Cargo.toml +++ b/core/config-schema/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" publish = false [build-dependencies] -tauri-utils = { version = "1.0.0", features = [ "schema" ], path = "../tauri-utils" } +tauri-utils = { path = "../tauri-utils", features = [ "schema" ] } schemars = { version = "0.8", features = [ "url", "preserve_order" ] } serde = { version = "1.0", features = [ "derive" ] } serde_json = "1.0" From 35040076eaa576bdcc973df18b6a7144d2816c48 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Fri, 9 Dec 2022 10:11:41 -0300 Subject: [PATCH 094/436] feat(ci): publish cli.js with --tag next --- .github/workflows/publish-cli-js.yml | 2 +- tooling/api/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-cli-js.yml b/.github/workflows/publish-cli-js.yml index 0a86624862b3..f30248b1c584 100644 --- a/.github/workflows/publish-cli-js.yml +++ b/.github/workflows/publish-cli-js.yml @@ -393,7 +393,7 @@ jobs: - name: Publish run: | echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc - npm publish + npm publish --tag next env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.ORG_NPM_TOKEN }} diff --git a/tooling/api/package.json b/tooling/api/package.json index bdca9a0bf7d4..c7feaa9348b3 100644 --- a/tooling/api/package.json +++ b/tooling/api/package.json @@ -13,7 +13,7 @@ "scripts": { "build": "yarn tsup && node ./scripts/after-build.cjs", "npm-pack": "yarn build && cd ./dist && npm pack", - "npm-publish": "yarn build && cd ./dist && yarn publish --access public --loglevel silly", + "npm-publish": "yarn build && cd ./dist && yarn publish --access public --loglevel silly --tag next", "lint": "eslint --ext ts \"./src/**/*.ts\"", "lint-fix": "eslint --fix --ext ts \"./src/**/*.ts\"", "format": "prettier --write --end-of-line=auto \"./**/*.{cjs,js,jsx,ts,tsx,html,css,json}\" --ignore-path ../../.prettierignore", From 25416a64ba2d7a15d78b1d387c3b18fc00170ee2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 9 Dec 2022 14:27:41 -0300 Subject: [PATCH 095/436] (NEXT) Apply Version Updates From Current Changes (#5787) Co-authored-by: lucasfernog Co-authored-by: Lucas Nogueira --- .changes/pre.json | 18 +++++++++++++++++- core/tauri-build/CHANGELOG.md | 7 +++++++ core/tauri-build/Cargo.toml | 6 +++--- core/tauri-codegen/CHANGELOG.md | 7 +++++++ core/tauri-codegen/Cargo.toml | 4 ++-- core/tauri-macros/CHANGELOG.md | 7 +++++++ core/tauri-macros/Cargo.toml | 6 +++--- core/tauri-runtime-wry/CHANGELOG.md | 5 +++++ core/tauri-runtime-wry/Cargo.toml | 6 +++--- core/tauri-runtime/CHANGELOG.md | 9 +++++++++ core/tauri-runtime/Cargo.toml | 4 ++-- core/tauri-utils/CHANGELOG.md | 7 +++++++ core/tauri-utils/Cargo.toml | 2 +- core/tauri/CHANGELOG.md | 15 +++++++++++++++ core/tauri/Cargo.toml | 22 +++++++++++----------- tooling/api/CHANGELOG.md | 5 +++++ tooling/api/package.json | 2 +- tooling/bundler/CHANGELOG.md | 5 +++++ tooling/bundler/Cargo.toml | 4 ++-- tooling/cli/CHANGELOG.md | 15 +++++++++++++++ tooling/cli/Cargo.lock | 6 +++--- tooling/cli/Cargo.toml | 11 +++++------ tooling/cli/metadata.json | 6 +++--- tooling/cli/node/CHANGELOG.md | 15 +++++++++++++++ tooling/cli/node/package.json | 2 +- 25 files changed, 154 insertions(+), 42 deletions(-) diff --git a/.changes/pre.json b/.changes/pre.json index 5914ed91ace2..3ccd37332907 100644 --- a/.changes/pre.json +++ b/.changes/pre.json @@ -1,4 +1,20 @@ { "tag": "alpha", - "changes": [] + "changes": [ + ".changes/build-android-env-vars.md", + ".changes/cli-android-build.md", + ".changes/cli-ios-build.md", + ".changes/cli-mobile-dev.md", + ".changes/codegen-mobile-devurl.md", + ".changes/default-tls-features.md", + ".changes/dev-proxy.md", + ".changes/mobile-config.md", + ".changes/mobile-entry-point-macro.md", + ".changes/mobile-init.md", + ".changes/mobile-open.md", + ".changes/mobile-webview-access.md", + ".changes/mobile.md", + ".changes/refactor-setup.md", + ".changes/tauri-mobile-entry-point.md" + ] } diff --git a/core/tauri-build/CHANGELOG.md b/core/tauri-build/CHANGELOG.md index ff6e0289074f..7a77a98ef0e6 100644 --- a/core/tauri-build/CHANGELOG.md +++ b/core/tauri-build/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## \[2.0.0-alpha.0] + +- Set environment variables used by `tauri::mobile_entry_point`. + - [98904863](https://www.github.com/tauri-apps/tauri/commit/9890486321c9c79ccfb7c547fafee85b5c3ffa71) feat(core): add `mobile_entry_point` macro ([#4983](https://www.github.com/tauri-apps/tauri/pull/4983)) on 2022-08-21 +- First mobile alpha release! + - [fa3a1098](https://www.github.com/tauri-apps/tauri/commit/fa3a10988a03aed1b66fb17d893b1a9adb90f7cd) feat(ci): prepare 2.0.0-alpha.0 ([#5786](https://www.github.com/tauri-apps/tauri/pull/5786)) on 2022-12-08 + ## \[1.2.1] - Fix `allowlist > app > show/hide` always disabled when `allowlist > app > all: false`. diff --git a/core/tauri-build/Cargo.toml b/core/tauri-build/Cargo.toml index 05387dab6846..1840ac2654a3 100644 --- a/core/tauri-build/Cargo.toml +++ b/core/tauri-build/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-build" -version = "1.2.1" +version = "2.0.0-alpha.0" authors = [ "Tauri Programme within The Commons Conservancy" ] categories = [ "gui", "web-programming" ] license = "Apache-2.0 OR MIT" @@ -19,8 +19,8 @@ rustdoc-args = [ "--cfg", "doc_cfg" ] [dependencies] anyhow = "1" quote = { version = "1", optional = true } -tauri-codegen = { version = "1.2.1", path = "../tauri-codegen", optional = true } -tauri-utils = { version = "1.2.1", path = "../tauri-utils", features = [ "build", "resources" ] } +tauri-codegen = { version = "2.0.0-alpha.0", path = "../tauri-codegen", optional = true } +tauri-utils = { version = "2.0.0-alpha.0", path = "../tauri-utils", features = [ "build", "resources" ] } cargo_toml = "0.13" serde_json = "1" heck = "0.4" diff --git a/core/tauri-codegen/CHANGELOG.md b/core/tauri-codegen/CHANGELOG.md index 69f338e46000..e32ce10b394a 100644 --- a/core/tauri-codegen/CHANGELOG.md +++ b/core/tauri-codegen/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## \[2.0.0-alpha.0] + +- Change `devPath` URL to use the local IP address on iOS and Android. + - [6f061504](https://www.github.com/tauri-apps/tauri/commit/6f0615044d09ec58393a7ebca5e45bb175e20db3) feat(cli): add `android dev` and `ios dev` commands ([#4982](https://www.github.com/tauri-apps/tauri/pull/4982)) on 2022-08-20 +- First mobile alpha release! + - [fa3a1098](https://www.github.com/tauri-apps/tauri/commit/fa3a10988a03aed1b66fb17d893b1a9adb90f7cd) feat(ci): prepare 2.0.0-alpha.0 ([#5786](https://www.github.com/tauri-apps/tauri/pull/5786)) on 2022-12-08 + ## \[1.2.1] - Fix `allowlist > app > show/hide` always disabled when `allowlist > app > all: false`. diff --git a/core/tauri-codegen/Cargo.toml b/core/tauri-codegen/Cargo.toml index d9df517d01b0..6c434d130a0f 100644 --- a/core/tauri-codegen/Cargo.toml +++ b/core/tauri-codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-codegen" -version = "1.2.1" +version = "2.0.0-alpha.0" authors = [ "Tauri Programme within The Commons Conservancy" ] categories = [ "gui", "web-programming" ] license = "Apache-2.0 OR MIT" @@ -19,7 +19,7 @@ proc-macro2 = "1" quote = "1" serde = { version = "1", features = [ "derive" ] } serde_json = "1" -tauri-utils = { version = "1.2.1", path = "../tauri-utils", features = [ "build" ] } +tauri-utils = { version = "2.0.0-alpha.0", path = "../tauri-utils", features = [ "build" ] } thiserror = "1" walkdir = "2" brotli = { version = "3", optional = true, default-features = false, features = [ "std" ] } diff --git a/core/tauri-macros/CHANGELOG.md b/core/tauri-macros/CHANGELOG.md index bfca33345efa..32d3e7e7067c 100644 --- a/core/tauri-macros/CHANGELOG.md +++ b/core/tauri-macros/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## \[2.0.0-alpha.0] + +- Added the `mobile_entry_point` macro. + - [98904863](https://www.github.com/tauri-apps/tauri/commit/9890486321c9c79ccfb7c547fafee85b5c3ffa71) feat(core): add `mobile_entry_point` macro ([#4983](https://www.github.com/tauri-apps/tauri/pull/4983)) on 2022-08-21 +- First mobile alpha release! + - [fa3a1098](https://www.github.com/tauri-apps/tauri/commit/fa3a10988a03aed1b66fb17d893b1a9adb90f7cd) feat(ci): prepare 2.0.0-alpha.0 ([#5786](https://www.github.com/tauri-apps/tauri/pull/5786)) on 2022-12-08 + ## \[1.2.1] - Fix `allowlist > app > show/hide` always disabled when `allowlist > app > all: false`. diff --git a/core/tauri-macros/Cargo.toml b/core/tauri-macros/Cargo.toml index 5e18ca0eaf61..e79b037ef07d 100644 --- a/core/tauri-macros/Cargo.toml +++ b/core/tauri-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-macros" -version = "1.2.1" +version = "2.0.0-alpha.0" authors = [ "Tauri Programme within The Commons Conservancy" ] categories = [ "gui", "os", "filesystem", "web-programming" ] license = "Apache-2.0 OR MIT" @@ -20,8 +20,8 @@ proc-macro2 = "1" quote = "1" syn = { version = "1", features = [ "full" ] } heck = "0.4" -tauri-codegen = { version = "1.2.1", default-features = false, path = "../tauri-codegen" } -tauri-utils = { version = "1.2.1", path = "../tauri-utils" } +tauri-codegen = { version = "2.0.0-alpha.0", default-features = false, path = "../tauri-codegen" } +tauri-utils = { version = "2.0.0-alpha.0", path = "../tauri-utils" } [features] custom-protocol = [ ] diff --git a/core/tauri-runtime-wry/CHANGELOG.md b/core/tauri-runtime-wry/CHANGELOG.md index b67b9b265ec1..84d2d7893929 100644 --- a/core/tauri-runtime-wry/CHANGELOG.md +++ b/core/tauri-runtime-wry/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## \[0.13.0-alpha.0] + +- Support `with_webview` for Android platform alowing execution of JNI code in context. + - [8ea87e9c](https://www.github.com/tauri-apps/tauri/commit/8ea87e9c9ca8ba4c7017c8281f78aacd08f45785) feat(android): with_webview access for jni execution ([#5148](https://www.github.com/tauri-apps/tauri/pull/5148)) on 2022-09-08 + ## \[0.12.2] - Fix compatibility with older Linux distributions. diff --git a/core/tauri-runtime-wry/Cargo.toml b/core/tauri-runtime-wry/Cargo.toml index 54c480e5747f..485ae76c2bd4 100644 --- a/core/tauri-runtime-wry/Cargo.toml +++ b/core/tauri-runtime-wry/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-runtime-wry" -version = "0.12.2" +version = "0.13.0-alpha.0" authors = [ "Tauri Programme within The Commons Conservancy" ] categories = [ "gui", "web-programming" ] license = "Apache-2.0 OR MIT" @@ -14,8 +14,8 @@ readme = "README.md" [dependencies] wry = { version = "0.23", default-features = false, features = [ "file-drop", "protocol" ] } -tauri-runtime = { version = "0.12.1", path = "../tauri-runtime" } -tauri-utils = { version = "1.2.1", path = "../tauri-utils" } +tauri-runtime = { version = "0.13.0-alpha.0", path = "../tauri-runtime" } +tauri-utils = { version = "2.0.0-alpha.0", path = "../tauri-utils" } uuid = { version = "1", features = [ "v4" ] } rand = "0.8" raw-window-handle = "0.5" diff --git a/core/tauri-runtime/CHANGELOG.md b/core/tauri-runtime/CHANGELOG.md index 084df72757b5..c488a06e150b 100644 --- a/core/tauri-runtime/CHANGELOG.md +++ b/core/tauri-runtime/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## \[0.13.0-alpha.0] + +- Parse `android` and `ios` Tauri configuration files. + - Bumped due to a bump in tauri-utils. + - [b3a3afc7](https://www.github.com/tauri-apps/tauri/commit/b3a3afc7de8de4021d73559288f5192732a706cf) feat(core): detect android and ios platform configuration files ([#4997](https://www.github.com/tauri-apps/tauri/pull/4997)) on 2022-08-22 +- First mobile alpha release! + - Bumped due to a bump in tauri-utils. + - [fa3a1098](https://www.github.com/tauri-apps/tauri/commit/fa3a10988a03aed1b66fb17d893b1a9adb90f7cd) feat(ci): prepare 2.0.0-alpha.0 ([#5786](https://www.github.com/tauri-apps/tauri/pull/5786)) on 2022-12-08 + ## \[0.12.1] - Fix `allowlist > app > show/hide` always disabled when `allowlist > app > all: false`. diff --git a/core/tauri-runtime/Cargo.toml b/core/tauri-runtime/Cargo.toml index b8a090f90937..9e670d96477b 100644 --- a/core/tauri-runtime/Cargo.toml +++ b/core/tauri-runtime/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-runtime" -version = "0.12.1" +version = "0.13.0-alpha.0" authors = [ "Tauri Programme within The Commons Conservancy" ] categories = [ "gui", "web-programming" ] license = "Apache-2.0 OR MIT" @@ -26,7 +26,7 @@ targets = [ serde = { version = "1.0", features = [ "derive" ] } serde_json = "1.0" thiserror = "1.0" -tauri-utils = { version = "1.2.1", path = "../tauri-utils" } +tauri-utils = { version = "2.0.0-alpha.0", path = "../tauri-utils" } uuid = { version = "1", features = [ "v4" ] } http = "0.2.4" http-range = "0.1.4" diff --git a/core/tauri-utils/CHANGELOG.md b/core/tauri-utils/CHANGELOG.md index 11b54526680b..5e81091a6e4c 100644 --- a/core/tauri-utils/CHANGELOG.md +++ b/core/tauri-utils/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## \[2.0.0-alpha.0] + +- Parse `android` and `ios` Tauri configuration files. + - [b3a3afc7](https://www.github.com/tauri-apps/tauri/commit/b3a3afc7de8de4021d73559288f5192732a706cf) feat(core): detect android and ios platform configuration files ([#4997](https://www.github.com/tauri-apps/tauri/pull/4997)) on 2022-08-22 +- First mobile alpha release! + - [fa3a1098](https://www.github.com/tauri-apps/tauri/commit/fa3a10988a03aed1b66fb17d893b1a9adb90f7cd) feat(ci): prepare 2.0.0-alpha.0 ([#5786](https://www.github.com/tauri-apps/tauri/pull/5786)) on 2022-12-08 + ## \[1.2.1] - Fix `allowlist > app > show/hide` always disabled when `allowlist > app > all: false`. diff --git a/core/tauri-utils/Cargo.toml b/core/tauri-utils/Cargo.toml index 94e7d8d510ee..785b415defc5 100644 --- a/core/tauri-utils/Cargo.toml +++ b/core/tauri-utils/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-utils" -version = "1.2.1" +version = "2.0.0-alpha.0" authors = [ "Tauri Programme within The Commons Conservancy" ] license = "Apache-2.0 OR MIT" homepage = "https://tauri.app" diff --git a/core/tauri/CHANGELOG.md b/core/tauri/CHANGELOG.md index 8b29b7fba7ed..731487e9f77c 100644 --- a/core/tauri/CHANGELOG.md +++ b/core/tauri/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## \[2.0.0-alpha.0] + +- Added the `default-tls` and `reqwest-default-tls` Cargo features for enabling TLS suppport to connect over HTTPS. + - [f6f9192a](https://www.github.com/tauri-apps/tauri/commit/f6f9192aa51bd842df8aa1d1aa538b12aa6c2d29) fix(core): Android compilation on Windows ([#5658](https://www.github.com/tauri-apps/tauri/pull/5658)) on 2022-11-20 +- **Breaking change:** Use the custom protocol as a proxy to the development server on all platforms except Linux. + - [6f061504](https://www.github.com/tauri-apps/tauri/commit/6f0615044d09ec58393a7ebca5e45bb175e20db3) feat(cli): add `android dev` and `ios dev` commands ([#4982](https://www.github.com/tauri-apps/tauri/pull/4982)) on 2022-08-20 +- Support `with_webview` for Android platform alowing execution of JNI code in context. + - [8ea87e9c](https://www.github.com/tauri-apps/tauri/commit/8ea87e9c9ca8ba4c7017c8281f78aacd08f45785) feat(android): with_webview access for jni execution ([#5148](https://www.github.com/tauri-apps/tauri/pull/5148)) on 2022-09-08 +- First mobile alpha release! + - [fa3a1098](https://www.github.com/tauri-apps/tauri/commit/fa3a10988a03aed1b66fb17d893b1a9adb90f7cd) feat(ci): prepare 2.0.0-alpha.0 ([#5786](https://www.github.com/tauri-apps/tauri/pull/5786)) on 2022-12-08 +- **Breaking change:** The window creation and setup hook are now called when the event loop is ready. + - [b4622ea4](https://www.github.com/tauri-apps/tauri/commit/b4622ea4d32720bc3bb2a8c740bb70cfe32fed93) refactor(app): run setup and window creation when event loop is ready ([#4914](https://www.github.com/tauri-apps/tauri/pull/4914)) on 2022-08-11 +- Export types required by the `mobile_entry_point` macro. + - [98904863](https://www.github.com/tauri-apps/tauri/commit/9890486321c9c79ccfb7c547fafee85b5c3ffa71) feat(core): add `mobile_entry_point` macro ([#4983](https://www.github.com/tauri-apps/tauri/pull/4983)) on 2022-08-21 + ## \[1.2.2] - Invoke event listener in windows safely to avoid causing uncaught errors in windows that have loaded external urls diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml index eb383b2128a2..457f207ea686 100644 --- a/core/tauri/Cargo.toml +++ b/core/tauri/Cargo.toml @@ -10,7 +10,7 @@ license = "Apache-2.0 OR MIT" name = "tauri" readme = "README.md" repository = "https://github.com/tauri-apps/tauri" -version = "1.2.2" +version = "2.0.0-alpha.0" [package.metadata.docs.rs] no-default-features = true @@ -49,10 +49,10 @@ url = { version = "2.3" } anyhow = "1.0" thiserror = "1.0" once_cell = "1" -tauri-runtime = { version = "0.12.1", path = "../tauri-runtime" } -tauri-macros = { version = "1.2.1", path = "../tauri-macros" } -tauri-utils = { version = "1.2.1", features = [ "resources" ], path = "../tauri-utils" } -tauri-runtime-wry = { version = "0.12.2", path = "../tauri-runtime-wry", optional = true } +tauri-runtime = { version = "0.13.0-alpha.0", path = "../tauri-runtime" } +tauri-macros = { version = "2.0.0-alpha.0", path = "../tauri-macros" } +tauri-utils = { version = "2.0.0-alpha.0", features = [ "resources" ], path = "../tauri-utils" } +tauri-runtime-wry = { version = "0.13.0-alpha.0", path = "../tauri-runtime-wry", optional = true } rand = "0.8" semver = { version = "1.0", features = [ "serde" ] } serde_repr = "0.1" @@ -104,18 +104,18 @@ objc = "0.2" webview2-com = "0.19.1" win7-notifications = { version = "0.3.1", optional = true } -[target.'cfg(target_os = "android")'.dependencies] + [target."cfg(windows)".dependencies.windows] + version = "0.39.0" + features = [ "Win32_Foundation" ] + +[target."cfg(target_os = \"android\")".dependencies] paste = "1.0" android_logger = "0.9" log = "0.4" -[target.'cfg(target_os = "ios")'.dependencies] +[target."cfg(target_os = \"ios\")".dependencies] env_logger = "0.9.0" -[target."cfg(windows)".dependencies.windows] -version = "0.39.0" -features = [ "Win32_Foundation" ] - [build-dependencies] heck = "0.4" once_cell = "1" diff --git a/tooling/api/CHANGELOG.md b/tooling/api/CHANGELOG.md index d2a733f9f405..0bdd28f8c49e 100644 --- a/tooling/api/CHANGELOG.md +++ b/tooling/api/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## \[2.0.0-alpha.0] + +- First mobile alpha release! + - [fa3a1098](https://www.github.com/tauri-apps/tauri/commit/fa3a10988a03aed1b66fb17d893b1a9adb90f7cd) feat(ci): prepare 2.0.0-alpha.0 ([#5786](https://www.github.com/tauri-apps/tauri/pull/5786)) on 2022-12-08 + ## \[1.2.0] - Added the `acceptFirstMouse` window option. diff --git a/tooling/api/package.json b/tooling/api/package.json index c7feaa9348b3..18a348bcc99c 100644 --- a/tooling/api/package.json +++ b/tooling/api/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/api", - "version": "1.2.0", + "version": "2.0.0-alpha.0", "description": "Tauri API definitions", "type": "module", "funding": { diff --git a/tooling/bundler/CHANGELOG.md b/tooling/bundler/CHANGELOG.md index 133611269c18..1011ffe01e73 100644 --- a/tooling/bundler/CHANGELOG.md +++ b/tooling/bundler/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## \[2.0.0-alpha.0] + +- First mobile alpha release! + - [fa3a1098](https://www.github.com/tauri-apps/tauri/commit/fa3a10988a03aed1b66fb17d893b1a9adb90f7cd) feat(ci): prepare 2.0.0-alpha.0 ([#5786](https://www.github.com/tauri-apps/tauri/pull/5786)) on 2022-12-08 + ## \[1.1.2] - Fixes blank taskbar icon on WiX updates. diff --git a/tooling/bundler/Cargo.toml b/tooling/bundler/Cargo.toml index e2ae67422669..5b12fc16d69e 100644 --- a/tooling/bundler/Cargo.toml +++ b/tooling/bundler/Cargo.toml @@ -2,7 +2,7 @@ workspace = { } [package] name = "tauri-bundler" -version = "1.1.2" +version = "2.0.0-alpha.0" authors = [ "George Burton ", "Tauri Programme within The Commons Conservancy" @@ -17,7 +17,7 @@ rust-version = "1.59" exclude = [ "CHANGELOG.md", "/target", "rustfmt.toml" ] [dependencies] -tauri-utils = { version = "1.2.1", path = "../../core/tauri-utils", features = [ "resources" ] } +tauri-utils = { version = "2.0.0-alpha.0", path = "../../core/tauri-utils", features = [ "resources" ] } image = "0.24.5" libflate = "1.2" anyhow = "1.0" diff --git a/tooling/cli/CHANGELOG.md b/tooling/cli/CHANGELOG.md index 62864b72b992..d27d58600066 100644 --- a/tooling/cli/CHANGELOG.md +++ b/tooling/cli/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## \[2.0.0-alpha.0] + +- Added `android build` command. + - [4c9ea450](https://www.github.com/tauri-apps/tauri/commit/4c9ea450c3b47c6b8c825ba32e9837909945ccd7) feat(cli): add `android build` command ([#4999](https://www.github.com/tauri-apps/tauri/pull/4999)) on 2022-08-22 +- Added `ios build` command. + - [403859d4](https://www.github.com/tauri-apps/tauri/commit/403859d47e1a9bf978b353fa58e4b971e66337a3) feat(cli): add `ios build` command ([#5002](https://www.github.com/tauri-apps/tauri/pull/5002)) on 2022-08-22 +- Added `android dev` and `ios dev` commands. + - [6f061504](https://www.github.com/tauri-apps/tauri/commit/6f0615044d09ec58393a7ebca5e45bb175e20db3) feat(cli): add `android dev` and `ios dev` commands ([#4982](https://www.github.com/tauri-apps/tauri/pull/4982)) on 2022-08-20 +- Added `android init` and `ios init` commands. + - [d44f67f7](https://www.github.com/tauri-apps/tauri/commit/d44f67f7afd30a81d53a973ec603b2a253150bde) feat: add `android init` and `ios init` commands ([#4942](https://www.github.com/tauri-apps/tauri/pull/4942)) on 2022-08-15 +- Added `android open` and `ios open` commands. + - [a9c8e565](https://www.github.com/tauri-apps/tauri/commit/a9c8e565c6495961940877df7090f307be16b554) feat: add `android open` and `ios open` commands ([#4946](https://www.github.com/tauri-apps/tauri/pull/4946)) on 2022-08-15 +- First mobile alpha release! + - [fa3a1098](https://www.github.com/tauri-apps/tauri/commit/fa3a10988a03aed1b66fb17d893b1a9adb90f7cd) feat(ci): prepare 2.0.0-alpha.0 ([#5786](https://www.github.com/tauri-apps/tauri/pull/5786)) on 2022-12-08 + ## \[1.2.2] - Detect SvelteKit and Vite for the init and info commands. diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index b5d16f236fe6..9858c5269d8d 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -3785,7 +3785,7 @@ dependencies = [ [[package]] name = "tauri-bundler" -version = "1.1.2" +version = "2.0.0-alpha.0" dependencies = [ "anyhow", "ar", @@ -3822,7 +3822,7 @@ dependencies = [ [[package]] name = "tauri-cli" -version = "1.2.2" +version = "2.0.0-alpha.0" dependencies = [ "anyhow", "axum", @@ -3936,7 +3936,7 @@ dependencies = [ [[package]] name = "tauri-utils" -version = "1.2.1" +version = "2.0.0-alpha.0" dependencies = [ "aes-gcm", "ctor", diff --git a/tooling/cli/Cargo.toml b/tooling/cli/Cargo.toml index b5ede8850f16..ebd0ae86d536 100644 --- a/tooling/cli/Cargo.toml +++ b/tooling/cli/Cargo.toml @@ -3,7 +3,7 @@ members = [ "node" ] [package] name = "tauri-cli" -version = "1.2.2" +version = "2.0.0-alpha.0" authors = [ "Tauri Programme within The Commons Conservancy" ] edition = "2021" rust-version = "1.59" @@ -39,15 +39,14 @@ name = "cargo-tauri" path = "src/main.rs" [dependencies] -# tauri-mobile = { path = "../../../cargo-mobile/", default-features = false } tauri-mobile = { version = "0.1", default-features = false } -textwrap = { version = "0.11.0", features = ["term_size"] } -jsonrpsee = { version = "0.16", features = [ "client", "server" ]} +textwrap = { version = "0.11.0", features = [ "term_size" ] } +jsonrpsee = { version = "0.16", features = [ "client", "server" ] } thiserror = "1" sublime_fuzzy = "0.7" clap = { version = "4.0", features = [ "derive" ] } anyhow = "1.0" -tauri-bundler = { version = "1.1.2", path = "../bundler" } +tauri-bundler = { version = "2.0.0-alpha.0", path = "../bundler" } colored = "2.0" once_cell = "1" serde = { version = "1.0", features = [ "derive" ] } @@ -57,7 +56,7 @@ notify-debouncer-mini = "0.2" shared_child = "1.0" toml_edit = "0.14" json-patch = "0.2" -tauri-utils = { version = "1.2.1", path = "../../core/tauri-utils", features = [ "isolation", "schema", "config-json5", "config-toml" ] } +tauri-utils = { version = "2.0.0-alpha.0", path = "../../core/tauri-utils", features = [ "isolation", "schema", "config-json5", "config-toml" ] } toml = "0.5" jsonschema = "0.16" handlebars = "4.3" diff --git a/tooling/cli/metadata.json b/tooling/cli/metadata.json index 71f5c9bca0bf..f8933df5ada5 100644 --- a/tooling/cli/metadata.json +++ b/tooling/cli/metadata.json @@ -1,8 +1,8 @@ { "cli.js": { - "version": "1.2.2", + "version": "2.0.0-alpha.0", "node": ">= 10.0.0" }, - "tauri": "1.2.2", - "tauri-build": "1.2.1" + "tauri": "2.0.0-alpha.0", + "tauri-build": "2.0.0-alpha.0" } diff --git a/tooling/cli/node/CHANGELOG.md b/tooling/cli/node/CHANGELOG.md index 93e79adcf61f..0729cda1fa3b 100644 --- a/tooling/cli/node/CHANGELOG.md +++ b/tooling/cli/node/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## \[2.0.0-alpha.0] + +- Added `android build` command. + - [4c9ea450](https://www.github.com/tauri-apps/tauri/commit/4c9ea450c3b47c6b8c825ba32e9837909945ccd7) feat(cli): add `android build` command ([#4999](https://www.github.com/tauri-apps/tauri/pull/4999)) on 2022-08-22 +- Added `ios build` command. + - [403859d4](https://www.github.com/tauri-apps/tauri/commit/403859d47e1a9bf978b353fa58e4b971e66337a3) feat(cli): add `ios build` command ([#5002](https://www.github.com/tauri-apps/tauri/pull/5002)) on 2022-08-22 +- Added `android dev` and `ios dev` commands. + - [6f061504](https://www.github.com/tauri-apps/tauri/commit/6f0615044d09ec58393a7ebca5e45bb175e20db3) feat(cli): add `android dev` and `ios dev` commands ([#4982](https://www.github.com/tauri-apps/tauri/pull/4982)) on 2022-08-20 +- Added `android init` and `ios init` commands. + - [d44f67f7](https://www.github.com/tauri-apps/tauri/commit/d44f67f7afd30a81d53a973ec603b2a253150bde) feat: add `android init` and `ios init` commands ([#4942](https://www.github.com/tauri-apps/tauri/pull/4942)) on 2022-08-15 +- Added `android open` and `ios open` commands. + - [a9c8e565](https://www.github.com/tauri-apps/tauri/commit/a9c8e565c6495961940877df7090f307be16b554) feat: add `android open` and `ios open` commands ([#4946](https://www.github.com/tauri-apps/tauri/pull/4946)) on 2022-08-15 +- First mobile alpha release! + - [fa3a1098](https://www.github.com/tauri-apps/tauri/commit/fa3a10988a03aed1b66fb17d893b1a9adb90f7cd) feat(ci): prepare 2.0.0-alpha.0 ([#5786](https://www.github.com/tauri-apps/tauri/pull/5786)) on 2022-12-08 + ## \[1.2.2] - Detect SvelteKit and Vite for the init and info commands. diff --git a/tooling/cli/node/package.json b/tooling/cli/node/package.json index a00832893ff2..2ecf80c9caf9 100644 --- a/tooling/cli/node/package.json +++ b/tooling/cli/node/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/cli", - "version": "1.2.2", + "version": "2.0.0-alpha.0", "description": "Command line interface for building Tauri apps", "funding": { "type": "opencollective", From 1d20db741010d90eb27b445872f13c9b621a0eed Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Fri, 9 Dec 2022 15:11:15 -0300 Subject: [PATCH 096/436] chore: update bundle.global.js --- core/tauri/scripts/bundle.global.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/tauri/scripts/bundle.global.js b/core/tauri/scripts/bundle.global.js index 9947ec6e4cd8..711c6ef9e883 100644 --- a/core/tauri/scripts/bundle.global.js +++ b/core/tauri/scripts/bundle.global.js @@ -1,8 +1,8 @@ -"use strict";var __TAURI_IIFE__=(()=>{var L=Object.defineProperty;var de=Object.getOwnPropertyDescriptor;var me=Object.getOwnPropertyNames;var pe=Object.prototype.hasOwnProperty;var c=(n,e)=>{for(var t in e)L(n,t,{get:e[t],enumerable:!0})},ge=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of me(e))!pe.call(n,s)&&s!==t&&L(n,s,{get:()=>e[s],enumerable:!(r=de(e,s))||r.enumerable});return n};var he=n=>ge(L({},"__esModule",{value:!0}),n);var Jt={};c(Jt,{app:()=>U,cli:()=>k,clipboard:()=>I,dialog:()=>N,event:()=>V,fs:()=>j,globalShortcut:()=>q,http:()=>$,invoke:()=>$t,notification:()=>J,os:()=>ne,path:()=>K,process:()=>Q,shell:()=>Z,tauri:()=>R,updater:()=>X,window:()=>te});var U={};c(U,{getName:()=>be,getTauriVersion:()=>Pe,getVersion:()=>_e,hide:()=>ve,show:()=>we});var R={};c(R,{convertFileSrc:()=>fe,invoke:()=>f,transformCallback:()=>d});function ye(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function d(n,e=!1){let t=ye(),r=`_${t}`;return Object.defineProperty(window,r,{value:s=>(e&&Reflect.deleteProperty(window,r),n==null?void 0:n(s)),writable:!1,configurable:!0}),t}async function f(n,e={}){return new Promise((t,r)=>{let s=d(l=>{t(l),Reflect.deleteProperty(window,`_${a}`)},!0),a=d(l=>{r(l),Reflect.deleteProperty(window,`_${s}`)},!0);window.__TAURI_IPC__({cmd:n,callback:s,error:a,...e})})}function fe(n,e="asset"){let t=encodeURIComponent(n);return navigator.userAgent.includes("Windows")?`https://${e}.localhost/${t}`:`${e}://localhost/${t}`}async function i(n){return f("tauri",n)}async function _e(){return i({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function be(){return i({__tauriModule:"App",message:{cmd:"getAppName"}})}async function Pe(){return i({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function we(){return i({__tauriModule:"App",message:{cmd:"show"}})}async function ve(){return i({__tauriModule:"App",message:{cmd:"hide"}})}var k={};c(k,{getMatches:()=>Me});async function Me(){return i({__tauriModule:"Cli",message:{cmd:"cliMatches"}})}var I={};c(I,{readText:()=>Oe,writeText:()=>Te});async function Te(n){return i({__tauriModule:"Clipboard",message:{cmd:"writeText",data:n}})}async function Oe(){return i({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})}var N={};c(N,{ask:()=>Ce,confirm:()=>De,message:()=>Ae,open:()=>Fe,save:()=>Ee});async function Fe(n={}){return typeof n=="object"&&Object.freeze(n),i({__tauriModule:"Dialog",message:{cmd:"openDialog",options:n}})}async function Ee(n={}){return typeof n=="object"&&Object.freeze(n),i({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:n}})}async function Ae(n,e){var r;let t=typeof e=="string"?{title:e}:e;return i({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:n.toString(),title:(r=t==null?void 0:t.title)==null?void 0:r.toString(),type:t==null?void 0:t.type}})}async function Ce(n,e){var r;let t=typeof e=="string"?{title:e}:e;return i({__tauriModule:"Dialog",message:{cmd:"askDialog",message:n.toString(),title:(r=t==null?void 0:t.title)==null?void 0:r.toString(),type:t==null?void 0:t.type}})}async function De(n,e){var r;let t=typeof e=="string"?{title:e}:e;return i({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:n.toString(),title:(r=t==null?void 0:t.title)==null?void 0:r.toString(),type:t==null?void 0:t.type}})}var V={};c(V,{TauriEvent:()=>M,emit:()=>T,listen:()=>z,once:()=>H});async function ie(n,e){return i({__tauriModule:"Event",message:{cmd:"unlisten",event:n,eventId:e}})}async function w(n,e,t){await i({__tauriModule:"Event",message:{cmd:"emit",event:n,windowLabel:e,payload:t}})}async function _(n,e,t){return i({__tauriModule:"Event",message:{cmd:"listen",event:n,windowLabel:e,handler:d(t)}}).then(r=>async()=>ie(n,r))}async function v(n,e,t){return _(n,e,r=>{t(r),ie(n,r.id).catch(()=>{})})}var M=(u=>(u.WINDOW_RESIZED="tauri://resize",u.WINDOW_MOVED="tauri://move",u.WINDOW_CLOSE_REQUESTED="tauri://close-requested",u.WINDOW_CREATED="tauri://window-created",u.WINDOW_DESTROYED="tauri://destroyed",u.WINDOW_FOCUS="tauri://focus",u.WINDOW_BLUR="tauri://blur",u.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",u.WINDOW_THEME_CHANGED="tauri://theme-changed",u.WINDOW_FILE_DROP="tauri://file-drop",u.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",u.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",u.MENU="tauri://menu",u.CHECK_UPDATE="tauri://update",u.UPDATE_AVAILABLE="tauri://update-available",u.INSTALL_UPDATE="tauri://update-install",u.STATUS_UPDATE="tauri://update-status",u.DOWNLOAD_PROGRESS="tauri://update-download-progress",u))(M||{});async function z(n,e){return _(n,null,e)}async function H(n,e){return v(n,null,e)}async function T(n,e){return w(n,void 0,e)}var j={};c(j,{BaseDirectory:()=>O,Dir:()=>O,copyFile:()=>Ne,createDir:()=>ke,exists:()=>Ve,readBinaryFile:()=>xe,readDir:()=>Ue,readTextFile:()=>We,removeDir:()=>Ie,removeFile:()=>ze,renameFile:()=>He,writeBinaryFile:()=>Re,writeFile:()=>Le,writeTextFile:()=>Le});var O=(o=>(o[o.Audio=1]="Audio",o[o.Cache=2]="Cache",o[o.Config=3]="Config",o[o.Data=4]="Data",o[o.LocalData=5]="LocalData",o[o.Desktop=6]="Desktop",o[o.Document=7]="Document",o[o.Download=8]="Download",o[o.Executable=9]="Executable",o[o.Font=10]="Font",o[o.Home=11]="Home",o[o.Picture=12]="Picture",o[o.Public=13]="Public",o[o.Runtime=14]="Runtime",o[o.Template=15]="Template",o[o.Video=16]="Video",o[o.Resource=17]="Resource",o[o.App=18]="App",o[o.Log=19]="Log",o[o.Temp=20]="Temp",o[o.AppConfig=21]="AppConfig",o[o.AppData=22]="AppData",o[o.AppLocalData=23]="AppLocalData",o[o.AppCache=24]="AppCache",o[o.AppLog=25]="AppLog",o))(O||{});async function We(n,e={}){return i({__tauriModule:"Fs",message:{cmd:"readTextFile",path:n,options:e}})}async function xe(n,e={}){let t=await i({__tauriModule:"Fs",message:{cmd:"readFile",path:n,options:e}});return Uint8Array.from(t)}async function Le(n,e,t){typeof t=="object"&&Object.freeze(t),typeof n=="object"&&Object.freeze(n);let r={path:"",contents:""},s=t;return typeof n=="string"?r.path=n:(r.path=n.path,r.contents=n.contents),typeof e=="string"?r.contents=e??"":s=e,i({__tauriModule:"Fs",message:{cmd:"writeFile",path:r.path,contents:Array.from(new TextEncoder().encode(r.contents)),options:s}})}async function Re(n,e,t){typeof t=="object"&&Object.freeze(t),typeof n=="object"&&Object.freeze(n);let r={path:"",contents:[]},s=t;return typeof n=="string"?r.path=n:(r.path=n.path,r.contents=n.contents),e&&"dir"in e?s=e:typeof n=="string"&&(r.contents=e??[]),i({__tauriModule:"Fs",message:{cmd:"writeFile",path:r.path,contents:Array.from(r.contents instanceof ArrayBuffer?new Uint8Array(r.contents):r.contents),options:s}})}async function Ue(n,e={}){return i({__tauriModule:"Fs",message:{cmd:"readDir",path:n,options:e}})}async function ke(n,e={}){return i({__tauriModule:"Fs",message:{cmd:"createDir",path:n,options:e}})}async function Ie(n,e={}){return i({__tauriModule:"Fs",message:{cmd:"removeDir",path:n,options:e}})}async function Ne(n,e,t={}){return i({__tauriModule:"Fs",message:{cmd:"copyFile",source:n,destination:e,options:t}})}async function ze(n,e={}){return i({__tauriModule:"Fs",message:{cmd:"removeFile",path:n,options:e}})}async function He(n,e,t={}){return i({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:n,newPath:e,options:t}})}async function Ve(n,e={}){return i({__tauriModule:"Fs",message:{cmd:"exists",path:n,options:e}})}var q={};c(q,{isRegistered:()=>Ge,register:()=>je,registerAll:()=>qe,unregister:()=>$e,unregisterAll:()=>Je});async function je(n,e){return i({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:n,handler:d(e)}})}async function qe(n,e){return i({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:n,handler:d(e)}})}async function Ge(n){return i({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:n}})}async function $e(n){return i({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:n}})}async function Je(){return i({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})}var $={};c($,{Body:()=>p,Client:()=>E,Response:()=>F,ResponseType:()=>re,fetch:()=>Ke,getClient:()=>se});var re=(r=>(r[r.JSON=1]="JSON",r[r.Text=2]="Text",r[r.Binary=3]="Binary",r))(re||{}),p=class{constructor(e,t){this.type=e,this.payload=t}static form(e){let t={},r=(s,a)=>{if(a!==null){let l;typeof a=="string"?l=a:a instanceof Uint8Array||Array.isArray(a)?l=Array.from(a):a instanceof File?l={file:a.name,mime:a.type,fileName:a.name}:typeof a.file=="string"?l={file:a.file,mime:a.mime,fileName:a.fileName}:l={file:Array.from(a.file),mime:a.mime,fileName:a.fileName},t[String(s)]=l}};if(e instanceof FormData)for(let[s,a]of e)r(s,a);else for(let[s,a]of Object.entries(e))r(s,a);return new p("Form",t)}static json(e){return new p("Json",e)}static text(e){return new p("Text",e)}static bytes(e){return new p("Bytes",Array.from(e instanceof ArrayBuffer?new Uint8Array(e):e))}},F=class{constructor(e){this.url=e.url,this.status=e.status,this.ok=this.status>=200&&this.status<300,this.headers=e.headers,this.rawHeaders=e.rawHeaders,this.data=e.data}},E=class{constructor(e){this.id=e}async drop(){return i({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})}async request(e){let t=!e.responseType||e.responseType===1;return t&&(e.responseType=2),i({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:e}}).then(r=>{let s=new F(r);if(t){try{s.data=JSON.parse(s.data)}catch(a){if(s.ok&&s.data==="")s.data={};else if(s.ok)throw Error(`Failed to parse response \`${s.data}\` as JSON: ${a}; - try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`)}return s}return s})}async get(e,t){return this.request({method:"GET",url:e,...t})}async post(e,t,r){return this.request({method:"POST",url:e,body:t,...r})}async put(e,t,r){return this.request({method:"PUT",url:e,body:t,...r})}async patch(e,t){return this.request({method:"PATCH",url:e,...t})}async delete(e,t){return this.request({method:"DELETE",url:e,...t})}};async function se(n){return i({__tauriModule:"Http",message:{cmd:"createClient",options:n}}).then(e=>new E(e))}var G=null;async function Ke(n,e){return G===null&&(G=await se()),G.request({url:n,method:(e==null?void 0:e.method)??"GET",...e})}var J={};c(J,{isPermissionGranted:()=>Qe,requestPermission:()=>Ze,sendNotification:()=>Ye});async function Qe(){return window.Notification.permission!=="default"?Promise.resolve(window.Notification.permission==="granted"):i({__tauriModule:"Notification",message:{cmd:"isNotificationPermissionGranted"}})}async function Ze(){return window.Notification.requestPermission()}function Ye(n){typeof n=="string"?new window.Notification(n):new window.Notification(n.title,n)}var K={};c(K,{BaseDirectory:()=>O,appCacheDir:()=>tt,appConfigDir:()=>ae,appDataDir:()=>Be,appDir:()=>Xe,appLocalDataDir:()=>et,appLogDir:()=>oe,audioDir:()=>nt,basename:()=>At,cacheDir:()=>it,configDir:()=>rt,dataDir:()=>st,delimiter:()=>vt,desktopDir:()=>at,dirname:()=>Ft,documentDir:()=>ot,downloadDir:()=>lt,executableDir:()=>ut,extname:()=>Et,fontDir:()=>ct,homeDir:()=>dt,isAbsolute:()=>Ct,join:()=>Ot,localDataDir:()=>mt,logDir:()=>Pt,normalize:()=>Tt,pictureDir:()=>pt,publicDir:()=>gt,resolve:()=>Mt,resolveResource:()=>yt,resourceDir:()=>ht,runtimeDir:()=>ft,sep:()=>wt,templateDir:()=>_t,videoDir:()=>bt});function b(){return navigator.appVersion.includes("Win")}async function Xe(){return ae()}async function ae(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:21}})}async function Be(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:22}})}async function et(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:23}})}async function tt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:24}})}async function nt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:1}})}async function it(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:2}})}async function rt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:3}})}async function st(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:4}})}async function at(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:6}})}async function ot(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:7}})}async function lt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:8}})}async function ut(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:9}})}async function ct(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:10}})}async function dt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:11}})}async function mt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:5}})}async function pt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:12}})}async function gt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:13}})}async function ht(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:17}})}async function yt(n){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:n,directory:17}})}async function ft(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:14}})}async function _t(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:15}})}async function bt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:16}})}async function Pt(){return oe()}async function oe(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:25}})}var wt=b()?"\\":"/",vt=b()?";":":";async function Mt(...n){return i({__tauriModule:"Path",message:{cmd:"resolve",paths:n}})}async function Tt(n){return i({__tauriModule:"Path",message:{cmd:"normalize",path:n}})}async function Ot(...n){return i({__tauriModule:"Path",message:{cmd:"join",paths:n}})}async function Ft(n){return i({__tauriModule:"Path",message:{cmd:"dirname",path:n}})}async function Et(n){return i({__tauriModule:"Path",message:{cmd:"extname",path:n}})}async function At(n,e){return i({__tauriModule:"Path",message:{cmd:"basename",path:n,ext:e}})}async function Ct(n){return i({__tauriModule:"Path",message:{cmd:"isAbsolute",path:n}})}var Q={};c(Q,{exit:()=>Dt,relaunch:()=>St});async function Dt(n=0){return i({__tauriModule:"Process",message:{cmd:"exit",exitCode:n}})}async function St(){return i({__tauriModule:"Process",message:{cmd:"relaunch"}})}var Z={};c(Z,{Child:()=>A,Command:()=>P,EventEmitter:()=>g,open:()=>xt});async function Wt(n,e,t=[],r){return typeof t=="object"&&Object.freeze(t),i({__tauriModule:"Shell",message:{cmd:"execute",program:e,args:t,options:r,onEventFn:d(n)}})}var g=class{constructor(){this.eventListeners=Object.create(null)}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}on(e,t){return e in this.eventListeners?this.eventListeners[e].push(t):this.eventListeners[e]=[t],this}once(e,t){let r=(...s)=>{this.removeListener(e,r),t(...s)};return this.addListener(e,r)}off(e,t){return e in this.eventListeners&&(this.eventListeners[e]=this.eventListeners[e].filter(r=>r!==t)),this}removeAllListeners(e){return e?delete this.eventListeners[e]:this.eventListeners=Object.create(null),this}emit(e,...t){if(e in this.eventListeners){let r=this.eventListeners[e];for(let s of r)s(...t);return!0}return!1}listenerCount(e){return e in this.eventListeners?this.eventListeners[e].length:0}prependListener(e,t){return e in this.eventListeners?this.eventListeners[e].unshift(t):this.eventListeners[e]=[t],this}prependOnceListener(e,t){let r=(...s)=>{this.removeListener(e,r),t(...s)};return this.prependListener(e,r)}},A=class{constructor(e){this.pid=e}async write(e){return i({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:typeof e=="string"?e:Array.from(e)}})}async kill(){return i({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})}},P=class extends g{constructor(t,r=[],s){super();this.stdout=new g;this.stderr=new g;this.program=t,this.args=typeof r=="string"?[r]:r,this.options=s??{}}static sidecar(t,r=[],s){let a=new P(t,r,s);return a.options.sidecar=!0,a}async spawn(){return Wt(t=>{switch(t.event){case"Error":this.emit("error",t.payload);break;case"Terminated":this.emit("close",t.payload);break;case"Stdout":this.stdout.emit("data",t.payload);break;case"Stderr":this.stderr.emit("data",t.payload);break}},this.program,this.args,this.options).then(t=>new A(t))}async execute(){return new Promise((t,r)=>{this.on("error",r);let s=[],a=[];this.stdout.on("data",l=>{s.push(l)}),this.stderr.on("data",l=>{a.push(l)}),this.on("close",l=>{t({code:l.code,signal:l.signal,stdout:s.join(` +"use strict";var __TAURI_IIFE__=(()=>{var L=Object.defineProperty;var de=Object.getOwnPropertyDescriptor;var me=Object.getOwnPropertyNames;var pe=Object.prototype.hasOwnProperty;var c=(t,e)=>{for(var n in e)L(t,n,{get:e[n],enumerable:!0})},ge=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of me(e))!pe.call(t,s)&&s!==n&&L(t,s,{get:()=>e[s],enumerable:!(r=de(e,s))||r.enumerable});return t};var he=t=>ge(L({},"__esModule",{value:!0}),t);var Jt={};c(Jt,{app:()=>k,cli:()=>U,clipboard:()=>I,dialog:()=>N,event:()=>V,fs:()=>j,globalShortcut:()=>q,http:()=>$,invoke:()=>$t,notification:()=>J,os:()=>ne,path:()=>K,process:()=>Q,shell:()=>Z,tauri:()=>R,updater:()=>X,window:()=>te});var k={};c(k,{getName:()=>be,getTauriVersion:()=>Pe,getVersion:()=>_e,hide:()=>ve,show:()=>we});var R={};c(R,{convertFileSrc:()=>fe,invoke:()=>f,transformCallback:()=>d});function ye(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function d(t,e=!1){let n=ye(),r=`_${n}`;return Object.defineProperty(window,r,{value:s=>(e&&Reflect.deleteProperty(window,r),t?.(s)),writable:!1,configurable:!0}),n}async function f(t,e={}){return new Promise((n,r)=>{let s=d(l=>{n(l),Reflect.deleteProperty(window,`_${a}`)},!0),a=d(l=>{r(l),Reflect.deleteProperty(window,`_${s}`)},!0);window.__TAURI_IPC__({cmd:t,callback:s,error:a,...e})})}function fe(t,e="asset"){let n=encodeURIComponent(t);return navigator.userAgent.includes("Windows")?`https://${e}.localhost/${n}`:`${e}://localhost/${n}`}async function i(t){return f("tauri",t)}async function _e(){return i({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function be(){return i({__tauriModule:"App",message:{cmd:"getAppName"}})}async function Pe(){return i({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function we(){return i({__tauriModule:"App",message:{cmd:"show"}})}async function ve(){return i({__tauriModule:"App",message:{cmd:"hide"}})}var U={};c(U,{getMatches:()=>Me});async function Me(){return i({__tauriModule:"Cli",message:{cmd:"cliMatches"}})}var I={};c(I,{readText:()=>Oe,writeText:()=>Te});async function Te(t){return i({__tauriModule:"Clipboard",message:{cmd:"writeText",data:t}})}async function Oe(){return i({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})}var N={};c(N,{ask:()=>Ce,confirm:()=>De,message:()=>Ae,open:()=>Fe,save:()=>Ee});async function Fe(t={}){return typeof t=="object"&&Object.freeze(t),i({__tauriModule:"Dialog",message:{cmd:"openDialog",options:t}})}async function Ee(t={}){return typeof t=="object"&&Object.freeze(t),i({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:t}})}async function Ae(t,e){let n=typeof e=="string"?{title:e}:e;return i({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:t.toString(),title:n?.title?.toString(),type:n?.type}})}async function Ce(t,e){let n=typeof e=="string"?{title:e}:e;return i({__tauriModule:"Dialog",message:{cmd:"askDialog",message:t.toString(),title:n?.title?.toString(),type:n?.type}})}async function De(t,e){let n=typeof e=="string"?{title:e}:e;return i({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:t.toString(),title:n?.title?.toString(),type:n?.type}})}var V={};c(V,{TauriEvent:()=>M,emit:()=>T,listen:()=>z,once:()=>H});async function ie(t,e){return i({__tauriModule:"Event",message:{cmd:"unlisten",event:t,eventId:e}})}async function w(t,e,n){await i({__tauriModule:"Event",message:{cmd:"emit",event:t,windowLabel:e,payload:n}})}async function _(t,e,n){return i({__tauriModule:"Event",message:{cmd:"listen",event:t,windowLabel:e,handler:d(n)}}).then(r=>async()=>ie(t,r))}async function v(t,e,n){return _(t,e,r=>{n(r),ie(t,r.id).catch(()=>{})})}var M=(u=>(u.WINDOW_RESIZED="tauri://resize",u.WINDOW_MOVED="tauri://move",u.WINDOW_CLOSE_REQUESTED="tauri://close-requested",u.WINDOW_CREATED="tauri://window-created",u.WINDOW_DESTROYED="tauri://destroyed",u.WINDOW_FOCUS="tauri://focus",u.WINDOW_BLUR="tauri://blur",u.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",u.WINDOW_THEME_CHANGED="tauri://theme-changed",u.WINDOW_FILE_DROP="tauri://file-drop",u.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",u.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",u.MENU="tauri://menu",u.CHECK_UPDATE="tauri://update",u.UPDATE_AVAILABLE="tauri://update-available",u.INSTALL_UPDATE="tauri://update-install",u.STATUS_UPDATE="tauri://update-status",u.DOWNLOAD_PROGRESS="tauri://update-download-progress",u))(M||{});async function z(t,e){return _(t,null,e)}async function H(t,e){return v(t,null,e)}async function T(t,e){return w(t,void 0,e)}var j={};c(j,{BaseDirectory:()=>O,Dir:()=>O,copyFile:()=>Ne,createDir:()=>Ue,exists:()=>Ve,readBinaryFile:()=>xe,readDir:()=>ke,readTextFile:()=>We,removeDir:()=>Ie,removeFile:()=>ze,renameFile:()=>He,writeBinaryFile:()=>Re,writeFile:()=>Le,writeTextFile:()=>Le});var O=(o=>(o[o.Audio=1]="Audio",o[o.Cache=2]="Cache",o[o.Config=3]="Config",o[o.Data=4]="Data",o[o.LocalData=5]="LocalData",o[o.Desktop=6]="Desktop",o[o.Document=7]="Document",o[o.Download=8]="Download",o[o.Executable=9]="Executable",o[o.Font=10]="Font",o[o.Home=11]="Home",o[o.Picture=12]="Picture",o[o.Public=13]="Public",o[o.Runtime=14]="Runtime",o[o.Template=15]="Template",o[o.Video=16]="Video",o[o.Resource=17]="Resource",o[o.App=18]="App",o[o.Log=19]="Log",o[o.Temp=20]="Temp",o[o.AppConfig=21]="AppConfig",o[o.AppData=22]="AppData",o[o.AppLocalData=23]="AppLocalData",o[o.AppCache=24]="AppCache",o[o.AppLog=25]="AppLog",o))(O||{});async function We(t,e={}){return i({__tauriModule:"Fs",message:{cmd:"readTextFile",path:t,options:e}})}async function xe(t,e={}){let n=await i({__tauriModule:"Fs",message:{cmd:"readFile",path:t,options:e}});return Uint8Array.from(n)}async function Le(t,e,n){typeof n=="object"&&Object.freeze(n),typeof t=="object"&&Object.freeze(t);let r={path:"",contents:""},s=n;return typeof t=="string"?r.path=t:(r.path=t.path,r.contents=t.contents),typeof e=="string"?r.contents=e??"":s=e,i({__tauriModule:"Fs",message:{cmd:"writeFile",path:r.path,contents:Array.from(new TextEncoder().encode(r.contents)),options:s}})}async function Re(t,e,n){typeof n=="object"&&Object.freeze(n),typeof t=="object"&&Object.freeze(t);let r={path:"",contents:[]},s=n;return typeof t=="string"?r.path=t:(r.path=t.path,r.contents=t.contents),e&&"dir"in e?s=e:typeof t=="string"&&(r.contents=e??[]),i({__tauriModule:"Fs",message:{cmd:"writeFile",path:r.path,contents:Array.from(r.contents instanceof ArrayBuffer?new Uint8Array(r.contents):r.contents),options:s}})}async function ke(t,e={}){return i({__tauriModule:"Fs",message:{cmd:"readDir",path:t,options:e}})}async function Ue(t,e={}){return i({__tauriModule:"Fs",message:{cmd:"createDir",path:t,options:e}})}async function Ie(t,e={}){return i({__tauriModule:"Fs",message:{cmd:"removeDir",path:t,options:e}})}async function Ne(t,e,n={}){return i({__tauriModule:"Fs",message:{cmd:"copyFile",source:t,destination:e,options:n}})}async function ze(t,e={}){return i({__tauriModule:"Fs",message:{cmd:"removeFile",path:t,options:e}})}async function He(t,e,n={}){return i({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:t,newPath:e,options:n}})}async function Ve(t,e={}){return i({__tauriModule:"Fs",message:{cmd:"exists",path:t,options:e}})}var q={};c(q,{isRegistered:()=>Ge,register:()=>je,registerAll:()=>qe,unregister:()=>$e,unregisterAll:()=>Je});async function je(t,e){return i({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:t,handler:d(e)}})}async function qe(t,e){return i({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:t,handler:d(e)}})}async function Ge(t){return i({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:t}})}async function $e(t){return i({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:t}})}async function Je(){return i({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})}var $={};c($,{Body:()=>p,Client:()=>E,Response:()=>F,ResponseType:()=>re,fetch:()=>Ke,getClient:()=>se});var re=(r=>(r[r.JSON=1]="JSON",r[r.Text=2]="Text",r[r.Binary=3]="Binary",r))(re||{}),p=class{constructor(e,n){this.type=e,this.payload=n}static form(e){let n={},r=(s,a)=>{if(a!==null){let l;typeof a=="string"?l=a:a instanceof Uint8Array||Array.isArray(a)?l=Array.from(a):a instanceof File?l={file:a.name,mime:a.type,fileName:a.name}:typeof a.file=="string"?l={file:a.file,mime:a.mime,fileName:a.fileName}:l={file:Array.from(a.file),mime:a.mime,fileName:a.fileName},n[String(s)]=l}};if(e instanceof FormData)for(let[s,a]of e)r(s,a);else for(let[s,a]of Object.entries(e))r(s,a);return new p("Form",n)}static json(e){return new p("Json",e)}static text(e){return new p("Text",e)}static bytes(e){return new p("Bytes",Array.from(e instanceof ArrayBuffer?new Uint8Array(e):e))}},F=class{constructor(e){this.url=e.url,this.status=e.status,this.ok=this.status>=200&&this.status<300,this.headers=e.headers,this.rawHeaders=e.rawHeaders,this.data=e.data}},E=class{constructor(e){this.id=e}async drop(){return i({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})}async request(e){let n=!e.responseType||e.responseType===1;return n&&(e.responseType=2),i({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:e}}).then(r=>{let s=new F(r);if(n){try{s.data=JSON.parse(s.data)}catch(a){if(s.ok&&s.data==="")s.data={};else if(s.ok)throw Error(`Failed to parse response \`${s.data}\` as JSON: ${a}; + try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`)}return s}return s})}async get(e,n){return this.request({method:"GET",url:e,...n})}async post(e,n,r){return this.request({method:"POST",url:e,body:n,...r})}async put(e,n,r){return this.request({method:"PUT",url:e,body:n,...r})}async patch(e,n){return this.request({method:"PATCH",url:e,...n})}async delete(e,n){return this.request({method:"DELETE",url:e,...n})}};async function se(t){return i({__tauriModule:"Http",message:{cmd:"createClient",options:t}}).then(e=>new E(e))}var G=null;async function Ke(t,e){return G===null&&(G=await se()),G.request({url:t,method:e?.method??"GET",...e})}var J={};c(J,{isPermissionGranted:()=>Qe,requestPermission:()=>Ze,sendNotification:()=>Ye});async function Qe(){return window.Notification.permission!=="default"?Promise.resolve(window.Notification.permission==="granted"):i({__tauriModule:"Notification",message:{cmd:"isNotificationPermissionGranted"}})}async function Ze(){return window.Notification.requestPermission()}function Ye(t){typeof t=="string"?new window.Notification(t):new window.Notification(t.title,t)}var K={};c(K,{BaseDirectory:()=>O,appCacheDir:()=>tt,appConfigDir:()=>ae,appDataDir:()=>Be,appDir:()=>Xe,appLocalDataDir:()=>et,appLogDir:()=>oe,audioDir:()=>nt,basename:()=>At,cacheDir:()=>it,configDir:()=>rt,dataDir:()=>st,delimiter:()=>vt,desktopDir:()=>at,dirname:()=>Ft,documentDir:()=>ot,downloadDir:()=>lt,executableDir:()=>ut,extname:()=>Et,fontDir:()=>ct,homeDir:()=>dt,isAbsolute:()=>Ct,join:()=>Ot,localDataDir:()=>mt,logDir:()=>Pt,normalize:()=>Tt,pictureDir:()=>pt,publicDir:()=>gt,resolve:()=>Mt,resolveResource:()=>yt,resourceDir:()=>ht,runtimeDir:()=>ft,sep:()=>wt,templateDir:()=>_t,videoDir:()=>bt});function b(){return navigator.appVersion.includes("Win")}async function Xe(){return ae()}async function ae(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:21}})}async function Be(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:22}})}async function et(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:23}})}async function tt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:24}})}async function nt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:1}})}async function it(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:2}})}async function rt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:3}})}async function st(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:4}})}async function at(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:6}})}async function ot(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:7}})}async function lt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:8}})}async function ut(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:9}})}async function ct(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:10}})}async function dt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:11}})}async function mt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:5}})}async function pt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:12}})}async function gt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:13}})}async function ht(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:17}})}async function yt(t){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:t,directory:17}})}async function ft(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:14}})}async function _t(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:15}})}async function bt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:16}})}async function Pt(){return oe()}async function oe(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:25}})}var wt=b()?"\\":"/",vt=b()?";":":";async function Mt(...t){return i({__tauriModule:"Path",message:{cmd:"resolve",paths:t}})}async function Tt(t){return i({__tauriModule:"Path",message:{cmd:"normalize",path:t}})}async function Ot(...t){return i({__tauriModule:"Path",message:{cmd:"join",paths:t}})}async function Ft(t){return i({__tauriModule:"Path",message:{cmd:"dirname",path:t}})}async function Et(t){return i({__tauriModule:"Path",message:{cmd:"extname",path:t}})}async function At(t,e){return i({__tauriModule:"Path",message:{cmd:"basename",path:t,ext:e}})}async function Ct(t){return i({__tauriModule:"Path",message:{cmd:"isAbsolute",path:t}})}var Q={};c(Q,{exit:()=>Dt,relaunch:()=>St});async function Dt(t=0){return i({__tauriModule:"Process",message:{cmd:"exit",exitCode:t}})}async function St(){return i({__tauriModule:"Process",message:{cmd:"relaunch"}})}var Z={};c(Z,{Child:()=>A,Command:()=>P,EventEmitter:()=>g,open:()=>xt});async function Wt(t,e,n=[],r){return typeof n=="object"&&Object.freeze(n),i({__tauriModule:"Shell",message:{cmd:"execute",program:e,args:n,options:r,onEventFn:d(t)}})}var g=class{constructor(){this.eventListeners=Object.create(null)}addListener(e,n){return this.on(e,n)}removeListener(e,n){return this.off(e,n)}on(e,n){return e in this.eventListeners?this.eventListeners[e].push(n):this.eventListeners[e]=[n],this}once(e,n){let r=(...s)=>{this.removeListener(e,r),n(...s)};return this.addListener(e,r)}off(e,n){return e in this.eventListeners&&(this.eventListeners[e]=this.eventListeners[e].filter(r=>r!==n)),this}removeAllListeners(e){return e?delete this.eventListeners[e]:this.eventListeners=Object.create(null),this}emit(e,...n){if(e in this.eventListeners){let r=this.eventListeners[e];for(let s of r)s(...n);return!0}return!1}listenerCount(e){return e in this.eventListeners?this.eventListeners[e].length:0}prependListener(e,n){return e in this.eventListeners?this.eventListeners[e].unshift(n):this.eventListeners[e]=[n],this}prependOnceListener(e,n){let r=(...s)=>{this.removeListener(e,r),n(...s)};return this.prependListener(e,r)}},A=class{constructor(e){this.pid=e}async write(e){return i({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:typeof e=="string"?e:Array.from(e)}})}async kill(){return i({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})}},P=class extends g{constructor(n,r=[],s){super();this.stdout=new g;this.stderr=new g;this.program=n,this.args=typeof r=="string"?[r]:r,this.options=s??{}}static sidecar(n,r=[],s){let a=new P(n,r,s);return a.options.sidecar=!0,a}async spawn(){return Wt(n=>{switch(n.event){case"Error":this.emit("error",n.payload);break;case"Terminated":this.emit("close",n.payload);break;case"Stdout":this.stdout.emit("data",n.payload);break;case"Stderr":this.stderr.emit("data",n.payload);break}},this.program,this.args,this.options).then(n=>new A(n))}async execute(){return new Promise((n,r)=>{this.on("error",r);let s=[],a=[];this.stdout.on("data",l=>{s.push(l)}),this.stderr.on("data",l=>{a.push(l)}),this.on("close",l=>{n({code:l.code,signal:l.signal,stdout:s.join(` `),stderr:a.join(` -`)})}),this.spawn().catch(r)})}};async function xt(n,e){return i({__tauriModule:"Shell",message:{cmd:"open",path:n,with:e}})}var X={};c(X,{checkUpdate:()=>Rt,installUpdate:()=>Lt,onUpdaterEvent:()=>Y});async function Y(n){return z("tauri://update-status",e=>{n(e==null?void 0:e.payload)})}async function Lt(){let n;function e(){n&&n(),n=void 0}return new Promise((t,r)=>{function s(a){if(a.error)return e(),r(a.error);if(a.status==="DONE")return e(),t()}Y(s).then(a=>{n=a}).catch(a=>{throw e(),a}),T("tauri://update-install").catch(a=>{throw e(),a})})}async function Rt(){let n;function e(){n&&n(),n=void 0}return new Promise((t,r)=>{function s(l){return e(),t({manifest:l,shouldUpdate:!0})}function a(l){if(l.error)return e(),r(l.error);if(l.status==="UPTODATE")return e(),t({shouldUpdate:!1})}H("tauri://update-available",l=>{s(l==null?void 0:l.payload)}).catch(l=>{throw e(),l}),Y(a).then(l=>{n=l}).catch(l=>{throw e(),l}),T("tauri://update").catch(l=>{throw e(),l})})}var te={};c(te,{CloseRequestedEvent:()=>x,LogicalPosition:()=>D,LogicalSize:()=>C,PhysicalPosition:()=>y,PhysicalSize:()=>h,UserAttentionType:()=>ue,WebviewWindow:()=>m,WebviewWindowHandle:()=>S,WindowManager:()=>W,appWindow:()=>B,availableMonitors:()=>Nt,currentMonitor:()=>kt,getAll:()=>ce,getCurrent:()=>Ut,primaryMonitor:()=>It});var C=class{constructor(e,t){this.type="Logical";this.width=e,this.height=t}},h=class{constructor(e,t){this.type="Physical";this.width=e,this.height=t}toLogical(e){return new C(this.width/e,this.height/e)}},D=class{constructor(e,t){this.type="Logical";this.x=e,this.y=t}},y=class{constructor(e,t){this.type="Physical";this.x=e,this.y=t}toLogical(e){return new D(this.x/e,this.y/e)}},ue=(t=>(t[t.Critical=1]="Critical",t[t.Informational=2]="Informational",t))(ue||{});function Ut(){return new m(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function ce(){return window.__TAURI_METADATA__.__windows.map(n=>new m(n.label,{skip:!0}))}var le=["tauri://created","tauri://error"],S=class{constructor(e){this.label=e,this.listeners=Object.create(null)}async listen(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let r=this.listeners[e];r.splice(r.indexOf(t),1)}):_(e,this.label,t)}async once(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let r=this.listeners[e];r.splice(r.indexOf(t),1)}):v(e,this.label,t)}async emit(e,t){if(le.includes(e)){for(let r of this.listeners[e]||[])r({event:e,id:-1,windowLabel:this.label,payload:t});return Promise.resolve()}return w(e,this.label,t)}_handleTauriEvent(e,t){return le.includes(e)?(e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t],!0):!1}},W=class extends S{async scaleFactor(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(({x:e,y:t})=>new y(e,t))}async outerPosition(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(({x:e,y:t})=>new y(e,t))}async innerSize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(({width:e,height:t})=>new h(e,t))}async outerSize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(({width:e,height:t})=>new h(e,t))}async isFullscreen(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})}async isMaximized(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})}async isDecorated(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})}async isResizable(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})}async isVisible(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})}async theme(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"theme"}}}})}async center(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})}async requestUserAttention(e){let t=null;return e&&(e===1?t={type:"Critical"}:t={type:"Informational"}),i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:t}}}})}async setResizable(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:e}}}})}async setTitle(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:e}}}})}async maximize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})}async unmaximize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})}async toggleMaximize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})}async minimize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})}async unminimize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})}async show(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})}async hide(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})}async close(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})}async setDecorations(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:e}}}})}async setAlwaysOnTop(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:e}}}})}async setSize(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:e.type,data:{width:e.width,height:e.height}}}}}})}async setMinSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setMaxSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setFullscreen(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:e}}}})}async setFocus(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})}async setIcon(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof e=="string"?e:Array.from(e)}}}}})}async setSkipTaskbar(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:e}}}})}async setCursorGrab(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorGrab",payload:e}}}})}async setCursorVisible(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorVisible",payload:e}}}})}async setCursorIcon(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorIcon",payload:e}}}})}async setCursorPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setIgnoreCursorEvents(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIgnoreCursorEvents",payload:e}}}})}async startDragging(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})}async onResized(e){return this.listen("tauri://resize",e)}async onMoved(e){return this.listen("tauri://move",e)}async onCloseRequested(e){return this.listen("tauri://close-requested",t=>{let r=new x(t);Promise.resolve(e(r)).then(()=>{if(!r.isPreventDefault())return this.close()})})}async onFocusChanged(e){let t=await this.listen("tauri://focus",s=>{e({...s,payload:!0})}),r=await this.listen("tauri://blur",s=>{e({...s,payload:!1})});return()=>{t(),r()}}async onScaleChanged(e){return this.listen("tauri://scale-change",e)}async onMenuClicked(e){return this.listen("tauri://menu",e)}async onFileDropEvent(e){let t=await this.listen("tauri://file-drop",a=>{e({...a,payload:{type:"drop",paths:a.payload}})}),r=await this.listen("tauri://file-drop-hover",a=>{e({...a,payload:{type:"hover",paths:a.payload}})}),s=await this.listen("tauri://file-drop-cancelled",a=>{e({...a,payload:{type:"cancel"}})});return()=>{t(),r(),s()}}async onThemeChanged(e){return this.listen("tauri://theme-changed",e)}},x=class{constructor(e){this._preventDefault=!1;this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}},m=class extends W{constructor(e,t={}){super(e),t!=null&&t.skip||i({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:{label:e,...t}}}}).then(async()=>this.emit("tauri://created")).catch(async r=>this.emit("tauri://error",r))}static getByLabel(e){return ce().some(t=>t.label===e)?new m(e,{skip:!0}):null}},B;"__TAURI_METADATA__"in window?B=new m(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0}):(console.warn(`Could not find "window.__TAURI_METADATA__". The "appWindow" value will reference the "main" window label. -Note that this is not an issue if running this frontend on a browser instead of a Tauri window.`),B=new m("main",{skip:!0}));function ee(n){return n===null?null:{name:n.name,scaleFactor:n.scaleFactor,position:new y(n.position.x,n.position.y),size:new h(n.size.width,n.size.height)}}async function kt(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}}).then(ee)}async function It(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}}).then(ee)}async function Nt(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}}).then(n=>n.map(ee))}var ne={};c(ne,{EOL:()=>zt,arch:()=>qt,platform:()=>Ht,tempdir:()=>Gt,type:()=>jt,version:()=>Vt});var zt=b()?`\r +`)})}),this.spawn().catch(r)})}};async function xt(t,e){return i({__tauriModule:"Shell",message:{cmd:"open",path:t,with:e}})}var X={};c(X,{checkUpdate:()=>Rt,installUpdate:()=>Lt,onUpdaterEvent:()=>Y});async function Y(t){return z("tauri://update-status",e=>{t(e?.payload)})}async function Lt(){let t;function e(){t&&t(),t=void 0}return new Promise((n,r)=>{function s(a){if(a.error)return e(),r(a.error);if(a.status==="DONE")return e(),n()}Y(s).then(a=>{t=a}).catch(a=>{throw e(),a}),T("tauri://update-install").catch(a=>{throw e(),a})})}async function Rt(){let t;function e(){t&&t(),t=void 0}return new Promise((n,r)=>{function s(l){return e(),n({manifest:l,shouldUpdate:!0})}function a(l){if(l.error)return e(),r(l.error);if(l.status==="UPTODATE")return e(),n({shouldUpdate:!1})}H("tauri://update-available",l=>{s(l?.payload)}).catch(l=>{throw e(),l}),Y(a).then(l=>{t=l}).catch(l=>{throw e(),l}),T("tauri://update").catch(l=>{throw e(),l})})}var te={};c(te,{CloseRequestedEvent:()=>x,LogicalPosition:()=>D,LogicalSize:()=>C,PhysicalPosition:()=>y,PhysicalSize:()=>h,UserAttentionType:()=>ue,WebviewWindow:()=>m,WebviewWindowHandle:()=>S,WindowManager:()=>W,appWindow:()=>B,availableMonitors:()=>Nt,currentMonitor:()=>Ut,getAll:()=>ce,getCurrent:()=>kt,primaryMonitor:()=>It});var C=class{constructor(e,n){this.type="Logical";this.width=e,this.height=n}},h=class{constructor(e,n){this.type="Physical";this.width=e,this.height=n}toLogical(e){return new C(this.width/e,this.height/e)}},D=class{constructor(e,n){this.type="Logical";this.x=e,this.y=n}},y=class{constructor(e,n){this.type="Physical";this.x=e,this.y=n}toLogical(e){return new D(this.x/e,this.y/e)}},ue=(n=>(n[n.Critical=1]="Critical",n[n.Informational=2]="Informational",n))(ue||{});function kt(){return new m(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function ce(){return window.__TAURI_METADATA__.__windows.map(t=>new m(t.label,{skip:!0}))}var le=["tauri://created","tauri://error"],S=class{constructor(e){this.label=e,this.listeners=Object.create(null)}async listen(e,n){return this._handleTauriEvent(e,n)?Promise.resolve(()=>{let r=this.listeners[e];r.splice(r.indexOf(n),1)}):_(e,this.label,n)}async once(e,n){return this._handleTauriEvent(e,n)?Promise.resolve(()=>{let r=this.listeners[e];r.splice(r.indexOf(n),1)}):v(e,this.label,n)}async emit(e,n){if(le.includes(e)){for(let r of this.listeners[e]||[])r({event:e,id:-1,windowLabel:this.label,payload:n});return Promise.resolve()}return w(e,this.label,n)}_handleTauriEvent(e,n){return le.includes(e)?(e in this.listeners?this.listeners[e].push(n):this.listeners[e]=[n],!0):!1}},W=class extends S{async scaleFactor(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(({x:e,y:n})=>new y(e,n))}async outerPosition(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(({x:e,y:n})=>new y(e,n))}async innerSize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(({width:e,height:n})=>new h(e,n))}async outerSize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(({width:e,height:n})=>new h(e,n))}async isFullscreen(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})}async isMaximized(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})}async isDecorated(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})}async isResizable(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})}async isVisible(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})}async theme(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"theme"}}}})}async center(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})}async requestUserAttention(e){let n=null;return e&&(e===1?n={type:"Critical"}:n={type:"Informational"}),i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:n}}}})}async setResizable(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:e}}}})}async setTitle(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:e}}}})}async maximize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})}async unmaximize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})}async toggleMaximize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})}async minimize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})}async unminimize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})}async show(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})}async hide(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})}async close(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})}async setDecorations(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:e}}}})}async setAlwaysOnTop(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:e}}}})}async setSize(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:e.type,data:{width:e.width,height:e.height}}}}}})}async setMinSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setMaxSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setFullscreen(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:e}}}})}async setFocus(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})}async setIcon(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof e=="string"?e:Array.from(e)}}}}})}async setSkipTaskbar(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:e}}}})}async setCursorGrab(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorGrab",payload:e}}}})}async setCursorVisible(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorVisible",payload:e}}}})}async setCursorIcon(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorIcon",payload:e}}}})}async setCursorPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setIgnoreCursorEvents(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIgnoreCursorEvents",payload:e}}}})}async startDragging(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})}async onResized(e){return this.listen("tauri://resize",e)}async onMoved(e){return this.listen("tauri://move",e)}async onCloseRequested(e){return this.listen("tauri://close-requested",n=>{let r=new x(n);Promise.resolve(e(r)).then(()=>{if(!r.isPreventDefault())return this.close()})})}async onFocusChanged(e){let n=await this.listen("tauri://focus",s=>{e({...s,payload:!0})}),r=await this.listen("tauri://blur",s=>{e({...s,payload:!1})});return()=>{n(),r()}}async onScaleChanged(e){return this.listen("tauri://scale-change",e)}async onMenuClicked(e){return this.listen("tauri://menu",e)}async onFileDropEvent(e){let n=await this.listen("tauri://file-drop",a=>{e({...a,payload:{type:"drop",paths:a.payload}})}),r=await this.listen("tauri://file-drop-hover",a=>{e({...a,payload:{type:"hover",paths:a.payload}})}),s=await this.listen("tauri://file-drop-cancelled",a=>{e({...a,payload:{type:"cancel"}})});return()=>{n(),r(),s()}}async onThemeChanged(e){return this.listen("tauri://theme-changed",e)}},x=class{constructor(e){this._preventDefault=!1;this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}},m=class extends W{constructor(e,n={}){super(e),n?.skip||i({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:{label:e,...n}}}}).then(async()=>this.emit("tauri://created")).catch(async r=>this.emit("tauri://error",r))}static getByLabel(e){return ce().some(n=>n.label===e)?new m(e,{skip:!0}):null}},B;"__TAURI_METADATA__"in window?B=new m(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0}):(console.warn(`Could not find "window.__TAURI_METADATA__". The "appWindow" value will reference the "main" window label. +Note that this is not an issue if running this frontend on a browser instead of a Tauri window.`),B=new m("main",{skip:!0}));function ee(t){return t===null?null:{name:t.name,scaleFactor:t.scaleFactor,position:new y(t.position.x,t.position.y),size:new h(t.size.width,t.size.height)}}async function Ut(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}}).then(ee)}async function It(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}}).then(ee)}async function Nt(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}}).then(t=>t.map(ee))}var ne={};c(ne,{EOL:()=>zt,arch:()=>qt,platform:()=>Ht,tempdir:()=>Gt,type:()=>jt,version:()=>Vt});var zt=b()?`\r `:` `;async function Ht(){return i({__tauriModule:"Os",message:{cmd:"platform"}})}async function Vt(){return i({__tauriModule:"Os",message:{cmd:"version"}})}async function jt(){return i({__tauriModule:"Os",message:{cmd:"osType"}})}async function qt(){return i({__tauriModule:"Os",message:{cmd:"arch"}})}async function Gt(){return i({__tauriModule:"Os",message:{cmd:"tempdir"}})}var $t=f;return he(Jt);})(); window.__TAURI__ = __TAURI_IIFE__ From dd65bc99b20f508f46db0b9c7dbb9c40623224e8 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Fri, 9 Dec 2022 15:17:14 -0300 Subject: [PATCH 097/436] chore(ci): remove integration tests --- .../covector-version-or-publish-next.yml | 47 ------------------- 1 file changed, 47 deletions(-) diff --git a/.github/workflows/covector-version-or-publish-next.yml b/.github/workflows/covector-version-or-publish-next.yml index c958ea368543..2c68d56f2cab 100644 --- a/.github/workflows/covector-version-or-publish-next.yml +++ b/.github/workflows/covector-version-or-publish-next.yml @@ -10,51 +10,6 @@ on: - next jobs: - run-integration-tests: - runs-on: ${{ matrix.platform }} - - strategy: - fail-fast: false - matrix: - platform: [ubuntu-latest, macos-latest, windows-latest] - - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - name: install stable - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - - name: install Linux dependencies - if: matrix.platform == 'ubuntu-latest' - run: | - sudo apt-get update - sudo apt-get install -y webkit2gtk-4.0 libayatana-appindicator3-dev libfuse2 - - - uses: Swatinem/rust-cache@v2 - with: - workspaces: | - core -> ../target - tooling/cli - - - name: build CLI - uses: actions-rs/cargo@v1 - with: - command: build - args: --manifest-path ./tooling/cli/Cargo.toml - - - name: run integration tests - run: cargo test --test '*' -- --ignored - - - name: run CLI tests - timeout-minutes: 30 - run: | - cd ./tooling/cli/node - yarn - yarn build - yarn test - version-or-publish: runs-on: ubuntu-latest timeout-minutes: 65 @@ -62,8 +17,6 @@ jobs: change: ${{ steps.covector.outputs.change }} commandRan: ${{ steps.covector.outputs.commandRan }} successfulPublish: ${{ steps.covector.outputs.successfulPublish }} - needs: - - run-integration-tests steps: - uses: actions/checkout@v2 From be446a866546d4d1a0b7b1b8022dcb41ad76641d Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Sat, 10 Dec 2022 06:37:16 -0800 Subject: [PATCH 098/436] fix(cli): use vendored openSSL (#5805) --- tooling/cli/Cargo.lock | 11 +++++++++++ tooling/cli/Cargo.toml | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 9858c5269d8d..d904fb3fe7c6 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -2579,6 +2579,15 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" +[[package]] +name = "openssl-src" +version = "111.24.0+1.1.1s" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3498f259dab01178c6228c6b00dcef0ed2a2d5e20d648c017861227773ea4abd" +dependencies = [ + "cc", +] + [[package]] name = "openssl-sys" version = "0.9.74" @@ -2588,6 +2597,7 @@ dependencies = [ "autocfg", "cc", "libc", + "openssl-src", "pkg-config", "vcpkg", ] @@ -3850,6 +3860,7 @@ dependencies = [ "notify", "notify-debouncer-mini", "once_cell", + "openssl", "os_info", "os_pipe", "regex", diff --git a/tooling/cli/Cargo.toml b/tooling/cli/Cargo.toml index ebd0ae86d536..377f65f257a2 100644 --- a/tooling/cli/Cargo.toml +++ b/tooling/cli/Cargo.toml @@ -92,5 +92,9 @@ winapi = { version = "0.3", features = [ "handleapi", "processenv", "winbase", " [target."cfg(unix)".dependencies] libc = "0.2" +[target.'cfg(target_os = "macos")'.dependencies] +# temporary fix, tauri-mobile should provide the openssl-vendored feature +openssl = { version = "0.10", features = ["vendored"] } + [profile.release] lto = true From 2620ab294dfabfa01b1e51b87d2402b43de9e532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Mon, 12 Dec 2022 20:41:26 +0800 Subject: [PATCH 099/436] fix(cli): ios build description (#5809) --- tooling/cli/src/mobile/ios.rs | 1 + tooling/cli/src/mobile/ios/build.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tooling/cli/src/mobile/ios.rs b/tooling/cli/src/mobile/ios.rs index 33ea44d91d6b..bb51e02779b3 100644 --- a/tooling/cli/src/mobile/ios.rs +++ b/tooling/cli/src/mobile/ios.rs @@ -73,6 +73,7 @@ pub struct InitOptions { #[derive(Subcommand)] enum Commands { Init(InitOptions), + /// Open project in Xcode Open, Dev(dev::Options), Build(build::Options), diff --git a/tooling/cli/src/mobile/ios/build.rs b/tooling/cli/src/mobile/ios/build.rs index 5efe53f6564c..33773482d64a 100644 --- a/tooling/cli/src/mobile/ios/build.rs +++ b/tooling/cli/src/mobile/ios/build.rs @@ -20,7 +20,7 @@ use tauri_mobile::{ use std::fs; #[derive(Debug, Clone, Parser)] -#[clap(about = "Android build")] +#[clap(about = "iOS build")] pub struct Options { /// Builds with the debug flag #[clap(short, long)] From 1e4a675843c486bddc11292d09fb766e98758514 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Mon, 12 Dec 2022 05:36:47 -0800 Subject: [PATCH 100/436] fix(cli): run on iOS device on Xcode 14 (#5807) --- .changes/fix-ios-run-xcode14.md | 6 +++ examples/api/src-tauri/Cargo.lock | 14 +++--- tooling/cli/src/info.rs | 1 - tooling/cli/src/mobile/ios/project.rs | 10 ++++ tooling/cli/src/mobile/ios/xcode_script.rs | 53 ++++++++++++++++---- tooling/cli/templates/mobile/ios/project.yml | 7 +-- 6 files changed, 71 insertions(+), 20 deletions(-) create mode 100644 .changes/fix-ios-run-xcode14.md diff --git a/.changes/fix-ios-run-xcode14.md b/.changes/fix-ios-run-xcode14.md new file mode 100644 index 000000000000..592244de5779 --- /dev/null +++ b/.changes/fix-ios-run-xcode14.md @@ -0,0 +1,6 @@ +--- +"cli.rs": patch +"cli.js": patch +--- + +Fixes running on device using Xcode 14. diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index 6f89c3e5370e..5c66e3081f5a 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -2935,7 +2935,7 @@ dependencies = [ [[package]] name = "tauri" -version = "1.2.2" +version = "2.0.0-alpha.0" dependencies = [ "android_logger", "anyhow", @@ -3001,7 +3001,7 @@ dependencies = [ [[package]] name = "tauri-build" -version = "1.2.1" +version = "2.0.0-alpha.0" dependencies = [ "anyhow", "cargo_toml", @@ -3017,7 +3017,7 @@ dependencies = [ [[package]] name = "tauri-codegen" -version = "1.2.1" +version = "2.0.0-alpha.0" dependencies = [ "base64", "brotli", @@ -3042,7 +3042,7 @@ dependencies = [ [[package]] name = "tauri-macros" -version = "1.2.1" +version = "2.0.0-alpha.0" dependencies = [ "heck 0.4.0", "proc-macro2", @@ -3054,7 +3054,7 @@ dependencies = [ [[package]] name = "tauri-runtime" -version = "0.12.1" +version = "0.13.0-alpha.0" dependencies = [ "gtk", "http", @@ -3072,7 +3072,7 @@ dependencies = [ [[package]] name = "tauri-runtime-wry" -version = "0.12.2" +version = "0.13.0-alpha.0" dependencies = [ "cocoa", "gtk", @@ -3090,7 +3090,7 @@ dependencies = [ [[package]] name = "tauri-utils" -version = "1.2.1" +version = "2.0.0-alpha.0" dependencies = [ "aes-gcm", "brotli", diff --git a/tooling/cli/src/info.rs b/tooling/cli/src/info.rs index f63b620d800f..b3e99cc0f7c3 100644 --- a/tooling/cli/src/info.rs +++ b/tooling/cli/src/info.rs @@ -901,7 +901,6 @@ pub fn command(_options: Options) -> Result<()> { .map(|t| format!("{} (ID: {})", t.name, t.id)) .collect::>() .join(", ") - .to_string() }, ) .display(); diff --git a/tooling/cli/src/mobile/ios/project.rs b/tooling/cli/src/mobile/ios/project.rs index 4067be50417d..94ab10cf7cea 100644 --- a/tooling/cli/src/mobile/ios/project.rs +++ b/tooling/cli/src/mobile/ios/project.rs @@ -158,6 +158,16 @@ pub fn gen( })?; } + let externals_dir = dest.join("Externals"); + if !externals_dir.is_dir() { + create_dir_all(&externals_dir).map_err(|cause| { + anyhow::anyhow!( + "failed to create Externals dir {path}: {cause}", + path = externals_dir.display() + ) + })?; + } + // Create all asset catalog directories if they don't already exist for dir in asset_catalogs { std::fs::create_dir_all(dir).map_err(|cause| { diff --git a/tooling/cli/src/mobile/ios/xcode_script.rs b/tooling/cli/src/mobile/ios/xcode_script.rs index 7d2746f8cdbf..5ce3443abc5f 100644 --- a/tooling/cli/src/mobile/ios/xcode_script.rs +++ b/tooling/cli/src/mobile/ios/xcode_script.rs @@ -1,7 +1,12 @@ use super::{env, with_config}; -use crate::Result; -use clap::Parser; +use crate::{ + helpers::config::get as get_config, + interface::{AppInterface, AppSettings, Interface, Options as InterfaceOptions}, + Result, +}; +use clap::Parser; +use heck::AsSnakeCase; use tauri_mobile::{apple::target::Target, opts::Profile, util}; use std::{collections::HashMap, ffi::OsStr, path::PathBuf}; @@ -124,12 +129,14 @@ pub fn command(options: Options) -> Result<()> { let isysroot = format!("-isysroot {}", options.sdk_root.display()); + let tauri_config = get_config(None)?; + for arch in options.arches { // Set target-specific flags - let triple = match arch.as_str() { - "arm64" => "aarch64_apple_ios", - "arm64-sim" => "aarch64_apple_ios_sim", - "x86_64" => "x86_64_apple_ios", + let (env_triple, rust_triple) = match arch.as_str() { + "arm64" => ("aarch64_apple_ios", "aarch64-apple-ios"), + "arm64-sim" => ("aarch64_apple_ios_sim", "aarch64-apple-ios-sim"), + "x86_64" => ("x86_64_apple_ios", "x86_64-apple-ios"), "Simulator" => continue, _ => { return Err(anyhow::anyhow!( @@ -138,9 +145,15 @@ pub fn command(options: Options) -> Result<()> { )) } }; - let cflags = format!("CFLAGS_{}", triple); - let cxxflags = format!("CFLAGS_{}", triple); - let objc_include_path = format!("OBJC_INCLUDE_PATH_{}", triple); + + let interface = AppInterface::new( + tauri_config.lock().unwrap().as_ref().unwrap(), + Some(rust_triple.into()), + )?; + + let cflags = format!("CFLAGS_{}", env_triple); + let cxxflags = format!("CFLAGS_{}", env_triple); + let objc_include_path = format!("OBJC_INCLUDE_PATH_{}", env_triple); let mut target_env = host_env.clone(); target_env.insert(cflags.as_ref(), isysroot.as_ref()); target_env.insert(cxxflags.as_ref(), isysroot.as_ref()); @@ -165,6 +178,28 @@ pub fn command(options: Options) -> Result<()> { &env, target_env, )?; + + let bin_path = interface + .app_settings() + .app_binary_path(&InterfaceOptions { + debug: matches!(profile, Profile::Debug), + target: Some(rust_triple.into()), + ..Default::default() + })?; + let out_dir = bin_path.parent().unwrap(); + + std::fs::create_dir_all(format!( + "gen/apple/Externals/{rust_triple}/{}", + profile.as_str() + ))?; + std::fs::copy( + out_dir.join(format!("lib{}.a", AsSnakeCase(config.app().name()))), + format!( + "gen/apple/Externals/{rust_triple}/{}/lib{}.a", + profile.as_str(), + AsSnakeCase(config.app().name()) + ), + )?; } Ok(()) }) diff --git a/tooling/cli/templates/mobile/ios/project.yml b/tooling/cli/templates/mobile/ios/project.yml index 31fe4bf979b8..92053c8fccdc 100644 --- a/tooling/cli/templates/mobile/ios/project.yml +++ b/tooling/cli/templates/mobile/ios/project.yml @@ -31,6 +31,7 @@ targets: sources: - path: Sources - path: Assets.xcassets + - path: Externals - path: {{app.asset-dir}} buildPhase: resources type: folder @@ -71,9 +72,9 @@ targets: ENABLE_BITCODE: false ARCHS: [{{join ios-valid-archs}}] VALID_ARCHS: {{~#each ios-valid-archs}} {{this}} {{/each}} - LIBRARY_SEARCH_PATHS[arch=x86_64]: $(inherited) "{{prefix-path "target/x86_64-apple-ios/$(CONFIGURATION)"}}" - LIBRARY_SEARCH_PATHS[arch=arm64]: $(inherited) "{{prefix-path "target/aarch64-apple-ios/$(CONFIGURATION)"}}" - LIBRARY_SEARCH_PATHS[arch=arm64-sim]: $(inherited) "{{prefix-path "target/aarch64-apple-ios-sim/$(CONFIGURATION)"}}" + LIBRARY_SEARCH_PATHS[arch=x86_64]: $(inherited) $(PROJECT_DIR)/Externals/x86_64-apple-ios/$(CONFIGURATION) + LIBRARY_SEARCH_PATHS[arch=arm64]: $(inherited) $(PROJECT_DIR)/Externals/aarch64-apple-ios/$(CONFIGURATION) + LIBRARY_SEARCH_PATHS[arch=arm64-sim]: $(inherited) $(PROJECT_DIR)/Externals/aarch64-apple-ios-sim/$(CONFIGURATION) ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES: true groups: [app] dependencies: From 8f47825aacf820129f4e604855c37033bb77ab16 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Mon, 12 Dec 2022 15:14:04 -0300 Subject: [PATCH 101/436] chore: remove unused imports on mobile builds --- core/tauri/src/window.rs | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/core/tauri/src/window.rs b/core/tauri/src/window.rs index 76e6f0fea273..156bfd21f134 100644 --- a/core/tauri/src/window.rs +++ b/core/tauri/src/window.rs @@ -18,20 +18,28 @@ use crate::{ manager::WindowManager, runtime::{ http::{Request as HttpRequest, Response as HttpResponse}, - menu::Menu, monitor::Monitor as RuntimeMonitor, webview::{WebviewAttributes, WindowBuilder as _}, window::{ - dpi::{PhysicalPosition, PhysicalSize, Position, Size}, + dpi::{PhysicalPosition, PhysicalSize}, DetachedWindow, JsEventListenerKey, PendingWindow, }, - Dispatch, RuntimeHandle, UserAttentionType, + Dispatch, RuntimeHandle, }, sealed::ManagerBase, sealed::RuntimeOrDispatch, utils::config::WindowUrl, - CursorIcon, EventLoopMessage, Icon, Invoke, InvokeError, InvokeMessage, InvokeResolver, Manager, - PageLoadPayload, Runtime, Theme, WindowEvent, + EventLoopMessage, Invoke, InvokeError, InvokeMessage, InvokeResolver, Manager, PageLoadPayload, + Runtime, Theme, WindowEvent, +}; +#[cfg(desktop)] +use crate::{ + runtime::{ + menu::Menu, + window::dpi::{Position, Size}, + UserAttentionType, + }, + CursorIcon, Icon, }; use serde::Serialize; From a9b4cf20a3e9a5cc984727a56111591504e084c0 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Mon, 12 Dec 2022 17:59:39 -0800 Subject: [PATCH 102/436] fix(core): use entire request URL on dev server proxy (#5819) --- .changes/fix-dev-server-proxy-path.md | 5 +++++ core/tauri/src/manager.rs | 31 ++++++++++++++++++--------- 2 files changed, 26 insertions(+), 10 deletions(-) create mode 100644 .changes/fix-dev-server-proxy-path.md diff --git a/.changes/fix-dev-server-proxy-path.md b/.changes/fix-dev-server-proxy-path.md new file mode 100644 index 000000000000..40fc18d041b6 --- /dev/null +++ b/.changes/fix-dev-server-proxy-path.md @@ -0,0 +1,5 @@ +--- +"tauri": patch +--- + +Properly proxy dev server requests with query strings and fragments. diff --git a/core/tauri/src/manager.rs b/core/tauri/src/manager.rs index 1c27f243370b..817ed2b0ed60 100644 --- a/core/tauri/src/manager.rs +++ b/core/tauri/src/manager.rs @@ -886,18 +886,26 @@ impl WindowManager { ) -> Box Result> + Send + Sync> { #[cfg(dev)] - let url = self.get_url().into_owned(); + let url = { + let mut url = self.get_url().as_str().to_string(); + if url.ends_with('/') { + url.pop(); + } + url + }; #[cfg(not(dev))] let manager = self.clone(); let window_origin = window_origin.to_string(); Box::new(move |request| { - let path = request - .uri() - .split(&['?', '#'][..]) - // ignore query string and fragment - .next() - .unwrap() + // use the entire URI as we are going to proxy the request + #[cfg(dev)] + let path = request.uri(); + // ignore query string and fragment + #[cfg(not(dev))] + let path = request.uri().split(&['?', '#'][..]).next().unwrap(); + + let path = path .strip_prefix("tauri://localhost") .map(|p| p.to_string()) // the `strip_prefix` only returns None when a request is made to `https://tauri.$P` on Windows @@ -910,9 +918,12 @@ impl WindowManager { #[cfg(dev)] let mut response = { use attohttpc::StatusCode; - let mut url = url.clone(); - url.set_path(&path); - let mut proxy_builder = attohttpc::get(url.as_str()).danger_accept_invalid_certs(true); + let decoded_path = percent_encoding::percent_decode(path.as_bytes()) + .decode_utf8_lossy() + .to_string(); + let url = format!("{url}{decoded_path}"); + println!("request url {url}, original path {path}, decoded {decoded_path}"); + let mut proxy_builder = attohttpc::get(&url).danger_accept_invalid_certs(true); for (name, value) in request.headers() { proxy_builder = proxy_builder.header(name, value); } From 76204b893846a04552f8f8b87ad2c9b55e1b417f Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Mon, 12 Dec 2022 17:59:51 -0800 Subject: [PATCH 103/436] feat(cli): improve local IP detection (#5817) --- .changes/improve-local-ip-detection.md | 6 +++++ tooling/cli/src/dev.rs | 31 ++++++++++++++++++++++++-- 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 .changes/improve-local-ip-detection.md diff --git a/.changes/improve-local-ip-detection.md b/.changes/improve-local-ip-detection.md new file mode 100644 index 000000000000..4d3d3d01e853 --- /dev/null +++ b/.changes/improve-local-ip-detection.md @@ -0,0 +1,6 @@ +--- +"cli.rs": patch +"cli.js": patch +--- + +Improve local IP address detection with user selection. diff --git a/tooling/cli/src/dev.rs b/tooling/cli/src/dev.rs index 97b5009fd396..fcaa8f825c6e 100644 --- a/tooling/cli/src/dev.rs +++ b/tooling/cli/src/dev.rs @@ -11,9 +11,9 @@ use crate::{ interface::{AppInterface, DevProcess, ExitReason, Interface}, CommandExt, Result, }; -use clap::{ArgAction, Parser}; use anyhow::{bail, Context}; +use clap::{ArgAction, Parser}; use log::{error, info, warn}; use once_cell::sync::OnceCell; use shared_child::SharedChild; @@ -88,7 +88,34 @@ fn command_internal(mut options: Options) -> Result<()> { fn local_ip_address() -> &'static IpAddr { static LOCAL_IP: OnceCell = OnceCell::new(); - LOCAL_IP.get_or_init(|| local_ip_address::local_ip().expect("failed to resolve local IP address")) + LOCAL_IP.get_or_init(|| { + let addresses: Vec = local_ip_address::list_afinet_netifas() + .expect("failed to list networks") + .into_iter() + .map(|(_, ipaddr)| ipaddr) + .filter(|ipaddr| match ipaddr { + IpAddr::V4(i) => i != &Ipv4Addr::LOCALHOST, + _ => false, + }) + .collect(); + match addresses.len() { + 0 => panic!("No external IP detected."), + 1 => { + let ipaddr = addresses.first().unwrap(); + log::info!("Detected external IP {ipaddr}."); + *ipaddr + } + _ => { + let selected = dialoguer::Select::with_theme(&dialoguer::theme::ColorfulTheme::default()) + .with_prompt("What external IP should we use for your development server?") + .items(&addresses) + .default(0) + .interact() + .expect("failed to select external IP"); + *addresses.get(selected).unwrap() + } + } + }) } pub fn setup(options: &mut Options, mobile: bool) -> Result { From 3ad5e72ff147b76267c010c778a3b94bba209bb0 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Mon, 12 Dec 2022 18:00:03 -0800 Subject: [PATCH 104/436] feat(core): cache dev server proxy responses for 304 status code (#5818) --- .changes/dev-proxy-response-cache.md | 5 ++++ core/tauri/src/manager.rs | 42 ++++++++++++++++++++++------ 2 files changed, 39 insertions(+), 8 deletions(-) create mode 100644 .changes/dev-proxy-response-cache.md diff --git a/.changes/dev-proxy-response-cache.md b/.changes/dev-proxy-response-cache.md new file mode 100644 index 000000000000..f6327c336392 --- /dev/null +++ b/.changes/dev-proxy-response-cache.md @@ -0,0 +1,5 @@ +--- +"tauri": patch +--- + +Implement response cache on the dev server proxy, used when the server responds with status 304. diff --git a/core/tauri/src/manager.rs b/core/tauri/src/manager.rs index 817ed2b0ed60..c4f2df46ba23 100644 --- a/core/tauri/src/manager.rs +++ b/core/tauri/src/manager.rs @@ -449,8 +449,7 @@ impl WindowManager { window_labels_array = serde_json::to_string(&window_labels)?, current_window_label = serde_json::to_string(&label)?, )) - .initialization_script(&self.initialization_script(&ipc_init.into_string(),&pattern_init.into_string(),&plugin_init, is_init_global)?) - ; + .initialization_script(&self.initialization_script(&ipc_init.into_string(),&pattern_init.into_string(),&plugin_init, is_init_global)?); #[cfg(feature = "isolation")] if let Pattern::Isolation { schema, .. } = self.pattern() { @@ -897,6 +896,17 @@ impl WindowManager { let manager = self.clone(); let window_origin = window_origin.to_string(); + #[cfg(dev)] + #[derive(Clone)] + struct CachedResponse { + status: http::StatusCode, + headers: http::HeaderMap, + body: Vec, + } + + #[cfg(dev)] + let response_cache = Arc::new(Mutex::new(HashMap::new())); + Box::new(move |request| { // use the entire URI as we are going to proxy the request #[cfg(dev)] @@ -929,14 +939,30 @@ impl WindowManager { } match proxy_builder.send() { Ok(r) => { - for (name, value) in r.headers() { - builder = builder.header(name, value); + let mut response_cache_ = response_cache.lock().unwrap(); + let mut response = None; + if r.status() == StatusCode::NOT_MODIFIED { + response = response_cache_.get(&url); } - let mut status = r.status(); - if status == StatusCode::NOT_MODIFIED { - status = StatusCode::OK; + let response = if let Some(r) = response { + r + } else { + let (status, headers, reader) = r.split(); + let body = reader.bytes()?; + let response = CachedResponse { + status, + headers, + body, + }; + response_cache_.insert(url.clone(), response); + response_cache_.get(&url).unwrap() + }; + for (name, value) in &response.headers { + builder = builder.header(name, value); } - builder.status(status).body(r.bytes()?)? + builder + .status(response.status) + .body(response.body.clone())? } Err(e) => { debug_eprintln!("Failed to request {}: {}", url.as_str(), e); From fc33c4218cf156460efcb7545b6ab4d8b43ce2d2 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Wed, 14 Dec 2022 12:17:43 -0300 Subject: [PATCH 105/436] fix(ci): use client-payload input to trigger cli.js publish workflow --- .github/workflows/covector-version-or-publish-next.yml | 2 +- .github/workflows/covector-version-or-publish.yml | 2 +- .github/workflows/publish-cli-js.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/covector-version-or-publish-next.yml b/.github/workflows/covector-version-or-publish-next.yml index 2c68d56f2cab..19269c16a8c5 100644 --- a/.github/workflows/covector-version-or-publish-next.yml +++ b/.github/workflows/covector-version-or-publish-next.yml @@ -77,7 +77,7 @@ jobs: token: ${{ secrets.ORG_TAURI_BOT_PAT }} repository: tauri-apps/tauri event-type: publish-clijs - inputs: '{"releaseId": "${{ steps.covector.outputs.cli.js-releaseId }}" }' + client-payload: '{"releaseId": "${{ steps.covector.outputs.cli.js-releaseId }}" }' - name: Trigger cli.rs publishing workflow if: | diff --git a/.github/workflows/covector-version-or-publish.yml b/.github/workflows/covector-version-or-publish.yml index 98556c0e0467..054493427312 100644 --- a/.github/workflows/covector-version-or-publish.yml +++ b/.github/workflows/covector-version-or-publish.yml @@ -124,7 +124,7 @@ jobs: token: ${{ secrets.ORG_TAURI_BOT_PAT }} repository: tauri-apps/tauri event-type: publish-clijs - inputs: '{"releaseId": "${{ steps.covector.outputs.cli.js-releaseId }}" }' + client-payload: '{"releaseId": "${{ steps.covector.outputs.cli.js-releaseId }}" }' - name: Trigger cli.rs publishing workflow if: | diff --git a/.github/workflows/publish-cli-js.yml b/.github/workflows/publish-cli-js.yml index f30248b1c584..e7f2ed6ffd0c 100644 --- a/.github/workflows/publish-cli-js.yml +++ b/.github/workflows/publish-cli-js.yml @@ -397,4 +397,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.ORG_NPM_TOKEN }} - RELEASE_ID: ${{ github.event.inputs.releaseId }} + RELEASE_ID: ${{ github.event.client_payload.releaseId || github.event.inputs.releaseId }} From 8301d17ab870305ab90bb4f8071ea476f53a6873 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Thu, 15 Dec 2022 17:14:17 -0300 Subject: [PATCH 106/436] chore: use covector branch that sets the target_commitish release field --- .github/workflows/covector-version-or-publish-next.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/covector-version-or-publish-next.yml b/.github/workflows/covector-version-or-publish-next.yml index 19269c16a8c5..984294921e81 100644 --- a/.github/workflows/covector-version-or-publish-next.yml +++ b/.github/workflows/covector-version-or-publish-next.yml @@ -37,7 +37,7 @@ jobs: git config --global user.email "${{ github.event.pusher.email }}" - name: covector version or publish (publish when no change files present) - uses: jbolda/covector/packages/action@covector-v0 + uses: lucasfernog/covector/packages/action@feat/target-commitish id: covector env: NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }} From d600405a1051c881d7ee50bbcac56824b8aecfd1 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Thu, 15 Dec 2022 17:21:27 -0300 Subject: [PATCH 107/436] chore(deps): bump wry to 0.23.4 --- core/tauri-runtime-wry/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tauri-runtime-wry/Cargo.toml b/core/tauri-runtime-wry/Cargo.toml index 485ae76c2bd4..2594efea550f 100644 --- a/core/tauri-runtime-wry/Cargo.toml +++ b/core/tauri-runtime-wry/Cargo.toml @@ -13,7 +13,7 @@ exclude = [ "CHANGELOG.md", "/target" ] readme = "README.md" [dependencies] -wry = { version = "0.23", default-features = false, features = [ "file-drop", "protocol" ] } +wry = { version = "0.23.4", default-features = false, features = [ "file-drop", "protocol" ] } tauri-runtime = { version = "0.13.0-alpha.0", path = "../tauri-runtime" } tauri-utils = { version = "2.0.0-alpha.0", path = "../tauri-utils" } uuid = { version = "1", features = [ "v4" ] } From d21c4a0a896afbff02c49afa851fbdee75d2e8e6 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Thu, 15 Dec 2022 17:56:23 -0300 Subject: [PATCH 108/436] chore: fix clippy warnings --- core/config-schema/build.rs | 4 +-- core/tauri-build/src/codegen/context.rs | 4 +-- core/tauri-build/src/lib.rs | 18 ++++++------- core/tauri-codegen/src/context.rs | 7 ++--- core/tauri-codegen/src/embedded_assets.rs | 4 +-- core/tauri-macros/src/mobile.rs | 5 +--- core/tauri-runtime-wry/build.rs | 2 +- core/tauri-runtime/build.rs | 2 +- core/tauri-utils/src/config.rs | 19 +++++++------ core/tauri-utils/src/html.rs | 10 +++---- core/tauri-utils/src/mime_type.rs | 2 +- core/tauri-utils/src/platform.rs | 8 +++--- core/tauri/build.rs | 10 +++---- core/tauri/src/api/dir.rs | 2 +- core/tauri/src/api/file/extract.rs | 4 +-- core/tauri/src/api/http.rs | 7 +++-- core/tauri/src/api/ipc.rs | 8 +++--- core/tauri/src/api/shell.rs | 2 +- core/tauri/src/app.rs | 5 ++-- core/tauri/src/endpoints.rs | 3 +-- core/tauri/src/endpoints/event.rs | 2 +- core/tauri/src/endpoints/shell.rs | 4 +-- core/tauri/src/event.rs | 13 ++++----- core/tauri/src/hooks.rs | 2 +- core/tauri/src/lib.rs | 23 +++++++--------- core/tauri/src/manager.rs | 13 +++++---- core/tauri/src/pattern.rs | 4 +-- core/tauri/src/plugin.rs | 6 ++--- core/tauri/src/scope/http.rs | 2 +- core/tauri/src/updater/core.rs | 28 +++++++++----------- core/tauri/src/updater/mod.rs | 4 +-- core/tests/app-updater/src/main.rs | 4 +-- core/tests/app-updater/tests/update.rs | 7 +++-- core/tests/restart/src/main.rs | 2 +- core/tests/restart/tests/restart.rs | 2 +- examples/commands/commands.rs | 2 +- examples/commands/main.rs | 26 +++++++++--------- examples/multiwindow/main.rs | 2 +- examples/parent-window/main.rs | 2 +- examples/streaming/main.rs | 2 +- tooling/bundler/src/bundle/linux/debian.rs | 2 +- tooling/bundler/src/bundle/path_utils.rs | 5 +++- tooling/bundler/src/bundle/settings.rs | 4 +-- tooling/cli/src/build.rs | 2 +- tooling/cli/src/dev.rs | 2 +- tooling/cli/src/helpers/updater_signature.rs | 8 +++--- tooling/cli/src/info.rs | 2 +- tooling/cli/src/interface/rust.rs | 2 +- tooling/cli/src/interface/rust/desktop.rs | 2 +- tooling/cli/src/mobile/android/build.rs | 2 +- tooling/cli/src/mobile/android/dev.rs | 2 +- tooling/cli/src/plugin/init.rs | 2 +- 52 files changed, 145 insertions(+), 166 deletions(-) diff --git a/core/config-schema/build.rs b/core/config-schema/build.rs index fd0097699e55..31fc2aba9a13 100644 --- a/core/config-schema/build.rs +++ b/core/config-schema/build.rs @@ -17,8 +17,8 @@ pub fn main() -> Result<(), Box> { crate_dir.join("schema.json"), crate_dir.join("../../tooling/cli/schema.json"), ] { - let mut schema_file = BufWriter::new(File::create(&file)?); - write!(schema_file, "{}", schema_str)?; + let mut schema_file = BufWriter::new(File::create(file)?); + write!(schema_file, "{schema_str}")?; } Ok(()) diff --git a/core/tauri-build/src/codegen/context.rs b/core/tauri-build/src/codegen/context.rs index 2d681229d272..a21591fe3085 100644 --- a/core/tauri-build/src/codegen/context.rs +++ b/core/tauri-build/src/codegen/context.rs @@ -86,7 +86,7 @@ impl CodegenContext { pub fn build(self) -> PathBuf { match self.try_build() { Ok(out) => out, - Err(error) => panic!("Error found during Codegen::build: {}", error), + Err(error) => panic!("Error found during Codegen::build: {error}"), } } @@ -161,7 +161,7 @@ impl CodegenContext { ) })?; - writeln!(file, "{}", code).with_context(|| { + writeln!(file, "{code}").with_context(|| { format!( "Unable to write tokenstream to out file during tauri-build {}", out.display() diff --git a/core/tauri-build/src/lib.rs b/core/tauri-build/src/lib.rs index 40b2dd370df9..09469f9d965e 100644 --- a/core/tauri-build/src/lib.rs +++ b/core/tauri-build/src/lib.rs @@ -35,8 +35,8 @@ fn copy_file(from: impl AsRef, to: impl AsRef) -> Result<()> { Ok(()) } -fn copy_binaries<'a>( - binaries: ResourcePaths<'a>, +fn copy_binaries( + binaries: ResourcePaths, target_triple: &str, path: &Path, package_name: Option<&String>, @@ -48,7 +48,7 @@ fn copy_binaries<'a>( .file_name() .expect("failed to extract external binary filename") .to_string_lossy() - .replace(&format!("-{}", target_triple), ""); + .replace(&format!("-{target_triple}"), ""); if package_name.map_or(false, |n| n == &file_name) { return Err(anyhow::anyhow!( @@ -72,7 +72,7 @@ fn copy_resources(resources: ResourcePaths<'_>, path: &Path) -> Result<()> { let src = src?; println!("cargo:rerun-if-changed={}", src.display()); let dest = path.join(resource_relpath(&src)); - copy_file(&src, &dest)?; + copy_file(&src, dest)?; } Ok(()) } @@ -90,7 +90,7 @@ fn has_feature(feature: &str) -> bool { // `alias` must be a snake case string. fn cfg_alias(alias: &str, has_feature: bool) { if has_feature { - println!("cargo:rustc-cfg={}", alias); + println!("cargo:rustc-cfg={alias}"); } } @@ -179,8 +179,8 @@ impl Attributes { /// This is typically desirable when running inside a build script; see [`try_build`] for no panics. pub fn build() { if let Err(error) = try_build(Attributes::default()) { - let error = format!("{:#}", error); - println!("{}", error); + let error = format!("{error:#}"); + println!("{error}"); if error.starts_with("unknown field") { print!("found an unknown configuration field. This usually means that you are using a CLI version that is newer than `tauri-build` and is incompatible. "); println!( @@ -229,7 +229,7 @@ pub fn try_build(attributes: Attributes) -> Result<()> { } } domain.pop(); - println!("cargo:rustc-env=TAURI_ANDROID_DOMAIN={}", domain); + println!("cargo:rustc-env=TAURI_ANDROID_DOMAIN={domain}"); cfg_alias("dev", !has_feature("custom-protocol")); @@ -288,7 +288,7 @@ pub fn try_build(attributes: Attributes) -> Result<()> { let target_triple = std::env::var("TARGET").unwrap(); - println!("cargo:rustc-env=TAURI_TARGET_TRIPLE={}", target_triple); + println!("cargo:rustc-env=TAURI_TARGET_TRIPLE={target_triple}"); let out_dir = PathBuf::from(std::env::var("OUT_DIR").unwrap()); // TODO: far from ideal, but there's no other way to get the target dir, see diff --git a/core/tauri-codegen/src/context.rs b/core/tauri-codegen/src/context.rs index eb4036f38423..c3ac02b56b37 100644 --- a/core/tauri-codegen/src/context.rs +++ b/core/tauri-codegen/src/context.rs @@ -142,7 +142,7 @@ pub fn context_codegen(data: ContextData) -> Result Result { let dir = config_parent.join(dir); if !dir.exists() { - panic!( - "The isolation application path is set to `{:?}` but it does not exist", - dir - ) + panic!("The isolation application path is set to `{dir:?}` but it does not exist") } let mut sets_isolation_hook = false; diff --git a/core/tauri-codegen/src/embedded_assets.rs b/core/tauri-codegen/src/embedded_assets.rs index 4f5559570d6c..27282696973a 100644 --- a/core/tauri-codegen/src/embedded_assets.rs +++ b/core/tauri-codegen/src/embedded_assets.rs @@ -343,14 +343,14 @@ impl EmbeddedAssets { let mut hex = String::with_capacity(2 * bytes.len()); for b in bytes { - write!(hex, "{:02x}", b).map_err(EmbeddedAssetsError::Hex)?; + write!(hex, "{b:02x}").map_err(EmbeddedAssetsError::Hex)?; } hex }; // use the content hash to determine filename, keep extensions that exist let out_path = if let Some(ext) = path.extension().and_then(|e| e.to_str()) { - out_dir.join(format!("{}.{}", hash, ext)) + out_dir.join(format!("{hash}.{ext}")) } else { out_dir.join(hash) }; diff --git a/core/tauri-macros/src/mobile.rs b/core/tauri-macros/src/mobile.rs index 99d4efdb07bb..44bd177fb51f 100644 --- a/core/tauri-macros/src/mobile.rs +++ b/core/tauri-macros/src/mobile.rs @@ -19,10 +19,7 @@ fn get_env_var String>( error.replace( syn::Error::new( function.span(), - format!( - "`{}` env var not set, do you have a build script with tauri-build?", - name, - ), + format!("`{name}` env var not set, do you have a build script with tauri-build?",), ) .into_compile_error(), ); diff --git a/core/tauri-runtime-wry/build.rs b/core/tauri-runtime-wry/build.rs index f8d92f3f750d..c0ac84b7f2c2 100644 --- a/core/tauri-runtime-wry/build.rs +++ b/core/tauri-runtime-wry/build.rs @@ -6,7 +6,7 @@ // `alias` must be a snake case string. fn alias(alias: &str, has_feature: bool) { if has_feature { - println!("cargo:rustc-cfg={}", alias); + println!("cargo:rustc-cfg={alias}"); } } diff --git a/core/tauri-runtime/build.rs b/core/tauri-runtime/build.rs index f8d92f3f750d..c0ac84b7f2c2 100644 --- a/core/tauri-runtime/build.rs +++ b/core/tauri-runtime/build.rs @@ -6,7 +6,7 @@ // `alias` must be a snake case string. fn alias(alias: &str, has_feature: bool) { if has_feature { - println!("cargo:rustc-cfg={}", alias); + println!("cargo:rustc-cfg={alias}"); } } diff --git a/core/tauri-utils/src/config.rs b/core/tauri-utils/src/config.rs index 5650b2c64e4f..6ae0deb36e3c 100644 --- a/core/tauri-utils/src/config.rs +++ b/core/tauri-utils/src/config.rs @@ -55,7 +55,7 @@ pub enum WindowUrl { impl fmt::Display for WindowUrl { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { - Self::External(url) => write!(f, "{}", url), + Self::External(url) => write!(f, "{url}"), Self::App(path) => write!(f, "{}", path.display()), } } @@ -125,7 +125,7 @@ impl<'de> Deserialize<'de> for BundleType { "app" => Ok(Self::App), "dmg" => Ok(Self::Dmg), "updater" => Ok(Self::Updater), - _ => Err(DeError::custom(format!("unknown bundle target '{}'", s))), + _ => Err(DeError::custom(format!("unknown bundle target '{s}'"))), } } } @@ -223,7 +223,7 @@ impl<'de> Deserialize<'de> for BundleTarget { match BundleTargetInner::deserialize(deserializer)? { BundleTargetInner::All(s) if s.to_lowercase() == "all" => Ok(Self::All), - BundleTargetInner::All(t) => Err(DeError::custom(format!("invalid bundle type {}", t))), + BundleTargetInner::All(t) => Err(DeError::custom(format!("invalid bundle type {t}"))), BundleTargetInner::List(l) => Ok(Self::List(l)), BundleTargetInner::One(t) => Ok(Self::One(t)), } @@ -988,7 +988,7 @@ impl CspDirectiveSources { /// Whether the given source is configured on this directive or not. pub fn contains(&self, source: &str) -> bool { match self { - Self::Inline(s) => s.contains(&format!("{} ", source)) || s.contains(&format!(" {}", source)), + Self::Inline(s) => s.contains(&format!("{source} ")) || s.contains(&format!(" {source}")), Self::List(l) => l.contains(&source.into()), } } @@ -1054,7 +1054,7 @@ impl From for HashMap { impl Display for Csp { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { - Self::Policy(s) => write!(f, "{}", s), + Self::Policy(s) => write!(f, "{s}"), Self::DirectiveMap(m) => { let len = m.len(); let mut i = 0; @@ -2349,8 +2349,7 @@ impl<'de> Deserialize<'de> for WindowsUpdateInstallMode { "quiet" => Ok(Self::Quiet), "passive" => Ok(Self::Passive), _ => Err(DeError::custom(format!( - "unknown update install mode '{}'", - s + "unknown update install mode '{s}'" ))), } } @@ -2506,7 +2505,7 @@ pub enum AppUrl { impl std::fmt::Display for AppUrl { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Self::Url(url) => write!(f, "{}", url), + Self::Url(url) => write!(f, "{url}"), Self::Files(files) => write!(f, "{}", serde_json::to_string(files).unwrap()), } } @@ -2645,9 +2644,9 @@ impl<'d> serde::Deserialize<'d> for PackageVersion { let path = PathBuf::from(value); if path.exists() { let json_str = read_to_string(&path) - .map_err(|e| DeError::custom(format!("failed to read version JSON file: {}", e)))?; + .map_err(|e| DeError::custom(format!("failed to read version JSON file: {e}")))?; let package_json: serde_json::Value = serde_json::from_str(&json_str) - .map_err(|e| DeError::custom(format!("failed to read version JSON file: {}", e)))?; + .map_err(|e| DeError::custom(format!("failed to read version JSON file: {e}")))?; if let Some(obj) = package_json.as_object() { let version = obj .get("version") diff --git a/core/tauri-utils/src/html.rs b/core/tauri-utils/src/html.rs index b8744261b811..77bc8b800d28 100644 --- a/core/tauri-utils/src/html.rs +++ b/core/tauri-utils/src/html.rs @@ -37,7 +37,7 @@ fn serialize_node_ref_internal( traversal_scope: TraversalScope, ) -> crate::Result<()> { match (traversal_scope, node.data()) { - (ref scope, &NodeData::Element(ref element)) => { + (ref scope, NodeData::Element(element)) => { if *scope == TraversalScope::IncludeNode { let attrs = element.attributes.borrow(); @@ -82,16 +82,16 @@ fn serialize_node_ref_internal( (TraversalScope::ChildrenOnly(_), _) => Ok(()), - (TraversalScope::IncludeNode, &NodeData::Doctype(ref doctype)) => { + (TraversalScope::IncludeNode, NodeData::Doctype(doctype)) => { serializer.write_doctype(&doctype.name).map_err(Into::into) } - (TraversalScope::IncludeNode, &NodeData::Text(ref text)) => { + (TraversalScope::IncludeNode, NodeData::Text(text)) => { serializer.write_text(&text.borrow()).map_err(Into::into) } - (TraversalScope::IncludeNode, &NodeData::Comment(ref text)) => { + (TraversalScope::IncludeNode, NodeData::Comment(text)) => { serializer.write_comment(&text.borrow()).map_err(Into::into) } - (TraversalScope::IncludeNode, &NodeData::ProcessingInstruction(ref contents)) => { + (TraversalScope::IncludeNode, NodeData::ProcessingInstruction(contents)) => { let contents = contents.borrow(); serializer .write_processing_instruction(&contents.0, &contents.1) diff --git a/core/tauri-utils/src/mime_type.rs b/core/tauri-utils/src/mime_type.rs index be2471ea9534..60bd08f0e00c 100644 --- a/core/tauri-utils/src/mime_type.rs +++ b/core/tauri-utils/src/mime_type.rs @@ -39,7 +39,7 @@ impl std::fmt::Display for MimeType { MimeType::Svg => "image/svg+xml", MimeType::Mp4 => "video/mp4", }; - write!(f, "{}", mime) + write!(f, "{mime}") } } diff --git a/core/tauri-utils/src/platform.rs b/core/tauri-utils/src/platform.rs index 96614ffa21d3..d16f275e8b7f 100644 --- a/core/tauri-utils/src/platform.rs +++ b/core/tauri-utils/src/platform.rs @@ -133,10 +133,10 @@ pub fn target_triple() -> crate::Result { return Err(crate::Error::Environment); }; - format!("{}-{}", os, env) + format!("{os}-{env}") }; - Ok(format!("{}-{}", arch, os)) + Ok(format!("{arch}-{os}")) } /// Computes the resource directory of the current environment. @@ -157,8 +157,8 @@ pub fn resource_dir(package_info: &PackageInfo, env: &Env) -> crate::Result bool { // `alias` must be a snake case string. fn alias(alias: &str, has_feature: bool) { if has_feature { - println!("cargo:rustc-cfg={}", alias); + println!("cargo:rustc-cfg={alias}"); } } @@ -136,8 +136,8 @@ fn main() { let checked_features_out_path = Path::new(&std::env::var("OUT_DIR").unwrap()).join("checked_features"); std::fs::write( - &checked_features_out_path, - &CHECKED_FEATURES.get().unwrap().lock().unwrap().join(","), + checked_features_out_path, + CHECKED_FEATURES.get().unwrap().lock().unwrap().join(","), ) .expect("failed to write checked_features file"); } @@ -152,14 +152,14 @@ fn main() { // // Note that both `module` and `apis` strings must be written in kebab case. fn alias_module(module: &str, apis: &[&str], api_all: bool) { - let all_feature_name = format!("{}-all", module); + let all_feature_name = format!("{module}-all"); let all = has_feature(&all_feature_name) || api_all; alias(&all_feature_name.to_snake_case(), all); let mut any = all; for api in apis { - let has = has_feature(&format!("{}-{}", module, api)) || all; + let has = has_feature(&format!("{module}-{api}")) || all; alias( &format!("{}_{}", AsSnakeCase(module), AsSnakeCase(api)), has, diff --git a/core/tauri/src/api/dir.rs b/core/tauri/src/api/dir.rs index 771a8925e2b0..77aa2323a095 100644 --- a/core/tauri/src/api/dir.rs +++ b/core/tauri/src/api/dir.rs @@ -226,7 +226,7 @@ mod test { fn check_test_dir() { // create a callback closure that takes in a TempDir type and prints it. let callback = |td: &tempfile::TempDir| { - println!("{:?}", td); + println!("{td:?}"); }; // execute the with_temp_dir function on the callback diff --git a/core/tauri/src/api/file/extract.rs b/core/tauri/src/api/file/extract.rs index 28e2ad9a472a..9e2eb76e8b3a 100644 --- a/core/tauri/src/api/file/extract.rs +++ b/core/tauri/src/api/file/extract.rs @@ -150,7 +150,7 @@ impl<'a, R: std::fmt::Debug + Read + Seek> std::fmt::Debug for Extract<'a, R> { impl<'a, R: Read + Seek> Extract<'a, R> { /// Create archive from reader. pub fn from_cursor(mut reader: R, archive_format: ArchiveFormat) -> Extract<'a, R> { - if reader.seek(io::SeekFrom::Start(0)).is_err() { + if reader.rewind().is_err() { #[cfg(debug_assertions)] eprintln!("Could not seek to start of the file"); } @@ -245,7 +245,7 @@ impl<'a, R: Read + Seek> Extract<'a, R> { // such as: τê▒Σ║ñµÿô.app/, that does not work as expected. // Here we require the file name must be a valid UTF-8. let file_name = String::from_utf8(file.name_raw().to_vec())?; - let out_path = into_dir.join(&file_name); + let out_path = into_dir.join(file_name); if file.is_dir() { fs::create_dir_all(&out_path)?; } else { diff --git a/core/tauri/src/api/http.rs b/core/tauri/src/api/http.rs index 70ab403882b8..7b9614c19159 100644 --- a/core/tauri/src/api/http.rs +++ b/core/tauri/src/api/http.rs @@ -368,7 +368,7 @@ impl TryFrom for Vec { type Error = crate::api::Error; fn try_from(file: FilePart) -> crate::api::Result { let bytes = match file { - FilePart::Path(path) => std::fs::read(&path)?, + FilePart::Path(path) => std::fs::read(path)?, FilePart::Contents(bytes) => bytes, }; Ok(bytes) @@ -441,8 +441,7 @@ impl<'de> Deserialize<'de> for HeaderMap { headers.insert(key, value); } else { return Err(serde::de::Error::custom(format!( - "invalid header `{}` `{}`", - key, value + "invalid header `{key}` `{value}`" ))); } } @@ -662,7 +661,7 @@ impl Response { let data = match self.0 { ResponseType::Json => self.1.json()?, ResponseType::Text => Value::String(self.1.text()?), - ResponseType::Binary => serde_json::to_value(&self.1.bytes()?)?, + ResponseType::Binary => serde_json::to_value(self.1.bytes()?)?, }; Ok(ResponseData { diff --git a/core/tauri/src/api/ipc.rs b/core/tauri/src/api/ipc.rs index cbffb02e0957..f09be323287f 100644 --- a/core/tauri/src/api/ipc.rs +++ b/core/tauri/src/api/ipc.rs @@ -242,22 +242,22 @@ mod test { } let raw_str = "T".repeat(MIN_JSON_PARSE_LEN); - assert_eq!(serialize_js(&raw_str).unwrap(), format!("\"{}\"", raw_str)); + assert_eq!(serialize_js(&raw_str).unwrap(), format!("\"{raw_str}\"")); assert_eq!( serialize_js(&JsonObj { value: raw_str.clone() }) .unwrap(), - format!("JSON.parse('{{\"value\":\"{}\"}}')", raw_str) + format!("JSON.parse('{{\"value\":\"{raw_str}\"}}')") ); assert_eq!( serialize_js(&JsonObj { - value: format!("\"{}\"", raw_str) + value: format!("\"{raw_str}\"") }) .unwrap(), - format!("JSON.parse('{{\"value\":\"\\\\\"{}\\\\\"\"}}')", raw_str) + format!("JSON.parse('{{\"value\":\"\\\\\"{raw_str}\\\\\"\"}}')") ); let dangerous_json = RawValue::from_string( diff --git a/core/tauri/src/api/shell.rs b/core/tauri/src/api/shell.rs index 9353e2f3f2b2..6ca16cc75bf2 100644 --- a/core/tauri/src/api/shell.rs +++ b/core/tauri/src/api/shell.rs @@ -112,5 +112,5 @@ pub fn open>( ) -> crate::api::Result<()> { scope .open(path.as_ref(), with) - .map_err(|err| crate::api::Error::Shell(format!("failed to open: {}", err))) + .map_err(|err| crate::api::Error::Shell(format!("failed to open: {err}"))) } diff --git a/core/tauri/src/app.rs b/core/tauri/src/app.rs index b834284d9ee6..22463efa9789 100644 --- a/core/tauri/src/app.rs +++ b/core/tauri/src/app.rs @@ -868,7 +868,7 @@ impl App { self.runtime.take().unwrap().run(move |event| match event { RuntimeRunEvent::Ready => { if let Err(e) = setup(&mut self) { - panic!("Failed to setup app: {}", e); + panic!("Failed to setup app: {e}"); } on_event_loop_event( &app_handle, @@ -1290,8 +1290,7 @@ impl Builder { let type_name = std::any::type_name::(); assert!( self.state.set(state), - "state for type '{}' is already being managed", - type_name + "state for type '{type_name}' is already being managed", ); self } diff --git a/core/tauri/src/endpoints.rs b/core/tauri/src/endpoints.rs index 9dd2ca974895..b776d813f500 100644 --- a/core/tauri/src/endpoints.rs +++ b/core/tauri/src/endpoints.rs @@ -238,8 +238,7 @@ pub(crate) fn handle( if let Some(unknown_variant_name) = s.next() { if unknown_variant_name == module { return resolver.reject(format!( - "The `{}` module is not enabled. You must enable one of its APIs in the allowlist.", - module + "The `{module}` module is not enabled. You must enable one of its APIs in the allowlist.", )); } else if module == "Window" { return resolver.reject(window::into_allowlist_error(unknown_variant_name).to_string()); diff --git a/core/tauri/src/endpoints/event.rs b/core/tauri/src/endpoints/event.rs index 6d21d9316b07..8dd42f7af7b3 100644 --- a/core/tauri/src/endpoints/event.rs +++ b/core/tauri/src/endpoints/event.rs @@ -138,7 +138,7 @@ impl Cmd { serde_json::to_string(&p) .map_err(|e| { #[cfg(debug_assertions)] - eprintln!("{}", e); + eprintln!("{e}"); e }) .ok() diff --git a/core/tauri/src/endpoints/shell.rs b/core/tauri/src/endpoints/shell.rs index 57aaf7db9165..c85168549df9 100644 --- a/core/tauri/src/endpoints/shell.rs +++ b/core/tauri/src/endpoints/shell.rs @@ -135,7 +135,7 @@ impl Cmd { Ok(cmd) => cmd, Err(e) => { #[cfg(debug_assertions)] - eprintln!("{}", e); + eprintln!("{e}"); return Err(crate::Error::ProgramNotAllowed(PathBuf::from(program)).into_anyhow()); } } @@ -154,7 +154,7 @@ impl Cmd { if let Some(encoding) = crate::api::process::Encoding::for_label(encoding.as_bytes()) { command = command.encoding(encoding); } else { - return Err(anyhow::anyhow!(format!("unknown encoding {}", encoding))); + return Err(anyhow::anyhow!(format!("unknown encoding {encoding}"))); } } let (mut rx, child) = command.spawn()?; diff --git a/core/tauri/src/event.rs b/core/tauri/src/event.rs index d19fed996eb7..1605be2bc2ba 100644 --- a/core/tauri/src/event.rs +++ b/core/tauri/src/event.rs @@ -232,7 +232,7 @@ mod test { // dummy event handler function fn event_fn(s: Event) { - println!("{:?}", s); + println!("{s:?}"); } proptest! { @@ -304,18 +304,15 @@ pub fn unlisten_js(listeners_object_name: String, event_name: String, event_id: format!( " (function () {{ - const listeners = (window['{listeners}'] || {{}})['{event_name}'] + const listeners = (window['{listeners_object_name}'] || {{}})['{event_name}'] if (listeners) {{ - const index = window['{listeners}']['{event_name}'].findIndex(e => e.id === {event_id}) + const index = window['{listeners_object_name}']['{event_name}'].findIndex(e => e.id === {event_id}) if (index > -1) {{ - window['{listeners}']['{event_name}'].splice(index, 1) + window['{listeners_object_name}']['{event_name}'].splice(index, 1) }} }} }})() ", - listeners = listeners_object_name, - event_name = event_name, - event_id = event_id, ) } @@ -353,7 +350,7 @@ pub fn listen_js( event_id = event_id, window_label = if let Some(l) = window_label { crate::runtime::window::assert_label_is_valid(&l); - format!("'{}'", l) + format!("'{l}'") } else { "null".to_owned() }, diff --git a/core/tauri/src/hooks.rs b/core/tauri/src/hooks.rs index 8d992b770af2..bd2337d69c7a 100644 --- a/core/tauri/src/hooks.rs +++ b/core/tauri/src/hooks.rs @@ -99,7 +99,7 @@ impl InvokeError { /// Create an [`InvokeError`] as a string of the [`anyhow::Error`] message. #[inline(always)] pub fn from_anyhow(error: anyhow::Error) -> Self { - Self(JsonValue::String(format!("{:#}", error))) + Self(JsonValue::String(format!("{error:#}"))) } } diff --git a/core/tauri/src/lib.rs b/core/tauri/src/lib.rs index f4b430a3209f..e14b1bd5c177 100644 --- a/core/tauri/src/lib.rs +++ b/core/tauri/src/lib.rs @@ -470,8 +470,7 @@ impl TryFrom for runtime::Icon { }) } _ => panic!( - "image `{}` extension not supported; please file a Tauri feature request. `png` or `ico` icons are supported with the `icon-png` and `icon-ico` feature flags", - extension + "image `{extension}` extension not supported; please file a Tauri feature request. `png` or `ico` icons are supported with the `icon-png` and `icon-ico` feature flags" ), } } @@ -875,8 +874,8 @@ mod tests { let lib_code = read_to_string(manifest_dir.join("src/lib.rs")).expect("failed to read lib.rs"); for f in get_manifest().features.keys() { - if !(f.starts_with("__") || f == "default" || lib_code.contains(&format!("*{}**", f))) { - panic!("Feature {} is not documented", f); + if !(f.starts_with("__") || f == "default" || lib_code.contains(&format!("*{f}**"))) { + panic!("Feature {f} is not documented"); } } } @@ -888,8 +887,7 @@ mod tests { for checked_feature in checked_features { if !manifest.features.iter().any(|(f, _)| f == checked_feature) { panic!( - "Feature {} was checked in the alias build step but it does not exist in core/tauri/Cargo.toml", - checked_feature + "Feature {checked_feature} was checked in the alias build step but it does not exist in core/tauri/Cargo.toml" ); } } @@ -925,24 +923,21 @@ mod tests { let module = module_all_feature.replace("-all", ""); assert!( checked_features.contains(&module_all_feature.as_str()), - "`{}` is not aliased", - module + "`{module}` is not aliased" ); - let module_prefix = format!("{}-", module); + let module_prefix = format!("{module}-"); // we assume that module features are the ones that start with `-` // though it's not 100% accurate, we have an allowed list to fix it let module_features = manifest .features - .iter() - .map(|(f, _)| f) + .keys() .filter(|f| f.starts_with(&module_prefix)); for module_feature in module_features { assert!( allowed.contains(&module_feature.as_str()) || checked_features.contains(&module_feature.as_str()), - "`{}` is not aliased", - module_feature + "`{module_feature}` is not aliased" ); } } @@ -970,7 +965,7 @@ mod test_utils { fn check_spawn_task(task in "[a-z]+") { // create dummy task function let dummy_task = async move { - format!("{}-run-dummy-task", task); + format!("{task}-run-dummy-task"); }; // call spawn crate::async_runtime::spawn(dummy_task); diff --git a/core/tauri/src/manager.rs b/core/tauri/src/manager.rs index c4f2df46ba23..35a40c2e85cb 100644 --- a/core/tauri/src/manager.rs +++ b/core/tauri/src/manager.rs @@ -179,7 +179,7 @@ fn replace_csp_nonce( if !(nonces.is_empty() && hashes.is_empty()) { let nonce_sources = nonces .into_iter() - .map(|n| format!("'nonce-{}'", n)) + .map(|n| format!("'nonce-{n}'")) .collect::>(); let sources = csp.entry(directive.into()).or_insert_with(Default::default); let self_source = "'self'".to_string(); @@ -487,7 +487,7 @@ impl WindowManager { window_url.scheme(), window_url.host().unwrap(), if let Some(port) = window_url.port() { - format!(":{}", port) + format!(":{port}") } else { "".into() } @@ -713,8 +713,8 @@ impl WindowManager { } = &self.inner.pattern { let assets = assets.clone(); - let schema_ = schema.clone(); - let url_base = format!("{}://localhost", schema_); + let _schema_ = schema.clone(); + let url_base = format!("{schema}://localhost"); let aes_gcm_key = *crypto_keys.aes_gcm().raw(); pending.register_uri_scheme_protocol(schema, move |request| { @@ -813,7 +813,7 @@ impl WindowManager { let asset_response = assets .get(&path.as_str().into()) .or_else(|| { - eprintln!("Asset `{}` not found; fallback to {}.html", path, path); + eprintln!("Asset `{path}` not found; fallback to {path}.html"); let fallback = format!("{}.html", path.as_str()).into(); let asset = assets.get(&fallback); asset_path = fallback; @@ -1500,8 +1500,7 @@ fn on_window_event( let windows = windows_map.values(); for window in windows { window.eval(&format!( - r#"(function () {{ const metadata = window.__TAURI_METADATA__; if (metadata != null) {{ metadata.__windows = window.__TAURI_METADATA__.__windows.filter(w => w.label !== "{}"); }} }})()"#, - label + r#"(function () {{ const metadata = window.__TAURI_METADATA__; if (metadata != null) {{ metadata.__windows = window.__TAURI_METADATA__.__windows.filter(w => w.label !== "{label}"); }} }})()"#, ))?; } } diff --git a/core/tauri/src/pattern.rs b/core/tauri/src/pattern.rs index fa86ad7535f9..25bd1da4f241 100644 --- a/core/tauri/src/pattern.rs +++ b/core/tauri/src/pattern.rs @@ -87,8 +87,8 @@ pub(crate) struct PatternJavascript { #[allow(dead_code)] pub(crate) fn format_real_schema(schema: &str) -> String { if cfg!(windows) || cfg!(target_os = "android") { - format!("https://{}.localhost", schema) + format!("https://{schema}.localhost") } else { - format!("{}://localhost", schema) + format!("{schema}://localhost") } } diff --git a/core/tauri/src/plugin.rs b/core/tauri/src/plugin.rs index d7aac7b8c912..6c42d9927d98 100644 --- a/core/tauri/src/plugin.rs +++ b/core/tauri/src/plugin.rs @@ -545,7 +545,7 @@ impl PluginStore { .values() .filter_map(|p| p.initialization_script()) .fold(String::new(), |acc, script| { - format!("{}\n(function () {{ {} }})();", acc, script) + format!("{acc}\n(function () {{ {script} }})();") }) } @@ -586,9 +586,7 @@ impl PluginStore { .unwrap_or_else(String::new); plugin.extend_api(invoke); } else { - invoke - .resolver - .reject(format!("plugin {} not found", target)); + invoke.resolver.reject(format!("plugin {target} not found")); } } } diff --git a/core/tauri/src/scope/http.rs b/core/tauri/src/scope/http.rs index 627b96d17cb7..e96eb5831a00 100644 --- a/core/tauri/src/scope/http.rs +++ b/core/tauri/src/scope/http.rs @@ -21,7 +21,7 @@ impl Scope { .iter() .map(|url| { glob::Pattern::new(url.as_str()) - .unwrap_or_else(|_| panic!("scoped URL is not a valid glob pattern: `{}`", url)) + .unwrap_or_else(|_| panic!("scoped URL is not a valid glob pattern: `{url}`")) }) .collect(), } diff --git a/core/tauri/src/updater/core.rs b/core/tauri/src/updater/core.rs index 57085bcfdc01..e263ccd7c636 100644 --- a/core/tauri/src/updater/core.rs +++ b/core/tauri/src/updater/core.rs @@ -96,7 +96,7 @@ impl<'de> Deserialize<'de> for RemoteRelease { let pub_date = if let Some(date) = release.pub_date { Some( OffsetDateTime::parse(&date, &time::format_description::well_known::Rfc3339) - .map_err(|e| DeError::custom(format!("invalid value for `pub_date`: {}", e)))?, + .map_err(|e| DeError::custom(format!("invalid value for `pub_date`: {e}")))?, ) } else { None @@ -336,7 +336,7 @@ impl UpdateBuilder { (target.clone(), target) } else { let target = get_updater_target().ok_or(Error::UnsupportedOs)?; - (target.to_string(), format!("{}-{}", target, arch)) + (target.to_string(), format!("{target}-{arch}")) }; // Get the extract_path from the provided executable_path @@ -1049,14 +1049,13 @@ mod test { format!( r#" {{ - "name": "v{}", + "name": "v{version}", "notes": "This is the latest version! Once updated you shouldn't see this prompt.", "pub_date": "2020-06-25T14:14:19Z", - "signature": "{}", - "url": "{}" + "signature": "{public_signature}", + "url": "{download_url}" }} - "#, - version, public_signature, download_url + "# ) } @@ -1069,15 +1068,14 @@ mod test { format!( r#" {{ - "name": "v{}", + "name": "v{version}", "notes": "This is the latest version! Once updated you shouldn't see this prompt.", "pub_date": "2020-06-25T14:14:19Z", - "signature": "{}", - "url": "{}", - "with_elevated_task": {} + "signature": "{public_signature}", + "url": "{download_url}", + "with_elevated_task": {with_elevated_task} }} - "#, - version, public_signature, download_url, with_elevated_task + "# ) } @@ -1515,7 +1513,7 @@ mod test { }"#; fn missing_field_error(field: &str) -> String { - format!("the `{}` field was not set on the updater response", field) + format!("the `{field}` field was not set on the updater response") } let test_cases = [ @@ -1547,7 +1545,7 @@ mod test { .target("test-target") .build()); if let Err(e) = check_update { - println!("ERROR: {}, expected: {}", e, error); + println!("ERROR: {e}, expected: {error}"); assert!(e.to_string().contains(&error)); } else { panic!("unexpected Ok response"); diff --git a/core/tauri/src/updater/mod.rs b/core/tauri/src/updater/mod.rs index e235d8e49dc8..240c06bc8a0c 100644 --- a/core/tauri/src/updater/mod.rs +++ b/core/tauri/src/updater/mod.rs @@ -109,7 +109,7 @@ pub const EVENT_STATUS_UPTODATE: &str = "UPTODATE"; /// Gets the target string used on the updater. pub fn target() -> Option { if let (Some(target), Some(arch)) = (core::get_updater_target(), core::get_updater_arch()) { - Some(format!("{}-{}", target, arch)) + Some(format!("{target}-{arch}")) } else { None } @@ -565,7 +565,7 @@ async fn prompt_for_install( // something more conventional. let should_install = ask( parent_window, - format!(r#"A new version of {} is available! "#, app_name), + format!(r#"A new version of {app_name} is available! "#), format!( r#"{} {} is now available -- you have {}. diff --git a/core/tests/app-updater/src/main.rs b/core/tests/app-updater/src/main.rs index d957fa1fd235..f0ffd2a758a3 100644 --- a/core/tests/app-updater/src/main.rs +++ b/core/tests/app-updater/src/main.rs @@ -15,13 +15,13 @@ fn main() { match handle.updater().check().await { Ok(update) => { if let Err(e) = update.download_and_install().await { - println!("{}", e); + println!("{e}"); std::process::exit(1); } std::process::exit(0); } Err(e) => { - println!("{}", e); + println!("{e}"); std::process::exit(1); } } diff --git a/core/tests/app-updater/tests/update.rs b/core/tests/app-updater/tests/update.rs index 0f38abece5c9..c7b147cdc833 100644 --- a/core/tests/app-updater/tests/update.rs +++ b/core/tests/app-updater/tests/update.rs @@ -55,12 +55,12 @@ fn get_cli_bin_path(cli_dir: &Path, debug: bool) -> Option { } fn build_app(cli_bin_path: &Path, cwd: &Path, config: &Config, bundle_updater: bool) { - let mut command = Command::new(&cli_bin_path); + let mut command = Command::new(cli_bin_path); command .args(["build", "--debug", "--verbose"]) .arg("--config") .arg(serde_json::to_string(config).unwrap()) - .current_dir(&cwd); + .current_dir(cwd); #[cfg(windows)] command.args(["--bundles", "msi"]); @@ -88,8 +88,7 @@ fn build_app(cli_bin_path: &Path, cwd: &Path, config: &Config, bundle_updater: b #[cfg(target_os = "linux")] fn bundle_path(root_dir: &Path, version: &str) -> PathBuf { root_dir.join(format!( - "target/debug/bundle/appimage/app-updater_{}_amd64.AppImage", - version + "target/debug/bundle/appimage/app-updater_{version}_amd64.AppImage" )) } diff --git a/core/tests/restart/src/main.rs b/core/tests/restart/src/main.rs index 3a6848c57537..b03243562afe 100644 --- a/core/tests/restart/src/main.rs +++ b/core/tests/restart/src/main.rs @@ -24,7 +24,7 @@ fn main() { env.args.clear(); tauri::api::process::restart(&env) } - Some(invalid) => panic!("only argument `restart` is allowed, {} is invalid", invalid), + Some(invalid) => panic!("only argument `restart` is allowed, {invalid} is invalid"), None => {} }; } diff --git a/core/tests/restart/tests/restart.rs b/core/tests/restart/tests/restart.rs index 3a6662ec1e20..db458a4ebaa8 100644 --- a/core/tests/restart/tests/restart.rs +++ b/core/tests/restart/tests/restart.rs @@ -32,7 +32,7 @@ fn symlink_runner(create_symlinks: impl Fn(&Path) -> io::Result) -> Res if cfg!(windows) { compiled_binary.set_extension("exe"); } - println!("{:?}", compiled_binary); + println!("{compiled_binary:?}"); // set up all the temporary file paths let temp = tempfile::TempDir::new()?; diff --git a/examples/commands/commands.rs b/examples/commands/commands.rs index 3689569c88ef..f9c1c4442d24 100644 --- a/examples/commands/commands.rs +++ b/examples/commands/commands.rs @@ -18,7 +18,7 @@ pub fn resolver(_argument: String) {} #[command] pub fn simple_command(the_argument: String) { - println!("{}", the_argument); + println!("{the_argument}"); } #[command] diff --git a/examples/commands/main.rs b/examples/commands/main.rs index 5821eacfad4b..81409d4011a9 100644 --- a/examples/commands/main.rs +++ b/examples/commands/main.rs @@ -37,12 +37,12 @@ fn window_label(window: Window) { #[command] async fn async_simple_command(the_argument: String) { - println!("{}", the_argument); + println!("{the_argument}"); } #[command(rename_all = "snake_case")] async fn async_simple_command_snake(the_argument: String) { - println!("{}", the_argument); + println!("{the_argument}"); } #[command] @@ -57,7 +57,7 @@ async fn async_stateful_command( #[command(async)] fn future_simple_command(the_argument: String) -> impl std::future::Future { - println!("{}", the_argument); + println!("{the_argument}"); std::future::ready(()) } @@ -65,7 +65,7 @@ fn future_simple_command(the_argument: String) -> impl std::future::Future impl std::future::Future { - println!("{}", the_argument); + println!("{the_argument}"); std::future::ready(the_argument) } @@ -73,7 +73,7 @@ fn future_simple_command_with_return( fn future_simple_command_with_result( the_argument: String, ) -> impl std::future::Future> { - println!("{}", the_argument); + println!("{the_argument}"); std::future::ready(Ok(the_argument)) } @@ -93,7 +93,7 @@ fn force_async_with_result(the_argument: &str) -> Result<&str, MyError> { #[command(async, rename_all = "snake_case")] fn future_simple_command_snake(the_argument: String) -> impl std::future::Future { - println!("{}", the_argument); + println!("{the_argument}"); std::future::ready(()) } @@ -101,7 +101,7 @@ fn future_simple_command_snake(the_argument: String) -> impl std::future::Future fn future_simple_command_with_return_snake( the_argument: String, ) -> impl std::future::Future { - println!("{}", the_argument); + println!("{the_argument}"); std::future::ready(the_argument) } @@ -109,7 +109,7 @@ fn future_simple_command_with_return_snake( fn future_simple_command_with_result_snake( the_argument: String, ) -> impl std::future::Future> { - println!("{}", the_argument); + println!("{the_argument}"); std::future::ready(Ok(the_argument)) } @@ -129,7 +129,7 @@ fn force_async_with_result_snake(the_argument: &str) -> Result<&str, MyError> { #[command] fn simple_command_with_result(the_argument: String) -> Result { - println!("{}", the_argument); + println!("{the_argument}"); (!the_argument.is_empty()) .then(|| the_argument) .ok_or(MyError::FooError) @@ -148,7 +148,7 @@ fn stateful_command_with_result( #[command(rename_all = "snake_case")] fn simple_command_with_result_snake(the_argument: String) -> Result { - println!("{}", the_argument); + println!("{the_argument}"); (!the_argument.is_empty()) .then(|| the_argument) .ok_or(MyError::FooError) @@ -167,7 +167,7 @@ fn stateful_command_with_result_snake( #[command] async fn async_simple_command_with_result(the_argument: String) -> Result { - println!("{}", the_argument); + println!("{the_argument}"); Ok(the_argument) } @@ -195,7 +195,7 @@ struct Person<'a> { #[command] fn command_arguments_struct(Person { name, age }: Person<'_>) { - println!("received person struct with name: {} | age: {}", name, age) + println!("received person struct with name: {name} | age: {age}") } #[derive(Deserialize)] @@ -203,7 +203,7 @@ struct InlinePerson<'a>(&'a str, u8); #[command] fn command_arguments_tuple_struct(InlinePerson(name, age): InlinePerson<'_>) { - println!("received person tuple with name: {} | age: {}", name, age) + println!("received person tuple with name: {name} | age: {age}") } #[command] diff --git a/examples/multiwindow/main.rs b/examples/multiwindow/main.rs index ae3a09ac5e90..3b5c98c7fa6d 100644 --- a/examples/multiwindow/main.rs +++ b/examples/multiwindow/main.rs @@ -14,7 +14,7 @@ fn main() { .on_page_load(|window, _payload| { let label = window.label().to_string(); window.listen("clicked".to_string(), move |_payload| { - println!("got 'clicked' event on window '{}'", label); + println!("got 'clicked' event on window '{label}'"); }); }) .setup(|app| { diff --git a/examples/parent-window/main.rs b/examples/parent-window/main.rs index 5cd0e7012f4c..835f7a43f7f0 100644 --- a/examples/parent-window/main.rs +++ b/examples/parent-window/main.rs @@ -28,7 +28,7 @@ fn main() { .on_page_load(|window, _payload| { let label = window.label().to_string(); window.listen("clicked".to_string(), move |_payload| { - println!("got 'clicked' event on window '{}'", label); + println!("got 'clicked' event on window '{label}'"); }); }) .invoke_handler(tauri::generate_handler![create_child_window]) diff --git a/examples/streaming/main.rs b/examples/streaming/main.rs index 4dc479fea86e..56e72d046ab5 100644 --- a/examples/streaming/main.rs +++ b/examples/streaming/main.rs @@ -23,7 +23,7 @@ fn main() { if !video_file.exists() { // Downloading with curl this saves us from adding // a Rust HTTP client dependency. - println!("Downloading {}", video_url); + println!("Downloading {video_url}"); let status = Command::new("curl") .arg("-L") .arg("-o") diff --git a/tooling/bundler/src/bundle/linux/debian.rs b/tooling/bundler/src/bundle/linux/debian.rs index 826a79f8b527..8c8b436849fb 100644 --- a/tooling/bundler/src/bundle/linux/debian.rs +++ b/tooling/bundler/src/bundle/linux/debian.rs @@ -117,7 +117,7 @@ pub fn generate_data( for bin in settings.binaries() { let bin_path = settings.binary_path(bin); - common::copy_file(&bin_path, &bin_dir.join(bin.name())) + common::copy_file(&bin_path, bin_dir.join(bin.name())) .with_context(|| format!("Failed to copy binary from {:?}", bin_path))?; } diff --git a/tooling/bundler/src/bundle/path_utils.rs b/tooling/bundler/src/bundle/path_utils.rs index efde257c26bb..f3c550464157 100644 --- a/tooling/bundler/src/bundle/path_utils.rs +++ b/tooling/bundler/src/bundle/path_utils.rs @@ -206,7 +206,10 @@ where let mut work = true; while work { - result_copy = copy_file(&file, &path, &file_options); + #[allow(clippy::needless_borrow)] + { + result_copy = copy_file(&file, &path, &file_options); + } match result_copy { Ok(val) => { result += val; diff --git a/tooling/bundler/src/bundle/settings.rs b/tooling/bundler/src/bundle/settings.rs index 4be02fd935d1..3aff75adb36b 100644 --- a/tooling/bundler/src/bundle/settings.rs +++ b/tooling/bundler/src/bundle/settings.rs @@ -655,7 +655,7 @@ impl Settings { .to_string_lossy() .replace(&format!("-{}", self.target), ""), ); - common::copy_file(&src, &dest)?; + common::copy_file(&src, dest)?; } Ok(()) } @@ -665,7 +665,7 @@ impl Settings { for src in self.resource_files() { let src = src?; let dest = path.join(tauri_utils::resources::resource_relpath(&src)); - common::copy_file(&src, &dest)?; + common::copy_file(&src, dest)?; } Ok(()) } diff --git a/tooling/cli/src/build.rs b/tooling/cli/src/build.rs index 6bf24ac5e6bd..cc85f24e60b6 100644 --- a/tooling/cli/src/build.rs +++ b/tooling/cli/src/build.rs @@ -240,7 +240,7 @@ pub fn setup(options: &mut Options, mobile: bool) -> Result { options.config = merge_config; let tauri_path = tauri_dir(); - set_current_dir(&tauri_path).with_context(|| "failed to change current working directory")?; + set_current_dir(tauri_path).with_context(|| "failed to change current working directory")?; let config = get_config(options.config.as_deref())?; diff --git a/tooling/cli/src/dev.rs b/tooling/cli/src/dev.rs index fcaa8f825c6e..a4e6e399a59e 100644 --- a/tooling/cli/src/dev.rs +++ b/tooling/cli/src/dev.rs @@ -130,7 +130,7 @@ pub fn setup(options: &mut Options, mobile: bool) -> Result { None }; - set_current_dir(&tauri_path).with_context(|| "failed to change current working directory")?; + set_current_dir(tauri_path).with_context(|| "failed to change current working directory")?; let config = get_config(options.config.as_deref())?; diff --git a/tooling/cli/src/helpers/updater_signature.rs b/tooling/cli/src/helpers/updater_signature.rs index 800e4e6ffa9b..d022053dab81 100644 --- a/tooling/cli/src/helpers/updater_signature.rs +++ b/tooling/cli/src/helpers/updater_signature.rs @@ -35,8 +35,8 @@ pub fn generate_key(password: Option) -> crate::Result { let pk_box_str = pk.to_box().unwrap().to_string(); let sk_box_str = sk.to_box(None).unwrap().to_string(); - let encoded_pk = encode(&pk_box_str); - let encoded_sk = encode(&sk_box_str); + let encoded_pk = encode(pk_box_str); + let encoded_sk = encode(sk_box_str); Ok(KeyPair { pk: encoded_pk, @@ -46,7 +46,7 @@ pub fn generate_key(password: Option) -> crate::Result { /// Transform a base64 String to readable string for the main signer pub fn decode_key(base64_key: String) -> crate::Result { - let decoded_str = &decode(&base64_key)?[..]; + let decoded_str = &decode(base64_key)?[..]; Ok(String::from(str::from_utf8(decoded_str)?)) } @@ -128,7 +128,7 @@ where Some("signature from tauri secret key"), )?; - let encoded_signature = encode(&signature_box.to_string()); + let encoded_signature = encode(signature_box.to_string()); signature_box_writer.write_all(encoded_signature.as_bytes())?; signature_box_writer.flush()?; Ok((fs::canonicalize(&signature_path)?, signature_box)) diff --git a/tooling/cli/src/info.rs b/tooling/cli/src/info.rs index b3e99cc0f7c3..8b75901528aa 100644 --- a/tooling/cli/src/info.rs +++ b/tooling/cli/src/info.rs @@ -450,7 +450,7 @@ fn crate_version( v } else if let Some(p) = p.path { let manifest_path = tauri_dir.join(&p).join("Cargo.toml"); - let v = match read_to_string(&manifest_path) + let v = match read_to_string(manifest_path) .map_err(|_| ()) .and_then(|m| toml::from_str::(&m).map_err(|_| ())) { diff --git a/tooling/cli/src/interface/rust.rs b/tooling/cli/src/interface/rust.rs index 5e470282257c..06edad933394 100644 --- a/tooling/cli/src/interface/rust.rs +++ b/tooling/cli/src/interface/rust.rs @@ -654,7 +654,7 @@ impl AppSettings for RustAppSettings { } .into(); - Ok(out_dir.join(bin_name).with_extension(&binary_extension)) + Ok(out_dir.join(bin_name).with_extension(binary_extension)) } fn get_binaries(&self, config: &Config, target: &str) -> crate::Result> { diff --git a/tooling/cli/src/interface/rust/desktop.rs b/tooling/cli/src/interface/rust/desktop.rs index b84c6e5526cf..2ad00feb75c0 100644 --- a/tooling/cli/src/interface/rust/desktop.rs +++ b/tooling/cli/src/interface/rust/desktop.rs @@ -330,7 +330,7 @@ fn build_command( args.push(target); } - let mut build_cmd = Command::new(&runner); + let mut build_cmd = Command::new(runner); build_cmd.arg("build"); build_cmd.args(args); diff --git a/tooling/cli/src/mobile/android/build.rs b/tooling/cli/src/mobile/android/build.rs index fdb99bc9b7d8..8dd66bb6c008 100644 --- a/tooling/cli/src/mobile/android/build.rs +++ b/tooling/cli/src/mobile/android/build.rs @@ -120,7 +120,7 @@ fn run_build( ..Default::default() })?; let out_dir = bin_path.parent().unwrap(); - let _lock = flock::open_rw(&out_dir.join("lock").with_extension("android"), "Android")?; + let _lock = flock::open_rw(out_dir.join("lock").with_extension("android"), "Android")?; let cli_options = CliOptions { features: build_options.features.clone(), diff --git a/tooling/cli/src/mobile/android/dev.rs b/tooling/cli/src/mobile/android/dev.rs index d8ee8e410891..521012c2fbbe 100644 --- a/tooling/cli/src/mobile/android/dev.rs +++ b/tooling/cli/src/mobile/android/dev.rs @@ -104,7 +104,7 @@ fn run_dev( ..Default::default() })?; let out_dir = bin_path.parent().unwrap(); - let _lock = flock::open_rw(&out_dir.join("lock").with_extension("android"), "Android")?; + let _lock = flock::open_rw(out_dir.join("lock").with_extension("android"), "Android")?; let env = env()?; init_dot_cargo(app, Some((&env, config)))?; diff --git a/tooling/cli/src/plugin/init.rs b/tooling/cli/src/plugin/init.rs index 75bd99477047..62eafcc02aee 100644 --- a/tooling/cli/src/plugin/init.rs +++ b/tooling/cli/src/plugin/init.rs @@ -56,7 +56,7 @@ impl Options { pub fn command(mut options: Options) -> Result<()> { options.load(); - let template_target_path = PathBuf::from(options.directory).join(&format!( + let template_target_path = PathBuf::from(options.directory).join(format!( "tauri-plugin-{}", AsKebabCase(&options.plugin_name) )); From 61af5ce1ed07f00c16064aa22c8167f3402ff6e8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 15 Dec 2022 18:32:12 -0300 Subject: [PATCH 109/436] (NEXT) Apply Version Updates From Current Changes (#5814) Co-authored-by: lucasfernog --- .changes/pre.json | 4 ++++ core/tauri/CHANGELOG.md | 7 +++++++ core/tauri/Cargo.toml | 2 +- tooling/cli/CHANGELOG.md | 7 +++++++ tooling/cli/Cargo.lock | 2 +- tooling/cli/Cargo.toml | 7 +++---- tooling/cli/metadata.json | 4 ++-- tooling/cli/node/CHANGELOG.md | 7 +++++++ tooling/cli/node/package.json | 2 +- 9 files changed, 33 insertions(+), 9 deletions(-) diff --git a/.changes/pre.json b/.changes/pre.json index 3ccd37332907..3a03b6487a83 100644 --- a/.changes/pre.json +++ b/.changes/pre.json @@ -7,7 +7,11 @@ ".changes/cli-mobile-dev.md", ".changes/codegen-mobile-devurl.md", ".changes/default-tls-features.md", + ".changes/dev-proxy-response-cache.md", ".changes/dev-proxy.md", + ".changes/fix-dev-server-proxy-path.md", + ".changes/fix-ios-run-xcode14.md", + ".changes/improve-local-ip-detection.md", ".changes/mobile-config.md", ".changes/mobile-entry-point-macro.md", ".changes/mobile-init.md", diff --git a/core/tauri/CHANGELOG.md b/core/tauri/CHANGELOG.md index 731487e9f77c..a543053615d8 100644 --- a/core/tauri/CHANGELOG.md +++ b/core/tauri/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## \[2.0.0-alpha.1] + +- Implement response cache on the dev server proxy, used when the server responds with status 304. + - [3ad5e72f](https://www.github.com/tauri-apps/tauri/commit/3ad5e72ff147b76267c010c778a3b94bba209bb0) feat(core): cache dev server proxy responses for 304 status code ([#5818](https://www.github.com/tauri-apps/tauri/pull/5818)) on 2022-12-12 +- Properly proxy dev server requests with query strings and fragments. + - [a9b4cf20](https://www.github.com/tauri-apps/tauri/commit/a9b4cf20a3e9a5cc984727a56111591504e084c0) fix(core): use entire request URL on dev server proxy ([#5819](https://www.github.com/tauri-apps/tauri/pull/5819)) on 2022-12-12 + ## \[2.0.0-alpha.0] - Added the `default-tls` and `reqwest-default-tls` Cargo features for enabling TLS suppport to connect over HTTPS. diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml index 457f207ea686..7a4d7a5be474 100644 --- a/core/tauri/Cargo.toml +++ b/core/tauri/Cargo.toml @@ -10,7 +10,7 @@ license = "Apache-2.0 OR MIT" name = "tauri" readme = "README.md" repository = "https://github.com/tauri-apps/tauri" -version = "2.0.0-alpha.0" +version = "2.0.0-alpha.1" [package.metadata.docs.rs] no-default-features = true diff --git a/tooling/cli/CHANGELOG.md b/tooling/cli/CHANGELOG.md index d27d58600066..2c8d108297a8 100644 --- a/tooling/cli/CHANGELOG.md +++ b/tooling/cli/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## \[2.0.0-alpha.1] + +- Fixes running on device using Xcode 14. + - [1e4a6758](https://www.github.com/tauri-apps/tauri/commit/1e4a675843c486bddc11292d09fb766e98758514) fix(cli): run on iOS device on Xcode 14 ([#5807](https://www.github.com/tauri-apps/tauri/pull/5807)) on 2022-12-12 +- Improve local IP address detection with user selection. + - [76204b89](https://www.github.com/tauri-apps/tauri/commit/76204b893846a04552f8f8b87ad2c9b55e1b417f) feat(cli): improve local IP detection ([#5817](https://www.github.com/tauri-apps/tauri/pull/5817)) on 2022-12-12 + ## \[2.0.0-alpha.0] - Added `android build` command. diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index d904fb3fe7c6..7cb952d53c9a 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -3832,7 +3832,7 @@ dependencies = [ [[package]] name = "tauri-cli" -version = "2.0.0-alpha.0" +version = "2.0.0-alpha.1" dependencies = [ "anyhow", "axum", diff --git a/tooling/cli/Cargo.toml b/tooling/cli/Cargo.toml index 377f65f257a2..0616cae2be3c 100644 --- a/tooling/cli/Cargo.toml +++ b/tooling/cli/Cargo.toml @@ -3,7 +3,7 @@ members = [ "node" ] [package] name = "tauri-cli" -version = "2.0.0-alpha.0" +version = "2.0.0-alpha.1" authors = [ "Tauri Programme within The Commons Conservancy" ] edition = "2021" rust-version = "1.59" @@ -92,9 +92,8 @@ winapi = { version = "0.3", features = [ "handleapi", "processenv", "winbase", " [target."cfg(unix)".dependencies] libc = "0.2" -[target.'cfg(target_os = "macos")'.dependencies] -# temporary fix, tauri-mobile should provide the openssl-vendored feature -openssl = { version = "0.10", features = ["vendored"] } +[target."cfg(target_os = \"macos\")".dependencies] +openssl = { version = "0.10", features = [ "vendored" ] } [profile.release] lto = true diff --git a/tooling/cli/metadata.json b/tooling/cli/metadata.json index f8933df5ada5..1ee441f90f04 100644 --- a/tooling/cli/metadata.json +++ b/tooling/cli/metadata.json @@ -1,8 +1,8 @@ { "cli.js": { - "version": "2.0.0-alpha.0", + "version": "2.0.0-alpha.1", "node": ">= 10.0.0" }, - "tauri": "2.0.0-alpha.0", + "tauri": "2.0.0-alpha.1", "tauri-build": "2.0.0-alpha.0" } diff --git a/tooling/cli/node/CHANGELOG.md b/tooling/cli/node/CHANGELOG.md index 0729cda1fa3b..f25572702399 100644 --- a/tooling/cli/node/CHANGELOG.md +++ b/tooling/cli/node/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## \[2.0.0-alpha.1] + +- Fixes running on device using Xcode 14. + - [1e4a6758](https://www.github.com/tauri-apps/tauri/commit/1e4a675843c486bddc11292d09fb766e98758514) fix(cli): run on iOS device on Xcode 14 ([#5807](https://www.github.com/tauri-apps/tauri/pull/5807)) on 2022-12-12 +- Improve local IP address detection with user selection. + - [76204b89](https://www.github.com/tauri-apps/tauri/commit/76204b893846a04552f8f8b87ad2c9b55e1b417f) feat(cli): improve local IP detection ([#5817](https://www.github.com/tauri-apps/tauri/pull/5817)) on 2022-12-12 + ## \[2.0.0-alpha.0] - Added `android build` command. diff --git a/tooling/cli/node/package.json b/tooling/cli/node/package.json index 2ecf80c9caf9..38c85edd4607 100644 --- a/tooling/cli/node/package.json +++ b/tooling/cli/node/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/cli", - "version": "2.0.0-alpha.0", + "version": "2.0.0-alpha.1", "description": "Command line interface for building Tauri apps", "funding": { "type": "opencollective", From 0189c1dbef7c66177c39b3b1892c8c016df24107 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Mon, 19 Dec 2022 11:13:30 -0300 Subject: [PATCH 110/436] chore: remove println statement --- core/tauri/src/manager.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/core/tauri/src/manager.rs b/core/tauri/src/manager.rs index 35a40c2e85cb..6e71704b2078 100644 --- a/core/tauri/src/manager.rs +++ b/core/tauri/src/manager.rs @@ -932,7 +932,6 @@ impl WindowManager { .decode_utf8_lossy() .to_string(); let url = format!("{url}{decoded_path}"); - println!("request url {url}, original path {path}, decoded {decoded_path}"); let mut proxy_builder = attohttpc::get(&url).danger_accept_invalid_certs(true); for (name, value) in request.headers() { proxy_builder = proxy_builder.header(name, value); From 9ad0a9a0aa88a67c3d81ef84df4aad23556affde Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Thu, 22 Dec 2022 15:53:46 +0200 Subject: [PATCH 111/436] Merge pull request from GHSA-6mv3-wm7j-h4w5 * fix(core): use `require_literal_separator` when matching paths * document the need for `require_literal_separator` * use `require_literal_leading_dot` --- .../glob-match-require_literal_separator.md | 5 + core/tauri/src/scope/fs.rs | 122 ++++++++++++++---- 2 files changed, 103 insertions(+), 24 deletions(-) create mode 100644 .changes/glob-match-require_literal_separator.md diff --git a/.changes/glob-match-require_literal_separator.md b/.changes/glob-match-require_literal_separator.md new file mode 100644 index 000000000000..482a810280d5 --- /dev/null +++ b/.changes/glob-match-require_literal_separator.md @@ -0,0 +1,5 @@ +--- +"tauri": "patch" +--- + +Fix the filesystem scope allowing sub-directories of the directory picked by the dialog when `recursive` option was `false`. diff --git a/core/tauri/src/scope/fs.rs b/core/tauri/src/scope/fs.rs index 32d92652a943..8979eb8f1550 100644 --- a/core/tauri/src/scope/fs.rs +++ b/core/tauri/src/scope/fs.rs @@ -141,7 +141,7 @@ impl Scope { /// Extend the allowed patterns with the given directory. /// /// After this function has been called, the frontend will be able to use the Tauri API to read - /// the directory and all of its files and subdirectories. + /// the directory and all of its files. If `recursive` is `true`, subdirectories will be accessible too. pub fn allow_directory>(&self, path: P, recursive: bool) -> crate::Result<()> { let path = path.as_ref(); { @@ -216,13 +216,22 @@ impl Scope { if let Ok(path) = path { let path: PathBuf = path.components().collect(); + let options = glob::MatchOptions { + // this is needed so `/dir/*` doesn't match files within subdirectories such as `/dir/subdir/file.txt` + // see: https://github.com/tauri-apps/tauri/security/advisories/GHSA-6mv3-wm7j-h4w5 + require_literal_separator: true, + // dotfiles are not supposed to be exposed by default + #[cfg(unix)] + require_literal_leading_dot: true, + ..Default::default() + }; let forbidden = self .forbidden_patterns .lock() .unwrap() .iter() - .any(|p| p.matches_path(&path)); + .any(|p| p.matches_path_with(&path, options)); if forbidden { false @@ -232,7 +241,7 @@ impl Scope { .lock() .unwrap() .iter() - .any(|p| p.matches_path(&path)); + .any(|p| p.matches_path_with(&path, options)); allowed } } else { @@ -269,32 +278,97 @@ mod tests { #[test] fn path_is_escaped() { let scope = new_scope(); - scope.allow_directory("/home/tauri/**", false).unwrap(); - assert!(scope.is_allowed("/home/tauri/**")); - assert!(scope.is_allowed("/home/tauri/**/file")); - assert!(!scope.is_allowed("/home/tauri/anyfile")); + #[cfg(unix)] + { + scope.allow_directory("/home/tauri/**", false).unwrap(); + assert!(scope.is_allowed("/home/tauri/**")); + assert!(scope.is_allowed("/home/tauri/**/file")); + assert!(!scope.is_allowed("/home/tauri/anyfile")); + } + #[cfg(windows)] + { + scope.allow_directory("C:\\home\\tauri\\**", false).unwrap(); + assert!(scope.is_allowed("C:\\home\\tauri\\**")); + assert!(scope.is_allowed("C:\\home\\tauri\\**\\file")); + assert!(!scope.is_allowed("C:\\home\\tauri\\anyfile")); + } let scope = new_scope(); - scope.allow_file("/home/tauri/**").unwrap(); - assert!(scope.is_allowed("/home/tauri/**")); - assert!(!scope.is_allowed("/home/tauri/**/file")); - assert!(!scope.is_allowed("/home/tauri/anyfile")); + #[cfg(unix)] + { + scope.allow_file("/home/tauri/**").unwrap(); + assert!(scope.is_allowed("/home/tauri/**")); + assert!(!scope.is_allowed("/home/tauri/**/file")); + assert!(!scope.is_allowed("/home/tauri/anyfile")); + } + #[cfg(windows)] + { + scope.allow_file("C:\\home\\tauri\\**").unwrap(); + assert!(scope.is_allowed("C:\\home\\tauri\\**")); + assert!(!scope.is_allowed("C:\\home\\tauri\\**\\file")); + assert!(!scope.is_allowed("C:\\home\\tauri\\anyfile")); + } + + let scope = new_scope(); + #[cfg(unix)] + { + scope.allow_directory("/home/tauri", true).unwrap(); + scope.forbid_directory("/home/tauri/**", false).unwrap(); + assert!(!scope.is_allowed("/home/tauri/**")); + assert!(!scope.is_allowed("/home/tauri/**/file")); + assert!(scope.is_allowed("/home/tauri/**/inner/file")); + assert!(scope.is_allowed("/home/tauri/inner/folder/anyfile")); + assert!(scope.is_allowed("/home/tauri/anyfile")); + } + #[cfg(windows)] + { + scope.allow_directory("C:\\home\\tauri", true).unwrap(); + scope + .forbid_directory("C:\\home\\tauri\\**", false) + .unwrap(); + assert!(!scope.is_allowed("C:\\home\\tauri\\**")); + assert!(!scope.is_allowed("C:\\home\\tauri\\**\\file")); + assert!(scope.is_allowed("C:\\home\\tauri\\**\\inner\\file")); + assert!(scope.is_allowed("C:\\home\\tauri\\inner\\folder\\anyfile")); + assert!(scope.is_allowed("C:\\home\\tauri\\anyfile")); + } let scope = new_scope(); - scope.allow_directory("/home/tauri", true).unwrap(); - scope.forbid_directory("/home/tauri/**", false).unwrap(); - assert!(!scope.is_allowed("/home/tauri/**")); - assert!(!scope.is_allowed("/home/tauri/**/file")); - assert!(!scope.is_allowed("/home/tauri/**/inner/file")); - assert!(scope.is_allowed("/home/tauri/inner/folder/anyfile")); - assert!(scope.is_allowed("/home/tauri/anyfile")); + #[cfg(unix)] + { + scope.allow_directory("/home/tauri", true).unwrap(); + scope.forbid_file("/home/tauri/**").unwrap(); + assert!(!scope.is_allowed("/home/tauri/**")); + assert!(scope.is_allowed("/home/tauri/**/file")); + assert!(scope.is_allowed("/home/tauri/**/inner/file")); + assert!(scope.is_allowed("/home/tauri/anyfile")); + } + #[cfg(windows)] + { + scope.allow_directory("C:\\home\\tauri", true).unwrap(); + scope.forbid_file("C:\\home\\tauri\\**").unwrap(); + assert!(!scope.is_allowed("C:\\home\\tauri\\**")); + assert!(scope.is_allowed("C:\\home\\tauri\\**\\file")); + assert!(scope.is_allowed("C:\\home\\tauri\\**\\inner\\file")); + assert!(scope.is_allowed("C:\\home\\tauri\\anyfile")); + } let scope = new_scope(); - scope.allow_directory("/home/tauri", true).unwrap(); - scope.forbid_file("/home/tauri/**").unwrap(); - assert!(!scope.is_allowed("/home/tauri/**")); - assert!(scope.is_allowed("/home/tauri/**/file")); - assert!(scope.is_allowed("/home/tauri/**/inner/file")); - assert!(scope.is_allowed("/home/tauri/anyfile")); + #[cfg(unix)] + { + scope.allow_directory("/home/tauri", false).unwrap(); + assert!(scope.is_allowed("/home/tauri/**")); + assert!(!scope.is_allowed("/home/tauri/**/file")); + assert!(!scope.is_allowed("/home/tauri/**/inner/file")); + assert!(scope.is_allowed("/home/tauri/anyfile")); + } + #[cfg(windows)] + { + scope.allow_directory("C:\\home\\tauri", false).unwrap(); + assert!(scope.is_allowed("C:\\home\\tauri\\**")); + assert!(!scope.is_allowed("C:\\home\\tauri\\**\\file")); + assert!(!scope.is_allowed("C:\\home\\tauri\\**\\inner\\file")); + assert!(scope.is_allowed("C:\\home\\tauri\\anyfile")); + } } } From 6999cdf99ef1f0fa62febe5477c21813240de0aa Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Thu, 22 Dec 2022 11:38:44 -0300 Subject: [PATCH 112/436] chore(ci): update covector --- .github/workflows/covector-version-or-publish-next.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/covector-version-or-publish-next.yml b/.github/workflows/covector-version-or-publish-next.yml index 984294921e81..4a835376477c 100644 --- a/.github/workflows/covector-version-or-publish-next.yml +++ b/.github/workflows/covector-version-or-publish-next.yml @@ -37,7 +37,7 @@ jobs: git config --global user.email "${{ github.event.pusher.email }}" - name: covector version or publish (publish when no change files present) - uses: lucasfernog/covector/packages/action@feat/target-commitish + uses: lucasfernog/covector/packages/action@patches id: covector env: NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }} From 7945e549b73ca104290d7568559635f2d53e0eed Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 22 Dec 2022 11:42:10 -0300 Subject: [PATCH 113/436] (NEXT) Apply Version Updates From Current Changes (#5892) Co-authored-by: lucasfernog --- .changes/pre.json | 1 + core/tauri/CHANGELOG.md | 5 +++++ core/tauri/Cargo.toml | 2 +- tooling/cli/metadata.json | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.changes/pre.json b/.changes/pre.json index 3a03b6487a83..f025ae492b40 100644 --- a/.changes/pre.json +++ b/.changes/pre.json @@ -11,6 +11,7 @@ ".changes/dev-proxy.md", ".changes/fix-dev-server-proxy-path.md", ".changes/fix-ios-run-xcode14.md", + ".changes/glob-match-require_literal_separator.md", ".changes/improve-local-ip-detection.md", ".changes/mobile-config.md", ".changes/mobile-entry-point-macro.md", diff --git a/core/tauri/CHANGELOG.md b/core/tauri/CHANGELOG.md index a543053615d8..73af8c9e0e2e 100644 --- a/core/tauri/CHANGELOG.md +++ b/core/tauri/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## \[2.0.0-alpha.2] + +- Fix the filesystem scope allowing sub-directories of the directory picked by the dialog when `recursive` option was `false`. + - [9ad0a9a0](https://www.github.com/tauri-apps/tauri/commit/9ad0a9a0aa88a67c3d81ef84df4aad23556affde) Merge pull request from GHSA-6mv3-wm7j-h4w5 on 2022-12-22 + ## \[2.0.0-alpha.1] - Implement response cache on the dev server proxy, used when the server responds with status 304. diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml index 7a4d7a5be474..7253ecf41c63 100644 --- a/core/tauri/Cargo.toml +++ b/core/tauri/Cargo.toml @@ -10,7 +10,7 @@ license = "Apache-2.0 OR MIT" name = "tauri" readme = "README.md" repository = "https://github.com/tauri-apps/tauri" -version = "2.0.0-alpha.1" +version = "2.0.0-alpha.2" [package.metadata.docs.rs] no-default-features = true diff --git a/tooling/cli/metadata.json b/tooling/cli/metadata.json index 1ee441f90f04..880f2c35e4a7 100644 --- a/tooling/cli/metadata.json +++ b/tooling/cli/metadata.json @@ -3,6 +3,6 @@ "version": "2.0.0-alpha.1", "node": ">= 10.0.0" }, - "tauri": "2.0.0-alpha.1", + "tauri": "2.0.0-alpha.2", "tauri-build": "2.0.0-alpha.0" } From ced8e9a7be5d8dfd5fb047e1e1d49dc58bed3844 Mon Sep 17 00:00:00 2001 From: Jonas Kruckenberg Date: Tue, 27 Dec 2022 14:41:23 +0100 Subject: [PATCH 114/436] docs: iOS config is under the `bundle`key (#5856) --- tooling/cli/src/mobile/ios.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tooling/cli/src/mobile/ios.rs b/tooling/cli/src/mobile/ios.rs index bb51e02779b3..f627dfa441d7 100644 --- a/tooling/cli/src/mobile/ios.rs +++ b/tooling/cli/src/mobile/ios.rs @@ -110,12 +110,12 @@ pub fn get_config( let teams = find_development_teams().unwrap_or_default(); match teams.len() { 0 => { - log::error!("No code signing certificates found. You must add one and set the certificate development team ID on the `tauri > iOS > developmentTeam` config value or the `{APPLE_DEVELOPMENT_TEAM_ENV_VAR_NAME}` environment variable. To list the available certificates, run `tauri info`."); + log::error!("No code signing certificates found. You must add one and set the certificate development team ID on the `tauri > bundle > iOS > developmentTeam` config value or the `{APPLE_DEVELOPMENT_TEAM_ENV_VAR_NAME}` environment variable. To list the available certificates, run `tauri info`."); exit(1); } 1 => teams.first().unwrap().id.clone(), _ => { - log::error!("You must set the code signing certificate development team ID on the `tauri > iOS > developmentTeam` config value or the `{APPLE_DEVELOPMENT_TEAM_ENV_VAR_NAME}` environment variable. Available certificates: {}", teams.iter().map(|t| format!("{} (ID: {})", t.name, t.id)).collect::>().join(", ")); + log::error!("You must set the code signing certificate development team ID on the `tauri > bundle > iOS > developmentTeam` config value or the `{APPLE_DEVELOPMENT_TEAM_ENV_VAR_NAME}` environment variable. Available certificates: {}", teams.iter().map(|t| format!("{} (ID: {})", t.name, t.id)).collect::>().join(", ")); exit(1); } } From dee9460f9c9bc92e9c638e7691e616849ac2085b Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Tue, 27 Dec 2022 13:12:01 -0800 Subject: [PATCH 115/436] feat: keep CLI alive when iOS app exits, show logs, closes #5855 (#5902) --- .changes/ios-keep-alive.md | 6 ++++ .changes/ios-logs.md | 7 ++++ .changes/mobile-env-vars-rename.md | 6 ++++ core/tauri-build/src/lib.rs | 10 ++++-- core/tauri-macros/src/mobile.rs | 7 ++-- core/tauri/Cargo.toml | 4 ++- core/tauri/src/lib.rs | 40 ++++++++++++++++++++-- examples/api/src-tauri/Cargo.lock | 54 +++++++++++++++++------------- tooling/cli/Cargo.lock | 4 +-- tooling/cli/Cargo.toml | 2 +- tooling/cli/src/mobile/ios/dev.rs | 4 +-- 11 files changed, 107 insertions(+), 37 deletions(-) create mode 100644 .changes/ios-keep-alive.md create mode 100644 .changes/ios-logs.md create mode 100644 .changes/mobile-env-vars-rename.md diff --git a/.changes/ios-keep-alive.md b/.changes/ios-keep-alive.md new file mode 100644 index 000000000000..2313abdd81dd --- /dev/null +++ b/.changes/ios-keep-alive.md @@ -0,0 +1,6 @@ +--- +"cli.rs": patch +"cli.js": patch +--- + +Keep the process alive even when the iOS application is closed. diff --git a/.changes/ios-logs.md b/.changes/ios-logs.md new file mode 100644 index 000000000000..52493a06fffa --- /dev/null +++ b/.changes/ios-logs.md @@ -0,0 +1,7 @@ +--- +"cli.rs": patch +"cli.js": patch +"tauri": patch +--- + +Show all application logs on iOS. diff --git a/.changes/mobile-env-vars-rename.md b/.changes/mobile-env-vars-rename.md new file mode 100644 index 000000000000..d977243e1fbe --- /dev/null +++ b/.changes/mobile-env-vars-rename.md @@ -0,0 +1,6 @@ +--- +"tauri-build": patch +"tauri-macros": patch +--- + +Refactor mobile environment variables. diff --git a/core/tauri-build/src/lib.rs b/core/tauri-build/src/lib.rs index 09469f9d965e..5e62e94953da 100644 --- a/core/tauri-build/src/lib.rs +++ b/core/tauri-build/src/lib.rs @@ -222,14 +222,20 @@ pub fn try_build(attributes: Attributes) -> Result<()> { let s = config.tauri.bundle.identifier.split('.'); let last = s.clone().count() - 1; let mut domain = String::new(); + let mut android_package_prefix = String::new(); for (i, w) in s.enumerate() { if i != last { domain.push_str(w); - domain.push('_'); + domain.push('.'); + + android_package_prefix.push_str(w); + android_package_prefix.push('_'); } } domain.pop(); - println!("cargo:rustc-env=TAURI_ANDROID_DOMAIN={domain}"); + android_package_prefix.pop(); + println!("cargo:rustc-env=TAURI_MOBILE_DOMAIN={domain}"); + println!("cargo:rustc-env=TAURI_ANDROID_PACKAGE_PREFIX={android_package_prefix}"); cfg_alias("dev", !has_feature("custom-protocol")); diff --git a/core/tauri-macros/src/mobile.rs b/core/tauri-macros/src/mobile.rs index 44bd177fb51f..4502b0d6fcae 100644 --- a/core/tauri-macros/src/mobile.rs +++ b/core/tauri-macros/src/mobile.rs @@ -33,13 +33,14 @@ pub fn entry_point(_attributes: TokenStream, item: TokenStream) -> TokenStream { let function_name = function.sig.ident.clone(); let mut error = None; - let domain = get_env_var("TAURI_ANDROID_DOMAIN", |r| r, &mut error, &function); + let domain = get_env_var("TAURI_ANDROID_PACKAGE_PREFIX", |r| r, &mut error, &function); let app_name = get_env_var( "CARGO_PKG_NAME", |r| r.replace('_', "_1"), &mut error, &function, ); + let domain_str = var("TAURI_MOBILE_DOMAIN").unwrap(); let app_name_str = var("CARGO_PKG_NAME").unwrap(); if let Some(e) = error { @@ -59,9 +60,11 @@ pub fn entry_point(_attributes: TokenStream, item: TokenStream) -> TokenStream { #function fn _start_app() { - ::tauri::init_logging(#app_name_str); + #[cfg(target_os = "ios")] + ::tauri::init_logging(&format!("{}.{}", #domain_str, #app_name_str)); #[cfg(target_os = "android")] { + ::tauri::init_logging(#app_name_str); use ::tauri::paste; ::tauri::wry_android_binding!(#domain, #app_name, _start_app, ::tauri::wry); } diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml index 7253ecf41c63..7215cdb172f9 100644 --- a/core/tauri/Cargo.toml +++ b/core/tauri/Cargo.toml @@ -114,7 +114,9 @@ android_logger = "0.9" log = "0.4" [target."cfg(target_os = \"ios\")".dependencies] -env_logger = "0.9.0" +oslog = "0.2" +log = "0.4" +libc = "0.2" [build-dependencies] heck = "0.4" diff --git a/core/tauri/src/lib.rs b/core/tauri/src/lib.rs index e14b1bd5c177..d09e7a61f63e 100644 --- a/core/tauri/src/lib.rs +++ b/core/tauri/src/lib.rs @@ -290,8 +290,44 @@ pub fn init_logging(tag: &str) { #[cfg(target_os = "ios")] #[doc(hidden)] -pub fn init_logging(_tag: &str) { - env_logger::init(); +pub fn init_logging(subsystem: &str) { + use std::{ + ffi::CString, + fs::File, + io::{BufRead, BufReader}, + os::unix::prelude::*, + thread, + }; + + let mut logpipe: [RawFd; 2] = Default::default(); + unsafe { + libc::pipe(logpipe.as_mut_ptr()); + libc::dup2(logpipe[1], libc::STDOUT_FILENO); + libc::dup2(logpipe[1], libc::STDERR_FILENO); + } + thread::spawn(move || unsafe { + let file = File::from_raw_fd(logpipe[0]); + let mut reader = BufReader::new(file); + let mut buffer = String::new(); + loop { + buffer.clear(); + if let Ok(len) = reader.read_line(&mut buffer) { + if len == 0 { + break; + } else if let Ok(msg) = CString::new(buffer.clone()) + .map_err(|_| ()) + .and_then(|c| c.into_string().map_err(|_| ())) + { + log::info!("{}", msg); + } + } + } + }); + + oslog::OsLogger::new(subsystem) + .level_filter(log::LevelFilter::Trace) + .init() + .unwrap(); } /// Updater events. diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index 5c66e3081f5a..1a48aaa4f2fd 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -80,7 +80,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2ec2333c185d826313162cee39d3fcc6a84ba08114a839bebf53b961e7e75773" dependencies = [ "android_log-sys", - "env_logger 0.7.1", + "env_logger", "lazy_static", "log", ] @@ -610,6 +610,19 @@ dependencies = [ "syn", ] +[[package]] +name = "dashmap" +version = "5.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "907076dfda823b0b36d2a1bb5f90c96660a5bbcd7729e10727f07858f22c4edc" +dependencies = [ + "cfg-if", + "hashbrown", + "lock_api", + "once_cell", + "parking_lot_core", +] + [[package]] name = "dbus" version = "0.9.6" @@ -717,19 +730,6 @@ dependencies = [ "regex", ] -[[package]] -name = "env_logger" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7" -dependencies = [ - "atty", - "humantime", - "log", - "regex", - "termcolor", -] - [[package]] name = "fastrand" version = "1.8.0" @@ -1279,12 +1279,6 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421" -[[package]] -name = "humantime" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" - [[package]] name = "hyper" version = "0.14.23" @@ -1941,6 +1935,17 @@ version = "6.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3baf96e39c5359d2eb0dd6ccb42c62b91d9678aa68160d261b9e0ccbf9e9dea9" +[[package]] +name = "oslog" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80d2043d1f61d77cb2f4b1f7b7b2295f40507f5f8e9d1c8bf10a1ca5f97a3969" +dependencies = [ + "cc", + "dashmap", + "log", +] + [[package]] name = "overload" version = "0.1.1" @@ -2935,7 +2940,7 @@ dependencies = [ [[package]] name = "tauri" -version = "2.0.0-alpha.0" +version = "2.0.0-alpha.2" dependencies = [ "android_logger", "anyhow", @@ -2947,7 +2952,6 @@ dependencies = [ "dirs-next", "embed_plist", "encoding_rs", - "env_logger 0.9.3", "flate2", "futures-util", "glib", @@ -2958,6 +2962,7 @@ dependencies = [ "ico", "ignore", "infer 0.9.0", + "libc", "log", "minisign-verify", "notify-rust", @@ -2966,6 +2971,7 @@ dependencies = [ "open", "os_info", "os_pipe", + "oslog", "paste", "percent-encoding", "png", @@ -4037,9 +4043,9 @@ dependencies = [ [[package]] name = "wry" -version = "0.23.1" +version = "0.23.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a76c9236a810d4af02213f89f5bc55bf3262d40c4407b13a9fc847156ef8b856" +checksum = "4c1ad8e2424f554cc5bdebe8aa374ef5b433feff817aebabca0389961fc7ef98" dependencies = [ "base64", "block", diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 7cb952d53c9a..3052a8a88a3f 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -3908,9 +3908,9 @@ dependencies = [ [[package]] name = "tauri-mobile" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b23191ab3de2efc8d266ec26c16c1c90bd9e171f6f8ccdc56cd31cc9ad97130" +checksum = "723e99ec18695c25936deb0bc4e271ff4d25f48de88d03d59959fe8a31d9bf91" dependencies = [ "cocoa", "colored 1.9.3", diff --git a/tooling/cli/Cargo.toml b/tooling/cli/Cargo.toml index 0616cae2be3c..498816db6a81 100644 --- a/tooling/cli/Cargo.toml +++ b/tooling/cli/Cargo.toml @@ -39,7 +39,7 @@ name = "cargo-tauri" path = "src/main.rs" [dependencies] -tauri-mobile = { version = "0.1", default-features = false } +tauri-mobile = { version = "0.1.1", default-features = false } textwrap = { version = "0.11.0", features = [ "term_size" ] } jsonrpsee = { version = "0.16", features = [ "client", "server" ] } thiserror = "1" diff --git a/tooling/cli/src/mobile/ios/dev.rs b/tooling/cli/src/mobile/ios/dev.rs index 1c2ce58bfd4c..ad3bb6bdbbf8 100644 --- a/tooling/cli/src/mobile/ios/dev.rs +++ b/tooling/cli/src/mobile/ios/dev.rs @@ -189,15 +189,13 @@ fn run( Profile::Release }; - let non_interactive = true; // ios-deploy --noninteractive (quit when app crashes or exits) - device_prompt(env, device) .map_err(|e| RunError::FailedToPromptForDevice(e.to_string()))? .run( config, env, NoiseLevel::FranklyQuitePedantic, - non_interactive, + false, // do not quit on app exit profile, ) .map(DevChild::new) From e873bae09f0f27517f720a753f51c1dcb903f883 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Wed, 28 Dec 2022 09:46:58 -0800 Subject: [PATCH 116/436] fix(cli): Cargo target dir detection on Android, closes #5865 (#5932) --- .changes/target-dir-detection.md | 6 +++++ tooling/cli/Cargo.lock | 4 ++-- tooling/cli/Cargo.toml | 2 +- tooling/cli/src/interface/mod.rs | 1 + tooling/cli/src/interface/rust.rs | 12 ++++++++++ tooling/cli/src/mobile/mod.rs | 39 ++++++++++++++++++------------- 6 files changed, 45 insertions(+), 19 deletions(-) create mode 100644 .changes/target-dir-detection.md diff --git a/.changes/target-dir-detection.md b/.changes/target-dir-detection.md new file mode 100644 index 000000000000..eab17d39582a --- /dev/null +++ b/.changes/target-dir-detection.md @@ -0,0 +1,6 @@ +--- +"cli.rs": patch +"cli.js": patch +--- + +Fix target directory detection when compiling for Android. diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 3052a8a88a3f..8e6bf5985667 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -3908,9 +3908,9 @@ dependencies = [ [[package]] name = "tauri-mobile" -version = "0.1.1" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "723e99ec18695c25936deb0bc4e271ff4d25f48de88d03d59959fe8a31d9bf91" +checksum = "749adb9f2c4844357bbc9ee4566ef5fe9755dc0956d6ba005180add824d835ac" dependencies = [ "cocoa", "colored 1.9.3", diff --git a/tooling/cli/Cargo.toml b/tooling/cli/Cargo.toml index 498816db6a81..c0bf1b9bbae2 100644 --- a/tooling/cli/Cargo.toml +++ b/tooling/cli/Cargo.toml @@ -39,7 +39,7 @@ name = "cargo-tauri" path = "src/main.rs" [dependencies] -tauri-mobile = { version = "0.1.1", default-features = false } +tauri-mobile = { version = "0.1.3", default-features = false } textwrap = { version = "0.11.0", features = [ "term_size" ] } jsonrpsee = { version = "0.16", features = [ "client", "server" ] } thiserror = "1" diff --git a/tooling/cli/src/interface/mod.rs b/tooling/cli/src/interface/mod.rs index dfa00b93da8a..40a474c6ade9 100644 --- a/tooling/cli/src/interface/mod.rs +++ b/tooling/cli/src/interface/mod.rs @@ -36,6 +36,7 @@ pub trait AppSettings { config: &Config, target: &str, ) -> crate::Result>; + fn app_name(&self) -> Option; fn get_bundler_settings( &self, diff --git a/tooling/cli/src/interface/rust.rs b/tooling/cli/src/interface/rust.rs index 06edad933394..1adaa438b745 100644 --- a/tooling/cli/src/interface/rust.rs +++ b/tooling/cli/src/interface/rust.rs @@ -760,6 +760,18 @@ impl AppSettings for RustAppSettings { Ok(binaries) } + + fn app_name(&self) -> Option { + self + .manifest + .inner + .as_table() + .get("package") + .and_then(|p| p.as_table()) + .and_then(|p| p.get("name")) + .and_then(|n| n.as_str()) + .map(|n| n.to_string()) + } } impl RustAppSettings { diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index 21425ea351ec..587a1698322f 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -4,7 +4,7 @@ use crate::{ helpers::{app_paths::tauri_dir, config::Config as TauriConfig}, - interface::DevProcess, + interface::{AppInterface, AppSettings, DevProcess, Interface, Options as InterfaceOptions}, }; use anyhow::{bail, Result}; use jsonrpsee::client_transport::ws::WsTransportClientBuilder; @@ -31,7 +31,7 @@ use tauri_mobile::{ bossy, config::app::{App, Raw as RawAppConfig}, env::Error as EnvError, - opts::NoiseLevel, + opts::{NoiseLevel, Profile}, }; use tokio::runtime::Runtime; @@ -220,19 +220,14 @@ fn get_app(config: &TauriConfig) -> App { } reverse_domain.pop(); - let manifest_path = tauri_dir().join("Cargo.toml"); - let app_name = if let Ok(manifest) = crate::interface::manifest::read_manifest(&manifest_path) { - manifest - .as_table() - .get("package") - .and_then(|p| p.as_table()) - .and_then(|p| p.get("name")) - .and_then(|n| n.as_str()) - .map(|n| n.to_string()) - .unwrap_or(app_name) - } else { - app_name - }; + let interface = AppInterface::new( + config, + // the target triple is not relevant + Some("".into()), + ) + .expect("failed to load interface"); + + let app_name = interface.app_settings().app_name().unwrap_or(app_name); let raw = RawAppConfig { name: app_name, @@ -241,7 +236,19 @@ fn get_app(config: &TauriConfig) -> App { asset_dir: None, template_pack: None, }; - App::from_raw(tauri_dir(), raw).unwrap() + App::from_raw(tauri_dir(), raw) + .unwrap() + .with_target_dir_resolver(move |target, profile| { + let bin_path = interface + .app_settings() + .app_binary_path(&InterfaceOptions { + debug: matches!(profile, Profile::Debug), + target: Some(target.into()), + ..Default::default() + }) + .expect("failed to resolve target directory"); + bin_path.parent().unwrap().to_path_buf() + }) } fn ensure_init(project_dir: PathBuf, target: Target) -> Result<()> { From 17d80ab2364ef21e4c0d6b6be7095e72002f3e74 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Wed, 28 Dec 2022 10:02:07 -0800 Subject: [PATCH 117/436] feat(cli): improve error message when lib is not found, closes #5867 (#5933) --- tooling/cli/Cargo.lock | 4 ++-- tooling/cli/Cargo.toml | 2 +- tooling/cli/src/mobile/ios/xcode_script.rs | 6 +++++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 8e6bf5985667..17cb938e8ae7 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -3908,9 +3908,9 @@ dependencies = [ [[package]] name = "tauri-mobile" -version = "0.1.3" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "749adb9f2c4844357bbc9ee4566ef5fe9755dc0956d6ba005180add824d835ac" +checksum = "dff04e700514e294069c697559b74f2cc168e8d6c984e2e4ba99a40d63468061" dependencies = [ "cocoa", "colored 1.9.3", diff --git a/tooling/cli/Cargo.toml b/tooling/cli/Cargo.toml index c0bf1b9bbae2..37dd5d35d541 100644 --- a/tooling/cli/Cargo.toml +++ b/tooling/cli/Cargo.toml @@ -39,7 +39,7 @@ name = "cargo-tauri" path = "src/main.rs" [dependencies] -tauri-mobile = { version = "0.1.3", default-features = false } +tauri-mobile = { version = "0.1.4", default-features = false } textwrap = { version = "0.11.0", features = [ "term_size" ] } jsonrpsee = { version = "0.16", features = [ "client", "server" ] } thiserror = "1" diff --git a/tooling/cli/src/mobile/ios/xcode_script.rs b/tooling/cli/src/mobile/ios/xcode_script.rs index 5ce3443abc5f..94a8af786461 100644 --- a/tooling/cli/src/mobile/ios/xcode_script.rs +++ b/tooling/cli/src/mobile/ios/xcode_script.rs @@ -188,12 +188,16 @@ pub fn command(options: Options) -> Result<()> { })?; let out_dir = bin_path.parent().unwrap(); + let lib_path = out_dir.join(format!("lib{}.a", AsSnakeCase(config.app().name()))); + if !lib_path.exists() { + return Err(anyhow::anyhow!("Library not found at {}. Make sure your Cargo.toml file has a [lib] block with `crate-type = [\"staticlib\", \"cdylib\", \"rlib\"]`", lib_path.display())); + } std::fs::create_dir_all(format!( "gen/apple/Externals/{rust_triple}/{}", profile.as_str() ))?; std::fs::copy( - out_dir.join(format!("lib{}.a", AsSnakeCase(config.app().name()))), + lib_path, format!( "gen/apple/Externals/{rust_triple}/{}/lib{}.a", profile.as_str(), From 2c4a0bbd1fbe15d7500264e6490772397e1917ed Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Wed, 28 Dec 2022 12:58:14 -0800 Subject: [PATCH 118/436] feat(cli): force colored logs on mobile commands (#5934) --- .changes/force-colored-logs.md | 6 ++++++ tooling/cli/src/mobile/mod.rs | 1 + 2 files changed, 7 insertions(+) create mode 100644 .changes/force-colored-logs.md diff --git a/.changes/force-colored-logs.md b/.changes/force-colored-logs.md new file mode 100644 index 000000000000..406ff82b1495 --- /dev/null +++ b/.changes/force-colored-logs.md @@ -0,0 +1,6 @@ +--- +"cli.rs": patch +"cli.js": patch +--- + +Force colored logs on mobile commands. diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index 587a1698322f..33edad6dcfc1 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -129,6 +129,7 @@ pub struct CliOptions { fn env_vars() -> HashMap { let mut vars = HashMap::new(); + vars.insert("RUST_LOG_STYLE".into(), "always".into()); for (k, v) in std::env::vars_os() { let k = k.to_string_lossy(); if (k.starts_with("TAURI") && k != "TAURI_PRIVATE_KEY" && k != "TAURI_KEY_PASSWORD") From 50f6dd87b1ac2c99f8794b055f1acba4ef7d34d3 Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Fri, 6 Jan 2023 19:31:48 +0200 Subject: [PATCH 119/436] feat: improvements to support hyphens in crate name (#5989) Co-authored-by: Lucas Nogueira --- .changes/mobile-lib-name.md | 6 + core/tauri-macros/src/mobile.rs | 2 +- core/tauri-runtime-wry/Cargo.toml | 2 +- core/tauri-runtime-wry/src/lib.rs | 3 +- core/tauri-runtime/src/http/response.rs | 21 +- core/tauri/Cargo.toml | 2 +- core/tauri/src/manager.rs | 6 +- core/tauri/src/updater/core.rs | 2 +- core/tests/app-updater/tests/update.rs | 2 +- tooling/cli/Cargo.lock | 1223 ++++++++--------- tooling/cli/Cargo.toml | 4 +- tooling/cli/node/package.json | 3 + tooling/cli/node/yarn.lock | 20 +- tooling/cli/src/icon.rs | 2 +- tooling/cli/src/interface/mod.rs | 1 + tooling/cli/src/interface/rust.rs | 12 + tooling/cli/src/mobile/android.rs | 9 +- tooling/cli/src/mobile/android/project.rs | 4 +- tooling/cli/src/mobile/ios/xcode_script.rs | 5 +- tooling/cli/src/mobile/mod.rs | 2 + .../app/src-tauri/Cargo.crate-manifest | 7 +- .../templates/app/src-tauri/src/desktop.rs | 8 - .../cli/templates/app/src-tauri/src/lib.rs | 46 +- .../cli/templates/app/src-tauri/src/main.rs | 8 +- .../cli/templates/app/src-tauri/src/mobile.rs | 4 - 25 files changed, 651 insertions(+), 753 deletions(-) create mode 100644 .changes/mobile-lib-name.md delete mode 100644 tooling/cli/templates/app/src-tauri/src/desktop.rs delete mode 100644 tooling/cli/templates/app/src-tauri/src/mobile.rs diff --git a/.changes/mobile-lib-name.md b/.changes/mobile-lib-name.md new file mode 100644 index 000000000000..be976b9e4930 --- /dev/null +++ b/.changes/mobile-lib-name.md @@ -0,0 +1,6 @@ +--- +"cli.rs": patch +"cli.js": patch +--- + +Add support to custom and kebab case library names for mobile apps. diff --git a/core/tauri-macros/src/mobile.rs b/core/tauri-macros/src/mobile.rs index 4502b0d6fcae..17e0a26f12c3 100644 --- a/core/tauri-macros/src/mobile.rs +++ b/core/tauri-macros/src/mobile.rs @@ -36,7 +36,7 @@ pub fn entry_point(_attributes: TokenStream, item: TokenStream) -> TokenStream { let domain = get_env_var("TAURI_ANDROID_PACKAGE_PREFIX", |r| r, &mut error, &function); let app_name = get_env_var( "CARGO_PKG_NAME", - |r| r.replace('_', "_1"), + |r| r.replace('-', "_"), &mut error, &function, ); diff --git a/core/tauri-runtime-wry/Cargo.toml b/core/tauri-runtime-wry/Cargo.toml index 2594efea550f..e9493d88222a 100644 --- a/core/tauri-runtime-wry/Cargo.toml +++ b/core/tauri-runtime-wry/Cargo.toml @@ -13,7 +13,7 @@ exclude = [ "CHANGELOG.md", "/target" ] readme = "README.md" [dependencies] -wry = { version = "0.23.4", default-features = false, features = [ "file-drop", "protocol" ] } +wry = { git = "https://github.com/tauri-apps/wry", branch = "dev", default-features = false, features = [ "file-drop", "protocol" ] } tauri-runtime = { version = "0.13.0-alpha.0", path = "../tauri-runtime" } tauri-utils = { version = "2.0.0-alpha.0", path = "../tauri-utils" } uuid = { version = "1", features = [ "v4" ] } diff --git a/core/tauri-runtime-wry/src/lib.rs b/core/tauri-runtime-wry/src/lib.rs index d377dfb86805..cc3ebba2caa4 100644 --- a/core/tauri-runtime-wry/src/lib.rs +++ b/core/tauri-runtime-wry/src/lib.rs @@ -79,6 +79,7 @@ pub use wry::application::platform::macos::{ }; use std::{ + borrow::Cow, cell::RefCell, collections::{ hash_map::Entry::{Occupied, Vacant}, @@ -284,7 +285,7 @@ impl From<&WryRequest>> for HttpRequestWrapper { } // response -struct HttpResponseWrapper(WryResponse>); +struct HttpResponseWrapper(WryResponse>); impl From for HttpResponseWrapper { fn from(response: HttpResponse) -> Self { let (parts, body) = response.into_parts(); diff --git a/core/tauri-runtime/src/http/response.rs b/core/tauri-runtime/src/http/response.rs index 67641e863f38..532d23b5b330 100644 --- a/core/tauri-runtime/src/http/response.rs +++ b/core/tauri-runtime/src/http/response.rs @@ -7,7 +7,7 @@ use super::{ status::StatusCode, version::Version, }; -use std::fmt; +use std::{borrow::Cow, fmt}; type Result = core::result::Result>; @@ -33,7 +33,7 @@ type Result = core::result::Result>; /// pub struct Response { head: ResponseParts, - body: Vec, + body: Cow<'static, [u8]>, } /// Component parts of an HTTP `Response` @@ -67,7 +67,7 @@ pub struct Builder { impl Response { /// Creates a new blank `Response` with the body #[inline] - pub fn new(body: Vec) -> Response { + pub fn new(body: Cow<'static, [u8]>) -> Response { Response { head: ResponseParts::new(), body, @@ -81,7 +81,7 @@ impl Response { /// This API is used internally. It may have breaking changes in the future. #[inline] #[doc(hidden)] - pub fn into_parts(self) -> (ResponseParts, Vec) { + pub fn into_parts(self) -> (ResponseParts, Cow<'static, [u8]>) { (self.head, self.body) } @@ -129,13 +129,13 @@ impl Response { /// Returns a mutable reference to the associated HTTP body. #[inline] - pub fn body_mut(&mut self) -> &mut Vec { + pub fn body_mut(&mut self) -> &mut Cow<'static, [u8]> { &mut self.body } /// Returns a reference to the associated HTTP body. #[inline] - pub fn body(&self) -> &Vec { + pub fn body(&self) -> &Cow<'static, [u8]> { &self.body } } @@ -143,7 +143,7 @@ impl Response { impl Default for Response { #[inline] fn default() -> Response { - Response::new(Vec::new()) + Response::new(Default::default()) } } @@ -280,8 +280,11 @@ impl Builder { /// .body(Vec::new()) /// .unwrap(); /// ``` - pub fn body(self, body: Vec) -> Result { - self.inner.map(move |head| Response { head, body }) + pub fn body(self, body: impl Into>) -> Result { + self.inner.map(move |head| Response { + head, + body: body.into(), + }) } // private diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml index 7215cdb172f9..051158d69379 100644 --- a/core/tauri/Cargo.toml +++ b/core/tauri/Cargo.toml @@ -60,7 +60,7 @@ state = "0.5" tar = "0.4.38" tempfile = "3" zip = { version = "0.6", default-features = false, optional = true } -ignore = "0.4" +ignore = "=0.4.18" flate2 = "1.0" http = "0.2" dirs-next = "2.0" diff --git a/core/tauri/src/manager.rs b/core/tauri/src/manager.rs index 6e71704b2078..fff687eab1cf 100644 --- a/core/tauri/src/manager.rs +++ b/core/tauri/src/manager.rs @@ -901,7 +901,7 @@ impl WindowManager { struct CachedResponse { status: http::StatusCode, headers: http::HeaderMap, - body: Vec, + body: Cow<'static, [u8]>, } #[cfg(dev)] @@ -951,7 +951,7 @@ impl WindowManager { let response = CachedResponse { status, headers, - body, + body: body.into(), }; response_cache_.insert(url.clone(), response); response_cache_.get(&url).unwrap() @@ -988,7 +988,7 @@ impl WindowManager { let response_csp = String::from_utf8_lossy(response_csp.as_bytes()); let html = String::from_utf8_lossy(response.body()); let body = html.replacen(tauri_utils::html::CSP_TOKEN, &response_csp, 1); - *response.body_mut() = body.as_bytes().to_vec(); + *response.body_mut() = body.as_bytes().to_vec().into(); } Ok(response) }) diff --git a/core/tauri/src/updater/core.rs b/core/tauri/src/updater/core.rs index e263ccd7c636..c212bf91e427 100644 --- a/core/tauri/src/updater/core.rs +++ b/core/tauri/src/updater/core.rs @@ -895,7 +895,7 @@ fn copy_files_and_run(archive_buffer: R, extract_path: &Path) -> })?; let _ = std::process::Command::new("touch") - .arg(&extract_path) + .arg(extract_path) .status(); Ok(()) diff --git a/core/tests/app-updater/tests/update.rs b/core/tests/app-updater/tests/update.rs index c7b147cdc833..a755bd4f2f99 100644 --- a/core/tests/app-updater/tests/update.rs +++ b/core/tests/app-updater/tests/update.rs @@ -94,7 +94,7 @@ fn bundle_path(root_dir: &Path, version: &str) -> PathBuf { #[cfg(target_os = "macos")] fn bundle_path(root_dir: &Path, _version: &str) -> PathBuf { - root_dir.join(format!("target/debug/bundle/macos/app-updater.app")) + root_dir.join("target/debug/bundle/macos/app-updater.app") } #[cfg(target_os = "ios")] diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 17cb938e8ae7..246df9fdbd8f 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -20,7 +20,7 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b613b8e1e3cf911a086f53f03bf286f52fd7a7258e4fa606f0ef220d39d8877" dependencies = [ - "generic-array 0.14.5", + "generic-array", ] [[package]] @@ -30,9 +30,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e8b47f52ea9bae42228d07ec09eb676433d7c4ed1ebdf0f1d1c29ed446f1ab8" dependencies = [ "cfg-if", - "cipher", + "cipher 0.3.0", "cpufeatures", - "opaque-debug 0.3.0", + "opaque-debug", ] [[package]] @@ -43,7 +43,7 @@ checksum = "df5f85a83a7d8b0442b6aa7b504b8212c1733da07b98aae43d4bc21b2cb3cdf6" dependencies = [ "aead", "aes", - "cipher", + "cipher 0.3.0", "ctr", "ghash", "subtle", @@ -51,11 +51,12 @@ dependencies = [ [[package]] name = "ahash" -version = "0.7.6" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" +checksum = "bf6ccdb167abbf410dcb915cabd428929d7f6a04980b54a11f26a39f1c7f7107" dependencies = [ - "getrandom 0.2.7", + "cfg-if", + "getrandom 0.2.8", "once_cell", "serde", "version_check", @@ -63,27 +64,18 @@ dependencies = [ [[package]] name = "aho-corasick" -version = "0.7.18" +version = "0.7.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f" +checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac" dependencies = [ "memchr", ] -[[package]] -name = "ansi_term" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" -dependencies = [ - "winapi", -] - [[package]] name = "anyhow" -version = "1.0.58" +version = "1.0.68" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb07d2053ccdbe10e2af2995a2f116c1330396493dc1269f6a91d0ae82e19704" +checksum = "2cb2f989d18dd141ab8ae82f64d1a8cdd37e0840f73a406896cf5e99502fab61" [[package]] name = "ar" @@ -115,9 +107,9 @@ dependencies = [ [[package]] name = "async-trait" -version = "0.1.57" +version = "0.1.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76464446b8bc32758d7e88ee1a804d9914cd9b1cb264c029899680b0be29826f" +checksum = "677d1d8ab452a3936018a687b20e6f7cf5363d713b732b8884001317b0e48aa3" dependencies = [ "proc-macro2", "quote", @@ -143,7 +135,7 @@ version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" dependencies = [ - "hermit-abi", + "hermit-abi 0.1.19", "libc", "winapi", ] @@ -156,9 +148,9 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "axum" -version = "0.5.16" +version = "0.5.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9e3356844c4d6a6d6467b8da2cffb4a2820be256f50a3a386c9d152bab31043" +checksum = "acee9fd5073ab6b045a275b3e709c163dd36c90685219cb21804a147b58dba43" dependencies = [ "async-trait", "axum-core", @@ -169,7 +161,7 @@ dependencies = [ "http", "http-body", "hyper", - "itoa 1.0.2", + "itoa 1.0.5", "matchit", "memchr", "mime", @@ -178,7 +170,7 @@ dependencies = [ "serde", "serde_json", "serde_urlencoded", - "sha-1 0.10.0", + "sha-1 0.10.1", "sync_wrapper", "tokio", "tokio-tungstenite", @@ -190,9 +182,9 @@ dependencies = [ [[package]] name = "axum-core" -version = "0.2.8" +version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9f0c0a60006f2a293d82d571f635042a72edf927539b7685bd62d361963839b" +checksum = "37e5939e02c56fecd5c017c37df4238c0a839fa76b7f97acdd7efb804fd181cc" dependencies = [ "async-trait", "bytes", @@ -206,15 +198,15 @@ dependencies = [ [[package]] name = "base64" -version = "0.13.0" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" +checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" [[package]] name = "base64ct" -version = "1.0.1" +version = "1.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a32fd6af2b5827bce66c29053ba0e7c42b9dcab01835835058558c10851a46b" +checksum = "b645a089122eccb6111b4f81cbc1a49f5900ac4666bb93ac027feaecf15607bf" [[package]] name = "beef" @@ -270,65 +262,39 @@ version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a" -[[package]] -name = "block-buffer" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0940dc441f31689269e10ac70eb1002a3a1d3ad1390e030043662eb7fe4688b" -dependencies = [ - "block-padding", - "byte-tools", - "byteorder", - "generic-array 0.12.4", -] - [[package]] name = "block-buffer" version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" dependencies = [ - "generic-array 0.14.5", + "generic-array", ] [[package]] name = "block-buffer" -version = "0.10.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bf7fe51849ea569fd452f37822f606a5cabb684dc918707a0193fd4664ff324" -dependencies = [ - "generic-array 0.14.5", -] - -[[package]] -name = "block-padding" -version = "0.1.5" +version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa79dedbb091f449f1f39e53edf88d5dbe95f895dae6135a8d7b881fb5af73f5" +checksum = "69cce20737498f97b993470a6e536b8523f0af7892a4f928cceb1ac5e52ebe7e" dependencies = [ - "byte-tools", + "generic-array", ] [[package]] name = "bstr" -version = "0.2.17" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba3569f383e8f1598449f1a423e72e99569137b47740b1da11ef19af3d5c3223" +checksum = "b45ea9b00a7b3f2988e9a65ad3917e62123c38dba709b666506207be96d1790b" dependencies = [ "memchr", + "serde", ] [[package]] name = "bumpalo" -version = "3.10.0" +version = "3.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37ccbd214614c6783386c1af30caf03192f17891059cecc394b4fb119e363de3" - -[[package]] -name = "byte-tools" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7" +checksum = "572f695136211188308f16ad2ca5c851a712c464060ae6974944458eb83880ba" [[package]] name = "bytecount" @@ -338,9 +304,9 @@ checksum = "2c676a478f63e9fa2dd5368a42f28bba0d6c560b775f38583c8bbaa7fcd67c9c" [[package]] name = "bytemuck" -version = "1.9.1" +version = "1.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cdead85bdec19c194affaeeb670c0e41fe23de31459efd1c174d049269cf02cc" +checksum = "aaa3a8d9a1ca92e282c96a32d6511b695d7d994d1d102ba85d279f9b2756947f" [[package]] name = "byteorder" @@ -350,15 +316,15 @@ checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" [[package]] name = "bytes" -version = "1.1.0" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4872d67bab6358e59559027aa3b9157c53d9358c51423c17554809a8858e0f8" +checksum = "dfb24e866b15a1af2a1b663f10c6b6b8f397a84aadb828f12e5b289ec23a3a3c" [[package]] name = "bzip2" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6afcd980b5f3a45017c57e57a2fcccbb351cc43a356ce117ef760ef8052b89b0" +checksum = "bdb116a6ef3f6c3698828873ad02c3014b3c85cadb88496095628e3ef1e347f8" dependencies = [ "bzip2-sys", "libc", @@ -377,9 +343,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.73" +version = "1.0.78" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11" +checksum = "a20104e2335ce8a659d6dd92a51a767a0c062599c73b343fd152cb401e828c3d" dependencies = [ "jobserver", ] @@ -400,58 +366,47 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" -[[package]] -name = "chunked_transfer" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fff857943da45f546682664a79488be82e69e43c1a7a2307679ab9afb3a66d2e" - [[package]] name = "cipher" version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ee52072ec15386f770805afd189a01c8841be8696bed250fa2f13c4c0d6dfb7" dependencies = [ - "generic-array 0.14.5", + "generic-array", ] [[package]] -name = "clap" -version = "2.34.0" +name = "cipher" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c" +checksum = "d1873270f8f7942c191139cb8a40fd228da6c3fd2fc376d7e92d47aa14aeb59e" dependencies = [ - "ansi_term", - "atty", - "bitflags", - "strsim 0.8.0", - "textwrap", - "unicode-width", - "vec_map", + "crypto-common", + "inout", ] [[package]] name = "clap" -version = "4.0.9" +version = "4.0.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30607dd93c420c6f1f80b544be522a0238a7db35e6a12968d28910983fee0df0" +checksum = "a7db700bc935f9e43e88d00b0850dae18a63773cfbec6d8e070fccf7fef89a39" dependencies = [ - "atty", "bitflags", "clap_derive", "clap_lex", + "is-terminal", "once_cell", - "strsim 0.10.0", + "strsim", "termcolor", ] [[package]] name = "clap_derive" -version = "4.0.9" +version = "4.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a307492e1a34939f79d3b6b9650bd2b971513cd775436bf2b78defeb5af00b" +checksum = "0177313f9f02afc995627906bbd8967e2be069f5261954222dac78290c2b9014" dependencies = [ - "heck 0.4.0", + "heck", "proc-macro-error", "proc-macro2", "quote", @@ -512,9 +467,9 @@ dependencies = [ [[package]] name = "combine" -version = "4.6.4" +version = "4.6.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a604e93b79d1808327a6fca85a6f2d69de66461e7620f5a4cbf5fb4d1d7c948" +checksum = "35ed6e9d84f0b51a7f52daf1c7d71dd136fd7a3f41a8462b8cdb8c78d920fad4" dependencies = [ "bytes", "memchr", @@ -528,17 +483,15 @@ checksum = "2382f75942f4b3be3690fe4f86365e9c853c1587d6ee58212cebf6e2a9ccd101" [[package]] name = "console" -version = "0.15.0" +version = "0.15.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a28b32d32ca44b70c3e4acd7db1babf555fa026e385fb95f18028f88848b3c31" +checksum = "c9b6515d269224923b26b5febea2ed42b2d5f2ce37284a4dd670fedd6cb8347a" dependencies = [ "encode_unicode", + "lazy_static", "libc", - "once_cell", - "regex", - "terminal_size", "unicode-width", - "winapi", + "windows-sys 0.42.0", ] [[package]] @@ -555,9 +508,12 @@ checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" [[package]] name = "convert_case" -version = "0.5.0" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb4a24b1aaf0fd0ce8b45161144d6f42cd91677fd5940fd431183eb023b3a2b8" +checksum = "ec182b0ca2f35d8fc196cf3404988fd8b8c739a4d270ff118a398feb0cbec1ca" +dependencies = [ + "unicode-segmentation", +] [[package]] name = "core-foundation" @@ -605,9 +561,9 @@ dependencies = [ [[package]] name = "cpufeatures" -version = "0.2.2" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59a6001667ab124aebae2a495118e11d30984c3a653e99d86d58971708cf5e4b" +checksum = "28d997bd5e24a5928dd43e46dc529867e207907fe0b239c3477d924f7f2ca320" dependencies = [ "libc", ] @@ -623,9 +579,9 @@ dependencies = [ [[package]] name = "crossbeam-channel" -version = "0.5.5" +version = "0.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c02a4d71819009c192cf4872265391563fd6a84c81ff2c0f2a7026ca4c1d85c" +checksum = "c2dd04ddaf88237dc3b8d8f9a3c1004b506b54b3313403944054d23c0870c521" dependencies = [ "cfg-if", "crossbeam-utils", @@ -633,9 +589,9 @@ dependencies = [ [[package]] name = "crossbeam-deque" -version = "0.8.1" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6455c0ca19f0d2fbf751b908d5c55c1f5cbc65e03c4225427254b46890bdde1e" +checksum = "715e8152b692bba2d374b53d4875445368fdf21a94751410af607a5ac677d1fc" dependencies = [ "cfg-if", "crossbeam-epoch", @@ -644,35 +600,39 @@ dependencies = [ [[package]] name = "crossbeam-epoch" -version = "0.9.9" +version = "0.9.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07db9d94cbd326813772c968ccd25999e5f8ae22f4f8d1b11effa37ef6ce281d" +checksum = "01a9af1f4c2ef74bb8aa1f7e19706bc72d03598c8a570bb5de72243c7a9d9d5a" dependencies = [ "autocfg", "cfg-if", "crossbeam-utils", "memoffset", - "once_cell", "scopeguard", ] [[package]] name = "crossbeam-utils" -version = "0.8.10" +version = "0.8.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d82ee10ce34d7bc12c2122495e7593a9c41347ecdd64185af4ecf72cb1a7f83" +checksum = "4fb766fa798726286dbbb842f174001dab8abc7b627a1dd86e0b7222a95d929f" dependencies = [ "cfg-if", - "once_cell", ] +[[package]] +name = "crunchy" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" + [[package]] name = "crypto-common" -version = "0.1.3" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57952ca27b5e3606ff4dd79b0020231aaf9d6aa76dc05fd30137538c50bd3ce8" +checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" dependencies = [ - "generic-array 0.14.5", + "generic-array", "typenum", ] @@ -705,9 +665,9 @@ dependencies = [ [[package]] name = "ctor" -version = "0.1.22" +version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f877be4f7c9f246b183111634f75baa039715e3f46ce860677d3b19a69fb229c" +checksum = "6d2301688392eb071b0bf1a37be05c469d3cc4dbbd95df672fe28ab021e6a096" dependencies = [ "quote", "syn", @@ -719,17 +679,17 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "049bb91fb4aaf0e3c7efa6cd5ef877dbbbd15b39dad06d9948de4ec8a75761ea" dependencies = [ - "cipher", + "cipher 0.3.0", ] [[package]] name = "ctrlc" -version = "3.2.2" +version = "3.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b37feaa84e6861e00a1f5e5aa8da3ee56d605c9992d33e082786754828e20865" +checksum = "1631ca6e3c59112501a9d87fd86f21591ff77acd31331e8a73f8d80a65bbdd71" dependencies = [ "nix", - "winapi", + "windows-sys 0.42.0", ] [[package]] @@ -752,7 +712,7 @@ dependencies = [ "ident_case", "proc-macro2", "quote", - "strsim 0.10.0", + "strsim", "syn", ] @@ -782,46 +742,37 @@ dependencies = [ [[package]] name = "deunicode" -version = "1.3.1" +version = "1.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2c9736e15e7df1638a7f6eee92a6511615c738246a052af5ba86f039b65aede" +checksum = "8c1bba4f227a4a53d12b653f50ca7bf10c9119ae2aba56aff9e0338b5c98f36a" [[package]] name = "dialoguer" -version = "0.10.1" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8c8ae48e400addc32a8710c8d62d55cb84249a7d58ac4cd959daecfbaddc545" +checksum = "a92e7e37ecef6857fdc0c0c5d42fd5b0938e46590c2183cc92dd310a6d078eb1" dependencies = [ "console", "tempfile", "zeroize", ] -[[package]] -name = "digest" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3d0c8c8752312f9713efd397ff63acb9f85585afbf179282e720e7704954dd5" -dependencies = [ - "generic-array 0.12.4", -] - [[package]] name = "digest" version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" dependencies = [ - "generic-array 0.14.5", + "generic-array", ] [[package]] name = "digest" -version = "0.10.3" +version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2fb860ca6fafa5552fb6d0e816a69c8e49f0908bf524e30a90d97c85892d506" +checksum = "8168378f4e5023e7218c89c891c0fd8ecdb5e5e4f18cb78f38cf245dd021e76f" dependencies = [ - "block-buffer 0.10.2", + "block-buffer 0.10.3", "crypto-common", "subtle", ] @@ -864,27 +815,27 @@ dependencies = [ [[package]] name = "dunce" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "453440c271cf5577fd2a40e4942540cb7d0d2f85e27c8d07dd0023c925a67541" +checksum = "0bd4b30a6560bbd9b4620f4de34c3f14f60848e58a9b7216801afcb4c7b31c3c" [[package]] name = "dyn-clone" -version = "1.0.6" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "140206b78fb2bc3edbcfc9b5ccbd0b30699cfe8d348b8b31b330e47df5291a5a" +checksum = "c9b0705efd4599c15a38151f4721f7bc388306f61084d3bfd50bd07fbca5cb60" [[package]] name = "either" -version = "1.6.1" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" +checksum = "90e5c1c8368803113bf0c9584fc495a58b86dc8a29edbf8fe877d21d9507e797" [[package]] name = "embed-resource" -version = "1.7.2" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecc24ff8d764818e9ab17963b0593c535f077a513f565e75e4352d758bc4d8c0" +checksum = "e62abb876c07e4754fae5c14cafa77937841f01740637e17d78dc04352f32a5e" dependencies = [ "cc", "rustc_version", @@ -980,9 +931,9 @@ checksum = "4e4f5d6e192964d498b45abee72ca445e91909094bc8e8791259e82c2a0d1aa6" [[package]] name = "env_logger" -version = "0.9.1" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c90bf5f19754d10198ccb95b70664fc925bd1fc090a0fd9a6ebc54acc8cd6272" +checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7" dependencies = [ "atty", "humantime", @@ -991,6 +942,27 @@ dependencies = [ "termcolor", ] +[[package]] +name = "errno" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f639046355ee4f37944e44f60642c6f3a7efa3cf6b78c78a0d989a8ce6c396a1" +dependencies = [ + "errno-dragonfly", + "libc", + "winapi", +] + +[[package]] +name = "errno-dragonfly" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf" +dependencies = [ + "cc", + "libc", +] + [[package]] name = "event-listener" version = "2.5.3" @@ -999,30 +971,24 @@ checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0" [[package]] name = "exr" -version = "1.5.1" +version = "1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9a7880199e74c6d3fe45579df2f436c5913a71405494cb89d59234d86b47dc5" +checksum = "8eb5f255b5980bb0c8cf676b675d1a99be40f316881444f44e0462eaf5df5ded" dependencies = [ "bit_field", "flume", "half", "lebe", - "miniz_oxide 0.5.4", + "miniz_oxide", "smallvec", "threadpool", ] -[[package]] -name = "fake-simd" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed" - [[package]] name = "fancy-regex" -version = "0.8.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d95b4efe5be9104a4a18a9916e86654319895138be727b229820c39257c30dda" +checksum = "0678ab2d46fa5195aaf59ad034c083d351377d4af57f3e073c074d0da3e3c766" dependencies = [ "bit-set", "regex", @@ -1030,46 +996,46 @@ dependencies = [ [[package]] name = "fastrand" -version = "1.7.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3fcf0cee53519c866c09b5de1f6c56ff9d647101f81c1964fa632e148896cdf" +checksum = "a7a407cfaa3385c4ae6b23e84623d48c2798d06e3e6a1878f7f59f17b3f86499" dependencies = [ "instant", ] [[package]] name = "filetime" -version = "0.2.16" +version = "0.2.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0408e2626025178a6a7f7ffc05a25bc47103229f19c113755de7bf63816290c" +checksum = "4e884668cd0c7480504233e951174ddc3b382f7c2666e3b7310b5c4e7b0c37f9" dependencies = [ "cfg-if", "libc", "redox_syscall", - "winapi", + "windows-sys 0.42.0", ] [[package]] name = "flate2" -version = "1.0.24" +version = "1.0.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f82b0f4c27ad9f8bfd1f3208d882da2b09c301bc1c828fd3a00d0216d2fbbff6" +checksum = "a8a2db397cb1c8772f31494cb8917e48cd1e64f0fa7efac59fbd741a0a8ce841" dependencies = [ "crc32fast", - "miniz_oxide 0.5.4", + "miniz_oxide", ] [[package]] name = "flume" -version = "0.10.13" +version = "0.10.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ceeb589a3157cac0ab8cc585feb749bd2cea5cb55a6ee802ad72d9fd38303da" +checksum = "1657b4441c3403d9f7b3409e47575237dac27b1b5726df654a6ecbf92f0f7577" dependencies = [ "futures-core", "futures-sink", "nanorand", "pin-project", - "spin 0.9.3", + "spin 0.9.4", ] [[package]] @@ -1095,19 +1061,18 @@ checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" [[package]] name = "form_urlencoded" -version = "1.0.1" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191" +checksum = "a9c384f161156f5260c24a097c56119f9be8c798586aecc13afbcbe7b7e26bf8" dependencies = [ - "matches", "percent-encoding", ] [[package]] name = "fraction" -version = "0.10.0" +version = "0.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bb65943183b6b3cbf00f64c181e8178217e30194381b150e4f87ec59864c803" +checksum = "7aa5de57a62c2440ece64342ea59efb7171aa7d016faf8dfcb8795066a17146b" dependencies = [ "lazy_static", "num", @@ -1144,9 +1109,9 @@ dependencies = [ [[package]] name = "futures" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f21eda599937fba36daeb58a22e8f5cee2d14c4a17b5b7739c7c8e5e3b8230c" +checksum = "38390104763dc37a5145a53c29c63c1290b5d316d6086ec32c293f6736051bb0" dependencies = [ "futures-channel", "futures-core", @@ -1158,9 +1123,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30bdd20c28fadd505d0fd6712cdfcb0d4b5648baf45faef7f852afb2399bb050" +checksum = "52ba265a92256105f45b719605a571ffe2d1f0fea3807304b522c1d778f79eed" dependencies = [ "futures-core", "futures-sink", @@ -1168,15 +1133,15 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e5aa3de05362c3fb88de6531e6296e85cde7739cccad4b9dfeeb7f6ebce56bf" +checksum = "04909a7a7e4633ae6c4a9ab280aeb86da1236243a77b694a49eacd659a4bd3ac" [[package]] name = "futures-io" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbf4d2a7a308fd4578637c0b17c7e1c7ba127b8f6ba00b29f717e9655d85eb68" +checksum = "00f5fb52a06bdcadeb54e8d3671f8888a39697dcb0b81b23b55174030427f4eb" [[package]] name = "futures-lite" @@ -1195,9 +1160,9 @@ dependencies = [ [[package]] name = "futures-macro" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42cd15d1c7456c04dbdf7e88bcd69760d74f3a798d6444e16974b505b0e62f17" +checksum = "bdfb8ce053d86b91919aad980c220b1fb8401a9394410e1c289ed7e66b61835d" dependencies = [ "proc-macro2", "quote", @@ -1206,15 +1171,15 @@ dependencies = [ [[package]] name = "futures-sink" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21b20ba5a92e727ba30e72834706623d94ac93a725410b6a6b6fbc1b07f7ba56" +checksum = "39c15cf1a4aa79df40f1bb462fb39676d0ad9e366c2a33b590d7c66f4f81fcf9" [[package]] name = "futures-task" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6508c467c73851293f390476d4491cf4d227dbabcd4170f3bb6044959b294f1" +checksum = "2ffb393ac5d9a6eaa9d3fdf37ae2776656b706e200c8e16b1bdb227f5198e6ea" [[package]] name = "futures-timer" @@ -1228,9 +1193,9 @@ dependencies = [ [[package]] name = "futures-util" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44fb6cb1be61cc1d2e43b262516aafcf63b241cffdb1d3fa115f91d9c7b09c90" +checksum = "197676987abd2f9cadff84926f410af1c183608d36641465df73ae8211dc65d6" dependencies = [ "futures-channel", "futures-core", @@ -1255,18 +1220,9 @@ dependencies = [ [[package]] name = "generic-array" -version = "0.12.4" +version = "0.14.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffdf9f34f1447443d37393cc6c2b8313aebddcd96906caf34e54c68d8e57d7bd" -dependencies = [ - "typenum", -] - -[[package]] -name = "generic-array" -version = "0.14.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd48d33ec7f05fbfa152300fdad764757cbded343c1aa1cff2fbaf4134851803" +checksum = "bff49e947297f3312447abdca79f45f4738097cc82b06e72054d2223f601f1b9" dependencies = [ "typenum", "version_check", @@ -1285,9 +1241,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.7" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4eb1a864a501629691edf6c15a593b7a51eebaa1e8468e9ddc623de7c9b58ec6" +checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31" dependencies = [ "cfg-if", "js-sys", @@ -1302,7 +1258,7 @@ version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1583cc1656d7839fd3732b80cf4f38850336cdb9b8ded1cd399ca62958de3c99" dependencies = [ - "opaque-debug 0.3.0", + "opaque-debug", "polyval", ] @@ -1324,9 +1280,9 @@ checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574" [[package]] name = "globset" -version = "0.4.9" +version = "0.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a1e17342619edbc21a964c2afbeb6c820c6a2560032872f397bb97ea127bd0a" +checksum = "029d74589adefde59de1a0c4f4732695c32805624aec7b68d91503d4dba79afc" dependencies = [ "aho-corasick", "bstr", @@ -1337,9 +1293,9 @@ dependencies = [ [[package]] name = "gloo-net" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec897194fb9ac576c708f63d35604bc58f2a262b8cec0fabfed26f3991255f21" +checksum = "9050ff8617e950288d7bf7f300707639fdeda5ca0d0ecf380cff448cfd52f4a6" dependencies = [ "futures-channel", "futures-core", @@ -1357,9 +1313,9 @@ dependencies = [ [[package]] name = "gloo-timers" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fb7d06c1c8cc2a29bee7ec961009a0b2caa0793ee4900c2ffb348734ba1c8f9" +checksum = "98c4a8d6391675c6b2ee1a6c8d06e8e2d03605c44cec1270675985a4c2a5500b" dependencies = [ "futures-channel", "futures-core", @@ -1369,9 +1325,9 @@ dependencies = [ [[package]] name = "gloo-utils" -version = "0.1.5" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40913a05c8297adca04392f707b1e73b12ba7b8eab7244a4961580b1fd34063c" +checksum = "a8e8fc851e9c7b9852508bc6e3f690f452f474417e8545ec9857b7f7377036b5" dependencies = [ "js-sys", "serde", @@ -1382,9 +1338,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.3.14" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ca32592cf21ac7ccab1825cd87f6c9b3d9022c44d086172ed0966bec8af30be" +checksum = "5f9f29bc9dda355256b2916cf526ab02ce0aeaaaf2bad60d65ef3f12f11dd0f4" dependencies = [ "bytes", "fnv", @@ -1401,9 +1357,12 @@ dependencies = [ [[package]] name = "half" -version = "1.8.2" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eabb4a44450da02c90444cf74558da904edde8fb4e9035a9a6a4e15445af0bd7" +checksum = "6c467d36af040b7b2681f5fddd27427f6da8d3d072f575a265e181d2f8e8d157" +dependencies = [ + "crunchy", +] [[package]] name = "handlebars" @@ -1421,9 +1380,9 @@ dependencies = [ [[package]] name = "handlebars" -version = "4.3.1" +version = "4.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b66d0c1b6e3abfd1e72818798925e16e02ed77e1b47f6c25a95a23b377ee4299" +checksum = "035ef95d03713f2c347a72547b7cd38cbc9af7cd51e6099fb62d586d4a6dee3a" dependencies = [ "log", "pest", @@ -1435,18 +1394,9 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db0d4cf898abf0081f964436dc980e96670a0f36863e4b83aaacdb65c9d7ccc3" - -[[package]] -name = "heck" -version = "0.3.3" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" -dependencies = [ - "unicode-segmentation", -] +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" [[package]] name = "heck" @@ -1463,6 +1413,15 @@ dependencies = [ "libc", ] +[[package]] +name = "hermit-abi" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7" +dependencies = [ + "libc", +] + [[package]] name = "hex" version = "0.4.3" @@ -1475,14 +1434,14 @@ version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" dependencies = [ - "digest 0.10.3", + "digest 0.10.6", ] [[package]] name = "home" -version = "0.5.3" +version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2456aef2e6b6a9784192ae780c0f15bc57df0e918585282325e8c8ac27737654" +checksum = "747309b4b440c06d57b0b25f2aee03ee9b5e5397d288c60e21fc709bb98a7408" dependencies = [ "winapi", ] @@ -1509,7 +1468,7 @@ checksum = "75f43d41e26995c17e71ee126451dd3941010b0514a81a9d11f3b341debc2399" dependencies = [ "bytes", "fnv", - "itoa 1.0.2", + "itoa 1.0.5", ] [[package]] @@ -1549,9 +1508,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "hyper" -version = "0.14.20" +version = "0.14.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02c929dc5c39e335a03c405292728118860721b10190d98c2a0f0efd5baafbac" +checksum = "034711faac9d2166cb1baf1a2fb0b60b1f277f8492fd72176c17f3515e1abd3c" dependencies = [ "bytes", "futures-channel", @@ -1562,7 +1521,7 @@ dependencies = [ "http-body", "httparse", "httpdate", - "itoa 1.0.2", + "itoa 1.0.5", "pin-project-lite", "socket2", "tokio", @@ -1573,9 +1532,9 @@ dependencies = [ [[package]] name = "hyper-rustls" -version = "0.23.1" +version = "0.23.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59df7c4e19c950e6e0e868dcc0a300b09a9b88e9ec55bd879ca819087a77355d" +checksum = "1788965e61b367cd03a62950836d5cd41560c3577d90e40e0819373194d1661c" dependencies = [ "http", "hyper", @@ -1595,11 +1554,10 @@ checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" [[package]] name = "idna" -version = "0.2.3" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8" +checksum = "e14ddfc70884202db2244c223200c204c2bda1bc6e0998d11b5e024d657209e6" dependencies = [ - "matches", "unicode-bidi", "unicode-normalization", ] @@ -1634,7 +1592,7 @@ dependencies = [ "exr", "gif", "jpeg-decoder", - "num-rational 0.4.1", + "num-rational", "num-traits", "png", "scoped_threadpool", @@ -1643,18 +1601,18 @@ dependencies = [ [[package]] name = "include_dir" -version = "0.7.2" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "482a2e29200b7eed25d7fdbd14423326760b7f6658d21a4cf12d55a50713c69f" +checksum = "18762faeff7122e89e0857b02f7ce6fcc0d101d5e9ad2ad7846cc01d61b7f19e" dependencies = [ "include_dir_macros", ] [[package]] name = "include_dir_macros" -version = "0.7.2" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e074c19deab2501407c91ba1860fa3d6820bfde307db6d8cb851b55a10be89b" +checksum = "b139284b5cf57ecfa712bcc66950bb635b31aff41c188e8a4cfc758eca374a3f" dependencies = [ "proc-macro2", "quote", @@ -1662,9 +1620,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "1.9.1" +version = "1.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e" +checksum = "1885e79c1fc4b10f0e172c475f458b7f7b93061064d98c3293e98c5ba0c8b399" dependencies = [ "autocfg", "hashbrown", @@ -1699,6 +1657,15 @@ dependencies = [ "libc", ] +[[package]] +name = "inout" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0c10553d664a4d0bcff9f4215d0aac67a639cc68ef660840afe309b807bc9f5" +dependencies = [ + "generic-array", +] + [[package]] name = "instant" version = "0.1.12" @@ -1708,26 +1675,48 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "io-lifetimes" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46112a93252b123d31a119a8d1a1ac19deac4fac6e0e8b0df58f0d4e5870e63c" +dependencies = [ + "libc", + "windows-sys 0.42.0", +] + [[package]] name = "ipnet" -version = "2.5.0" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "879d54834c8c76457ef4293a689b2a8c59b076067ad77b15efafbb05f92a592b" +checksum = "11b0d96e660696543b251e58030cf9787df56da39dab19ad60eae7353040917e" [[package]] -name = "iso8601" +name = "is-terminal" version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5b94fbeb759754d87e1daea745bc8efd3037cd16980331fe1d1524c9a79ce96" +checksum = "28dfb6c8100ccc63462345b67d1bbc3679177c75ee4bf59bf29c8b1d110b8189" +dependencies = [ + "hermit-abi 0.2.6", + "io-lifetimes", + "rustix", + "windows-sys 0.42.0", +] + +[[package]] +name = "iso8601" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "296af15e112ec6dc38c9fd3ae027b5337a75466e8eed757bd7d5cf742ea85eb6" dependencies = [ "nom", ] [[package]] name = "itertools" -version = "0.10.3" +version = "0.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9a9d19fa1e79b6215ff29b9d6880b706147f16e9b1dbb1e4e5947b5b02bc5e3" +checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" dependencies = [ "either", ] @@ -1740,9 +1729,9 @@ checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" [[package]] name = "itoa" -version = "1.0.2" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "112c678d4050afce233f4f2852bb2eb519230b3cf12f33585275537d7e41578d" +checksum = "fad582f4b9e86b6caa621cabeb0963332d92eea04729ab12892c2533951e6440" [[package]] name = "java-properties" @@ -1757,9 +1746,9 @@ dependencies = [ [[package]] name = "jobserver" -version = "0.1.24" +version = "0.1.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af25a77299a7f711a01975c35a6a424eb6862092cc2d6c72c4ed6cbc56dfc1fa" +checksum = "068b1ee6743e4d11fb9c6a1e6064b3693a1b600e7f5f5988047d98b3dc9fb90b" dependencies = [ "libc", ] @@ -1775,18 +1764,18 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.58" +version = "0.3.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3fac17f7123a73ca62df411b1bf727ccc805daa070338fda671c86dac1bdc27" +checksum = "49409df3e3bf0856b916e2ceaca09ee28e6871cf7d9ce97a692cacfdb2a25a47" dependencies = [ "wasm-bindgen", ] [[package]] name = "json-patch" -version = "0.2.6" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f995a3c8f2bc3dd52a18a583e90f9ec109c047fa1603a853e46bcda14d2e279d" +checksum = "eb3fa5a61630976fc4c353c70297f2e93f1930e3ccee574d59d618ccbd5154ce" dependencies = [ "serde", "serde_json", @@ -1806,9 +1795,9 @@ dependencies = [ [[package]] name = "jsonrpsee" -version = "0.16.1" +version = "0.16.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5af9646e616e37c61093ef85e25bd883ae0c22e2fa1e6eedfe590048247116e3" +checksum = "7d291e3a5818a2384645fd9756362e6d89cf0541b0b916fa7702ea4a9833608e" dependencies = [ "jsonrpsee-client-transport", "jsonrpsee-core", @@ -1821,9 +1810,9 @@ dependencies = [ [[package]] name = "jsonrpsee-client-transport" -version = "0.16.1" +version = "0.16.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e85cfc9c2f17eab237fdfa2efe5c1608fd06a90e1e0d7fd7b10f2d0e153f375" +checksum = "965de52763f2004bc91ac5bcec504192440f0b568a5d621c59d9dbd6f886c3fb" dependencies = [ "anyhow", "futures-channel", @@ -1846,9 +1835,9 @@ dependencies = [ [[package]] name = "jsonrpsee-core" -version = "0.16.1" +version = "0.16.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "673d68136e2f0f67323bab95b3a7177df26ac21ddbf395fc32d60f30fe5a1364" +checksum = "a4e70b4439a751a5de7dd5ed55eacff78ebf4ffe0fc009cb1ebb11417f5b536b" dependencies = [ "anyhow", "arrayvec 0.7.2", @@ -1875,9 +1864,9 @@ dependencies = [ [[package]] name = "jsonrpsee-http-client" -version = "0.16.1" +version = "0.16.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42007820863ab29f3adeacf43886ef54abaedb35bc33dada25771db4e1f94de4" +checksum = "cc345b0a43c6bc49b947ebeb936e886a419ee3d894421790c969cc56040542ad" dependencies = [ "async-trait", "hyper", @@ -1894,9 +1883,9 @@ dependencies = [ [[package]] name = "jsonrpsee-server" -version = "0.16.1" +version = "0.16.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a78f34520019321bd466d00620606db2f40827362d0185b3b95040328eb502f6" +checksum = "1fb69dad85df79527c019659a992498d03f8495390496da2f07e6c24c2b356fc" dependencies = [ "futures-channel", "futures-util", @@ -1916,9 +1905,9 @@ dependencies = [ [[package]] name = "jsonrpsee-types" -version = "0.16.1" +version = "0.16.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7985a27ee315c7c8c5c5033ac133e9472aec881edfd947780f5a9970efb7cbbf" +checksum = "5bd522fe1ce3702fd94812965d7bb7a3364b1c9aba743944c5a00529aae80f8c" dependencies = [ "anyhow", "beef", @@ -1930,9 +1919,9 @@ dependencies = [ [[package]] name = "jsonrpsee-wasm-client" -version = "0.16.1" +version = "0.16.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46811fcec615d8e58228e7e281b3238693b26da1eb2469ac208af40a217bc8d9" +checksum = "a77310456f43c6c89bcba1f6b2fc2a28300da7c341f320f5128f8c83cc63232d" dependencies = [ "jsonrpsee-client-transport", "jsonrpsee-core", @@ -1941,9 +1930,9 @@ dependencies = [ [[package]] name = "jsonrpsee-ws-client" -version = "0.16.1" +version = "0.16.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "480fc9922f10b8fca3f07c07c51e137ddcf13fd60a304f117cfaa9e9bf41c60b" +checksum = "0b83daeecfc6517cfe210df24e570fb06213533dfb990318fae781f4c7119dd9" dependencies = [ "http", "jsonrpsee-client-transport", @@ -1953,18 +1942,19 @@ dependencies = [ [[package]] name = "jsonschema" -version = "0.16.0" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ebd40599e7f1230ce296f73b88c022b98ed66689f97eaa54bbeadc337a2ffa6" +checksum = "6ca9e2b45609132ae2214d50482c03aeee78826cd6fd53a8940915b81acedf16" dependencies = [ "ahash", "anyhow", "base64", "bytecount", + "clap", "fancy-regex", "fraction", "iso8601", - "itoa 1.0.2", + "itoa 1.0.5", "lazy_static", "memchr", "num-cmp", @@ -1974,17 +1964,16 @@ dependencies = [ "reqwest", "serde", "serde_json", - "structopt", "time", "url", - "uuid 0.8.2", + "uuid 1.2.2", ] [[package]] name = "kqueue" -version = "1.0.6" +version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d6112e8f37b59803ac47a42d14f1f3a59bbf72fc6857ffc5be455e28a691f8e" +checksum = "2c8fc60ba15bf51257aa9807a48a61013db043fcf3a78cb0d916e8e396dcad98" dependencies = [ "kqueue-sys", "libc", @@ -2039,9 +2028,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.126" +version = "0.2.139" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836" +checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" [[package]] name = "libflate" @@ -2065,9 +2054,9 @@ dependencies = [ [[package]] name = "libloading" -version = "0.7.3" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "efbc0f03f9a775e9f6aed295c6a1ba2253c5757a9e03d55c6caa46a681abcddd" +checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f" dependencies = [ "cfg-if", "winapi", @@ -2082,6 +2071,12 @@ dependencies = [ "safemem", ] +[[package]] +name = "linux-raw-sys" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f051f77a7c8e6957c0696eac88f26b0117e54f52d3fc682ab19397a8812846a4" + [[package]] name = "local-ip-address" version = "0.4.9" @@ -2096,9 +2091,9 @@ dependencies = [ [[package]] name = "lock_api" -version = "0.4.7" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "327fa5b6a6940e4699ec49a9beae1ea4845c6bab9314e4f84ac68742139d8c53" +checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" dependencies = [ "autocfg", "scopeguard", @@ -2129,12 +2124,6 @@ dependencies = [ "libc", ] -[[package]] -name = "maplit" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d" - [[package]] name = "markup5ever" version = "0.10.1" @@ -2175,9 +2164,9 @@ checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" [[package]] name = "memoffset" -version = "0.6.5" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce" +checksum = "5de893c32cde5f383baa4c04c5d6dbdd735cfd4a794b0debdb2bb1b421da5ff4" dependencies = [ "autocfg", ] @@ -2196,24 +2185,15 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" [[package]] name = "minisign" -version = "0.7.0" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43935b78ea0886357ab9259bd227879a54b12a83de261c3270aad584500cba2f" +checksum = "ce49953dd06a44e1034590bb619bfe8900c29500053c0c0f83e9260a34466aa5" dependencies = [ - "getrandom 0.2.7", + "getrandom 0.2.8", "rpassword", "scrypt", ] -[[package]] -name = "miniz_oxide" -version = "0.5.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96590ba8f175222643a85693f33d26e9c8a015f599c216509b1a6894af675d34" -dependencies = [ - "adler", -] - [[package]] name = "miniz_oxide" version = "0.6.2" @@ -2225,14 +2205,14 @@ dependencies = [ [[package]] name = "mio" -version = "0.8.4" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57ee1c23c7c63b0c9250c339ffdc69255f110b298b901b9f6c82547b7b87caaf" +checksum = "e5d732bc30207a6423068df043e3d02e0735b155ad7ce1a6f76fe2baa5b158de" dependencies = [ "libc", "log", "wasi 0.11.0+wasi-snapshot-preview1", - "windows-sys 0.36.1", + "windows-sys 0.42.0", ] [[package]] @@ -2241,14 +2221,14 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a51313c5820b0b02bd422f4b44776fbf47961755c74ce64afc73bfad10226c3" dependencies = [ - "getrandom 0.2.7", + "getrandom 0.2.8", ] [[package]] name = "napi" -version = "2.10.0" +version = "2.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bace9a4026eaa6631804e2ff9030c47beb0483fbb12dc17950fe1530c4961f84" +checksum = "838b5b414a008e75b97edb3c3e6f189034af789a0608686299b149d3b0e66c39" dependencies = [ "bitflags", "ctor", @@ -2265,11 +2245,11 @@ checksum = "882a73d9ef23e8dc2ebbffb6a6ae2ef467c0f18ac10711e4cc59c5485d41df0e" [[package]] name = "napi-derive" -version = "2.9.0" +version = "2.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1be75210f300e9fbf386ccac1c8eaaed23410e2f7f7aa9295b78c436a172ef51" +checksum = "af4e44e34e70aa61be9036ae652e27c20db5bca80e006be0f482419f6601352a" dependencies = [ - "convert_case 0.5.0", + "convert_case 0.6.0", "napi-derive-backend", "proc-macro2", "quote", @@ -2278,11 +2258,11 @@ dependencies = [ [[package]] name = "napi-derive-backend" -version = "1.0.37" +version = "1.0.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92ba4800264fac8a7726b208d5dd4c6d637d1027d73b026061a69d3339a0a930" +checksum = "17925fff04b6fa636f8e4b4608cc1a4f1360b64ac8ecbfdb7da1be1dc74f6843" dependencies = [ - "convert_case 0.5.0", + "convert_case 0.6.0", "once_cell", "proc-macro2", "quote", @@ -2301,9 +2281,9 @@ dependencies = [ [[package]] name = "native-tls" -version = "0.2.10" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd7e2f3618557f980e0b17e8856252eee3c97fa12c54dff0ca290fb6266ca4a9" +checksum = "07226173c32f2926027b63cce4bcd8076c3552846cbe7925f3aaffeac0a3b92e" dependencies = [ "lazy_static", "libc", @@ -2335,13 +2315,14 @@ checksum = "e4a24736216ec316047a1fc4252e27dabb04218aa4a3f37c6e7ddbf1f9782b54" [[package]] name = "nix" -version = "0.24.1" +version = "0.26.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f17df307904acd05aa8e32e97bb20f2a0df1728bbc2d771ae8f9a90463441e9" +checksum = "46a58d1d356c6597d08cde02c2f09d785b09e28711837b1ed667dc652c08a694" dependencies = [ "bitflags", "cfg-if", "libc", + "static_assertions", ] [[package]] @@ -2352,9 +2333,9 @@ checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb" [[package]] name = "nom" -version = "7.1.1" +version = "7.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8903e5a29a317527874d0402f867152a3d21c908bb0b933e416c65e301d4c36" +checksum = "e5507769c4919c998e69e49c839d9dc6e693ede4cc4290d6ad8b41d4f09c548c" dependencies = [ "memchr", "minimal-lexical", @@ -2380,9 +2361,9 @@ dependencies = [ [[package]] name = "notify-debouncer-mini" -version = "0.2.0" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c538ea1dd436b41e751922510cfbcaea2def87ed6ed94aa1edc15dc31b4c179" +checksum = "e23e9fa24f094b143c1eb61f90ac6457de87be6987bc70746e0179f7dbc9007b" dependencies = [ "crossbeam-channel", "notify", @@ -2390,23 +2371,23 @@ dependencies = [ [[package]] name = "num" -version = "0.2.1" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8536030f9fea7127f841b45bb6243b27255787fb4eb83958aa1ef9d2fdc0c36" +checksum = "43db66d1170d347f9a065114077f7dccb00c1b9478c89384490a3425279a4606" dependencies = [ "num-bigint", "num-complex", "num-integer", "num-iter", - "num-rational 0.2.4", + "num-rational", "num-traits", ] [[package]] name = "num-bigint" -version = "0.2.6" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "090c7f9998ee0ff65aa5b723e4009f7b217707f1fb5ea551329cc4d6231fb304" +checksum = "f93ab6289c7b344a8a9f60f88d80aa20032336fe78da341afc91c8a2341fc75f" dependencies = [ "autocfg", "num-integer", @@ -2421,11 +2402,10 @@ checksum = "63335b2e2c34fae2fb0aa2cecfd9f0832a1e24b3b32ecec612c3426d46dc8aaa" [[package]] name = "num-complex" -version = "0.2.4" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6b19411a9719e753aff12e5187b74d60d3dc449ec3f4dc21e3989c3f554bc95" +checksum = "7ae39348c8bc5fbd7f40c727a9925f03517afd2ab27d46702108b6a7e5414c19" dependencies = [ - "autocfg", "num-traits", ] @@ -2450,18 +2430,6 @@ dependencies = [ "num-traits", ] -[[package]] -name = "num-rational" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c000134b5dbf44adc5cb772486d335293351644b801551abe8f75c84cfa4aef" -dependencies = [ - "autocfg", - "num-bigint", - "num-integer", - "num-traits", -] - [[package]] name = "num-rational" version = "0.4.1" @@ -2469,6 +2437,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0638a1c9d0a3c0914158145bc76cff373a75a627e6ecbfb71cbe6f453a5a19b0" dependencies = [ "autocfg", + "num-bigint", "num-integer", "num-traits", ] @@ -2484,20 +2453,11 @@ dependencies = [ [[package]] name = "num_cpus" -version = "1.13.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1" -dependencies = [ - "hermit-abi", - "libc", -] - -[[package]] -name = "num_threads" -version = "0.1.6" +version = "1.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2819ce041d2ee131036f4fc9d6ae7ae125a3a40e97ba64d04fe799ad9dabbb44" +checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" dependencies = [ + "hermit-abi 0.2.6", "libc", ] @@ -2531,15 +2491,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.14.0" +version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f7254b99e31cad77da24b08ebf628882739a608578bb1bcdfc1f9c21260d7c0" - -[[package]] -name = "opaque-debug" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2839e79665f131bdb5782e51f2c6c9599c133c6098982a54c794358bf432529c" +checksum = "6f61fba1741ea2b3d6a1e3178721804bb716a68a6aeba1149b5d52e3d464ea66" [[package]] name = "opaque-debug" @@ -2549,9 +2503,9 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" [[package]] name = "openssl" -version = "0.10.40" +version = "0.10.45" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb81a6430ac911acb25fe5ac8f1d2af1b4ea8a4fdfda0f1ee4292af2e2d8eb0e" +checksum = "b102428fd03bc5edf97f62620f7298614c45cedf287c271e7ed450bbaf83f2e1" dependencies = [ "bitflags", "cfg-if", @@ -2590,9 +2544,9 @@ dependencies = [ [[package]] name = "openssl-sys" -version = "0.9.74" +version = "0.9.80" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "835363342df5fba8354c5b453325b110ffd54044e588c539cf2f20a8014e4cb1" +checksum = "23bbbf7854cd45b83958ebe919f0e8e516793727652e27fda10a8384cfc790b7" dependencies = [ "autocfg", "cc", @@ -2604,9 +2558,9 @@ dependencies = [ [[package]] name = "os_info" -version = "3.5.0" +version = "3.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5209b2162b2c140df493a93689e04f8deab3a67634f5bc7a553c0a98e5b8d399" +checksum = "c4750134fb6a5d49afc80777394ad5d95b04bc12068c6abb92fae8f43817270f" dependencies = [ "log", "serde", @@ -2615,19 +2569,19 @@ dependencies = [ [[package]] name = "os_pipe" -version = "1.0.1" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c92f2b54f081d635c77e7120862d48db8e91f7f21cef23ab1b4fe9971c59f55" +checksum = "c6a252f1f8c11e84b3ab59d7a488e48e4478a93937e027076638c49536204639" dependencies = [ "libc", - "winapi", + "windows-sys 0.42.0", ] [[package]] name = "os_str_bytes" -version = "6.1.0" +version = "6.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21326818e99cfe6ce1e524c2a805c189a99b5ae555a35d19f9a284b427d86afa" +checksum = "9b7820b9daea5457c9f21c69448905d723fbd21136ccf521748f23fd49e723ee" [[package]] name = "parking" @@ -2647,25 +2601,25 @@ dependencies = [ [[package]] name = "parking_lot_core" -version = "0.9.3" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09a279cbf25cb0757810394fbc1e359949b59e348145c643a939a525692e6929" +checksum = "7ff9f3fef3968a3ec5945535ed654cb38ff72d7495a25619e2247fb15a2ed9ba" dependencies = [ "cfg-if", "libc", "redox_syscall", "smallvec", - "windows-sys 0.36.1", + "windows-sys 0.42.0", ] [[package]] name = "password-hash" -version = "0.3.2" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d791538a6dcc1e7cb7fe6f6b58aca40e7f79403c45b2bc274008b5e647af1d8" +checksum = "7676374caaee8a325c9e7a2ae557f216c5563a171d6997b0ef8a65af35147700" dependencies = [ "base64ct", - "rand_core 0.6.3", + "rand_core 0.6.4", "subtle", ] @@ -2683,11 +2637,11 @@ dependencies = [ [[package]] name = "pbkdf2" -version = "0.10.1" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "271779f35b581956db91a3e55737327a03aa051e90b1c47aeb189508533adfd7" +checksum = "83a0692ec44e4cf1ef28ca317f14f8f07da2d95ec3fa01f86e4467b725e60917" dependencies = [ - "digest 0.10.3", + "digest 0.10.6", "hmac", "password-hash", "sha2", @@ -2695,24 +2649,25 @@ dependencies = [ [[package]] name = "percent-encoding" -version = "2.1.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" +checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e" [[package]] name = "pest" -version = "2.1.3" +version = "2.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10f4872ae94d7b90ae48754df22fd42ad52ce740b8f370b03da4835417403e53" +checksum = "0f6e86fb9e7026527a0d46bc308b841d73170ef8f443e1807f6ef88526a816d4" dependencies = [ + "thiserror", "ucd-trie", ] [[package]] name = "pest_derive" -version = "2.1.0" +version = "2.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "833d1ae558dc601e9a60366421196a8d94bc0ac980476d0b67e1d0988d72b2d0" +checksum = "96504449aa860c8dcde14f9fba5c58dc6658688ca1fe363589d6327b8662c603" dependencies = [ "pest", "pest_generator", @@ -2720,9 +2675,9 @@ dependencies = [ [[package]] name = "pest_generator" -version = "2.1.3" +version = "2.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99b8db626e31e5b81787b9783425769681b347011cc59471e33ea46d2ea0cf55" +checksum = "798e0220d1111ae63d66cb66a5dcb3fc2d986d520b98e49e1852bfdb11d7c5e7" dependencies = [ "pest", "pest_meta", @@ -2733,13 +2688,13 @@ dependencies = [ [[package]] name = "pest_meta" -version = "2.1.3" +version = "2.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54be6e404f5317079812fc8f9f5279de376d8856929e21c184ecf6bbd692a11d" +checksum = "984298b75898e30a843e278a9f2452c31e349a073a0ce6fd950a12a74464e065" dependencies = [ - "maplit", + "once_cell", "pest", - "sha-1 0.8.2", + "sha1", ] [[package]] @@ -2842,18 +2797,18 @@ dependencies = [ [[package]] name = "pin-project" -version = "1.0.10" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58ad3879ad3baf4e44784bc6a718a8698867bb991f8ce24d1bcbe2cfb4c3a75e" +checksum = "ad29a609b6bcd67fee905812e544992d216af9d755757c05ed2d0e15a74c6ecc" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.0.10" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "744b6f092ba29c3650faf274db506afd39944f48420f6c86b17cfe0ee1cb36bb" +checksum = "069bdb1e05adc7a8990dce9cc75370895fbe4e3d58b9b73bf1aee56359344a55" dependencies = [ "proc-macro2", "quote", @@ -2874,9 +2829,9 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "pkg-config" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1df8c4ec4b0627e53bdf214615ad287367e482558cf84b109250b37464dc03ae" +checksum = "6ac9a59f73473f1b8d852421e59e64809f025994837ef743615c6d0c5b305160" [[package]] name = "plist" @@ -2901,7 +2856,7 @@ dependencies = [ "bitflags", "crc32fast", "flate2", - "miniz_oxide 0.6.2", + "miniz_oxide", ] [[package]] @@ -2912,15 +2867,15 @@ checksum = "8419d2b623c7c0896ff2d5d96e2cb4ede590fed28fcc34934f4c33c036e620a1" dependencies = [ "cfg-if", "cpufeatures", - "opaque-debug 0.3.0", + "opaque-debug", "universal-hash", ] [[package]] name = "ppv-lite86" -version = "0.2.16" +version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872" +checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" [[package]] name = "precomputed-hash" @@ -2954,15 +2909,15 @@ dependencies = [ [[package]] name = "proc-macro-hack" -version = "0.5.19" +version = "0.5.20+deprecated" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5" +checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068" [[package]] name = "proc-macro2" -version = "1.0.46" +version = "1.0.49" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94e2ef8dbfc347b10c094890f778ee2e36ca9bb4262e86dc99cd217e35f3470b" +checksum = "57a8eca9f9c4ffde41714334dee777596264c7825420f521abc92b5b5deb63a5" dependencies = [ "unicode-ident", ] @@ -2975,9 +2930,9 @@ checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3" [[package]] name = "quote" -version = "1.0.20" +version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bcdf212e9776fbcb2d23ab029360416bb1706b1aea2d1a5ba002727cbcab804" +checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b" dependencies = [ "proc-macro2", ] @@ -3004,7 +2959,7 @@ checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ "libc", "rand_chacha 0.3.1", - "rand_core 0.6.3", + "rand_core 0.6.4", ] [[package]] @@ -3024,7 +2979,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", - "rand_core 0.6.3", + "rand_core 0.6.4", ] [[package]] @@ -3038,11 +2993,11 @@ dependencies = [ [[package]] name = "rand_core" -version = "0.6.3" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.7", + "getrandom 0.2.8", ] [[package]] @@ -3065,21 +3020,19 @@ dependencies = [ [[package]] name = "rayon" -version = "1.5.3" +version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd99e5772ead8baa5215278c9b15bf92087709e9c1b2d1f97cdb5a183c933a7d" +checksum = "6db3a213adf02b3bcfd2d3846bb41cb22857d131789e01df434fb7e7bc0759b7" dependencies = [ - "autocfg", - "crossbeam-deque", "either", "rayon-core", ] [[package]] name = "rayon-core" -version = "1.9.3" +version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "258bcdb5ac6dad48491bb2992db6b7cf74878b0384908af124823d118c99683f" +checksum = "cac410af5d00ab6884528b4ab69d1e8e146e8d471201800fa1b4524126de6ad3" dependencies = [ "crossbeam-channel", "crossbeam-deque", @@ -3089,9 +3042,9 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.2.13" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62f25bc4c7e55e0b0b7a1d43fb893f4fa1361d0abe38b9ce4f323c2adfe6ef42" +checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" dependencies = [ "bitflags", ] @@ -3102,16 +3055,16 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b" dependencies = [ - "getrandom 0.2.7", + "getrandom 0.2.8", "redox_syscall", "thiserror", ] [[package]] name = "regex" -version = "1.6.0" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c4eb3267174b8c6c2f654116623910a0fef09c4753f8dd83db29c48a0df988b" +checksum = "e076559ef8e241f2ae3479e36f97bd5741c0330689e217ad51ce2c76808b868a" dependencies = [ "aho-corasick", "memchr", @@ -3120,9 +3073,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.6.27" +version = "0.6.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244" +checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848" [[package]] name = "remove_dir_all" @@ -3135,9 +3088,9 @@ dependencies = [ [[package]] name = "reqwest" -version = "0.11.12" +version = "0.11.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "431949c384f4e2ae07605ccaa56d1d9d2ecdb5cadd4f9577ccfab29f2e5149fc" +checksum = "68cc60575865c7831548863cc02356512e3f1dc2f3f82cb837d7fc4cc8f3c97c" dependencies = [ "base64", "bytes", @@ -3190,9 +3143,20 @@ checksum = "3582f63211428f83597b51b2ddb88e2a91a9d52d12831f9d08f5e624e8977422" [[package]] name = "rpassword" -version = "5.0.1" +version = "7.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6678cf63ab3491898c0d021b493c94c9b221d91295294a2a5746eacbe5928322" +dependencies = [ + "libc", + "rtoolbox", + "winapi", +] + +[[package]] +name = "rtoolbox" +version = "0.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffc936cf8a7ea60c58f030fd36a612a48f440610214dc54bc36431f9ea0c3efb" +checksum = "034e22c514f5c0cb8a10ff341b9b048b5ceb21591f31c8f44c43b960f9b3524a" dependencies = [ "libc", "winapi", @@ -3213,11 +3177,25 @@ dependencies = [ "semver", ] +[[package]] +name = "rustix" +version = "0.36.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4feacf7db682c6c329c4ede12649cd36ecab0f3be5b7d74e6a20304725db4549" +dependencies = [ + "bitflags", + "errno", + "io-lifetimes", + "libc", + "linux-raw-sys", + "windows-sys 0.42.0", +] + [[package]] name = "rustls" -version = "0.20.6" +version = "0.20.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aab8ee6c7097ed6057f43c187a62418d0c05a4bd5f18b3571db50ee0f9ce033" +checksum = "539a2bfe908f471bfa933876bd1eb6a19cf2176d375f82ef7f99530a40e48c2c" dependencies = [ "log", "ring", @@ -3248,9 +3226,9 @@ dependencies = [ [[package]] name = "ryu" -version = "1.0.10" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3f6f92acf49d1b98f7a81226834412ada05458b7364277387724a237f062695" +checksum = "7b4b9743ed687d4b4bcedf9ff5eaa7398495ae14e61cba0a295704edbc7decde" [[package]] name = "safemem" @@ -3260,11 +3238,11 @@ checksum = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072" [[package]] name = "salsa20" -version = "0.9.0" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c0fbb5f676da676c260ba276a8f43a8dc67cf02d1438423aeb1c677a7212686" +checksum = "97a22f5af31f73a954c10289c93e8a50cc23d971e80ee446f1f6f7137a088213" dependencies = [ - "cipher", + "cipher 0.4.3", ] [[package]] @@ -3288,9 +3266,9 @@ dependencies = [ [[package]] name = "schemars" -version = "0.8.10" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1847b767a3d62d95cbf3d8a9f0e421cf57a0d8aa4f411d4b16525afb0284d4ed" +checksum = "2a5fb6c61f29e723026dc8e923d94c694313212abbecbbe5f55a7748eec5b307" dependencies = [ "dyn-clone", "schemars_derive", @@ -3301,9 +3279,9 @@ dependencies = [ [[package]] name = "schemars_derive" -version = "0.8.10" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af4d7e1b012cb3d9129567661a63755ea4b8a7386d339dc945ae187e403c6743" +checksum = "f188d036977451159430f3b8dc82ec76364a42b7e289c2b18a9a18f4470058e9" dependencies = [ "proc-macro2", "quote", @@ -3325,9 +3303,9 @@ checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" [[package]] name = "scrypt" -version = "0.8.1" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e73d6d7c6311ebdbd9184ad6c4447b2f36337e327bda107d3ba9e3c374f9d325" +checksum = "9f9e24d2b632954ded8ab2ef9fea0a0c769ea56ea98bddbafbad22caeeadf45d" dependencies = [ "hmac", "pbkdf2", @@ -3347,9 +3325,9 @@ dependencies = [ [[package]] name = "security-framework" -version = "2.6.1" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dc14f172faf8a0194a3aded622712b0de276821addc574fa54fc0a1167e10dc" +checksum = "2bc1bb97804af6631813c55739f771071e0f2ed33ee20b68c86ec505d906356c" dependencies = [ "bitflags", "core-foundation 0.9.3", @@ -3390,9 +3368,9 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.10" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a41d061efea015927ac527063765e73601444cdc344ba855bc7bd44578b25e1c" +checksum = "58bc9567378fc7690d6b2addae4e60ac2eeea07becb2c64b9f218b53865cba2a" [[package]] name = "send_wrapper" @@ -3402,18 +3380,18 @@ checksum = "f638d531eccd6e23b980caf34876660d38e265409d8e99b397ab71eb3612fad0" [[package]] name = "serde" -version = "1.0.137" +version = "1.0.152" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61ea8d54c77f8315140a05f4c7237403bf38b72704d031543aa1d16abbf517d1" +checksum = "bb7d1f0d3021d347a83e556fc4683dea2ea09d87bccdf88ff5c12545d89d5efb" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.137" +version = "1.0.152" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f26faba0c3959972377d3b2d306ee9f71faee9714294e41bb777f83f88578be" +checksum = "af487d118eecd09402d70a5d72551860e788df87b464af30e5ea6a38c75c541e" dependencies = [ "proc-macro2", "quote", @@ -3433,11 +3411,11 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.81" +version = "1.0.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b7ce2b32a1aed03c558dc61a5cd328f15aff2dbc17daad8fb8af04d2100e15c" +checksum = "877c235533714907a8c2464236f5c4b2a17262ef1bd71f38f35ea592c8da6883" dependencies = [ - "itoa 1.0.2", + "itoa 1.0.5", "ryu", "serde", ] @@ -3449,7 +3427,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" dependencies = [ "form_urlencoded", - "itoa 1.0.2", + "itoa 1.0.5", "ryu", "serde", ] @@ -3508,18 +3486,6 @@ dependencies = [ "stable_deref_trait", ] -[[package]] -name = "sha-1" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7d94d0bede923b3cea61f3f1ff57ff8cdfd77b400fb8f9998949e0cf04163df" -dependencies = [ - "block-buffer 0.7.3", - "digest 0.8.1", - "fake-simd", - "opaque-debug 0.2.3", -] - [[package]] name = "sha-1" version = "0.9.8" @@ -3530,29 +3496,29 @@ dependencies = [ "cfg-if", "cpufeatures", "digest 0.9.0", - "opaque-debug 0.3.0", + "opaque-debug", ] [[package]] name = "sha-1" -version = "0.10.0" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "028f48d513f9678cda28f6e4064755b3fbb2af6acd672f2c209b62323f7aea0f" +checksum = "f5058ada175748e33390e40e872bd0fe59a19f265d0158daa551c5a88a76009c" dependencies = [ "cfg-if", "cpufeatures", - "digest 0.10.3", + "digest 0.10.6", ] [[package]] name = "sha1" -version = "0.10.1" +version = "0.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c77f4e7f65455545c2153c1253d25056825e77ee2533f0e41deb65a93a34852f" +checksum = "f04293dc80c3993519f2d7f6f511707ee7094fe0c6d3406feb330cdb3540eba3" dependencies = [ "cfg-if", "cpufeatures", - "digest 0.10.3", + "digest 0.10.6", ] [[package]] @@ -3563,13 +3529,13 @@ checksum = "ae1a47186c03a32177042e55dbc5fd5aee900b8e0069a8d70fba96a9375cd012" [[package]] name = "sha2" -version = "0.10.2" +version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55deaec60f81eefe3cce0dc50bda92d6d8e88f2a27df7c5033b42afeb1ed2676" +checksum = "82e6b795fe2e3b1e845bafcb27aa35405c4d47cdfc92af5fc8d3002f76cebdc0" dependencies = [ "cfg-if", "cpufeatures", - "digest 0.10.3", + "digest 0.10.6", ] [[package]] @@ -3599,9 +3565,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.8.1" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc88c725d61fc6c3132893370cac4a0200e3fedf5da8331c570664b1987f5ca2" +checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" [[package]] name = "socket2" @@ -3637,9 +3603,9 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" [[package]] name = "spin" -version = "0.9.3" +version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c530c2b0d0bf8b69304b39fe2001993e267461948b890cd037d8ad4293fa1a0d" +checksum = "7f6002a767bff9e83f8eeecf883ecb8011875a21ae8da43bffb817a57e78cc09" dependencies = [ "lock_api", ] @@ -3664,9 +3630,9 @@ checksum = "8207e78455ffdf55661170876f88daf85356e4edd54e0a3dbc79586ca1e50cbe" [[package]] name = "stfu8" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "019f0c664fd85d5a87dcfb62b40b691055392a35a6e59f4df83d4b770db7e876" +checksum = "1310970b29733b601839578f8ba24991a97057dbedc4ac0decea835474054ee7" dependencies = [ "lazy_static", "regex", @@ -3698,42 +3664,12 @@ dependencies = [ "quote", ] -[[package]] -name = "strsim" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" - [[package]] name = "strsim" version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" -[[package]] -name = "structopt" -version = "0.3.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c6b5c64445ba8094a6ab0c3cd2ad323e07171012d9c98b0b15651daf1787a10" -dependencies = [ - "clap 2.34.0", - "lazy_static", - "structopt-derive", -] - -[[package]] -name = "structopt-derive" -version = "0.4.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcb5ae327f9cc13b68763b5749770cb9e048a99bd9dfdfa58d0cf05d5f64afe0" -dependencies = [ - "heck 0.3.3", - "proc-macro-error", - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "sublime_fuzzy" version = "0.7.0" @@ -3754,9 +3690,9 @@ checksum = "45f6ee7c7b87caf59549e9fe45d6a69c75c8019e79e212a835c5da0e92f0ba08" [[package]] name = "syn" -version = "1.0.98" +version = "1.0.107" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c50aef8a904de4c23c788f104b7dddc7d6f79c647c7c8ce4cc8f73eb0ca773dd" +checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5" dependencies = [ "proc-macro2", "quote", @@ -3771,9 +3707,9 @@ checksum = "20518fe4a4c9acf048008599e464deb21beeae3d3578418951a189c235a7a9a8" [[package]] name = "sysctl" -version = "0.4.4" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1123645dfaf2b5eac6b6c88addafc359c789b8ef2a770ecaef758c1ddf363ea4" +checksum = "225e483f02d0ad107168dc57381a8a40c3aeea6abe47f37506931f861643cfa8" dependencies = [ "bitflags", "byteorder", @@ -3803,8 +3739,8 @@ dependencies = [ "bitness", "dirs-next", "glob", - "handlebars 4.3.1", - "heck 0.4.0", + "handlebars 4.3.6", + "heck", "hex", "image", "libflate", @@ -3816,7 +3752,7 @@ dependencies = [ "serde", "serde_json", "sha2", - "strsim 0.10.0", + "strsim", "tar", "tauri-icns", "tauri-utils", @@ -3824,7 +3760,7 @@ dependencies = [ "thiserror", "time", "toml", - "uuid 1.1.2", + "uuid 1.2.2", "walkdir", "winreg", "zip", @@ -3837,14 +3773,14 @@ dependencies = [ "anyhow", "axum", "base64", - "clap 4.0.9", + "clap", "colored 2.0.0", "common-path", "ctrlc", "dialoguer", "env_logger", - "handlebars 4.3.1", - "heck 0.4.0", + "handlebars 4.3.6", + "heck", "html5ever", "ignore", "image", @@ -3909,8 +3845,7 @@ dependencies = [ [[package]] name = "tauri-mobile" version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dff04e700514e294069c697559b74f2cc168e8d6c984e2e4ba99a40d63468061" +source = "git+https://github.com/tauri-apps/tauri-mobile?branch=dev#e66a6ab0e5dc3b474dad6793621c499974953915" dependencies = [ "cocoa", "colored 1.9.3", @@ -3921,7 +3856,7 @@ dependencies = [ "english-numbers", "freedesktop_entry_parser", "handlebars 3.5.5", - "heck 0.4.0", + "heck", "home", "ignore", "indexmap", @@ -3951,9 +3886,9 @@ version = "2.0.0-alpha.0" dependencies = [ "aes-gcm", "ctor", - "getrandom 0.2.7", + "getrandom 0.2.8", "glob", - "heck 0.4.0", + "heck", "html5ever", "infer", "json-patch", @@ -4018,16 +3953,6 @@ dependencies = [ "winapi-util", ] -[[package]] -name = "terminal_size" -version = "0.1.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "633c1a546cee861a1a6d0dc69ebeca693bf4296661ba7852b9d21d159e0506df" -dependencies = [ - "libc", - "winapi", -] - [[package]] name = "textwrap" version = "0.11.0" @@ -4046,18 +3971,18 @@ checksum = "8eaa81235c7058867fa8c0e7314f33dcce9c215f535d1913822a2b3f5e289f3c" [[package]] name = "thiserror" -version = "1.0.31" +version = "1.0.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd829fe32373d27f76265620b5309d0340cb8550f523c1dda251d6298069069a" +checksum = "6a9cd18aa97d5c45c6603caea1da6628790b37f7a34b6ca89522331c5180fed0" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.31" +version = "1.0.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0396bc89e626244658bef819e22d0cc459e795a5ebe878e6ec336d1674a8d79a" +checksum = "1fb327af4685e4d03fa8cbcf1716380da910eeb2bb8be417e7f9fd3fb164f36f" dependencies = [ "proc-macro2", "quote", @@ -4084,9 +4009,9 @@ dependencies = [ [[package]] name = "tiff" -version = "0.8.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f17def29300a156c19ae30814710d9c63cd50288a49c6fd3a10ccfbe4cf886fd" +checksum = "7449334f9ff2baf290d55d73983a7d6fa15e01198faef72af07e2a8db851e471" dependencies = [ "flate2", "jpeg-decoder", @@ -4095,21 +4020,30 @@ dependencies = [ [[package]] name = "time" -version = "0.3.11" +version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72c91f41dcb2f096c05f0873d667dceec1087ce5bcf984ec8ffb19acddbb3217" +checksum = "a561bf4617eebd33bca6434b988f39ed798e527f51a1e797d0ee4f61c0a38376" dependencies = [ - "itoa 1.0.2", - "libc", - "num_threads", + "itoa 1.0.5", + "serde", + "time-core", "time-macros", ] +[[package]] +name = "time-core" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e153e1f1acaef8acc537e68b44906d2db6436e2b35ac2c6b42640fff91f00fd" + [[package]] name = "time-macros" -version = "0.2.4" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42657b1a6f4d817cda8e7a0ace261fe0cc946cf3a80314390b22cc61ae080792" +checksum = "d967f99f534ca7e495c575c62638eebc2898a8c84c119b89e250477bc4ba16b2" +dependencies = [ + "time-core", +] [[package]] name = "tinyvec" @@ -4128,9 +4062,9 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" [[package]] name = "tokio" -version = "1.21.2" +version = "1.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9e03c497dc955702ba729190dc4aac6f2a0ce97f913e5b1b5912fc5039d9099" +checksum = "7125661431c26622a80ca5051a2f936c9a678318e0351007b0cc313143024e5c" dependencies = [ "autocfg", "bytes", @@ -4141,14 +4075,14 @@ dependencies = [ "pin-project-lite", "socket2", "tokio-macros", - "winapi", + "windows-sys 0.42.0", ] [[package]] name = "tokio-macros" -version = "1.8.0" +version = "1.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9724f9a975fb987ef7a3cd9be0350edcbe130698af5b8f7a631e23d42d052484" +checksum = "d266c00fde287f55d3f1c3e96c500c362a2b8c695076ec180f27918820bc6df8" dependencies = [ "proc-macro2", "quote", @@ -4206,9 +4140,9 @@ dependencies = [ [[package]] name = "toml" -version = "0.5.9" +version = "0.5.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d82e1a7758622a465f8cee077614c73484dac5b836c02ff6a40d5d1010324d7" +checksum = "1333c76748e868a4d9d1017b5ab53171dfd095f70c712fdb4653a406547f598f" dependencies = [ "indexmap", "serde", @@ -4243,9 +4177,9 @@ dependencies = [ [[package]] name = "tower-http" -version = "0.3.4" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c530c8675c1dbf98facee631536fa116b5fb6382d7dd6dc1b118d970eafe3ba" +checksum = "f873044bf02dd1e8239e9c1293ea39dad76dc594ec16185d0a1bf31d8dc8d858" dependencies = [ "bitflags", "bytes", @@ -4262,9 +4196,9 @@ dependencies = [ [[package]] name = "tower-layer" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "343bc9466d3fe6b0f960ef45960509f84480bf4fd96f92901afe7ff3df9d3a62" +checksum = "c20c8dbed6283a09604c3e69b4b7eeb54e298b8a600d4d5ecb5ad39de609f1d0" [[package]] name = "tower-service" @@ -4274,9 +4208,9 @@ checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" [[package]] name = "tracing" -version = "0.1.36" +version = "0.1.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fce9567bd60a67d08a16488756721ba392f24f29006402881e43b19aac64307" +checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8" dependencies = [ "cfg-if", "log", @@ -4298,9 +4232,9 @@ dependencies = [ [[package]] name = "tracing-core" -version = "0.1.29" +version = "0.1.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aeea4303076558a00714b823f9ad67d58a3bbda1df83d8827d21193156e22f7" +checksum = "24eb03ba0eab1fd845050058ce5e616558e8f8d8fca633e6b163fe25c797213a" dependencies = [ "once_cell", ] @@ -4333,7 +4267,7 @@ dependencies = [ "httparse", "log", "rand 0.8.5", - "sha-1 0.10.0", + "sha-1 0.10.1", "thiserror", "url", "utf-8", @@ -4341,15 +4275,15 @@ dependencies = [ [[package]] name = "typenum" -version = "1.15.0" +version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987" +checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba" [[package]] name = "ucd-trie" -version = "0.1.3" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56dee185309b50d1f11bfedef0fe6d036842e3fb77413abef29f8f8d1c5d4c1c" +checksum = "9e79c4d996edb816c91e4308506774452e55e95c3c9de07b6729e17e15a5ef81" [[package]] name = "uname" @@ -4368,15 +4302,15 @@ checksum = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992" [[package]] name = "unicode-ident" -version = "1.0.1" +version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bd2fe26506023ed7b5e1e315add59d6f584c621d037f9368fea9cfb988f368c" +checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" [[package]] name = "unicode-normalization" -version = "0.1.20" +version = "0.1.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81dee68f85cab8cf68dec42158baf3a79a1cdc065a8b103025965d6ccb7f6cbd" +checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921" dependencies = [ "tinyvec", ] @@ -4389,9 +4323,9 @@ checksum = "0fdbf052a0783de01e944a6ce7a8cb939e295b1e7be835a1112c3b9a7f047a5a" [[package]] name = "unicode-width" -version = "0.1.9" +version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973" +checksum = "c0edd1e5b14653f783770bce4a4dabb4a5108a5370a5f5d8cfe8710c361f6c8b" [[package]] name = "universal-hash" @@ -4399,7 +4333,7 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9f214e8f697e925001e66ec2c6e37a4ef93f0f78c2eed7814394e10c62025b05" dependencies = [ - "generic-array 0.14.5", + "generic-array", "subtle", ] @@ -4411,12 +4345,11 @@ checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" [[package]] name = "ureq" -version = "2.5.0" +version = "2.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b97acb4c28a254fd7a4aeec976c46a7fa404eac4d7c134b30c75144846d7cb8f" +checksum = "733b5ad78377302af52c0dbcb2623d78fe50e4b3bf215948ff29e9ee031d8566" dependencies = [ "base64", - "chunked_transfer", "flate2", "log", "once_cell", @@ -4428,9 +4361,9 @@ dependencies = [ [[package]] name = "url" -version = "2.3.0" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22fe195a4f217c25b25cb5058ced57059824a678474874038dc88d211bf508d3" +checksum = "0d68c799ae75762b8c3fe375feb6600ef5602c883c5d21eb51c09f22b83c4643" dependencies = [ "form_urlencoded", "idna", @@ -4452,11 +4385,11 @@ checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7" [[package]] name = "uuid" -version = "1.1.2" +version = "1.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd6469f4314d5f1ffec476e05f17cc9a78bc7a27a6a857842170bdf8d6f98d2f" +checksum = "422ee0de9031b5b948b97a8fc04e3aa35230001a722ddd27943e0be31564ce4c" dependencies = [ - "getrandom 0.2.7", + "getrandom 0.2.8", "sha1_smol", ] @@ -4477,12 +4410,6 @@ version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" -[[package]] -name = "vec_map" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" - [[package]] name = "version_check" version = "0.9.4" @@ -4501,9 +4428,9 @@ dependencies = [ [[package]] name = "vswhom-sys" -version = "0.1.1" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22025f6d8eb903ebf920ea6933b70b1e495be37e2cb4099e62c80454aaf57c39" +checksum = "d3b17ae1f6c8a2b28506cd96d412eebf83b4a0ff2cbefeeb952f2f9dfa44ba18" dependencies = [ "cc", "libc", @@ -4550,25 +4477,23 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.81" +version = "0.2.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c53b543413a17a202f4be280a7e5c62a1c69345f5de525ee64f8cfdbc954994" +checksum = "eaf9f5aceeec8be17c128b2e93e031fb8a4d469bb9c4ae2d7dc1888b26887268" dependencies = [ "cfg-if", - "serde", - "serde_json", "wasm-bindgen-macro", ] [[package]] name = "wasm-bindgen-backend" -version = "0.2.81" +version = "0.2.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5491a68ab4500fa6b4d726bd67408630c3dbe9c4fe7bda16d5c82a1fd8c7340a" +checksum = "4c8ffb332579b0557b52d268b91feab8df3615f265d5270fec2a8c95b17c1142" dependencies = [ "bumpalo", - "lazy_static", "log", + "once_cell", "proc-macro2", "quote", "syn", @@ -4577,9 +4502,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.31" +version = "0.4.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de9a9cec1733468a8c657e57fa2413d2ae2c0129b95e87c5b72b8ace4d13f31f" +checksum = "23639446165ca5a5de86ae1d8896b737ae80319560fbaa4c2887b7da6e7ebd7d" dependencies = [ "cfg-if", "js-sys", @@ -4589,9 +4514,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.81" +version = "0.2.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c441e177922bc58f1e12c022624b6216378e5febc2f0533e41ba443d505b80aa" +checksum = "052be0f94026e6cbc75cdefc9bae13fd6052cdcaf532fa6c45e7ae33a1e6c810" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -4599,9 +4524,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.81" +version = "0.2.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d94ac45fcf608c1f45ef53e748d35660f168490c10b23704c7779ab8f5c3048" +checksum = "07bc0c051dc5f23e307b13285f9d75df86bfdf816c5721e573dec1f9b8aa193c" dependencies = [ "proc-macro2", "quote", @@ -4612,15 +4537,15 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.81" +version = "0.2.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a89911bd99e5f3659ec4acf9c4d93b0a90fe4a2a11f15328472058edc5261be" +checksum = "1c38c045535d93ec4f0b4defec448e4291638ee608530863b1e2ba115d4fff7f" [[package]] name = "web-sys" -version = "0.3.58" +version = "0.3.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fed94beee57daf8dd7d51f2b15dc2bcde92d7a72304cdf662a4371008b71b90" +checksum = "bcda906d8be16e728fd5adc5b729afad4e444e106ab28cd1c7256e54fa61510f" dependencies = [ "js-sys", "wasm-bindgen", @@ -4638,18 +4563,18 @@ dependencies = [ [[package]] name = "webpki-roots" -version = "0.22.3" +version = "0.22.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44d8de8415c823c8abd270ad483c6feeac771fad964890779f9a8cb24fbbc1bf" +checksum = "b6c71e40d7d2c34a5106301fb632274ca37242cd0c9d3e64dbece371a40a2d87" dependencies = [ "webpki", ] [[package]] name = "weezl" -version = "0.1.6" +version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c97e489d8f836838d497091de568cf16b117486d529ec5579233521065bd5e4" +checksum = "9193164d4de03a926d909d3bc7c30543cecb35400c02114792c2cae20d5e2dbb" [[package]] name = "winapi" @@ -4868,15 +4793,15 @@ checksum = "d2d7d3948613f75c98fd9328cfdcc45acc4d360655289d0a7d4ec931392200a3" [[package]] name = "zeroize" -version = "1.5.5" +version = "1.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94693807d016b2f2d2e14420eb3bfcca689311ff775dcf113d74ea624b7cdf07" +checksum = "c394b5bd0c6f669e7275d9c20aa90ae064cb22e75a1cad54e1b34088034b149f" [[package]] name = "zip" -version = "0.6.2" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf225bcf73bb52cbb496e70475c7bd7a3f769df699c0020f6c7bd9a96dcf0b8d" +checksum = "537ce7411d25e54e8ae21a7ce0b15840e7bfcff15b51d697ec3266cc76bdf080" dependencies = [ "aes", "byteorder", @@ -4894,18 +4819,18 @@ dependencies = [ [[package]] name = "zstd" -version = "0.10.2+zstd.1.5.2" +version = "0.11.2+zstd.1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f4a6bd64f22b5e3e94b4e238669ff9f10815c27a5180108b849d24174a83847" +checksum = "20cc960326ece64f010d2d2107537f26dc589a6573a316bd5b1dba685fa5fde4" dependencies = [ "zstd-safe", ] [[package]] name = "zstd-safe" -version = "4.1.6+zstd.1.5.2" +version = "5.0.2+zstd.1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94b61c51bb270702d6167b8ce67340d2754b088d0c091b06e593aa772c3ee9bb" +checksum = "1d2a5585e04f9eea4b2a3d1eca508c4dee9592a89ef6f450c11719da0726f4db" dependencies = [ "libc", "zstd-sys", @@ -4913,9 +4838,9 @@ dependencies = [ [[package]] name = "zstd-sys" -version = "1.6.3+zstd.1.5.2" +version = "2.0.4+zstd.1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc49afa5c8d634e75761feda8c592051e7eeb4683ba827211eb0d731d3402ea8" +checksum = "4fa202f2ef00074143e219d15b62ffc317d17cc33909feac471c044087cad7b0" dependencies = [ "cc", "libc", diff --git a/tooling/cli/Cargo.toml b/tooling/cli/Cargo.toml index 37dd5d35d541..be08a2ff1620 100644 --- a/tooling/cli/Cargo.toml +++ b/tooling/cli/Cargo.toml @@ -39,7 +39,7 @@ name = "cargo-tauri" path = "src/main.rs" [dependencies] -tauri-mobile = { version = "0.1.4", default-features = false } +tauri-mobile = { git = "https://github.com/tauri-apps/tauri-mobile", branch = "dev", default-features = false } textwrap = { version = "0.11.0", features = [ "term_size" ] } jsonrpsee = { version = "0.16", features = [ "client", "server" ] } thiserror = "1" @@ -73,7 +73,7 @@ heck = "0.4" dialoguer = "0.10" url = { version = "2.3", features = [ "serde" ] } os_pipe = "1" -ignore = "0.4" +ignore = "=0.4.18" ctrlc = "3.2" log = { version = "0.4.17", features = [ "kv_unstable", "kv_unstable_std" ] } env_logger = "0.9.1" diff --git a/tooling/cli/node/package.json b/tooling/cli/node/package.json index 38c85edd4607..041925677829 100644 --- a/tooling/cli/node/package.json +++ b/tooling/cli/node/package.json @@ -45,6 +45,9 @@ "jest-transform-toml": "1.0.0", "prettier": "2.8.1" }, + "resolutions": { + "json5": "2.2.3" + }, "engines": { "node": ">= 10" }, diff --git a/tooling/cli/node/yarn.lock b/tooling/cli/node/yarn.lock index 4b249b6c73af..aae226aea4ac 100644 --- a/tooling/cli/node/yarn.lock +++ b/tooling/cli/node/yarn.lock @@ -1822,17 +1822,10 @@ json-parse-even-better-errors@^2.3.0: resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== -json5@^2.1.2: - version "2.2.0" - resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.0.tgz#2dfefe720c6ba525d9ebd909950f0515316c89a3" - integrity sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA== - dependencies: - minimist "^1.2.5" - -json5@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c" - integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA== +json5@2.2.3, json5@^2.1.2, json5@^2.2.1: + version "2.2.3" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" + integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== jsonfile@^6.0.1: version "6.1.0" @@ -1911,11 +1904,6 @@ minimatch@^3.0.4: dependencies: brace-expansion "^1.1.7" -minimist@^1.2.5: - version "1.2.6" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44" - integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q== - ms@2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" diff --git a/tooling/cli/src/icon.rs b/tooling/cli/src/icon.rs index 6535349d1792..faa351dcc3f6 100644 --- a/tooling/cli/src/icon.rs +++ b/tooling/cli/src/icon.rs @@ -328,7 +328,7 @@ fn png(source: &DynamicImage, out_dir: &Path) -> Result<()> { |_app, config, _metadata, _cli_options| { let android_out = out_dir.parent().unwrap().join(format!( "gen/android/{}/app/src/main/res/", - config.app().name() + config.app().name_snake() )); let out = if android_out.exists() { android_out diff --git a/tooling/cli/src/interface/mod.rs b/tooling/cli/src/interface/mod.rs index 40a474c6ade9..79c65aeb48f1 100644 --- a/tooling/cli/src/interface/mod.rs +++ b/tooling/cli/src/interface/mod.rs @@ -37,6 +37,7 @@ pub trait AppSettings { target: &str, ) -> crate::Result>; fn app_name(&self) -> Option; + fn lib_name(&self) -> Option; fn get_bundler_settings( &self, diff --git a/tooling/cli/src/interface/rust.rs b/tooling/cli/src/interface/rust.rs index 1adaa438b745..2bbfd370cd5d 100644 --- a/tooling/cli/src/interface/rust.rs +++ b/tooling/cli/src/interface/rust.rs @@ -772,6 +772,18 @@ impl AppSettings for RustAppSettings { .and_then(|n| n.as_str()) .map(|n| n.to_string()) } + + fn lib_name(&self) -> Option { + self + .manifest + .inner + .as_table() + .get("lib") + .and_then(|p| p.as_table()) + .and_then(|p| p.get("name")) + .and_then(|n| n.as_str()) + .map(|n| n.to_string()) + } } impl RustAppSettings { diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index 304abcf52dcd..a78ee4fafb93 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -107,8 +107,11 @@ pub fn get_config( ..Default::default() }; - set_var("WRY_ANDROID_REVERSED_DOMAIN", app.reverse_domain()); - set_var("WRY_ANDROID_APP_NAME_SNAKE_CASE", app.name()); + set_var( + "WRY_ANDROID_PACKAGE", + format!("{}.{}", app.reverse_domain(), app.name_snake()), + ); + set_var("WRY_ANDROID_LIBRARY", app.lib_name()); set_var( "WRY_ANDROID_KOTLIN_FILES_OUT_DIR", config @@ -117,7 +120,7 @@ pub fn get_config( .join(format!( "java/{}/{}", app.reverse_domain().replace('.', "/"), - app.name() + app.name_snake() )) .join("generated"), ); diff --git a/tooling/cli/src/mobile/android/project.rs b/tooling/cli/src/mobile/android/project.rs index abfe5ad0e1c5..2db507e20c53 100644 --- a/tooling/cli/src/mobile/android/project.rs +++ b/tooling/cli/src/mobile/android/project.rs @@ -42,7 +42,7 @@ pub fn gen( Path::new(&os::replace_path_separator( util::relativize_path( config.app().root_dir(), - config.project_dir().join(config.app().name()), + config.project_dir().join(config.app().name_snake()), ) .into_os_string(), )), @@ -83,7 +83,7 @@ pub fn gen( map.insert("windows", cfg!(windows)); let domain = config.app().reverse_domain().replace('.', "/"); - let package_path = format!("java/{}/{}", domain, config.app().name()); + let package_path = format!("java/{}/{}", domain, config.app().name_snake()); map.insert("package-path", &package_path); diff --git a/tooling/cli/src/mobile/ios/xcode_script.rs b/tooling/cli/src/mobile/ios/xcode_script.rs index 94a8af786461..25a2369338bc 100644 --- a/tooling/cli/src/mobile/ios/xcode_script.rs +++ b/tooling/cli/src/mobile/ios/xcode_script.rs @@ -6,7 +6,6 @@ use crate::{ }; use clap::Parser; -use heck::AsSnakeCase; use tauri_mobile::{apple::target::Target, opts::Profile, util}; use std::{collections::HashMap, ffi::OsStr, path::PathBuf}; @@ -188,7 +187,7 @@ pub fn command(options: Options) -> Result<()> { })?; let out_dir = bin_path.parent().unwrap(); - let lib_path = out_dir.join(format!("lib{}.a", AsSnakeCase(config.app().name()))); + let lib_path = out_dir.join(format!("lib{}.a", config.app().lib_name())); if !lib_path.exists() { return Err(anyhow::anyhow!("Library not found at {}. Make sure your Cargo.toml file has a [lib] block with `crate-type = [\"staticlib\", \"cdylib\", \"rlib\"]`", lib_path.display())); } @@ -201,7 +200,7 @@ pub fn command(options: Options) -> Result<()> { format!( "gen/apple/Externals/{rust_triple}/{}/lib{}.a", profile.as_str(), - AsSnakeCase(config.app().name()) + config.app().lib_name() ), )?; } diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index 33edad6dcfc1..30e94e771b4a 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -229,9 +229,11 @@ fn get_app(config: &TauriConfig) -> App { .expect("failed to load interface"); let app_name = interface.app_settings().app_name().unwrap_or(app_name); + let lib_name = interface.app_settings().lib_name(); let raw = RawAppConfig { name: app_name, + lib_name, stylized_name: config.package.product_name.clone(), domain, asset_dir: None, diff --git a/tooling/cli/templates/app/src-tauri/Cargo.crate-manifest b/tooling/cli/templates/app/src-tauri/Cargo.crate-manifest index 8ff358f73a12..bae491d80b10 100755 --- a/tooling/cli/templates/app/src-tauri/Cargo.crate-manifest +++ b/tooling/cli/templates/app/src-tauri/Cargo.crate-manifest @@ -11,6 +11,7 @@ rust-version = "1.59" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] +name = "app_lib" crate-type = ["staticlib", "cdylib", "rlib"] [build-dependencies] @@ -22,9 +23,7 @@ serde = { version = "1.0", features = ["derive"] } tauri = {{{ tauri_dep }}} [features] -# by default Tauri runs in production mode -# when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL -default = [ "custom-protocol" ] -# this feature is used for production builds where `devPath` points to the filesystem +default = [] +# this feature is used for production builds or when `devPath` points to the filesystem # DO NOT remove this custom-protocol = [ "tauri/custom-protocol" ] diff --git a/tooling/cli/templates/app/src-tauri/src/desktop.rs b/tooling/cli/templates/app/src-tauri/src/desktop.rs deleted file mode 100644 index c43e6eaf38f7..000000000000 --- a/tooling/cli/templates/app/src-tauri/src/desktop.rs +++ /dev/null @@ -1,8 +0,0 @@ -#![cfg_attr( - all(not(debug_assertions), target_os = "windows"), - windows_subsystem = "windows" -)] - -pub fn main() { - app::AppBuilder::new().run(); -} diff --git a/tooling/cli/templates/app/src-tauri/src/lib.rs b/tooling/cli/templates/app/src-tauri/src/lib.rs index d8c1e87726f2..23a44f808995 100644 --- a/tooling/cli/templates/app/src-tauri/src/lib.rs +++ b/tooling/cli/templates/app/src-tauri/src/lib.rs @@ -1,41 +1,7 @@ -use tauri::App; - -#[cfg(mobile)] -mod mobile; -#[cfg(mobile)] -pub use mobile::*; - -pub type SetupHook = Box Result<(), Box> + Send>; - -#[derive(Default)] -pub struct AppBuilder { - setup: Option, -} - -impl AppBuilder { - pub fn new() -> Self { - Self::default() - } - - #[must_use] - pub fn setup(mut self, setup: F) -> Self - where - F: FnOnce(&mut App) -> Result<(), Box> + Send + 'static, - { - self.setup.replace(Box::new(setup)); - self - } - - pub fn run(self) { - let setup = self.setup; - tauri::Builder::default() - .setup(move |app| { - if let Some(setup) = setup { - (setup)(app)?; - } - Ok(()) - }) - .run(tauri::generate_context!()) - .expect("error while running tauri application"); - } +#[cfg_attr(mobile, tauri::mobile_entry_point)] +pub fn run() { + tauri::Builder::default() + .invoke_handler(tauri::generate_handler![greet]) + .run(tauri::generate_context!()) + .expect("error while running tauri application"); } diff --git a/tooling/cli/templates/app/src-tauri/src/main.rs b/tooling/cli/templates/app/src-tauri/src/main.rs index 1ade16f98e30..52b6a6f297ca 100644 --- a/tooling/cli/templates/app/src-tauri/src/main.rs +++ b/tooling/cli/templates/app/src-tauri/src/main.rs @@ -1,7 +1,9 @@ -#[cfg(desktop)] -mod desktop; +#![cfg_attr( + all(not(debug_assertions), target_os = "windows"), + windows_subsystem = "windows" +)] fn main() { #[cfg(desktop)] - desktop::main(); + app_lib::run(); } diff --git a/tooling/cli/templates/app/src-tauri/src/mobile.rs b/tooling/cli/templates/app/src-tauri/src/mobile.rs deleted file mode 100644 index cacaf5f11d26..000000000000 --- a/tooling/cli/templates/app/src-tauri/src/mobile.rs +++ /dev/null @@ -1,4 +0,0 @@ -#[tauri::mobile_entry_point] -fn main() { - super::AppBuilder::new().run() -} From c36d451bcd9576dd4e0c673078c421dcb83932be Mon Sep 17 00:00:00 2001 From: Simon Hyll Date: Mon, 16 Jan 2023 16:35:23 +0100 Subject: [PATCH 120/436] fix: removed greet from template (#6066) * fix: removed greet from template * fix: removed the entire line instead as per request --- tooling/cli/templates/app/src-tauri/src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/tooling/cli/templates/app/src-tauri/src/lib.rs b/tooling/cli/templates/app/src-tauri/src/lib.rs index 23a44f808995..cfef8d12b933 100644 --- a/tooling/cli/templates/app/src-tauri/src/lib.rs +++ b/tooling/cli/templates/app/src-tauri/src/lib.rs @@ -1,7 +1,6 @@ #[cfg_attr(mobile, tauri::mobile_entry_point)] pub fn run() { tauri::Builder::default() - .invoke_handler(tauri::generate_handler![greet]) .run(tauri::generate_context!()) .expect("error while running tauri application"); } From 276a0362de62998c3b485213c96dc0361f3ad68a Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Tue, 17 Jan 2023 12:42:27 -0300 Subject: [PATCH 121/436] chore(deps): update wry --- core/tauri-runtime-wry/src/lib.rs | 4 ++-- examples/api/src-tauri/Cargo.lock | 22 ++++++++++++++++------ 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/core/tauri-runtime-wry/src/lib.rs b/core/tauri-runtime-wry/src/lib.rs index cc3ebba2caa4..81b0cb4015f5 100644 --- a/core/tauri-runtime-wry/src/lib.rs +++ b/core/tauri-runtime-wry/src/lib.rs @@ -969,10 +969,10 @@ fn decode_path(path: PathBuf) -> PathBuf { impl From for FileDropEvent { fn from(event: FileDropEventWrapper) -> Self { match event.0 { - WryFileDropEvent::Hovered(paths) => { + WryFileDropEvent::Hovered { paths, position: _ } => { FileDropEvent::Hovered(paths.into_iter().map(decode_path).collect()) } - WryFileDropEvent::Dropped(paths) => { + WryFileDropEvent::Dropped { paths, position: _ } => { FileDropEvent::Dropped(paths.into_iter().map(decode_path).collect()) } // default to cancelled diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index 1a48aaa4f2fd..2a254201bddf 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -2881,9 +2881,9 @@ dependencies = [ [[package]] name = "tao" -version = "0.15.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2845fd58915455c5faf2c9ac5d8a5ed43bd23ab57f0a67d63612936209eae74" +checksum = "704522803dda895767f69198af8351b0a3f4fe2e293c3ca54cce0ecba05a97f2" dependencies = [ "bitflags", "cairo-rs", @@ -2915,11 +2915,11 @@ dependencies = [ "objc", "once_cell", "parking_lot", - "paste", "png", "raw-window-handle", "scopeguard", "serde", + "tao-macros", "unicode-segmentation", "uuid 1.2.1", "windows 0.39.0", @@ -2927,6 +2927,17 @@ dependencies = [ "x11-dl", ] +[[package]] +name = "tao-macros" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b6fcd8245d45a39ffc8715183d92ae242750eb57b285eb3bcd63dfd512afd09" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "tar" version = "0.4.38" @@ -4043,9 +4054,8 @@ dependencies = [ [[package]] name = "wry" -version = "0.23.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c1ad8e2424f554cc5bdebe8aa374ef5b433feff817aebabca0389961fc7ef98" +version = "0.24.1" +source = "git+https://github.com/tauri-apps/wry?branch=dev#bce39e2be195194e547b0021e770e45a3df15fa1" dependencies = [ "base64", "block", From 630a7f4b18cef169bfd48673609306fec434e397 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Tue, 17 Jan 2023 08:13:53 -0800 Subject: [PATCH 122/436] refactor: remove mobile log initialization, ref #6049 (#6081) --- .changes/package-info-crate-name.md | 6 ++++ .changes/remove-mobile-log.md | 7 ++++ core/tauri-build/src/lib.rs | 6 ---- core/tauri-codegen/src/context.rs | 1 + core/tauri-macros/src/mobile.rs | 5 +-- core/tauri-utils/src/lib.rs | 2 ++ core/tauri/Cargo.toml | 2 -- core/tauri/src/lib.rs | 17 +-------- core/tauri/src/test/mod.rs | 1 + examples/api/src-tauri/Cargo.lock | 55 +---------------------------- examples/api/src-tauri/Cargo.toml | 1 + examples/api/src-tauri/src/cmd.rs | 2 +- 12 files changed, 22 insertions(+), 83 deletions(-) create mode 100644 .changes/package-info-crate-name.md create mode 100644 .changes/remove-mobile-log.md diff --git a/.changes/package-info-crate-name.md b/.changes/package-info-crate-name.md new file mode 100644 index 000000000000..4fab428bb86b --- /dev/null +++ b/.changes/package-info-crate-name.md @@ -0,0 +1,6 @@ +--- +"tauri-utils": patch +"tauri-codegen": patch +--- + +Added `crate_name` field on `PackageInfo`. diff --git a/.changes/remove-mobile-log.md b/.changes/remove-mobile-log.md new file mode 100644 index 000000000000..b0391e28852b --- /dev/null +++ b/.changes/remove-mobile-log.md @@ -0,0 +1,7 @@ +--- +"tauri": patch +"tauri-macros": patch +"tauri-build": patch +--- + +Removed mobile logging initialization, which will be handled by `tauri-plugin-log`. diff --git a/core/tauri-build/src/lib.rs b/core/tauri-build/src/lib.rs index 5e62e94953da..b3d157a74ffe 100644 --- a/core/tauri-build/src/lib.rs +++ b/core/tauri-build/src/lib.rs @@ -221,20 +221,14 @@ pub fn try_build(attributes: Attributes) -> Result<()> { let s = config.tauri.bundle.identifier.split('.'); let last = s.clone().count() - 1; - let mut domain = String::new(); let mut android_package_prefix = String::new(); for (i, w) in s.enumerate() { if i != last { - domain.push_str(w); - domain.push('.'); - android_package_prefix.push_str(w); android_package_prefix.push('_'); } } - domain.pop(); android_package_prefix.pop(); - println!("cargo:rustc-env=TAURI_MOBILE_DOMAIN={domain}"); println!("cargo:rustc-env=TAURI_ANDROID_PACKAGE_PREFIX={android_package_prefix}"); cfg_alias("dev", !has_feature("custom-protocol")); diff --git a/core/tauri-codegen/src/context.rs b/core/tauri-codegen/src/context.rs index c3ac02b56b37..32e2c05faef5 100644 --- a/core/tauri-codegen/src/context.rs +++ b/core/tauri-codegen/src/context.rs @@ -303,6 +303,7 @@ pub fn context_codegen(data: ContextData) -> Result TokenStream { &mut error, &function, ); - let domain_str = var("TAURI_MOBILE_DOMAIN").unwrap(); - let app_name_str = var("CARGO_PKG_NAME").unwrap(); if let Some(e) = error { quote!(#e).into() @@ -61,10 +59,9 @@ pub fn entry_point(_attributes: TokenStream, item: TokenStream) -> TokenStream { fn _start_app() { #[cfg(target_os = "ios")] - ::tauri::init_logging(&format!("{}.{}", #domain_str, #app_name_str)); + ::tauri::log_stdout(); #[cfg(target_os = "android")] { - ::tauri::init_logging(#app_name_str); use ::tauri::paste; ::tauri::wry_android_binding!(#domain, #app_name, _start_app, ::tauri::wry); } diff --git a/core/tauri-utils/src/lib.rs b/core/tauri-utils/src/lib.rs index 895d9c80c88e..1fb1202eae5b 100644 --- a/core/tauri-utils/src/lib.rs +++ b/core/tauri-utils/src/lib.rs @@ -34,6 +34,8 @@ pub struct PackageInfo { pub authors: &'static str, /// The crate description. pub description: &'static str, + /// The crate name. + pub crate_name: &'static str, } impl PackageInfo { diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml index 051158d69379..f008d8f5ab84 100644 --- a/core/tauri/Cargo.toml +++ b/core/tauri/Cargo.toml @@ -110,11 +110,9 @@ win7-notifications = { version = "0.3.1", optional = true } [target."cfg(target_os = \"android\")".dependencies] paste = "1.0" -android_logger = "0.9" log = "0.4" [target."cfg(target_os = \"ios\")".dependencies] -oslog = "0.2" log = "0.4" libc = "0.2" diff --git a/core/tauri/src/lib.rs b/core/tauri/src/lib.rs index d09e7a61f63e..237c64988f14 100644 --- a/core/tauri/src/lib.rs +++ b/core/tauri/src/lib.rs @@ -278,19 +278,9 @@ pub use self::runtime::ClipboardManager; #[cfg_attr(doc_cfg, doc(cfg(feature = "global-shortcut")))] pub use self::runtime::GlobalShortcutManager; -#[cfg(target_os = "android")] -#[doc(hidden)] -pub fn init_logging(tag: &str) { - android_logger::init_once( - android_logger::Config::default() - .with_min_level(log::Level::Trace) - .with_tag(tag), - ); -} - #[cfg(target_os = "ios")] #[doc(hidden)] -pub fn init_logging(subsystem: &str) { +pub fn log_stdout() { use std::{ ffi::CString, fs::File, @@ -323,11 +313,6 @@ pub fn init_logging(subsystem: &str) { } } }); - - oslog::OsLogger::new(subsystem) - .level_filter(log::LevelFilter::Trace) - .init() - .unwrap(); } /// Updater events. diff --git a/core/tauri/src/test/mod.rs b/core/tauri/src/test/mod.rs index 9d096375a1d6..217a85d263e3 100644 --- a/core/tauri/src/test/mod.rs +++ b/core/tauri/src/test/mod.rs @@ -74,6 +74,7 @@ pub fn mock_context(assets: A) -> crate::Context { version: "0.1.0".parse().unwrap(), authors: "Tauri", description: "Tauri test", + crate_name: "test", }, _info_plist: (), pattern: Pattern::Brownfield(std::marker::PhantomData), diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index 2a254201bddf..f2c2265c3b88 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -67,24 +67,6 @@ dependencies = [ "alloc-no-stdlib", ] -[[package]] -name = "android_log-sys" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85965b6739a430150bdd138e2374a98af0c3ee0d030b3bb7fc3bddff58d0102e" - -[[package]] -name = "android_logger" -version = "0.9.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ec2333c185d826313162cee39d3fcc6a84ba08114a839bebf53b961e7e75773" -dependencies = [ - "android_log-sys", - "env_logger", - "lazy_static", - "log", -] - [[package]] name = "anyhow" version = "1.0.66" @@ -95,6 +77,7 @@ checksum = "216261ddc8289130e551ddcd5ce8a064710c0d064a4d2895c67151c92b5443f6" name = "api" version = "0.1.0" dependencies = [ + "log", "serde", "serde_json", "tauri", @@ -610,19 +593,6 @@ dependencies = [ "syn", ] -[[package]] -name = "dashmap" -version = "5.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "907076dfda823b0b36d2a1bb5f90c96660a5bbcd7729e10727f07858f22c4edc" -dependencies = [ - "cfg-if", - "hashbrown", - "lock_api", - "once_cell", - "parking_lot_core", -] - [[package]] name = "dbus" version = "0.9.6" @@ -720,16 +690,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "env_logger" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36" -dependencies = [ - "log", - "regex", -] - [[package]] name = "fastrand" version = "1.8.0" @@ -1935,17 +1895,6 @@ version = "6.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3baf96e39c5359d2eb0dd6ccb42c62b91d9678aa68160d261b9e0ccbf9e9dea9" -[[package]] -name = "oslog" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80d2043d1f61d77cb2f4b1f7b7b2295f40507f5f8e9d1c8bf10a1ca5f97a3969" -dependencies = [ - "cc", - "dashmap", - "log", -] - [[package]] name = "overload" version = "0.1.1" @@ -2953,7 +2902,6 @@ dependencies = [ name = "tauri" version = "2.0.0-alpha.2" dependencies = [ - "android_logger", "anyhow", "attohttpc", "base64", @@ -2982,7 +2930,6 @@ dependencies = [ "open", "os_info", "os_pipe", - "oslog", "paste", "percent-encoding", "png", diff --git a/examples/api/src-tauri/Cargo.toml b/examples/api/src-tauri/Cargo.toml index 4f936ca83614..599453b8ddac 100644 --- a/examples/api/src-tauri/Cargo.toml +++ b/examples/api/src-tauri/Cargo.toml @@ -16,6 +16,7 @@ tauri-build = { path = "../../../core/tauri-build", features = ["codegen", "isol serde_json = "1.0" serde = { version = "1.0", features = [ "derive" ] } tiny_http = "0.11" +log = "0.4" [dependencies.tauri] path = "../../../core/tauri" diff --git a/examples/api/src-tauri/src/cmd.rs b/examples/api/src-tauri/src/cmd.rs index 78e188023ecd..58bd57b2e9cd 100644 --- a/examples/api/src-tauri/src/cmd.rs +++ b/examples/api/src-tauri/src/cmd.rs @@ -14,7 +14,7 @@ pub struct RequestBody { #[command] pub fn log_operation(event: String, payload: Option) { - println!("{} {:?}", event, payload); + log::info!("{} {:?}", event, payload); } #[command] From 8cc111494d74161e489152e52191e1442dd99759 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Tue, 17 Jan 2023 19:27:23 -0300 Subject: [PATCH 123/436] fix(cli): print Android logs for all tags --- .changes/logcat-all-tags.md | 6 ++++++ tooling/cli/Cargo.lock | 4 ++-- tooling/cli/src/mobile/android.rs | 15 +++++++++++++-- 3 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 .changes/logcat-all-tags.md diff --git a/.changes/logcat-all-tags.md b/.changes/logcat-all-tags.md new file mode 100644 index 000000000000..bc10a6200908 --- /dev/null +++ b/.changes/logcat-all-tags.md @@ -0,0 +1,6 @@ +--- +"cli.rs": patch +"cli.js": patch +--- + +Print log output for all tags on Android development. diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 246df9fdbd8f..bff0f2e3cea1 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -3844,8 +3844,8 @@ dependencies = [ [[package]] name = "tauri-mobile" -version = "0.1.4" -source = "git+https://github.com/tauri-apps/tauri-mobile?branch=dev#e66a6ab0e5dc3b474dad6793621c499974953915" +version = "0.2.0" +source = "git+https://github.com/tauri-apps/tauri-mobile?branch=dev#01c5f5083760714163e527bf9b8c80157150aed8" dependencies = [ "cocoa", "colored 1.9.3", diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index a78ee4fafb93..c9551aa4ae73 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -19,7 +19,7 @@ use tauri_mobile::{ target::Target, }, config::app::App, - opts::NoiseLevel, + opts::{FilterLevel, NoiseLevel}, os, util::prompt, }; @@ -95,7 +95,18 @@ pub fn get_config( let raw = RawAndroidConfig { features: android_options.features.clone(), - logcat_filter_specs: vec!["RustStdoutStderr".into(), "*:E".into()], + logcat_filter_specs: vec![ + "RustStdoutStderr".into(), + format!( + "*:{}", + match cli_options.noise_level { + NoiseLevel::Polite => FilterLevel::Info, + NoiseLevel::LoudAndProud => FilterLevel::Debug, + NoiseLevel::FranklyQuitePedantic => FilterLevel::Verbose, + } + .logcat() + ), + ], ..Default::default() }; let config = AndroidConfig::from_raw(app.clone(), Some(raw)).unwrap(); From 78eaadae2e75ab165d1970e592bb1455bb8636e3 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Mon, 23 Jan 2023 13:25:25 -0800 Subject: [PATCH 124/436] refactor(core): only proxy on mobile (#6126) Co-authored-by: Amr Bashir --- .changes/only-proxy-on-mobile.md | 5 ++++ core/tauri/src/manager.rs | 42 +++++++++++++++++++------------- 2 files changed, 30 insertions(+), 17 deletions(-) create mode 100644 .changes/only-proxy-on-mobile.md diff --git a/.changes/only-proxy-on-mobile.md b/.changes/only-proxy-on-mobile.md new file mode 100644 index 000000000000..a8558d2b45ce --- /dev/null +++ b/.changes/only-proxy-on-mobile.md @@ -0,0 +1,5 @@ +--- +"tauri": patch +--- + +Only proxy the dev server on mobile to simplify desktop usage. diff --git a/core/tauri/src/manager.rs b/core/tauri/src/manager.rs index fff687eab1cf..48cccf053a1d 100644 --- a/core/tauri/src/manager.rs +++ b/core/tauri/src/manager.rs @@ -73,6 +73,12 @@ const WINDOW_FILE_DROP_HOVER_EVENT: &str = "tauri://file-drop-hover"; const WINDOW_FILE_DROP_CANCELLED_EVENT: &str = "tauri://file-drop-cancelled"; const MENU_EVENT: &str = "tauri://menu"; +// we need to proxy the dev server on mobile because we can't use `localhost`, so we use the local IP address +// and we do not get a secure context without the custom protocol that proxies to the dev server +// additionally, we need the custom protocol to inject the initialization scripts on Android +// must also keep in sync with the `let mut response` assignment in prepare_uri_scheme_protocol +const PROXY_DEV_SERVER: bool = cfg!(all(dev, mobile)); + #[derive(Default)] /// Spaced and quoted Content-Security-Policy hash values. struct CspHashStrings { @@ -373,7 +379,7 @@ impl WindowManager { fn get_browser_origin(&self) -> String { match self.base_path() { AppUrl::Url(WindowUrl::External(url)) => { - if cfg!(dev) && !cfg!(target_os = "linux") { + if PROXY_DEV_SERVER { format_real_schema("tauri") } else { url.origin().ascii_serialization() @@ -884,7 +890,7 @@ impl WindowManager { >, ) -> Box Result> + Send + Sync> { - #[cfg(dev)] + #[cfg(all(dev, mobile))] let url = { let mut url = self.get_url().as_str().to_string(); if url.ends_with('/') { @@ -892,11 +898,11 @@ impl WindowManager { } url }; - #[cfg(not(dev))] + #[cfg(not(all(dev, mobile)))] let manager = self.clone(); let window_origin = window_origin.to_string(); - #[cfg(dev)] + #[cfg(all(dev, mobile))] #[derive(Clone)] struct CachedResponse { status: http::StatusCode, @@ -904,16 +910,17 @@ impl WindowManager { body: Cow<'static, [u8]>, } - #[cfg(dev)] + #[cfg(all(dev, mobile))] let response_cache = Arc::new(Mutex::new(HashMap::new())); Box::new(move |request| { // use the entire URI as we are going to proxy the request - #[cfg(dev)] - let path = request.uri(); - // ignore query string and fragment - #[cfg(not(dev))] - let path = request.uri().split(&['?', '#'][..]).next().unwrap(); + let path = if PROXY_DEV_SERVER { + request.uri() + } else { + // ignore query string and fragment + request.uri().split(&['?', '#'][..]).next().unwrap() + }; let path = path .strip_prefix("tauri://localhost") @@ -925,7 +932,7 @@ impl WindowManager { let mut builder = HttpResponseBuilder::new().header("Access-Control-Allow-Origin", &window_origin); - #[cfg(dev)] + #[cfg(all(dev, mobile))] let mut response = { use attohttpc::StatusCode; let decoded_path = percent_encoding::percent_decode(path.as_bytes()) @@ -970,7 +977,7 @@ impl WindowManager { } }; - #[cfg(not(dev))] + #[cfg(not(all(dev, mobile)))] let mut response = { let asset = manager.get_asset(path)?; builder = builder.mimetype(&asset.mime_type); @@ -1207,10 +1214,11 @@ impl WindowManager { #[allow(unused_mut)] // mut url only for the data-url parsing let (is_local, mut url) = match &pending.webview_attributes.url { WindowUrl::App(path) => { - #[cfg(target_os = "linux")] - let url = self.get_url(); - #[cfg(not(target_os = "linux"))] - let url: Cow<'_, Url> = Cow::Owned(Url::parse("tauri://localhost").unwrap()); + let url = if PROXY_DEV_SERVER { + Cow::Owned(Url::parse("tauri://localhost").unwrap()) + } else { + self.get_url() + }; ( true, // ignore "index.html" just to simplify the url @@ -1229,7 +1237,7 @@ impl WindowManager { let config_url = self.get_url(); let is_local = config_url.make_relative(url).is_some(); let mut url = url.clone(); - if is_local && !cfg!(target_os = "linux") { + if is_local && PROXY_DEV_SERVER { url.set_scheme("tauri").unwrap(); url.set_host(Some("localhost")).unwrap(); } From 1af9be904a309138b9f79dc741391000b1652c75 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Mon, 23 Jan 2023 13:26:13 -0800 Subject: [PATCH 125/436] feat(cli): properly fill target for TAURI_ env vars on mobile (#6116) --- .changes/fix-mobile-env-vars.md | 6 +++ examples/api/vite.config.js | 2 +- tooling/cli/src/dev.rs | 26 +----------- tooling/cli/src/mobile/android.rs | 3 +- tooling/cli/src/mobile/android/build.rs | 12 +++++- tooling/cli/src/mobile/android/dev.rs | 54 +++++++++++++------------ tooling/cli/src/mobile/ios.rs | 3 +- tooling/cli/src/mobile/ios/build.rs | 12 +++++- tooling/cli/src/mobile/ios/dev.rs | 48 +++++++++++++--------- tooling/cli/src/mobile/mod.rs | 44 +++++++++++++++++++- 10 files changed, 133 insertions(+), 77 deletions(-) create mode 100644 .changes/fix-mobile-env-vars.md diff --git a/.changes/fix-mobile-env-vars.md b/.changes/fix-mobile-env-vars.md new file mode 100644 index 000000000000..8c1bd2c8a4f2 --- /dev/null +++ b/.changes/fix-mobile-env-vars.md @@ -0,0 +1,6 @@ +--- +"cli.rs": patch +"cli.js": patch +--- + +Fixes `TAURI_*` environment variables for hook scripts on mobile commands. diff --git a/examples/api/vite.config.js b/examples/api/vite.config.js index 26249285ea4d..f4d59a2933a8 100644 --- a/examples/api/vite.config.js +++ b/examples/api/vite.config.js @@ -5,7 +5,7 @@ import { internalIpV4 } from 'internal-ip' // https://vitejs.dev/config/ export default defineConfig(async ({ command, mode }) => { - const host = await internalIpV4() + const host = process.env.TAURI_PLATFORM === 'android' || process.env.TAURI_PLATFORM === 'ios' ? (await internalIpV4()) : 'localhost' return { plugins: [Unocss(), svelte()], build: { diff --git a/tooling/cli/src/dev.rs b/tooling/cli/src/dev.rs index a4e6e399a59e..df10d98aab74 100644 --- a/tooling/cli/src/dev.rs +++ b/tooling/cli/src/dev.rs @@ -86,7 +86,7 @@ fn command_internal(mut options: Options) -> Result<()> { }) } -fn local_ip_address() -> &'static IpAddr { +pub fn local_ip_address() -> &'static IpAddr { static LOCAL_IP: OnceCell = OnceCell::new(); LOCAL_IP.get_or_init(|| { let addresses: Vec = local_ip_address::list_afinet_netifas() @@ -148,30 +148,6 @@ pub fn setup(options: &mut Options, mobile: bool) -> Result { .dev_path .clone(); - if mobile { - if let AppUrl::Url(WindowUrl::External(url)) = &mut dev_path { - let localhost = match url.host() { - Some(url::Host::Domain(d)) => d == "localhost", - Some(url::Host::Ipv4(i)) => { - i == std::net::Ipv4Addr::LOCALHOST || i == std::net::Ipv4Addr::UNSPECIFIED - } - _ => false, - }; - if localhost { - let ip = local_ip_address(); - url.set_host(Some(&ip.to_string())).unwrap(); - if let Some(c) = &options.config { - let mut c: tauri_utils::config::Config = serde_json::from_str(c)?; - c.build.dev_path = dev_path.clone(); - options.config = Some(serde_json::to_string(&c).unwrap()); - } else { - options.config = Some(format!(r#"{{ "build": {{ "devPath": "{}" }} }}"#, url)) - } - reload_config(options.config.as_deref())?; - } - } - } - if let Some(before_dev) = config .lock() .unwrap() diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index c9551aa4ae73..7a8ea1d3daee 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -27,7 +27,8 @@ use tauri_mobile::{ use super::{ ensure_init, get_app, init::{command as init_command, init_dot_cargo}, - log_finished, read_options, CliOptions, Target as MobileTarget, MIN_DEVICE_MATCH_SCORE, + log_finished, read_options, setup_dev_config, CliOptions, Target as MobileTarget, + MIN_DEVICE_MATCH_SCORE, }; use crate::{ helpers::config::{get as get_tauri_config, Config as TauriConfig}, diff --git a/tooling/cli/src/mobile/android/build.rs b/tooling/cli/src/mobile/android/build.rs index 8dd66bb6c008..22b7ca948b01 100644 --- a/tooling/cli/src/mobile/android/build.rs +++ b/tooling/cli/src/mobile/android/build.rs @@ -3,6 +3,7 @@ use super::{ MobileTarget, }; use crate::{ + build::Options as BuildOptions, helpers::flock, interface::{AppSettings, Interface, Options as InterfaceOptions}, mobile::{write_options, CliOptions}, @@ -53,7 +54,7 @@ pub struct Options { pub open: bool, } -impl From for crate::build::Options { +impl From for BuildOptions { fn from(options: Options) -> Self { Self { runner: None, @@ -111,7 +112,14 @@ fn run_build( options.aab = true; } - let mut build_options = options.clone().into(); + let mut build_options: BuildOptions = options.clone().into(); + build_options.target = Some( + Target::all() + .get(Target::DEFAULT_KEY) + .unwrap() + .triple + .into(), + ); let interface = crate::build::setup(&mut build_options, true)?; let app_settings = interface.app_settings(); diff --git a/tooling/cli/src/mobile/android/dev.rs b/tooling/cli/src/mobile/android/dev.rs index 521012c2fbbe..95c66bfe5e28 100644 --- a/tooling/cli/src/mobile/android/dev.rs +++ b/tooling/cli/src/mobile/android/dev.rs @@ -1,8 +1,9 @@ use super::{ - delete_codegen_vars, device_prompt, ensure_init, env, init_dot_cargo, open_and_wait, with_config, - MobileTarget, + delete_codegen_vars, device_prompt, ensure_init, env, init_dot_cargo, open_and_wait, + setup_dev_config, with_config, MobileTarget, }; use crate::{ + dev::Options as DevOptions, helpers::flock, interface::{AppSettings, Interface, MobileOptions, Options as InterfaceOptions}, mobile::{write_options, CliOptions, DevChild, DevProcess}, @@ -13,6 +14,7 @@ use clap::{ArgAction, Parser}; use tauri_mobile::{ android::{ config::{Config as AndroidConfig, Metadata as AndroidMetadata}, + device::Device, env::Env, }, config::app::App, @@ -55,7 +57,7 @@ pub struct Options { pub device: Option, } -impl From for crate::dev::Options { +impl From for DevOptions { fn from(options: Options) -> Self { Self { runner: None, @@ -89,13 +91,29 @@ pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { } fn run_dev( - options: Options, + mut options: Options, app: &App, config: &AndroidConfig, metadata: &AndroidMetadata, noise_level: NoiseLevel, ) -> Result<()> { - let mut dev_options = options.clone().into(); + setup_dev_config(&mut options.config)?; + let env = env()?; + let device = match device_prompt(&env, options.device.as_deref()) { + Ok(d) => Some(d), + Err(e) => { + log::error!("{e}"); + None + } + }; + + let mut dev_options: DevOptions = options.clone().into(); + dev_options.target = Some( + device + .as_ref() + .map(|d| d.target().triple.to_string()) + .unwrap_or_else(|| "aarch64-linux-android".into()), + ); let mut interface = crate::dev::setup(&mut dev_options, true)?; let app_settings = interface.app_settings(); @@ -106,13 +124,11 @@ fn run_dev( let out_dir = bin_path.parent().unwrap(); let _lock = flock::open_rw(out_dir.join("lock").with_extension("android"), "Android")?; - let env = env()?; init_dot_cargo(app, Some((&env, config)))?; let open = options.open; let exit_on_panic = options.exit_on_panic; let no_watch = options.no_watch; - let device = options.device; interface.mobile_dev( MobileOptions { debug: true, @@ -133,30 +149,21 @@ fn run_dev( if open { open_and_wait(config, &env) - } else { - match run( - device.as_deref(), - options, - config, - &env, - metadata, - noise_level, - ) { + } else if let Some(device) = &device { + match run(device, options, config, &env, metadata, noise_level) { Ok(c) => { crate::dev::wait_dev_process(c.clone(), move |status, reason| { crate::dev::on_app_exit(status, reason, exit_on_panic, no_watch) }); Ok(Box::new(c) as Box) } - Err(RunError::FailedToPromptForDevice(e)) => { - log::error!("{}", e); - open_and_wait(config, &env) - } Err(e) => { crate::dev::kill_before_dev_process(); Err(e.into()) } } + } else { + open_and_wait(config, &env) } }, ) @@ -164,14 +171,12 @@ fn run_dev( #[derive(Debug, thiserror::Error)] enum RunError { - #[error("{0}")] - FailedToPromptForDevice(String), #[error("{0}")] RunFailed(String), } fn run( - device: Option<&str>, + device: &Device<'_>, options: MobileOptions, config: &AndroidConfig, env: &Env, @@ -186,8 +191,7 @@ fn run( let build_app_bundle = metadata.asset_packs().is_some(); - device_prompt(env, device) - .map_err(|e| RunError::FailedToPromptForDevice(e.to_string()))? + device .run( config, env, diff --git a/tooling/cli/src/mobile/ios.rs b/tooling/cli/src/mobile/ios.rs index f627dfa441d7..33dc9751d31e 100644 --- a/tooling/cli/src/mobile/ios.rs +++ b/tooling/cli/src/mobile/ios.rs @@ -25,7 +25,8 @@ use tauri_mobile::{ use super::{ ensure_init, env, get_app, init::{command as init_command, init_dot_cargo}, - log_finished, read_options, CliOptions, Target as MobileTarget, MIN_DEVICE_MATCH_SCORE, + log_finished, read_options, setup_dev_config, CliOptions, Target as MobileTarget, + MIN_DEVICE_MATCH_SCORE, }; use crate::{ helpers::config::{get as get_tauri_config, Config as TauriConfig}, diff --git a/tooling/cli/src/mobile/ios/build.rs b/tooling/cli/src/mobile/ios/build.rs index 33773482d64a..a872d036cfbe 100644 --- a/tooling/cli/src/mobile/ios/build.rs +++ b/tooling/cli/src/mobile/ios/build.rs @@ -3,6 +3,7 @@ use super::{ MobileTarget, }; use crate::{ + build::Options as BuildOptions, helpers::flock, interface::{AppSettings, Interface, Options as InterfaceOptions}, mobile::{write_options, CliOptions}, @@ -49,7 +50,7 @@ pub struct Options { pub open: bool, } -impl From for crate::build::Options { +impl From for BuildOptions { fn from(options: Options) -> Self { Self { runner: None, @@ -97,7 +98,14 @@ fn run_build( Profile::Release }; - let mut build_options = options.clone().into(); + let mut build_options: BuildOptions = options.clone().into(); + build_options.target = Some( + Target::all() + .get(Target::DEFAULT_KEY) + .unwrap() + .triple + .into(), + ); let interface = crate::build::setup(&mut build_options, true)?; let app_settings = interface.app_settings(); diff --git a/tooling/cli/src/mobile/ios/dev.rs b/tooling/cli/src/mobile/ios/dev.rs index ad3bb6bdbbf8..617414718898 100644 --- a/tooling/cli/src/mobile/ios/dev.rs +++ b/tooling/cli/src/mobile/ios/dev.rs @@ -1,8 +1,9 @@ use super::{ - device_prompt, ensure_init, env, init_dot_cargo, open_and_wait, with_config, MobileTarget, - APPLE_DEVELOPMENT_TEAM_ENV_VAR_NAME, + device_prompt, ensure_init, env, init_dot_cargo, open_and_wait, setup_dev_config, with_config, + MobileTarget, APPLE_DEVELOPMENT_TEAM_ENV_VAR_NAME, }; use crate::{ + dev::Options as DevOptions, helpers::flock, interface::{AppSettings, Interface, MobileOptions, Options as InterfaceOptions}, mobile::{write_options, CliOptions, DevChild, DevProcess}, @@ -12,7 +13,7 @@ use clap::{ArgAction, Parser}; use dialoguer::{theme::ColorfulTheme, Select}; use tauri_mobile::{ - apple::{config::Config as AppleConfig, teams::find_development_teams}, + apple::{config::Config as AppleConfig, device::Device, teams::find_development_teams}, config::app::App, env::Env, opts::{NoiseLevel, Profile}, @@ -48,7 +49,7 @@ pub struct Options { pub device: Option, } -impl From for crate::dev::Options { +impl From for DevOptions { fn from(options: Options) -> Self { Self { runner: None, @@ -105,12 +106,28 @@ pub fn command(options: Options, noise_level: NoiseLevel) -> Result<()> { } fn run_dev( - options: Options, + mut options: Options, app: &App, config: &AppleConfig, noise_level: NoiseLevel, ) -> Result<()> { - let mut dev_options = options.clone().into(); + setup_dev_config(&mut options.config)?; + let env = env()?; + let device = match device_prompt(&env, options.device.as_deref()) { + Ok(d) => Some(d), + Err(e) => { + log::error!("{e}"); + None + } + }; + + let mut dev_options: DevOptions = options.clone().into(); + dev_options.target = Some( + device + .as_ref() + .map(|d| d.target().triple.to_string()) + .unwrap_or_else(|| "aarch64-apple-ios".into()), + ); let mut interface = crate::dev::setup(&mut dev_options, true)?; let app_settings = interface.app_settings(); @@ -121,13 +138,11 @@ fn run_dev( let out_dir = bin_path.parent().unwrap(); let _lock = flock::open_rw(&out_dir.join("lock").with_extension("ios"), "iOS")?; - let env = env()?; init_dot_cargo(app, None)?; let open = options.open; let exit_on_panic = options.exit_on_panic; let no_watch = options.no_watch; - let device = options.device; interface.mobile_dev( MobileOptions { debug: true, @@ -148,23 +163,21 @@ fn run_dev( if open { open_and_wait(config, &env) - } else { - match run(device.as_deref(), options, config, &env) { + } else if let Some(device) = &device { + match run(device, options, config, &env) { Ok(c) => { crate::dev::wait_dev_process(c.clone(), move |status, reason| { crate::dev::on_app_exit(status, reason, exit_on_panic, no_watch) }); Ok(Box::new(c) as Box) } - Err(RunError::FailedToPromptForDevice(e)) => { - log::error!("{}", e); - open_and_wait(config, &env) - } Err(e) => { crate::dev::kill_before_dev_process(); Err(e.into()) } } + } else { + open_and_wait(config, &env) } }, ) @@ -172,13 +185,11 @@ fn run_dev( #[derive(Debug, thiserror::Error)] enum RunError { - #[error("{0}")] - FailedToPromptForDevice(String), #[error("{0}")] RunFailed(String), } fn run( - device: Option<&str>, + device: &Device<'_>, options: MobileOptions, config: &AppleConfig, env: &Env, @@ -189,8 +200,7 @@ fn run( Profile::Release }; - device_prompt(env, device) - .map_err(|e| RunError::FailedToPromptForDevice(e.to_string()))? + device .run( config, env, diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index 30e94e771b4a..bac4f89e2069 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -3,7 +3,12 @@ // SPDX-License-Identifier: MIT use crate::{ - helpers::{app_paths::tauri_dir, config::Config as TauriConfig}, + helpers::{ + app_paths::tauri_dir, + config::{ + get as get_config, reload as reload_config, AppUrl, Config as TauriConfig, WindowUrl, + }, + }, interface::{AppInterface, AppSettings, DevProcess, Interface, Options as InterfaceOptions}, }; use anyhow::{bail, Result}; @@ -127,6 +132,43 @@ pub struct CliOptions { pub vars: HashMap, } +fn setup_dev_config(config_extension: &mut Option) -> crate::Result<()> { + let config = get_config(config_extension.as_deref())?; + + let mut dev_path = config + .lock() + .unwrap() + .as_ref() + .unwrap() + .build + .dev_path + .clone(); + + if let AppUrl::Url(WindowUrl::External(url)) = &mut dev_path { + let localhost = match url.host() { + Some(url::Host::Domain(d)) => d == "localhost", + Some(url::Host::Ipv4(i)) => { + i == std::net::Ipv4Addr::LOCALHOST || i == std::net::Ipv4Addr::UNSPECIFIED + } + _ => false, + }; + if localhost { + let ip = crate::dev::local_ip_address(); + url.set_host(Some(&ip.to_string())).unwrap(); + if let Some(c) = config_extension { + let mut c: tauri_utils::config::Config = serde_json::from_str(c)?; + c.build.dev_path = dev_path.clone(); + config_extension.replace(serde_json::to_string(&c).unwrap()); + } else { + config_extension.replace(format!(r#"{{ "build": {{ "devPath": "{}" }} }}"#, url)); + } + reload_config(config_extension.as_deref())?; + } + } + + Ok(()) +} + fn env_vars() -> HashMap { let mut vars = HashMap::new(); vars.insert("RUST_LOG_STYLE".into(), "always".into()); From 8835633955be01e3f984c1beb0c6814975c4c6e5 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Thu, 26 Jan 2023 12:33:52 -0300 Subject: [PATCH 126/436] fix(cli): do not prompt for device when `--open` is provided --- tooling/cli/src/mobile/android/dev.rs | 14 +++++++++----- tooling/cli/src/mobile/ios/dev.rs | 14 +++++++++----- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/tooling/cli/src/mobile/android/dev.rs b/tooling/cli/src/mobile/android/dev.rs index 95c66bfe5e28..b9e4d2226461 100644 --- a/tooling/cli/src/mobile/android/dev.rs +++ b/tooling/cli/src/mobile/android/dev.rs @@ -99,11 +99,15 @@ fn run_dev( ) -> Result<()> { setup_dev_config(&mut options.config)?; let env = env()?; - let device = match device_prompt(&env, options.device.as_deref()) { - Ok(d) => Some(d), - Err(e) => { - log::error!("{e}"); - None + let device = if options.open { + None + } else { + match device_prompt(&env, options.device.as_deref()) { + Ok(d) => Some(d), + Err(e) => { + log::error!("{e}"); + None + } } }; diff --git a/tooling/cli/src/mobile/ios/dev.rs b/tooling/cli/src/mobile/ios/dev.rs index 617414718898..0d7b7025bd09 100644 --- a/tooling/cli/src/mobile/ios/dev.rs +++ b/tooling/cli/src/mobile/ios/dev.rs @@ -113,11 +113,15 @@ fn run_dev( ) -> Result<()> { setup_dev_config(&mut options.config)?; let env = env()?; - let device = match device_prompt(&env, options.device.as_deref()) { - Ok(d) => Some(d), - Err(e) => { - log::error!("{e}"); - None + let device = if options.open { + None + } else { + match device_prompt(&env, options.device.as_deref()) { + Ok(d) => Some(d), + Err(e) => { + log::error!("{e}"); + None + } } }; From 7eb9aa75cfd6a3176d3f566fdda02d88aa529b0f Mon Sep 17 00:00:00 2001 From: "Ngo Iok Ui (Wu Yu Wei)" Date: Mon, 30 Jan 2023 02:08:27 +0800 Subject: [PATCH 127/436] Update gtk to 0.16 (#6155) Co-authored-by: Wu Yu Wei Co-authored-by: Lucas Nogueira --- .changes/config.json | 2 +- .changes/gtk16.md | 8 ++++++ .changes/msrv-1.64.md | 13 ++++++++++ .devcontainer/Dockerfile | 2 +- .docker/cross/aarch64.Dockerfile | 2 +- .github/workflows/artifacts-updater.yml | 2 +- .github/workflows/bench.yml | 2 +- .../workflows/covector-version-or-publish.yml | 2 +- .github/workflows/docker.yml | 2 +- .github/workflows/lint-fmt-core.yml | 2 +- .github/workflows/publish-cli-js.yml | 4 +-- .github/workflows/test-cli-js.yml | 2 +- .github/workflows/test-core.yml | 12 ++++----- .github/workflows/test-mobile.yml | 2 +- .github/workflows/udeps.yml | 2 +- README.md | 2 +- core/tauri-build/Cargo.toml | 2 +- core/tauri-codegen/Cargo.toml | 2 +- core/tauri-macros/Cargo.toml | 2 +- core/tauri-runtime-wry/Cargo.toml | 8 +++--- core/tauri-runtime/Cargo.toml | 4 +-- core/tauri-utils/Cargo.toml | 2 +- core/tauri/Cargo.toml | 10 +++---- examples/api/src-tauri/Cargo.toml | 2 +- examples/commands/main.rs | 8 +++--- examples/resources/src-tauri/Cargo.toml | 2 +- examples/sidecar/src-tauri/Cargo.toml | 2 +- .../tauri-dynamic-lib/src-app1/Cargo.toml | 2 +- .../tauri-dynamic-lib/src-tauri/Cargo.toml | 2 +- examples/updater/src-tauri/Cargo.toml | 2 +- examples/web/core/tauri/Cargo.toml | 2 +- tooling/bench/Cargo.toml | 2 +- .../tests/cpu_intensive/src-tauri/Cargo.toml | 2 +- .../tests/files_transfer/src-tauri/Cargo.toml | 2 +- .../tests/helloworld/src-tauri/Cargo.toml | 2 +- tooling/bundler/Cargo.toml | 2 +- tooling/bundler/src/bundle/category.rs | 3 +-- tooling/bundler/src/bundle/common.rs | 20 +++++--------- tooling/bundler/src/bundle/linux/debian.rs | 26 +++++++++---------- tooling/bundler/src/bundle/path_utils.rs | 10 +++---- tooling/bundler/src/bundle/platform.rs | 4 +-- tooling/bundler/src/bundle/settings.rs | 3 +-- tooling/cli/Cargo.toml | 2 +- .../jest/fixtures/app/src-tauri/Cargo.toml | 2 +- tooling/cli/src/build.rs | 9 +++---- tooling/cli/src/dev.rs | 9 +++---- tooling/cli/src/helpers/flock.rs | 2 +- tooling/cli/src/helpers/updater_signature.rs | 4 +-- tooling/cli/src/icon.rs | 11 +++----- tooling/cli/src/info.rs | 14 +++++----- tooling/cli/src/interface/rust.rs | 4 +-- .../cli/src/interface/rust/cargo_config.rs | 2 +- tooling/cli/src/interface/rust/desktop.rs | 7 +++-- tooling/cli/src/interface/rust/manifest.rs | 4 +-- tooling/cli/src/lib.rs | 6 ++--- tooling/cli/src/mobile/init.rs | 9 +++---- tooling/cli/src/mobile/mod.rs | 2 +- .../app/src-tauri/Cargo.crate-manifest | 2 +- .../plugin/backend/.changes/config.json | 2 +- .../plugin/backend/.github/workflows/lint.yml | 2 +- .../plugin/backend/.github/workflows/test.yml | 2 +- .../plugin/backend/Cargo.crate-manifest | 2 +- .../vanilla/src-tauri/Cargo.crate-manifest | 2 +- .../plugin/with-api/.changes/config.json | 2 +- .../with-api/.github/workflows/clippy.yml | 2 +- .../with-api/.github/workflows/test.yml | 2 +- .../plugin/with-api/Cargo.crate-manifest | 2 +- .../svelte-app/src-tauri/Cargo.crate-manifest | 2 +- 68 files changed, 150 insertions(+), 148 deletions(-) create mode 100644 .changes/gtk16.md create mode 100644 .changes/msrv-1.64.md diff --git a/.changes/config.json b/.changes/config.json index 5df56a75d06e..fccd29e9f326 100644 --- a/.changes/config.json +++ b/.changes/config.json @@ -7,7 +7,7 @@ "getPublishedVersion": "node ../../.scripts/covector/package-latest-version.js cargo ${ pkgFile.pkg.package.name } ${ pkgFile.pkg.package.version }", "prepublish": [ "sudo apt-get update", - "sudo apt-get install -y webkit2gtk-4.0 libayatana-appindicator3-dev", + "sudo apt-get install -y webkit2gtk-4.1 libayatana-appindicator3-dev", "cargo install cargo-audit --features=fix", { "command": "cargo generate-lockfile", diff --git a/.changes/gtk16.md b/.changes/gtk16.md new file mode 100644 index 000000000000..035f8c1d289b --- /dev/null +++ b/.changes/gtk16.md @@ -0,0 +1,8 @@ +--- +"tauri-runtime": minor +"tauri-runtime-wry": minor +"tauri": minor +--- + +Update gtk to 0.16. + diff --git a/.changes/msrv-1.64.md b/.changes/msrv-1.64.md new file mode 100644 index 000000000000..b61ad5297092 --- /dev/null +++ b/.changes/msrv-1.64.md @@ -0,0 +1,13 @@ +--- +"cli.rs": minor +"tauri-bundler": minor +"tauri": minor +"tauri-build": minor +"tauri-codegen": minor +"tauri-macros": minor +"tauri-utils": minor +"tauri-runtime": minor +"tauri-runtime-wry": minor +--- + +Bump the MSRV to 1.64. diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 0435c8cf7b09..63d7bcd3ae6e 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -6,7 +6,7 @@ FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT} # Derived from Tauri contribution and setup guides: # See: https://github.com/tauri-apps/tauri/blob/dev/.github/CONTRIBUTING.md#development-guide # See: https://tauri.app/v1/guides/getting-started/prerequisites/#setting-up-linux -ARG TAURI_BUILD_DEPS="build-essential curl libappindicator3-dev libgtk-3-dev librsvg2-dev libssl-dev libwebkit2gtk-4.0-dev wget" +ARG TAURI_BUILD_DEPS="build-essential curl libappindicator3-dev libgtk-3-dev librsvg2-dev libssl-dev libwebkit2gtk-4.1-dev wget" RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ && apt-get install -y --no-install-recommends $TAURI_BUILD_DEPS diff --git a/.docker/cross/aarch64.Dockerfile b/.docker/cross/aarch64.Dockerfile index 6dfb5bdaa718..498d055b75f9 100644 --- a/.docker/cross/aarch64.Dockerfile +++ b/.docker/cross/aarch64.Dockerfile @@ -41,4 +41,4 @@ ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc \ RUN dpkg --add-architecture arm64 RUN apt-get update -RUN apt-get install --assume-yes --no-install-recommends libssl-dev:arm64 libdbus-1-dev:arm64 libsoup2.4-dev:arm64 libssl-dev:arm64 libgtk-3-dev:arm64 webkit2gtk-4.0-dev:arm64 libappindicator3-1:arm64 librsvg2-dev:arm64 patchelf:arm64 +RUN apt-get install --assume-yes --no-install-recommends libssl-dev:arm64 libdbus-1-dev:arm64 libsoup2.4-dev:arm64 libssl-dev:arm64 libgtk-3-dev:arm64 webkit2gtk-4.1-dev:arm64 libappindicator3-1:arm64 librsvg2-dev:arm64 patchelf:arm64 diff --git a/.github/workflows/artifacts-updater.yml b/.github/workflows/artifacts-updater.yml index fb1d316c3cb8..2d654905c17e 100644 --- a/.github/workflows/artifacts-updater.yml +++ b/.github/workflows/artifacts-updater.yml @@ -40,7 +40,7 @@ jobs: if: matrix.platform == 'ubuntu-latest' run: | sudo apt-get update - sudo apt-get install -y webkit2gtk-4.0 libayatana-appindicator3-dev + sudo apt-get install -y webkit2gtk-4.1 libayatana-appindicator3-dev - uses: Swatinem/rust-cache@v2 with: diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index c8315cf6a2b8..8a489e659c7e 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -47,7 +47,7 @@ jobs: run: | python -m pip install --upgrade pip sudo apt-get update - sudo apt-get install -y webkit2gtk-4.0 libayatana-appindicator3-dev xvfb + sudo apt-get install -y webkit2gtk-4.1 libayatana-appindicator3-dev xvfb wget https://github.com/sharkdp/hyperfine/releases/download/v1.11.0/hyperfine_1.11.0_amd64.deb sudo dpkg -i hyperfine_1.11.0_amd64.deb pip install memory_profiler diff --git a/.github/workflows/covector-version-or-publish.yml b/.github/workflows/covector-version-or-publish.yml index 054493427312..415318023e70 100644 --- a/.github/workflows/covector-version-or-publish.yml +++ b/.github/workflows/covector-version-or-publish.yml @@ -30,7 +30,7 @@ jobs: if: matrix.platform == 'ubuntu-latest' run: | sudo apt-get update - sudo apt-get install -y webkit2gtk-4.0 libayatana-appindicator3-dev libfuse2 + sudo apt-get install -y webkit2gtk-4.1 libayatana-appindicator3-dev libfuse2 - uses: Swatinem/rust-cache@v2 with: diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index dcf2e2179807..bb01a2919cdd 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -111,7 +111,7 @@ jobs: - name: install dependencies run: | sudo apt-get update - sudo apt-get install -y webkit2gtk-4.0 libayatana-appindicator3-dev + sudo apt-get install -y webkit2gtk-4.1 libayatana-appindicator3-dev - name: Test run: | diff --git a/.github/workflows/lint-fmt-core.yml b/.github/workflows/lint-fmt-core.yml index 04fe41f42957..e7ccbc466632 100644 --- a/.github/workflows/lint-fmt-core.yml +++ b/.github/workflows/lint-fmt-core.yml @@ -62,7 +62,7 @@ jobs: - name: install dependencies run: | sudo apt-get update - sudo apt-get install -y webkit2gtk-4.0 libayatana-appindicator3-dev + sudo apt-get install -y webkit2gtk-4.1 libayatana-appindicator3-dev - uses: actions-rs/toolchain@v1 with: diff --git a/.github/workflows/publish-cli-js.yml b/.github/workflows/publish-cli-js.yml index e7f2ed6ffd0c..234c68f26896 100644 --- a/.github/workflows/publish-cli-js.yml +++ b/.github/workflows/publish-cli-js.yml @@ -257,7 +257,7 @@ jobs: - name: install system dependencies run: | sudo apt-get update - sudo apt-get install -y webkit2gtk-4.0 libayatana-appindicator3-dev + sudo apt-get install -y webkit2gtk-4.1 libayatana-appindicator3-dev - name: Test bindings run: yarn test test-linux-x64-musl-binding: @@ -351,7 +351,7 @@ jobs: set -e export PATH=/usr/local/cargo/bin/:/usr/local/fnm:$PATH apt-get update - DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install --no-install-recommends -y unzip webkit2gtk-4.0 libayatana-appindicator3-dev + DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install --no-install-recommends -y unzip webkit2gtk-4.1 libayatana-appindicator3-dev bash curl https://sh.rustup.rs -sSf | bash -s -- -y curl -fsSL https://fnm.vercel.app/install | bash -s -- --install-dir "/usr/local/fnm" --skip-shell diff --git a/.github/workflows/test-cli-js.yml b/.github/workflows/test-cli-js.yml index c178140c2c0b..2060fb66fda3 100644 --- a/.github/workflows/test-cli-js.yml +++ b/.github/workflows/test-cli-js.yml @@ -51,7 +51,7 @@ jobs: if: matrix.platform == 'ubuntu-latest' run: | sudo apt-get update - sudo apt-get install -y webkit2gtk-4.0 libayatana-appindicator3-dev + sudo apt-get install -y webkit2gtk-4.1 libayatana-appindicator3-dev - uses: Swatinem/rust-cache@v2 with: diff --git a/.github/workflows/test-core.yml b/.github/workflows/test-core.yml index 258bd18b7178..abbc4d916afe 100644 --- a/.github/workflows/test-core.yml +++ b/.github/workflows/test-core.yml @@ -34,35 +34,35 @@ jobs: - { target: x86_64-pc-windows-msvc, os: windows-latest, - toolchain: '1.61.0', + toolchain: '1.64.0', cross: false, command: 'test' } - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, - toolchain: '1.59.0', + toolchain: '1.64.0', cross: false, command: 'test' } - { target: x86_64-apple-darwin, os: macos-latest, - toolchain: '1.59.0', + toolchain: '1.64.0', cross: false, command: 'test' } - { target: aarch64-apple-ios, os: macos-latest, - toolchain: '1.59.0', + toolchain: '1.64.0', cross: false, command: 'build' } - { target: aarch64-linux-android, os: ubuntu-latest, - toolchain: '1.59.0', + toolchain: '1.64.0', cross: true, command: 'build' } @@ -95,7 +95,7 @@ jobs: if: contains(matrix.platform.target, 'unknown-linux') run: | sudo apt-get update - sudo apt-get install -y webkit2gtk-4.0 libayatana-appindicator3-dev + sudo apt-get install -y webkit2gtk-4.1 libayatana-appindicator3-dev - uses: Swatinem/rust-cache@v2 with: diff --git a/.github/workflows/test-mobile.yml b/.github/workflows/test-mobile.yml index 6ebdf91eb306..73d83e9ddb2c 100644 --- a/.github/workflows/test-mobile.yml +++ b/.github/workflows/test-mobile.yml @@ -33,7 +33,7 @@ jobs: if: matrix.platform == 'ubuntu-latest' run: | sudo apt-get update - sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 + sudo apt-get install -y libgtk-3-dev webkit2gtk-4.1 - name: setup node uses: actions/setup-node@v3 diff --git a/.github/workflows/udeps.yml b/.github/workflows/udeps.yml index dea90577245a..41c294fbc8a9 100644 --- a/.github/workflows/udeps.yml +++ b/.github/workflows/udeps.yml @@ -157,7 +157,7 @@ jobs: - name: Install required packages run: | sudo apt-get update - sudo apt-get install -y webkit2gtk-4.0 libayatana-appindicator3-dev + sudo apt-get install -y webkit2gtk-4.1 libayatana-appindicator3-dev - uses: actions-rs/cargo@v1 with: diff --git a/README.md b/README.md index 4feac90fd06e..8a8f56f86020 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ For **developing** Tauri apps refer to the [Getting Started guide on tauri.app]( For **running** Tauri apps we support the below configurations (these are automatically added as dependencies for .deb and are bundled for AppImage so that your users don't need to manually install them): - Debian (Ubuntu 18.04 and above or equivalent) with the following packages installed: - - `libwebkit2gtk-4.0-37`, `libgtk-3-0`, `libayatana-appindicator3-1`1 + - `libwebkit2gtk-4.1-0`, `libgtk-3-0`, `libayatana-appindicator3-1`1 - Arch with the following packages installed: - `webkit2gtk`, `gtk3`, `libayatana-appindicator`1 - Fedora (latest 2 versions) with the following packages installed: diff --git a/core/tauri-build/Cargo.toml b/core/tauri-build/Cargo.toml index 1840ac2654a3..1f0b3617ffdb 100644 --- a/core/tauri-build/Cargo.toml +++ b/core/tauri-build/Cargo.toml @@ -8,7 +8,7 @@ homepage = "https://tauri.app" repository = "https://github.com/tauri-apps/tauri/tree/dev/core/tauri-build" description = "build time code to pair with https://crates.io/crates/tauri" edition = "2021" -rust-version = "1.59" +rust-version = "1.64" exclude = [ "CHANGELOG.md", "/target" ] readme = "README.md" diff --git a/core/tauri-codegen/Cargo.toml b/core/tauri-codegen/Cargo.toml index 6c434d130a0f..36cc7b747eb8 100644 --- a/core/tauri-codegen/Cargo.toml +++ b/core/tauri-codegen/Cargo.toml @@ -8,7 +8,7 @@ homepage = "https://tauri.app" repository = "https://github.com/tauri-apps/tauri/tree/dev/core/tauri-codegen" description = "code generation meant to be consumed inside of `tauri` through `tauri-build` or `tauri-macros`" edition = "2021" -rust-version = "1.59" +rust-version = "1.64" exclude = [ "CHANGELOG.md", "/target" ] readme = "README.md" diff --git a/core/tauri-macros/Cargo.toml b/core/tauri-macros/Cargo.toml index e79b037ef07d..575d0f8bdf16 100644 --- a/core/tauri-macros/Cargo.toml +++ b/core/tauri-macros/Cargo.toml @@ -8,7 +8,7 @@ homepage = "https://tauri.app" repository = "https://github.com/tauri-apps/tauri" description = "Macros for the tauri crate." edition = "2021" -rust-version = "1.59" +rust-version = "1.64" exclude = [ "CHANGELOG.md", "/target" ] readme = "README.md" diff --git a/core/tauri-runtime-wry/Cargo.toml b/core/tauri-runtime-wry/Cargo.toml index e9493d88222a..c195ccf4f84e 100644 --- a/core/tauri-runtime-wry/Cargo.toml +++ b/core/tauri-runtime-wry/Cargo.toml @@ -8,12 +8,12 @@ homepage = "https://tauri.app" repository = "https://github.com/tauri-apps/tauri" description = "Wry bindings to the Tauri runtime" edition = "2021" -rust-version = "1.59" +rust-version = "1.64" exclude = [ "CHANGELOG.md", "/target" ] readme = "README.md" [dependencies] -wry = { git = "https://github.com/tauri-apps/wry", branch = "dev", default-features = false, features = [ "file-drop", "protocol" ] } +wry = { version = "0.25.0", default-features = false, features = [ "file-drop", "protocol" ] } tauri-runtime = { version = "0.13.0-alpha.0", path = "../tauri-runtime" } tauri-utils = { version = "2.0.0-alpha.0", path = "../tauri-utils" } uuid = { version = "1", features = [ "v4" ] } @@ -28,8 +28,8 @@ webview2-com = "0.19.1" features = [ "Win32_Foundation" ] [target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies] -gtk = { version = "0.15", features = [ "v3_20" ] } -webkit2gtk = { version = "0.18.2", features = [ "v2_22" ] } +gtk = { version = "0.16", features = [ "v3_24" ] } +webkit2gtk = { version = "0.19.1", features = [ "v2_38" ] } percent-encoding = "2.1" [target."cfg(any(target_os = \"ios\", target_os = \"macos\"))".dependencies] diff --git a/core/tauri-runtime/Cargo.toml b/core/tauri-runtime/Cargo.toml index 9e670d96477b..75d46e94a543 100644 --- a/core/tauri-runtime/Cargo.toml +++ b/core/tauri-runtime/Cargo.toml @@ -8,7 +8,7 @@ homepage = "https://tauri.app" repository = "https://github.com/tauri-apps/tauri" description = "Runtime for Tauri applications" edition = "2021" -rust-version = "1.59" +rust-version = "1.64" exclude = [ "CHANGELOG.md", "/target" ] readme = "README.md" @@ -41,7 +41,7 @@ webview2-com = "0.19.1" features = [ "Win32_Foundation" ] [target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies] -gtk = { version = "0.15", features = [ "v3_20" ] } +gtk = { version = "0.16", features = [ "v3_24" ] } [features] devtools = [ ] diff --git a/core/tauri-utils/Cargo.toml b/core/tauri-utils/Cargo.toml index 785b415defc5..84ea058a1146 100644 --- a/core/tauri-utils/Cargo.toml +++ b/core/tauri-utils/Cargo.toml @@ -7,7 +7,7 @@ homepage = "https://tauri.app" repository = "https://github.com/tauri-apps/tauri" description = "Utilities for Tauri" edition = "2021" -rust-version = "1.59" +rust-version = "1.64" exclude = [ "CHANGELOG.md", "/target" ] readme = "README.md" diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml index f008d8f5ab84..d325b2243780 100644 --- a/core/tauri/Cargo.toml +++ b/core/tauri/Cargo.toml @@ -3,7 +3,7 @@ authors = [ "Tauri Programme within The Commons Conservancy" ] categories = [ "gui", "web-programming" ] description = "Make tiny, secure apps for all desktop platforms with Tauri" edition = "2021" -rust-version = "1.59" +rust-version = "1.64" exclude = [ "/test", "/.scripts", "CHANGELOG.md", "/target" ] homepage = "https://tauri.app" license = "Apache-2.0 OR MIT" @@ -87,13 +87,13 @@ ico = { version = "0.2.0", optional = true } encoding_rs = "0.8.31" [target."cfg(any(target_os = \"macos\", windows, target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies] -rfd = { version = "0.10", optional = true } +rfd = { git = "https://github.com/PolyMeilex/rfd", version = "0.10", optional = true } notify-rust = { version = "4.5", default-features = false, features = [ "d" ], optional = true } [target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies] -gtk = { version = "0.15", features = [ "v3_20" ] } -glib = "0.15" -webkit2gtk = { version = "0.18.2", features = [ "v2_22" ] } +gtk = { version = "0.16", features = [ "v3_24" ] } +glib = "0.16" +webkit2gtk = { version = "0.19.1", features = [ "v2_38" ] } [target."cfg(target_os = \"macos\")".dependencies] embed_plist = "1.2" diff --git a/examples/api/src-tauri/Cargo.toml b/examples/api/src-tauri/Cargo.toml index 599453b8ddac..31a0ad7fbc9f 100644 --- a/examples/api/src-tauri/Cargo.toml +++ b/examples/api/src-tauri/Cargo.toml @@ -3,7 +3,7 @@ name = "api" version = "0.1.0" description = "An example Tauri Application showcasing the api" edition = "2021" -rust-version = "1.59" +rust-version = "1.64" license = "Apache-2.0 OR MIT" [lib] diff --git a/examples/commands/main.rs b/examples/commands/main.rs index 81409d4011a9..ce20be006860 100644 --- a/examples/commands/main.rs +++ b/examples/commands/main.rs @@ -85,7 +85,7 @@ fn force_async(the_argument: String) -> String { #[command(async)] fn force_async_with_result(the_argument: &str) -> Result<&str, MyError> { (!the_argument.is_empty()) - .then(|| the_argument) + .then_some(the_argument) .ok_or(MyError::FooError) } @@ -121,7 +121,7 @@ fn force_async_snake(the_argument: String) -> String { #[command(rename_all = "snake_case", async)] fn force_async_with_result_snake(the_argument: &str) -> Result<&str, MyError> { (!the_argument.is_empty()) - .then(|| the_argument) + .then_some(the_argument) .ok_or(MyError::FooError) } @@ -131,7 +131,7 @@ fn force_async_with_result_snake(the_argument: &str) -> Result<&str, MyError> { fn simple_command_with_result(the_argument: String) -> Result { println!("{the_argument}"); (!the_argument.is_empty()) - .then(|| the_argument) + .then_some(the_argument) .ok_or(MyError::FooError) } @@ -150,7 +150,7 @@ fn stateful_command_with_result( fn simple_command_with_result_snake(the_argument: String) -> Result { println!("{the_argument}"); (!the_argument.is_empty()) - .then(|| the_argument) + .then_some(the_argument) .ok_or(MyError::FooError) } diff --git a/examples/resources/src-tauri/Cargo.toml b/examples/resources/src-tauri/Cargo.toml index 50daca46e631..f30c127c515e 100644 --- a/examples/resources/src-tauri/Cargo.toml +++ b/examples/resources/src-tauri/Cargo.toml @@ -3,7 +3,7 @@ name = "resources" version = "0.1.0" description = "A Tauri application that uses Node.js with app resources" edition = "2021" -rust-version = "1.59" +rust-version = "1.64" [build-dependencies] tauri-build = { path = "../../../core/tauri-build", features = [ "codegen" ] } diff --git a/examples/sidecar/src-tauri/Cargo.toml b/examples/sidecar/src-tauri/Cargo.toml index ab770ce2137d..c6b24de7a7fd 100644 --- a/examples/sidecar/src-tauri/Cargo.toml +++ b/examples/sidecar/src-tauri/Cargo.toml @@ -3,7 +3,7 @@ name = "sidecar" version = "0.1.0" description = "A Tauri application with a sidecar binary" edition = "2021" -rust-version = "1.59" +rust-version = "1.64" [build-dependencies] tauri-build = { path = "../../../core/tauri-build", features = ["codegen"] } diff --git a/examples/tauri-dynamic-lib/src-app1/Cargo.toml b/examples/tauri-dynamic-lib/src-app1/Cargo.toml index c2341022f336..756c0083b82c 100644 --- a/examples/tauri-dynamic-lib/src-app1/Cargo.toml +++ b/examples/tauri-dynamic-lib/src-app1/Cargo.toml @@ -3,7 +3,7 @@ name = "app1" version = "0.1.0" description = "A simple app that makes a dll call" edition = "2021" -rust-version = "1.59" +rust-version = "1.64" [workspace] diff --git a/examples/tauri-dynamic-lib/src-tauri/Cargo.toml b/examples/tauri-dynamic-lib/src-tauri/Cargo.toml index 66921386d184..a9217c63928d 100644 --- a/examples/tauri-dynamic-lib/src-tauri/Cargo.toml +++ b/examples/tauri-dynamic-lib/src-tauri/Cargo.toml @@ -3,7 +3,7 @@ name = "tauri_app" version = "0.1.0" description = "A very simple Dll Library that runs tauri and launches a webview window" edition = "2021" -rust-version = "1.59" +rust-version = "1.64" [workspace] diff --git a/examples/updater/src-tauri/Cargo.toml b/examples/updater/src-tauri/Cargo.toml index 50b414f81617..cc9d0f37311e 100644 --- a/examples/updater/src-tauri/Cargo.toml +++ b/examples/updater/src-tauri/Cargo.toml @@ -3,7 +3,7 @@ name = "updater-example" version = "0.1.0" description = "A very simple Tauri Application" edition = "2021" -rust-version = "1.59" +rust-version = "1.64" license = "Apache-2.0 OR MIT" [build-dependencies] diff --git a/examples/web/core/tauri/Cargo.toml b/examples/web/core/tauri/Cargo.toml index a4e5ba1be6f5..99c147a8781f 100644 --- a/examples/web/core/tauri/Cargo.toml +++ b/examples/web/core/tauri/Cargo.toml @@ -7,7 +7,7 @@ license = "" repository = "" default-run = "app" edition = "2021" -rust-version = "1.59" +rust-version = "1.64" [build-dependencies] tauri-build = { path = "../../../../core/tauri-build", features = [] } diff --git a/tooling/bench/Cargo.toml b/tooling/bench/Cargo.toml index 888545cffb18..0c977b566ce0 100644 --- a/tooling/bench/Cargo.toml +++ b/tooling/bench/Cargo.toml @@ -5,7 +5,7 @@ name = "tauri_bench" version = "0.1.0" authors = [ "Tauri Programme within The Commons Conservancy" ] edition = "2021" -rust-version = "1.59" +rust-version = "1.64" license = "Apache-2.0 OR MIT" description = "Cross-platform WebView rendering library" repository = "https://github.com/tauri-apps/wry" diff --git a/tooling/bench/tests/cpu_intensive/src-tauri/Cargo.toml b/tooling/bench/tests/cpu_intensive/src-tauri/Cargo.toml index 5120e5f3060e..717d28690373 100644 --- a/tooling/bench/tests/cpu_intensive/src-tauri/Cargo.toml +++ b/tooling/bench/tests/cpu_intensive/src-tauri/Cargo.toml @@ -3,7 +3,7 @@ name = "bench_cpu_intensive" version = "0.1.0" description = "A very simple Tauri Application" edition = "2021" -rust-version = "1.59" +rust-version = "1.64" [build-dependencies] tauri-build = { path = "../../../../../core/tauri-build", features = [ "codegen" ] } diff --git a/tooling/bench/tests/files_transfer/src-tauri/Cargo.toml b/tooling/bench/tests/files_transfer/src-tauri/Cargo.toml index f643bd0fdb64..a925da8a5f99 100644 --- a/tooling/bench/tests/files_transfer/src-tauri/Cargo.toml +++ b/tooling/bench/tests/files_transfer/src-tauri/Cargo.toml @@ -3,7 +3,7 @@ name = "bench_files_transfer" version = "0.1.0" description = "A very simple Tauri Application" edition = "2021" -rust-version = "1.59" +rust-version = "1.64" [build-dependencies] tauri-build = { path = "../../../../../core/tauri-build", features = [ "codegen" ] } diff --git a/tooling/bench/tests/helloworld/src-tauri/Cargo.toml b/tooling/bench/tests/helloworld/src-tauri/Cargo.toml index 0b3040181f58..1ff22a0098cc 100644 --- a/tooling/bench/tests/helloworld/src-tauri/Cargo.toml +++ b/tooling/bench/tests/helloworld/src-tauri/Cargo.toml @@ -3,7 +3,7 @@ name = "bench_helloworld" version = "0.1.0" description = "A very simple Tauri Application" edition = "2021" -rust-version = "1.59" +rust-version = "1.64" [build-dependencies] tauri-build = { path = "../../../../../core/tauri-build", features = [ "codegen" ] } diff --git a/tooling/bundler/Cargo.toml b/tooling/bundler/Cargo.toml index 5b12fc16d69e..6de0c5dc337f 100644 --- a/tooling/bundler/Cargo.toml +++ b/tooling/bundler/Cargo.toml @@ -13,7 +13,7 @@ keywords = [ "bundle", "cargo", "tauri" ] repository = "https://github.com/tauri-apps/tauri" description = "Wrap rust executables in OS-specific app bundles for Tauri" edition = "2021" -rust-version = "1.59" +rust-version = "1.64" exclude = [ "CHANGELOG.md", "/target", "rustfmt.toml" ] [dependencies] diff --git a/tooling/bundler/src/bundle/category.rs b/tooling/bundler/src/bundle/category.rs index 2aff14c25c8c..63861e13a85c 100644 --- a/tooling/bundler/src/bundle/category.rs +++ b/tooling/bundler/src/bundle/category.rs @@ -254,8 +254,7 @@ impl<'d> serde::de::Visitor<'d> for AppCategoryVisitor { match self.did_you_mean { Some(string) => write!( formatter, - "a valid app category string (did you mean \"{}\"?)", - string + "a valid app category string (did you mean \"{string}\"?)" ), None => write!(formatter, "a valid app category string"), } diff --git a/tooling/bundler/src/bundle/common.rs b/tooling/bundler/src/bundle/common.rs index 19e91b15e6b6..fe3c61dc625d 100644 --- a/tooling/bundler/src/bundle/common.rs +++ b/tooling/bundler/src/bundle/common.rs @@ -72,14 +72,12 @@ pub fn copy_file(from: impl AsRef, to: impl AsRef) -> crate::Result< let to = to.as_ref(); if !from.exists() { return Err(crate::Error::GenericError(format!( - "{:?} does not exist", - from + "{from:?} does not exist" ))); } if !from.is_file() { return Err(crate::Error::GenericError(format!( - "{:?} is not a file", - from + "{from:?} is not a file" ))); } let dest_dir = to.parent().expect("No data in parent"); @@ -96,20 +94,17 @@ pub fn copy_file(from: impl AsRef, to: impl AsRef) -> crate::Result< pub fn copy_dir(from: &Path, to: &Path) -> crate::Result<()> { if !from.exists() { return Err(crate::Error::GenericError(format!( - "{:?} does not exist", - from + "{from:?} does not exist" ))); } if !from.is_dir() { return Err(crate::Error::GenericError(format!( - "{:?} is not a Directory", - from + "{from:?} is not a Directory" ))); } if to.exists() { return Err(crate::Error::GenericError(format!( - "{:?} already exists", - from + "{from:?} already exists" ))); } let parent = to.parent().expect("No data in parent"); @@ -142,7 +137,7 @@ pub trait CommandExt { impl CommandExt for Command { fn output_ok(&mut self) -> crate::Result { let program = self.get_program().to_string_lossy().into_owned(); - debug!(action = "Running"; "Command `{} {}`", program, self.get_args().map(|arg| arg.to_string_lossy()).fold(String::new(), |acc, arg| format!("{} {}", acc, arg))); + debug!(action = "Running"; "Command `{} {}`", program, self.get_args().map(|arg| arg.to_string_lossy()).fold(String::new(), |acc, arg| format!("{acc} {arg}"))); self.stdout(Stdio::piped()); self.stderr(Stdio::piped()); @@ -196,8 +191,7 @@ impl CommandExt for Command { Ok(output) } else { Err(crate::Error::GenericError(format!( - "failed to run {}", - program + "failed to run {program}" ))) } } diff --git a/tooling/bundler/src/bundle/linux/debian.rs b/tooling/bundler/src/bundle/linux/debian.rs index 8c8b436849fb..1c9d921dba86 100644 --- a/tooling/bundler/src/bundle/linux/debian.rs +++ b/tooling/bundler/src/bundle/linux/debian.rs @@ -65,13 +65,13 @@ pub fn bundle_project(settings: &Settings) -> crate::Result> { settings.version_string(), arch ); - let package_name = format!("{}.deb", package_base_name); + let package_name = format!("{package_base_name}.deb"); let base_dir = settings.project_out_directory().join("bundle/deb"); let package_dir = base_dir.join(&package_base_name); if package_dir.exists() { fs::remove_dir_all(&package_dir) - .with_context(|| format!("Failed to remove old {}", package_base_name))?; + .with_context(|| format!("Failed to remove old {package_base_name}"))?; } let package_path = base_dir.join(&package_name); @@ -118,7 +118,7 @@ pub fn generate_data( for bin in settings.binaries() { let bin_path = settings.binary_path(bin); common::copy_file(&bin_path, bin_dir.join(bin.name())) - .with_context(|| format!("Failed to copy binary from {:?}", bin_path))?; + .with_context(|| format!("Failed to copy binary from {bin_path:?}"))?; } copy_resource_files(settings, &data_dir).with_context(|| "Failed to copy resource files")?; @@ -137,7 +137,7 @@ pub fn generate_data( /// Generate the application desktop file and store it under the `data_dir`. fn generate_desktop_file(settings: &Settings, data_dir: &Path) -> crate::Result<()> { let bin_name = settings.main_binary_name(); - let desktop_file_name = format!("{}.desktop", bin_name); + let desktop_file_name = format!("{bin_name}.desktop"); let desktop_file_path = data_dir .join("usr/share/applications") .join(desktop_file_name); @@ -153,8 +153,8 @@ fn generate_desktop_file(settings: &Settings, data_dir: &Path) -> crate::Result< if !settings.short_description().is_empty() { writeln!(file, "Comment={}", settings.short_description())?; } - writeln!(file, "Exec={}", bin_name)?; - writeln!(file, "Icon={}", bin_name)?; + writeln!(file, "Exec={bin_name}")?; + writeln!(file, "Icon={bin_name}")?; writeln!(file, "Name={}", settings.product_name())?; writeln!(file, "Terminal=false")?; writeln!(file, "Type=Application")?; @@ -174,11 +174,11 @@ fn generate_control_file( let mut file = common::create_file(&dest_path)?; writeln!(file, "Package: {}", AsKebabCase(settings.product_name()))?; writeln!(file, "Version: {}", settings.version_string())?; - writeln!(file, "Architecture: {}", arch)?; + writeln!(file, "Architecture: {arch}")?; // Installed-Size must be divided by 1024, see https://www.debian.org/doc/debian-policy/ch-controlfields.html#installed-size writeln!(file, "Installed-Size: {}", total_dir_size(data_dir)? / 1024)?; let authors = settings.authors_comma_separated().unwrap_or_default(); - writeln!(file, "Maintainer: {}", authors)?; + writeln!(file, "Maintainer: {authors}")?; if !settings.homepage_url().is_empty() { writeln!(file, "Homepage: {}", settings.homepage_url())?; } @@ -194,13 +194,13 @@ fn generate_control_file( if long_description.is_empty() { long_description = "(none)"; } - writeln!(file, "Description: {}", short_description)?; + writeln!(file, "Description: {short_description}")?; for line in long_description.lines() { let line = line.trim(); if line.is_empty() { writeln!(file, " .")?; } else { - writeln!(file, " {}", line)?; + writeln!(file, " {line}")?; } } writeln!(file, "Priority: optional")?; @@ -223,14 +223,14 @@ fn generate_md5sums(control_dir: &Path, data_dir: &Path) -> crate::Result<()> { let mut hash = md5::Context::new(); io::copy(&mut file, &mut hash)?; for byte in hash.compute().iter() { - write!(md5sums_file, "{:02x}", byte)?; + write!(md5sums_file, "{byte:02x}")?; } let rel_path = path.strip_prefix(data_dir)?; let path_str = rel_path.to_str().ok_or_else(|| { - let msg = format!("Non-UTF-8 path: {:?}", rel_path); + let msg = format!("Non-UTF-8 path: {rel_path:?}"); io::Error::new(io::ErrorKind::InvalidData, msg) })?; - writeln!(md5sums_file, " {}", path_str)?; + writeln!(md5sums_file, " {path_str}")?; } Ok(()) } diff --git a/tooling/bundler/src/bundle/path_utils.rs b/tooling/bundler/src/bundle/path_utils.rs index f3c550464157..45b0c3c8cf78 100644 --- a/tooling/bundler/src/bundle/path_utils.rs +++ b/tooling/bundler/src/bundle/path_utils.rs @@ -104,7 +104,7 @@ where let from = from.as_ref(); if !from.exists() { if let Some(msg) = from.to_str() { - let msg = format!("Path \"{}\" does not exist or you don't have access", msg); + let msg = format!("Path \"{msg}\" does not exist or you don't have access"); return Err(crate::Error::PathUtilError(msg)); } return Err(crate::Error::PathUtilError( @@ -114,7 +114,7 @@ where if !from.is_file() { if let Some(msg) = from.to_str() { - let msg = format!("Path \"{}\" is not a file!", msg); + let msg = format!("Path \"{msg}\" is not a file!"); return Err(crate::Error::PathUtilError(msg)); } return Err(crate::Error::PathUtilError( @@ -127,7 +127,7 @@ where } if let Some(msg) = to.as_ref().to_str() { - let msg = format!("Path \"{}\" is exist", msg); + let msg = format!("Path \"{msg}\" is exist"); return Err(crate::Error::PathUtilError(msg)); } } @@ -145,7 +145,7 @@ where let from = from.as_ref(); if !from.exists() { if let Some(msg) = from.to_str() { - let msg = format!("Path \"{}\" does not exist or you don't have access!", msg); + let msg = format!("Path \"{msg}\" does not exist or you don't have access!"); return Err(crate::Error::PathUtilError(msg)); } return Err(crate::Error::PathUtilError( @@ -154,7 +154,7 @@ where } if !from.is_dir() { if let Some(msg) = from.to_str() { - let msg = format!("Path \"{}\" is not a directory!", msg); + let msg = format!("Path \"{msg}\" is not a directory!"); return Err(crate::Error::PathUtilError(msg)); } return Err(crate::Error::PathUtilError( diff --git a/tooling/bundler/src/bundle/platform.rs b/tooling/bundler/src/bundle/platform.rs index d06300a3c783..64792c2003c7 100644 --- a/tooling/bundler/src/bundle/platform.rs +++ b/tooling/bundler/src/bundle/platform.rs @@ -95,10 +95,10 @@ pub fn target_triple() -> Result { ))); }; - format!("{}-{}", os, env) + format!("{os}-{env}") }; - Ok(format!("{}-{}", arch, os)) + Ok(format!("{arch}-{os}")) } #[cfg(test)] diff --git a/tooling/bundler/src/bundle/settings.rs b/tooling/bundler/src/bundle/settings.rs index 3aff75adb36b..6f448530a032 100644 --- a/tooling/bundler/src/bundle/settings.rs +++ b/tooling/bundler/src/bundle/settings.rs @@ -574,8 +574,7 @@ impl Settings { "windows" => vec![PackageType::WindowsMsi], os => { return Err(crate::Error::GenericError(format!( - "Native {} bundles not yet supported.", - os + "Native {os} bundles not yet supported." ))) } }; diff --git a/tooling/cli/Cargo.toml b/tooling/cli/Cargo.toml index be08a2ff1620..4c75ee57bf4d 100644 --- a/tooling/cli/Cargo.toml +++ b/tooling/cli/Cargo.toml @@ -6,7 +6,7 @@ name = "tauri-cli" version = "2.0.0-alpha.1" authors = [ "Tauri Programme within The Commons Conservancy" ] edition = "2021" -rust-version = "1.59" +rust-version = "1.64" categories = [ "gui", "web-programming" ] license = "Apache-2.0 OR MIT" homepage = "https://tauri.app" diff --git a/tooling/cli/node/test/jest/fixtures/app/src-tauri/Cargo.toml b/tooling/cli/node/test/jest/fixtures/app/src-tauri/Cargo.toml index 9fec9d9ede23..c0281ee26ba7 100644 --- a/tooling/cli/node/test/jest/fixtures/app/src-tauri/Cargo.toml +++ b/tooling/cli/node/test/jest/fixtures/app/src-tauri/Cargo.toml @@ -8,7 +8,7 @@ authors = [ "Tauri Programme within The Commons Conservancy" ] license = "" repository = "" edition = "2021" -rust-version = "1.59" +rust-version = "1.64" [package.metadata.bundle] identifier = "com.tauri.dev" diff --git a/tooling/cli/src/build.rs b/tooling/cli/src/build.rs index cc85f24e60b6..0f052a448a8a 100644 --- a/tooling/cli/src/build.rs +++ b/tooling/cli/src/build.rs @@ -89,8 +89,7 @@ pub fn command(mut options: Options) -> Result<()> { } None => { return Err(anyhow::anyhow!(format!( - "Unsupported bundle format: {}", - name + "Unsupported bundle format: {name}" ))); } } @@ -361,7 +360,7 @@ fn run_hook(name: &str, hook: HookCommand, interface: &AppInterface, debug: bool .current_dir(cwd) .envs(env) .piped() - .with_context(|| format!("failed to run `{}` with `sh -c`", script))?; + .with_context(|| format!("failed to run `{script}` with `sh -c`"))?; if !status.success() { bail!( @@ -396,9 +395,9 @@ mod pkgconfig_utils { pub fn get_appindicator_library_path() -> PathBuf { match get_library_path("ayatana-appindicator3-0.1") { - Some(p) => format!("{}/libayatana-appindicator3.so.1", p).into(), + Some(p) => format!("{p}/libayatana-appindicator3.so.1").into(), None => match get_library_path("appindicator3-0.1") { - Some(p) => format!("{}/libappindicator3.so.1", p).into(), + Some(p) => format!("{p}/libappindicator3.so.1").into(), None => panic!("Can't detect any appindicator library"), }, } diff --git a/tooling/cli/src/dev.rs b/tooling/cli/src/dev.rs index df10d98aab74..ec10a8d52842 100644 --- a/tooling/cli/src/dev.rs +++ b/tooling/cli/src/dev.rs @@ -231,7 +231,7 @@ pub fn setup(options: &mut Options, mobile: bool) -> Result { command.stderr(os_pipe::dup_stderr()?); let child = SharedChild::spawn(&mut command) - .unwrap_or_else(|_| panic!("failed to run `{}`", before_dev)); + .unwrap_or_else(|_| panic!("failed to run `{before_dev}`")); let child = Arc::new(child); let child_ = child.clone(); @@ -294,7 +294,7 @@ pub fn setup(options: &mut Options, mobile: bool) -> Result { let server_address = SocketAddr::new(ip, port); let path = path.canonicalize()?; start_dev_server(server_address, path); - let server_url = format!("http://{}", server_address); + let server_url = format!("http://{server_address}"); dev_path = AppUrl::Url(WindowUrl::External(server_url.parse().unwrap())); // TODO: in v2, use an env var to pass the url to the app context @@ -306,10 +306,7 @@ pub fn setup(options: &mut Options, mobile: bool) -> Result { c.build.dev_path = dev_path.clone(); options.config = Some(serde_json::to_string(&c).unwrap()); } else { - options.config = Some(format!( - r#"{{ "build": {{ "devPath": "{}" }} }}"#, - server_url - )) + options.config = Some(format!(r#"{{ "build": {{ "devPath": "{server_url}" }} }}"#)) } } diff --git a/tooling/cli/src/helpers/flock.rs b/tooling/cli/src/helpers/flock.rs index b5ff6c8a1f38..c2fcc603a4d2 100644 --- a/tooling/cli/src/helpers/flock.rs +++ b/tooling/cli/src/helpers/flock.rs @@ -209,7 +209,7 @@ fn acquire( } } } - let msg = format!("waiting for file lock on {}", msg); + let msg = format!("waiting for file lock on {msg}"); log::info!(action = "Blocking"; "{}", &msg); lock_block().with_context(|| format!("failed to lock file: {}", path.display()))?; diff --git a/tooling/cli/src/helpers/updater_signature.rs b/tooling/cli/src/helpers/updater_signature.rs index d022053dab81..6b86092145c7 100644 --- a/tooling/cli/src/helpers/updater_signature.rs +++ b/tooling/cli/src/helpers/updater_signature.rs @@ -81,11 +81,11 @@ where } let mut sk_writer = create_file(sk_path)?; - write!(sk_writer, "{:}", key)?; + write!(sk_writer, "{key:}")?; sk_writer.flush()?; let mut pk_writer = create_file(pk_path)?; - write!(pk_writer, "{:}", pubkey)?; + write!(pk_writer, "{pubkey:}")?; pk_writer.flush()?; Ok((fs::canonicalize(sk_path)?, fs::canonicalize(pk_path)?)) diff --git a/tooling/cli/src/icon.rs b/tooling/cli/src/icon.rs index faa351dcc3f6..cc71e48bc19d 100644 --- a/tooling/cli/src/icon.rs +++ b/tooling/cli/src/icon.rs @@ -83,7 +83,7 @@ fn appx(source: &DynamicImage, out_dir: &Path) -> Result<()> { resize_and_save_png(source, 50, &out_dir.join("StoreLogo.png"))?; for size in [30, 44, 71, 89, 107, 142, 150, 284, 310] { - let file_name = format!("Square{}x{}Logo.png", size, size); + let file_name = format!("Square{size}x{size}Logo.png"); log::info!(action = "Appx"; "Creating {}", file_name); resize_and_save_png(source, size, &out_dir.join(&file_name))?; @@ -115,7 +115,7 @@ fn icns(source: &DynamicImage, out_dir: &Path) -> Result<()> { &image, IconType::from_ostype(entry.ostype.parse().unwrap()).unwrap(), ) - .with_context(|| format!("Can't add {} to Icns Family", name))?; + .with_context(|| format!("Can't add {name} to Icns Family"))?; } let mut out_file = BufWriter::new(File::create(out_dir.join("icon.icns"))?); @@ -169,7 +169,7 @@ fn png(source: &DynamicImage, out_dir: &Path) -> Result<()> { let file_name = match size { 256 => "128x128@2x.png".to_string(), 512 => "icon.png".to_string(), - _ => format!("{}x{}.png", size, size), + _ => format!("{size}x{size}.png"), }; entries.push(PngEntry { @@ -307,10 +307,7 @@ fn png(source: &DynamicImage, out_dir: &Path) -> Result<()> { }); } for multiplier in target.multipliers { - let name = format!( - "AppIcon-{size_str}@{multiplier}x.png", - multiplier = multiplier - ); + let name = format!("AppIcon-{size_str}@{multiplier}x.png"); entries.push(PngEntry { out_path: out_dir.join(&name), name, diff --git a/tooling/cli/src/info.rs b/tooling/cli/src/info.rs index 8b75901528aa..931b77fe0e63 100644 --- a/tooling/cli/src/info.rs +++ b/tooling/cli/src/info.rs @@ -128,7 +128,7 @@ pub(crate) fn cli_upstream_version() -> Result { } fn crate_latest_version(name: &str) -> Option { - let url = format!("https://docs.rs/crate/{}/", name); + let url = format!("https://docs.rs/crate/{name}/"); match ureq::get(&url).call() { Ok(response) => match (response.status(), response.header("location")) { (302, Some(location)) => Some(location.replace(&url, "")), @@ -431,7 +431,7 @@ fn crate_version( crate_lock_package.version.clone() }; ( - format!("{} (no manifest)", version_string), + format!("{version_string} (no manifest)"), vec![crate_lock_package.version.clone()], ) } @@ -457,14 +457,14 @@ fn crate_version( Ok(manifest) => manifest.package.version, Err(_) => "unknown version".to_string(), }; - format!("path:{:?} [{}]", p, v) + format!("path:{p:?} [{v}]") } else if let Some(g) = p.git { is_git = true; - let mut v = format!("git:{}", g); + let mut v = format!("git:{g}"); if let Some(branch) = p.branch { - let _ = write!(v, "&branch={}", branch); + let _ = write!(v, "&branch={branch}"); } else if let Some(rev) = p.rev { - let _ = write!(v, "#{}", rev); + let _ = write!(v, "#{rev}"); } v } else { @@ -505,7 +505,7 @@ fn crate_version( (Some(version), Some(target_version)) => { let target_version = semver::Version::parse(&target_version).unwrap(); if version < target_version { - Some(format!(" (outdated, latest: {})", target_version)) + Some(format!(" (outdated, latest: {target_version})")) } else { None } diff --git a/tooling/cli/src/interface/rust.rs b/tooling/cli/src/interface/rust.rs index 2bbfd370cd5d..1b6a1e53c6d4 100644 --- a/tooling/cli/src/interface/rust.rs +++ b/tooling/cli/src/interface/rust.rs @@ -950,8 +950,8 @@ fn tauri_config_to_bundle_settings( } } - // provides `libwebkit2gtk-4.0.so.37` and all `4.0` versions have the -37 package name - depends.push("libwebkit2gtk-4.0-37".to_string()); + // provides `libwebkit2gtk-4.1.so.37` and all `4.0` versions have the -37 package name + depends.push("libwebkit2gtk-4.1-0".to_string()); depends.push("libgtk-3-0".to_string()); } diff --git a/tooling/cli/src/interface/rust/cargo_config.rs b/tooling/cli/src/interface/rust/cargo_config.rs index b55389bff842..8adca17dd1c2 100644 --- a/tooling/cli/src/interface/rust/cargo_config.rs +++ b/tooling/cli/src/interface/rust/cargo_config.rs @@ -103,7 +103,7 @@ fn get_file_path( warn: bool, ) -> Result> { let possible = dir.join(filename_without_extension); - let possible_with_extension = dir.join(format!("{}.toml", filename_without_extension)); + let possible_with_extension = dir.join(format!("{filename_without_extension}.toml")); if possible.exists() { if warn && possible_with_extension.exists() { diff --git a/tooling/cli/src/interface/rust/desktop.rs b/tooling/cli/src/interface/rust/desktop.rs index 2ad00feb75c0..92960a4fe4c8 100644 --- a/tooling/cli/src/interface/rust/desktop.rs +++ b/tooling/cli/src/interface/rust/desktop.rs @@ -151,10 +151,10 @@ pub fn build( let triple_out_dir = app_settings .out_dir(Some(triple.into()), options.debug) - .with_context(|| format!("failed to get {} out dir", triple))?; + .with_context(|| format!("failed to get {triple} out dir"))?; build_production_app(options, available_targets, config_features.clone()) - .with_context(|| format!("failed to build {} binary", triple))?; + .with_context(|| format!("failed to build {triple} binary"))?; lipo_cmd.arg(triple_out_dir.join(bin_name)); } @@ -162,8 +162,7 @@ pub fn build( let lipo_status = lipo_cmd.output_ok()?.status; if !lipo_status.success() { return Err(anyhow::anyhow!(format!( - "Result of `lipo` command was unsuccessful: {}. (Is `lipo` installed?)", - lipo_status + "Result of `lipo` command was unsuccessful: {lipo_status}. (Is `lipo` installed?)" ))); } } else { diff --git a/tooling/cli/src/interface/rust/manifest.rs b/tooling/cli/src/interface/rust/manifest.rs index 35b2c4eb837e..b47b8e437a79 100644 --- a/tooling/cli/src/interface/rust/manifest.rs +++ b/tooling/cli/src/interface/rust/manifest.rs @@ -54,7 +54,7 @@ impl Manifest { let mut all_enabled_features: Vec = self .tauri_features .iter() - .map(|f| format!("tauri/{}", f)) + .map(|f| format!("tauri/{f}")) .collect(); let manifest_features = self.features(); @@ -86,7 +86,7 @@ pub fn read_manifest(manifest_path: &Path) -> crate::Result { let mut manifest_str = String::new(); let mut manifest_file = File::open(manifest_path) - .with_context(|| format!("failed to open `{:?}` file", manifest_path))?; + .with_context(|| format!("failed to open `{manifest_path:?}` file"))?; manifest_file.read_to_string(&mut manifest_str)?; let manifest: Document = manifest_str diff --git a/tooling/cli/src/lib.rs b/tooling/cli/src/lib.rs index 1d8af2edeed5..24fa3e902f21 100644 --- a/tooling/cli/src/lib.rs +++ b/tooling/cli/src/lib.rs @@ -184,7 +184,7 @@ where .try_init(); if let Err(err) = init_res { - eprintln!("Failed to attach logger: {}", err); + eprintln!("Failed to attach logger: {err}"); } match cli.command { @@ -235,14 +235,14 @@ impl CommandExt for Command { self.stdout(os_pipe::dup_stdout()?); self.stderr(os_pipe::dup_stderr()?); let program = self.get_program().to_string_lossy().into_owned(); - debug!(action = "Running"; "Command `{} {}`", program, self.get_args().map(|arg| arg.to_string_lossy()).fold(String::new(), |acc, arg| format!("{} {}", acc, arg))); + debug!(action = "Running"; "Command `{} {}`", program, self.get_args().map(|arg| arg.to_string_lossy()).fold(String::new(), |acc, arg| format!("{acc} {arg}"))); self.status().map_err(Into::into) } fn output_ok(&mut self) -> crate::Result { let program = self.get_program().to_string_lossy().into_owned(); - debug!(action = "Running"; "Command `{} {}`", program, self.get_args().map(|arg| arg.to_string_lossy()).fold(String::new(), |acc, arg| format!("{} {}", acc, arg))); + debug!(action = "Running"; "Command `{} {}`", program, self.get_args().map(|arg| arg.to_string_lossy()).fold(String::new(), |acc, arg| format!("{acc} {arg}"))); self.stdout(Stdio::piped()); self.stderr(Stdio::piped()); diff --git a/tooling/cli/src/mobile/init.rs b/tooling/cli/src/mobile/init.rs index 4a07876c36d9..dd9b97f7bb7c 100644 --- a/tooling/cli/src/mobile/init.rs +++ b/tooling/cli/src/mobile/init.rs @@ -193,10 +193,7 @@ fn get_str<'a>(helper: &'a Helper) -> &'a str { .unwrap_or("") } -fn get_str_array<'a>( - helper: &'a Helper, - formatter: impl Fn(&str) -> String, -) -> Option> { +fn get_str_array(helper: &Helper, formatter: impl Fn(&str) -> String) -> Option> { helper.param(0).and_then(|v| { v.value().as_array().and_then(|arr| { arr @@ -249,7 +246,7 @@ fn quote_and_join( ) -> HelperResult { out .write( - &get_str_array(helper, |s| format!("{:?}", s)) + &get_str_array(helper, |s| format!("{s:?}")) .ok_or_else(|| RenderError::new("`quote-and-join` helper wasn't given an array"))? .join(", "), ) @@ -265,7 +262,7 @@ fn quote_and_join_colon_prefix( ) -> HelperResult { out .write( - &get_str_array(helper, |s| format!("{:?}", format!(":{}", s))) + &get_str_array(helper, |s| format!("{:?}", format!(":{s}"))) .ok_or_else(|| { RenderError::new("`quote-and-join-colon-prefix` helper wasn't given an array") })? diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index bac4f89e2069..e92f0fa4f907 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -160,7 +160,7 @@ fn setup_dev_config(config_extension: &mut Option) -> crate::Result<()> c.build.dev_path = dev_path.clone(); config_extension.replace(serde_json::to_string(&c).unwrap()); } else { - config_extension.replace(format!(r#"{{ "build": {{ "devPath": "{}" }} }}"#, url)); + config_extension.replace(format!(r#"{{ "build": {{ "devPath": "{url}" }} }}"#)); } reload_config(config_extension.as_deref())?; } diff --git a/tooling/cli/templates/app/src-tauri/Cargo.crate-manifest b/tooling/cli/templates/app/src-tauri/Cargo.crate-manifest index bae491d80b10..0d69e61d3718 100755 --- a/tooling/cli/templates/app/src-tauri/Cargo.crate-manifest +++ b/tooling/cli/templates/app/src-tauri/Cargo.crate-manifest @@ -6,7 +6,7 @@ authors = ["you"] license = "" repository = "" edition = "2021" -rust-version = "1.59" +rust-version = "1.64" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/tooling/cli/templates/plugin/backend/.changes/config.json b/tooling/cli/templates/plugin/backend/.changes/config.json index 680d32c82432..6ce1cfed51a3 100755 --- a/tooling/cli/templates/plugin/backend/.changes/config.json +++ b/tooling/cli/templates/plugin/backend/.changes/config.json @@ -6,7 +6,7 @@ "getPublishedVersion": "cargo search ${ pkg.pkg } --limit 1 | sed -nE 's/^[^\"]*\"//; s/\".*//1p' -", "prepublish": [ "sudo apt-get update", - "sudo apt-get install -y webkit2gtk-4.0", + "sudo apt-get install -y webkit2gtk-4.1", "cargo install cargo-audit", { "command": "cargo generate-lockfile", diff --git a/tooling/cli/templates/plugin/backend/.github/workflows/lint.yml b/tooling/cli/templates/plugin/backend/.github/workflows/lint.yml index 037e7b3b55f8..6269a79eaf15 100644 --- a/tooling/cli/templates/plugin/backend/.github/workflows/lint.yml +++ b/tooling/cli/templates/plugin/backend/.github/workflows/lint.yml @@ -21,7 +21,7 @@ jobs: - name: install webkit2gtk run: | sudo apt-get update - sudo apt-get install -y webkit2gtk-4.0 + sudo apt-get install -y webkit2gtk-4.1 - name: Install clippy with stable toolchain uses: actions-rs/toolchain@v1 with: diff --git a/tooling/cli/templates/plugin/backend/.github/workflows/test.yml b/tooling/cli/templates/plugin/backend/.github/workflows/test.yml index 284e08cf925a..30124773b82e 100755 --- a/tooling/cli/templates/plugin/backend/.github/workflows/test.yml +++ b/tooling/cli/templates/plugin/backend/.github/workflows/test.yml @@ -35,7 +35,7 @@ jobs: if: matrix.os == 'ubuntu-latest' run: | sudo apt-get update - sudo apt-get install -y webkit2gtk-4.0 + sudo apt-get install -y webkit2gtk-4.1 - uses: Swatinem/rust-cache@v2 diff --git a/tooling/cli/templates/plugin/backend/Cargo.crate-manifest b/tooling/cli/templates/plugin/backend/Cargo.crate-manifest index 87d9731ab400..21bf73ed06ef 100755 --- a/tooling/cli/templates/plugin/backend/Cargo.crate-manifest +++ b/tooling/cli/templates/plugin/backend/Cargo.crate-manifest @@ -4,7 +4,7 @@ version = "0.0.0" authors = [ "{{ author }}" ] description = "" edition = "2021" -rust-version = "1.59" +rust-version = "1.64" exclude = ["/examples"] [dependencies] diff --git a/tooling/cli/templates/plugin/backend/examples/vanilla/src-tauri/Cargo.crate-manifest b/tooling/cli/templates/plugin/backend/examples/vanilla/src-tauri/Cargo.crate-manifest index 74a685bdfd71..dc239129cb7f 100644 --- a/tooling/cli/templates/plugin/backend/examples/vanilla/src-tauri/Cargo.crate-manifest +++ b/tooling/cli/templates/plugin/backend/examples/vanilla/src-tauri/Cargo.crate-manifest @@ -5,7 +5,7 @@ description = "A Tauri App" authors = [ "{{ author }}" ] repository = "" edition = "2021" -rust-version = "1.59" +rust-version = "1.64" [dependencies] serde_json = "1.0" diff --git a/tooling/cli/templates/plugin/with-api/.changes/config.json b/tooling/cli/templates/plugin/with-api/.changes/config.json index 25df39379e32..b12ed4829349 100755 --- a/tooling/cli/templates/plugin/with-api/.changes/config.json +++ b/tooling/cli/templates/plugin/with-api/.changes/config.json @@ -6,7 +6,7 @@ "getPublishedVersion": "cargo search ${ pkg.pkg } --limit 1 | sed -nE 's/^[^\"]*\"//; s/\".*//1p' -", "prepublish": [ "sudo apt-get update", - "sudo apt-get install -y webkit2gtk-4.0", + "sudo apt-get install -y webkit2gtk-4.1", "cargo install cargo-audit", { "command": "cargo generate-lockfile", diff --git a/tooling/cli/templates/plugin/with-api/.github/workflows/clippy.yml b/tooling/cli/templates/plugin/with-api/.github/workflows/clippy.yml index 037e7b3b55f8..6269a79eaf15 100644 --- a/tooling/cli/templates/plugin/with-api/.github/workflows/clippy.yml +++ b/tooling/cli/templates/plugin/with-api/.github/workflows/clippy.yml @@ -21,7 +21,7 @@ jobs: - name: install webkit2gtk run: | sudo apt-get update - sudo apt-get install -y webkit2gtk-4.0 + sudo apt-get install -y webkit2gtk-4.1 - name: Install clippy with stable toolchain uses: actions-rs/toolchain@v1 with: diff --git a/tooling/cli/templates/plugin/with-api/.github/workflows/test.yml b/tooling/cli/templates/plugin/with-api/.github/workflows/test.yml index 81823087373d..49e7850b1676 100644 --- a/tooling/cli/templates/plugin/with-api/.github/workflows/test.yml +++ b/tooling/cli/templates/plugin/with-api/.github/workflows/test.yml @@ -34,7 +34,7 @@ jobs: - name: Install Linux dependencies run: | sudo apt-get update - sudo apt-get install -y webkit2gtk-4.0 + sudo apt-get install -y webkit2gtk-4.1 - uses: Swatinem/rust-cache@v2 diff --git a/tooling/cli/templates/plugin/with-api/Cargo.crate-manifest b/tooling/cli/templates/plugin/with-api/Cargo.crate-manifest index d3ed73625b3d..10529fa2ed77 100644 --- a/tooling/cli/templates/plugin/with-api/Cargo.crate-manifest +++ b/tooling/cli/templates/plugin/with-api/Cargo.crate-manifest @@ -4,7 +4,7 @@ version = "0.0.0" authors = [ "{{ author }}" ] description = "" edition = "2021" -rust-version = "1.59" +rust-version = "1.64" exclude = ["/examples", "/webview-dist", "/webview-src", "node_modules"] [dependencies] diff --git a/tooling/cli/templates/plugin/with-api/examples/svelte-app/src-tauri/Cargo.crate-manifest b/tooling/cli/templates/plugin/with-api/examples/svelte-app/src-tauri/Cargo.crate-manifest index 74a685bdfd71..dc239129cb7f 100644 --- a/tooling/cli/templates/plugin/with-api/examples/svelte-app/src-tauri/Cargo.crate-manifest +++ b/tooling/cli/templates/plugin/with-api/examples/svelte-app/src-tauri/Cargo.crate-manifest @@ -5,7 +5,7 @@ description = "A Tauri App" authors = [ "{{ author }}" ] repository = "" edition = "2021" -rust-version = "1.59" +rust-version = "1.64" [dependencies] serde_json = "1.0" From 553a81f48cf0819ef06020327113f79995e70c1a Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Mon, 30 Jan 2023 11:54:02 -0300 Subject: [PATCH 128/436] feat(examples): add tauri-plugin-log to API example --- examples/api/src-tauri/Cargo.lock | 367 +++++++++++++++++------------- examples/api/src-tauri/Cargo.toml | 4 + examples/api/src-tauri/src/lib.rs | 5 + 3 files changed, 219 insertions(+), 157 deletions(-) diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index f2c2265c3b88..c54d484e6c57 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -67,6 +67,24 @@ dependencies = [ "alloc-no-stdlib", ] +[[package]] +name = "android_log-sys" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85965b6739a430150bdd138e2374a98af0c3ee0d030b3bb7fc3bddff58d0102e" + +[[package]] +name = "android_logger" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8619b80c242aa7bd638b5c7ddd952addeecb71f69c75e33f1d47b2804f8f883a" +dependencies = [ + "android_log-sys", + "env_logger", + "log", + "once_cell", +] + [[package]] name = "anyhow" version = "1.0.66" @@ -82,6 +100,7 @@ dependencies = [ "serde_json", "tauri", "tauri-build", + "tauri-plugin-log", "tiny_http", "window-shadows", "window-vibrancy", @@ -95,9 +114,9 @@ checksum = "d92bec98840b8f03a5ff5413de5293bfcd8bf96467cf5452609f939ec6f5de16" [[package]] name = "atk" -version = "0.15.1" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c3d816ce6f0e2909a96830d6911c2aff044370b1ef92d7f267b43bae5addedd" +checksum = "39991bc421ddf72f70159011b323ff49b0f783cc676a7287c59453da2e2531cf" dependencies = [ "atk-sys", "bitflags", @@ -107,14 +126,14 @@ dependencies = [ [[package]] name = "atk-sys" -version = "0.15.1" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58aeb089fb698e06db8089971c7ee317ab9644bade33383f63631437b03aafb6" +checksum = "11ad703eb64dc058024f0e57ccfa069e15a413b98dbd50a1a950e743b7f11148" dependencies = [ "glib-sys", "gobject-sys", "libc", - "system-deps 6.0.3", + "system-deps", ] [[package]] @@ -214,6 +233,16 @@ version = "3.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "572f695136211188308f16ad2ca5c851a712c464060ae6974944458eb83880ba" +[[package]] +name = "byte-unit" +version = "4.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3348673602e04848647fffaa8e9a861e7b5d5cae6570727b41bde0f722514484" +dependencies = [ + "serde", + "utf8-width", +] + [[package]] name = "bytemuck" version = "1.12.3" @@ -237,26 +266,27 @@ dependencies = [ [[package]] name = "cairo-rs" -version = "0.15.12" +version = "0.16.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c76ee391b03d35510d9fa917357c7f1855bd9a6659c95a1b392e33f49b3369bc" +checksum = "f3125b15ec28b84c238f6f476c6034016a5f6cc0221cb514ca46c532139fc97d" dependencies = [ "bitflags", "cairo-sys-rs", "glib", "libc", + "once_cell", "thiserror", ] [[package]] name = "cairo-sys-rs" -version = "0.15.1" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c55d429bef56ac9172d25fecb85dc8068307d17acd74b377866b7a1ef25d3c8" +checksum = "7c48f4af05fabdcfa9658178e1326efa061853f040ce7d72e33af6885196f421" dependencies = [ "glib-sys", "libc", - "system-deps 6.0.3", + "system-deps", ] [[package]] @@ -302,15 +332,6 @@ dependencies = [ "uuid 1.2.1", ] -[[package]] -name = "cfg-expr" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3431df59f28accaf4cb4eed4a9acc66bea3f3c3753aa6cdc2f024174ef232af7" -dependencies = [ - "smallvec", -] - [[package]] name = "cfg-expr" version = "0.11.0" @@ -593,6 +614,19 @@ dependencies = [ "syn", ] +[[package]] +name = "dashmap" +version = "5.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "907076dfda823b0b36d2a1bb5f90c96660a5bbcd7729e10727f07858f22c4edc" +dependencies = [ + "cfg-if", + "hashbrown", + "lock_api", + "once_cell", + "parking_lot_core", +] + [[package]] name = "dbus" version = "0.9.6" @@ -690,6 +724,16 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "env_logger" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85cdab6a89accf66733ad5a1693a4dcced6aeff64602b634530dd73c1f3ee9f0" +dependencies = [ + "log", + "regex", +] + [[package]] name = "fastrand" version = "1.8.0" @@ -699,6 +743,15 @@ dependencies = [ "instant", ] +[[package]] +name = "fern" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3bdd7b0849075e79ee9a1836df22c717d1eba30451796fdc631b04565dd11e2a" +dependencies = [ + "log", +] + [[package]] name = "field-offset" version = "0.3.4" @@ -851,9 +904,9 @@ dependencies = [ [[package]] name = "gdk" -version = "0.15.4" +version = "0.16.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6e05c1f572ab0e1f15be94217f0dc29088c248b14f792a5ff0af0d84bcda9e8" +checksum = "aa9cb33da481c6c040404a11f8212d193889e9b435db2c14fd86987f630d3ce1" dependencies = [ "bitflags", "cairo-rs", @@ -867,9 +920,9 @@ dependencies = [ [[package]] name = "gdk-pixbuf" -version = "0.15.11" +version = "0.16.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad38dd9cc8b099cceecdf41375bb6d481b1b5a7cd5cd603e10a69a9383f8619a" +checksum = "c3578c60dee9d029ad86593ed88cb40f35c1b83360e12498d055022385dd9a05" dependencies = [ "bitflags", "gdk-pixbuf-sys", @@ -880,22 +933,22 @@ dependencies = [ [[package]] name = "gdk-pixbuf-sys" -version = "0.15.10" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "140b2f5378256527150350a8346dbdb08fadc13453a7a2d73aecd5fab3c402a7" +checksum = "3092cf797a5f1210479ea38070d9ae8a5b8e9f8f1be9f32f4643c529c7d70016" dependencies = [ "gio-sys", "glib-sys", "gobject-sys", "libc", - "system-deps 6.0.3", + "system-deps", ] [[package]] name = "gdk-sys" -version = "0.15.1" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32e7a08c1e8f06f4177fb7e51a777b8c1689f743a7bc11ea91d44d2226073a88" +checksum = "d76354f97a913e55b984759a997b693aa7dc71068c9e98bcce51aa167a0a5c5a" dependencies = [ "cairo-sys-rs", "gdk-pixbuf-sys", @@ -905,19 +958,19 @@ dependencies = [ "libc", "pango-sys", "pkg-config", - "system-deps 6.0.3", + "system-deps", ] [[package]] name = "gdkx11-sys" -version = "0.15.1" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4b7f8c7a84b407aa9b143877e267e848ff34106578b64d1e0a24bf550716178" +checksum = "9fa2bf8b5b8c414bc5d05e48b271896d0fd3ddb57464a3108438082da61de6af" dependencies = [ "gdk-sys", "glib-sys", "libc", - "system-deps 6.0.3", + "system-deps", "x11", ] @@ -978,45 +1031,50 @@ dependencies = [ [[package]] name = "gio" -version = "0.15.12" +version = "0.16.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68fdbc90312d462781a395f7a16d96a2b379bb6ef8cd6310a2df272771c4283b" +checksum = "2a1c84b4534a290a29160ef5c6eff2a9c95833111472e824fc5cb78b513dd092" dependencies = [ "bitflags", "futures-channel", "futures-core", "futures-io", + "futures-util", "gio-sys", "glib", "libc", "once_cell", + "pin-project-lite", + "smallvec", "thiserror", ] [[package]] name = "gio-sys" -version = "0.15.10" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32157a475271e2c4a023382e9cab31c4584ee30a97da41d3c4e9fdd605abcf8d" +checksum = "e9b693b8e39d042a95547fc258a7b07349b1f0b48f4b2fa3108ba3c51c0b5229" dependencies = [ "glib-sys", "gobject-sys", "libc", - "system-deps 6.0.3", + "system-deps", "winapi", ] [[package]] name = "glib" -version = "0.15.12" +version = "0.16.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edb0306fbad0ab5428b0ca674a23893db909a98582969c9b537be4ced78c505d" +checksum = "ddd4df61a866ed7259d6189b8bcb1464989a77f1d85d25d002279bbe9dd38b2f" dependencies = [ "bitflags", "futures-channel", "futures-core", "futures-executor", "futures-task", + "futures-util", + "gio-sys", "glib-macros", "glib-sys", "gobject-sys", @@ -1028,9 +1086,9 @@ dependencies = [ [[package]] name = "glib-macros" -version = "0.15.11" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25a68131a662b04931e71891fb14aaf65ee4b44d08e8abc10f49e77418c86c64" +checksum = "e084807350b01348b6d9dbabb724d1a0bb987f47a2c85de200e98e12e30733bf" dependencies = [ "anyhow", "heck 0.4.0", @@ -1043,12 +1101,12 @@ dependencies = [ [[package]] name = "glib-sys" -version = "0.15.10" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef4b192f8e65e9cf76cbf4ea71fa8e3be4a0e18ffe3d68b8da6836974cc5bad4" +checksum = "c61a4f46316d06bfa33a7ac22df6f0524c8be58e3db2d9ca99ccb1f357b62a65" dependencies = [ "libc", - "system-deps 6.0.3", + "system-deps", ] [[package]] @@ -1072,20 +1130,20 @@ dependencies = [ [[package]] name = "gobject-sys" -version = "0.15.10" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d57ce44246becd17153bd035ab4d32cfee096a657fc01f2231c9278378d1e0a" +checksum = "3520bb9c07ae2a12c7f2fbb24d4efc11231c8146a86956413fb1a79bb760a0f1" dependencies = [ "glib-sys", "libc", - "system-deps 6.0.3", + "system-deps", ] [[package]] name = "gtk" -version = "0.15.5" +version = "0.16.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92e3004a2d5d6d8b5057d2b57b3712c9529b62e82c77f25c1fecde1fd5c23bd0" +checksum = "e4d3507d43908c866c805f74c9dd593c0ce7ba5c38e576e41846639cdcd4bee6" dependencies = [ "atk", "bitflags", @@ -1106,9 +1164,9 @@ dependencies = [ [[package]] name = "gtk-sys" -version = "0.15.3" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5bc2f0587cba247f60246a0ca11fe25fb733eabc3de12d1965fc07efab87c84" +checksum = "89b5f8946685d5fe44497007786600c2f368ff6b1e61a16251c89f72a97520a3" dependencies = [ "atk-sys", "cairo-sys-rs", @@ -1119,14 +1177,14 @@ dependencies = [ "gobject-sys", "libc", "pango-sys", - "system-deps 6.0.3", + "system-deps", ] [[package]] name = "gtk3-macros" -version = "0.15.4" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24f518afe90c23fba585b2d7697856f9e6a7bbc62f65588035e66f6afb01a2e9" +checksum = "8cfd6557b1018b773e43c8de9d0d13581d6b36190d0501916cbec4731db5ccff" dependencies = [ "anyhow", "proc-macro-crate", @@ -1377,9 +1435,9 @@ checksum = "4217ad341ebadf8d8e724e264f13e593e0648f5b3e94b3896a5df283be015ecc" [[package]] name = "javascriptcore-rs" -version = "0.16.0" +version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf053e7843f2812ff03ef5afe34bb9c06ffee120385caad4f6b9967fcd37d41c" +checksum = "110b9902c80c12bf113c432d0b71c7a94490b294a8234f326fd0abca2fac0b00" dependencies = [ "bitflags", "glib", @@ -1388,14 +1446,14 @@ dependencies = [ [[package]] name = "javascriptcore-rs-sys" -version = "0.4.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "905fbb87419c5cde6e3269537e4ea7d46431f3008c5d057e915ef3f115e7793c" +checksum = "98a216519a52cd941a733a0ad3f1023cfdb1cd47f3955e8e863ed56f558f916c" dependencies = [ "glib-sys", "gobject-sys", "libc", - "system-deps 5.0.0", + "system-deps", ] [[package]] @@ -1458,9 +1516,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libappindicator" -version = "0.7.1" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db2d3cb96d092b4824cb306c9e544c856a4cb6210c1081945187f7f1924b47e8" +checksum = "89e1edfdc9b0853358306c6dfb4b77c79c779174256fe93d80c0b5ebca451a2f" dependencies = [ "glib", "gtk", @@ -1471,9 +1529,9 @@ dependencies = [ [[package]] name = "libappindicator-sys" -version = "0.7.3" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1b3b6681973cea8cc3bce7391e6d7d5502720b80a581c9a95c9cbaf592826aa" +checksum = "08fcb2bea89cee9613982501ec83eaa2d09256b24540ae463c52a28906163918" dependencies = [ "gtk-sys", "libloading", @@ -1531,6 +1589,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" dependencies = [ "cfg-if", + "value-bag", ] [[package]] @@ -1895,6 +1954,17 @@ version = "6.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3baf96e39c5359d2eb0dd6ccb42c62b91d9678aa68160d261b9e0ccbf9e9dea9" +[[package]] +name = "oslog" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80d2043d1f61d77cb2f4b1f7b7b2295f40507f5f8e9d1c8bf10a1ca5f97a3969" +dependencies = [ + "cc", + "dashmap", + "log", +] + [[package]] name = "overload" version = "0.1.1" @@ -1903,11 +1973,12 @@ checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" [[package]] name = "pango" -version = "0.15.10" +version = "0.16.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22e4045548659aee5313bde6c582b0d83a627b7904dd20dc2d9ef0895d414e4f" +checksum = "cdff66b271861037b89d028656184059e03b0b6ccb36003820be19f7200b1e94" dependencies = [ "bitflags", + "gio", "glib", "libc", "once_cell", @@ -1916,14 +1987,14 @@ dependencies = [ [[package]] name = "pango-sys" -version = "0.15.10" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2a00081cde4661982ed91d80ef437c20eacaf6aa1a5962c0279ae194662c3aa" +checksum = "9e134909a9a293e04d2cc31928aa95679c5e4df954d0b85483159bd20d8f047f" dependencies = [ "glib-sys", "gobject-sys", "libc", - "system-deps 6.0.3", + "system-deps", ] [[package]] @@ -2395,8 +2466,7 @@ dependencies = [ [[package]] name = "rfd" version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0149778bd99b6959285b0933288206090c50e2327f47a9c463bfdbf45c8823ea" +source = "git+https://github.com/PolyMeilex/rfd#c2ea907bbcd055239d615cd8029a86089494bddc" dependencies = [ "block", "dispatch", @@ -2404,7 +2474,6 @@ dependencies = [ "gobject-sys", "gtk-sys", "js-sys", - "lazy_static", "log", "objc", "objc-foundation", @@ -2413,7 +2482,7 @@ dependencies = [ "wasm-bindgen", "wasm-bindgen-futures", "web-sys", - "windows 0.37.0", + "windows 0.43.0", ] [[package]] @@ -2690,31 +2759,31 @@ dependencies = [ ] [[package]] -name = "soup2" -version = "0.2.1" +name = "soup3" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2b4d76501d8ba387cf0fefbe055c3e0a59891d09f0f995ae4e4b16f6b60f3c0" +checksum = "82bc46048125fefd69d30b32b9d263d6556c9ffe82a7a7df181a86d912da5616" dependencies = [ "bitflags", + "futures-channel", "gio", "glib", "libc", "once_cell", - "soup2-sys", + "soup3-sys", ] [[package]] -name = "soup2-sys" -version = "0.2.0" +name = "soup3-sys" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "009ef427103fcb17f802871647a7fa6c60cbb654b4c4e4c0ac60a31c5f6dc9cf" +checksum = "014bbeb1c4cdb30739dc181e8d98b7908f124d9555843afa89b5570aaf4ec62b" dependencies = [ - "bitflags", "gio-sys", "glib-sys", "gobject-sys", "libc", - "system-deps 5.0.0", + "system-deps", ] [[package]] @@ -2802,37 +2871,24 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "system-deps" -version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18db855554db7bd0e73e06cf7ba3df39f97812cb11d3f75e71c39bf45171797e" -dependencies = [ - "cfg-expr 0.9.1", - "heck 0.3.3", - "pkg-config", - "toml", - "version-compare 0.0.11", -] - [[package]] name = "system-deps" version = "6.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2955b1fe31e1fa2fbd1976b71cc69a606d7d4da16f6de3333d0c92d51419aeff" dependencies = [ - "cfg-expr 0.11.0", + "cfg-expr", "heck 0.4.0", "pkg-config", "toml", - "version-compare 0.1.0", + "version-compare", ] [[package]] name = "tao" -version = "0.16.0" +version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "704522803dda895767f69198af8351b0a3f4fe2e293c3ca54cce0ecba05a97f2" +checksum = "0d021218bcb43d4bf42112b1da5f7d8454502ffb188489ba0089fe4e3e34a8f6" dependencies = [ "bitflags", "cairo-rs", @@ -3016,6 +3072,23 @@ dependencies = [ "tauri-utils", ] +[[package]] +name = "tauri-plugin-log" +version = "0.1.0" +source = "git+https://github.com/tauri-apps/plugins-workspace?branch=next#37e0511020bd7d06cd29a293779efb1e2b96ba38" +dependencies = [ + "android_logger", + "byte-unit", + "fern", + "log", + "oslog", + "serde", + "serde_json", + "serde_repr", + "tauri", + "time", +] + [[package]] name = "tauri-runtime" version = "0.13.0-alpha.0" @@ -3421,6 +3494,12 @@ version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" +[[package]] +name = "utf8-width" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5190c9442dcdaf0ddd50f37420417d219ae5261bbf5db120d0f9bab996c9cba1" + [[package]] name = "uuid" version = "0.8.2" @@ -3443,10 +3522,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" [[package]] -name = "version-compare" -version = "0.0.11" +name = "value-bag" +version = "1.0.0-alpha.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c18c859eead79d8b95d09e4678566e8d70105c4e7b251f707a03df32442661b" +checksum = "2209b78d1249f7e6f3293657c9779fe31ced465df091bbd433a1cf88e916ec55" +dependencies = [ + "ctor", + "version_check", +] [[package]] name = "version-compare" @@ -3571,9 +3654,9 @@ dependencies = [ [[package]] name = "webkit2gtk" -version = "0.18.2" +version = "0.19.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8f859735e4a452aeb28c6c56a852967a8a76c8eb1cc32dbf931ad28a13d6370" +checksum = "50668f506786de0e8c2542a07c4720effbd6e58be11746f2b451875d048d7f56" dependencies = [ "bitflags", "cairo-rs", @@ -3589,20 +3672,18 @@ dependencies = [ "javascriptcore-rs", "libc", "once_cell", - "soup2", + "soup3", "webkit2gtk-sys", ] [[package]] name = "webkit2gtk-sys" -version = "0.18.0" +version = "0.19.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d76ca6ecc47aeba01ec61e480139dda143796abcae6f83bcddf50d6b5b1dcf3" +checksum = "d0ac7a95ddd3fdfcaf83d8e513b4b1ad101b95b413b6aa6662ed95f284fc3d5b" dependencies = [ - "atk-sys", "bitflags", "cairo-sys-rs", - "gdk-pixbuf-sys", "gdk-sys", "gio-sys", "glib-sys", @@ -3610,10 +3691,9 @@ dependencies = [ "gtk-sys", "javascriptcore-rs-sys", "libc", - "pango-sys", "pkg-config", - "soup2-sys", - "system-deps 6.0.3", + "soup3-sys", + "system-deps", ] [[package]] @@ -3732,19 +3812,6 @@ dependencies = [ "windows_x86_64_msvc 0.32.0", ] -[[package]] -name = "windows" -version = "0.37.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57b543186b344cc61c85b5aab0d2e3adf4e0f99bc076eff9aa5927bcc0b8a647" -dependencies = [ - "windows_aarch64_msvc 0.37.0", - "windows_i686_gnu 0.37.0", - "windows_i686_msvc 0.37.0", - "windows_x86_64_gnu 0.37.0", - "windows_x86_64_msvc 0.37.0", -] - [[package]] name = "windows" version = "0.39.0" @@ -3759,6 +3826,21 @@ dependencies = [ "windows_x86_64_msvc 0.39.0", ] +[[package]] +name = "windows" +version = "0.43.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04662ed0e3e5630dfa9b26e4cb823b817f1a9addda855d973a9458c236556244" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc 0.42.0", + "windows_i686_gnu 0.42.0", + "windows_i686_msvc 0.42.0", + "windows_x86_64_gnu 0.42.0", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc 0.42.0", +] + [[package]] name = "windows-bindgen" version = "0.39.0" @@ -3837,12 +3919,6 @@ version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47" -[[package]] -name = "windows_aarch64_msvc" -version = "0.37.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2623277cb2d1c216ba3b578c0f3cf9cdebeddb6e66b1b218bb33596ea7769c3a" - [[package]] name = "windows_aarch64_msvc" version = "0.39.0" @@ -3867,12 +3943,6 @@ version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6" -[[package]] -name = "windows_i686_gnu" -version = "0.37.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3925fd0b0b804730d44d4b6278c50f9699703ec49bcd628020f46f4ba07d9e1" - [[package]] name = "windows_i686_gnu" version = "0.39.0" @@ -3897,12 +3967,6 @@ version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024" -[[package]] -name = "windows_i686_msvc" -version = "0.37.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce907ac74fe331b524c1298683efbf598bb031bc84d5e274db2083696d07c57c" - [[package]] name = "windows_i686_msvc" version = "0.39.0" @@ -3927,12 +3991,6 @@ version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1" -[[package]] -name = "windows_x86_64_gnu" -version = "0.37.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2babfba0828f2e6b32457d5341427dcbb577ceef556273229959ac23a10af33d" - [[package]] name = "windows_x86_64_gnu" version = "0.39.0" @@ -3963,12 +4021,6 @@ version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680" -[[package]] -name = "windows_x86_64_msvc" -version = "0.37.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4dd6dc7df2d84cf7b33822ed5b86318fb1781948e9663bacd047fc9dd52259d" - [[package]] name = "windows_x86_64_msvc" version = "0.39.0" @@ -4001,8 +4053,9 @@ dependencies = [ [[package]] name = "wry" -version = "0.24.1" -source = "git+https://github.com/tauri-apps/wry?branch=dev#bce39e2be195194e547b0021e770e45a3df15fa1" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "164aae72fb3759aa178ebb274c572728a871abce011e53821e9468335314fe00" dependencies = [ "base64", "block", @@ -4025,7 +4078,7 @@ dependencies = [ "serde", "serde_json", "sha2", - "soup2", + "soup3", "tao", "thiserror", "url", diff --git a/examples/api/src-tauri/Cargo.toml b/examples/api/src-tauri/Cargo.toml index 31a0ad7fbc9f..eecf650f3e77 100644 --- a/examples/api/src-tauri/Cargo.toml +++ b/examples/api/src-tauri/Cargo.toml @@ -17,6 +17,10 @@ serde_json = "1.0" serde = { version = "1.0", features = [ "derive" ] } tiny_http = "0.11" log = "0.4" +tauri-plugin-log = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "next" } + +[patch.'https://github.com/tauri-apps/tauri'] +tauri = { path = "../../../core/tauri" } [dependencies.tauri] path = "../../../core/tauri" diff --git a/examples/api/src-tauri/src/lib.rs b/examples/api/src-tauri/src/lib.rs index ca0017269195..b44c207ff6ca 100644 --- a/examples/api/src-tauri/src/lib.rs +++ b/examples/api/src-tauri/src/lib.rs @@ -60,6 +60,11 @@ impl AppBuilder { #[allow(unused_mut)] let mut builder = tauri::Builder::default() + .plugin( + tauri_plugin_log::Builder::default() + .level(log::LevelFilter::Info) + .build(), + ) .setup(move |app| { if let Some(setup) = setup { (setup)(app)?; From f0a1d9cdbcfb645ce1c5f1cdd597f764991772cd Mon Sep 17 00:00:00 2001 From: "Ngo Iok Ui (Wu Yu Wei)" Date: Fri, 3 Feb 2023 03:44:57 +0800 Subject: [PATCH 129/436] chore: update rfd and wry versions (#6174) Co-authored-by: Wu Yu Wei Co-authored-by: Lucas Nogueira --- .changes/rfd101.md | 6 ++++++ .changes/wry26.md | 6 ++++++ core/tauri-runtime-wry/Cargo.toml | 2 +- core/tauri/Cargo.toml | 2 +- tooling/cli/Cargo.lock | 5 +++-- tooling/cli/Cargo.toml | 2 +- 6 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 .changes/rfd101.md create mode 100644 .changes/wry26.md diff --git a/.changes/rfd101.md b/.changes/rfd101.md new file mode 100644 index 000000000000..ef230029a9bf --- /dev/null +++ b/.changes/rfd101.md @@ -0,0 +1,6 @@ +--- +"tauri": minor +--- + +Update rfd to 0.11. + diff --git a/.changes/wry26.md b/.changes/wry26.md new file mode 100644 index 000000000000..2775757c55c6 --- /dev/null +++ b/.changes/wry26.md @@ -0,0 +1,6 @@ +--- +"tauri-runtime-wry": minor +--- + +Update wry to 0.26. + diff --git a/core/tauri-runtime-wry/Cargo.toml b/core/tauri-runtime-wry/Cargo.toml index c195ccf4f84e..26144538ae40 100644 --- a/core/tauri-runtime-wry/Cargo.toml +++ b/core/tauri-runtime-wry/Cargo.toml @@ -13,7 +13,7 @@ exclude = [ "CHANGELOG.md", "/target" ] readme = "README.md" [dependencies] -wry = { version = "0.25.0", default-features = false, features = [ "file-drop", "protocol" ] } +wry = { version = "0.26.0", default-features = false, features = [ "file-drop", "protocol" ] } tauri-runtime = { version = "0.13.0-alpha.0", path = "../tauri-runtime" } tauri-utils = { version = "2.0.0-alpha.0", path = "../tauri-utils" } uuid = { version = "1", features = [ "v4" ] } diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml index d325b2243780..b8389a55df7a 100644 --- a/core/tauri/Cargo.toml +++ b/core/tauri/Cargo.toml @@ -87,7 +87,7 @@ ico = { version = "0.2.0", optional = true } encoding_rs = "0.8.31" [target."cfg(any(target_os = \"macos\", windows, target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies] -rfd = { git = "https://github.com/PolyMeilex/rfd", version = "0.10", optional = true } +rfd = { version = "0.11.0", optional = true } notify-rust = { version = "4.5", default-features = false, features = [ "d" ], optional = true } [target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies] diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index bff0f2e3cea1..34a185138310 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -3844,8 +3844,9 @@ dependencies = [ [[package]] name = "tauri-mobile" -version = "0.2.0" -source = "git+https://github.com/tauri-apps/tauri-mobile?branch=dev#01c5f5083760714163e527bf9b8c80157150aed8" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "030f6c282001e94a89a347f4d1684f146091140058b57d0af04862a53694dbe5" dependencies = [ "cocoa", "colored 1.9.3", diff --git a/tooling/cli/Cargo.toml b/tooling/cli/Cargo.toml index 4c75ee57bf4d..9753206456c3 100644 --- a/tooling/cli/Cargo.toml +++ b/tooling/cli/Cargo.toml @@ -39,7 +39,7 @@ name = "cargo-tauri" path = "src/main.rs" [dependencies] -tauri-mobile = { git = "https://github.com/tauri-apps/tauri-mobile", branch = "dev", default-features = false } +tauri-mobile = { version = "0.2", default-features = false } textwrap = { version = "0.11.0", features = [ "term_size" ] } jsonrpsee = { version = "0.16", features = [ "client", "server" ] } thiserror = "1" From 0111b88d753721e788d5c1512a50b4eaee0a10f2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 2 Feb 2023 17:55:23 -0300 Subject: [PATCH 130/436] (NEXT) Apply Version Updates From Current Changes (#5924) Co-authored-by: lucasfernog Co-authored-by: Lucas Nogueira --- .changes/pre.json | 17 ++++++++++++++++- core/tauri-build/CHANGELOG.md | 9 +++++++++ core/tauri-build/Cargo.toml | 6 +++--- core/tauri-codegen/CHANGELOG.md | 7 +++++++ core/tauri-codegen/Cargo.toml | 4 ++-- core/tauri-macros/CHANGELOG.md | 9 +++++++++ core/tauri-macros/Cargo.toml | 6 +++--- core/tauri-runtime-wry/CHANGELOG.md | 9 +++++++++ core/tauri-runtime-wry/Cargo.toml | 6 +++--- core/tauri-runtime/CHANGELOG.md | 7 +++++++ core/tauri-runtime/Cargo.toml | 4 ++-- core/tauri-utils/CHANGELOG.md | 7 +++++++ core/tauri-utils/Cargo.toml | 2 +- core/tauri/CHANGELOG.md | 15 +++++++++++++++ core/tauri/Cargo.toml | 10 +++++----- tooling/bundler/CHANGELOG.md | 5 +++++ tooling/bundler/Cargo.toml | 4 ++-- tooling/cli/CHANGELOG.md | 19 +++++++++++++++++++ tooling/cli/Cargo.lock | 6 +++--- tooling/cli/Cargo.toml | 6 +++--- tooling/cli/metadata.json | 6 +++--- tooling/cli/node/CHANGELOG.md | 17 +++++++++++++++++ tooling/cli/node/package.json | 2 +- 23 files changed, 151 insertions(+), 32 deletions(-) diff --git a/.changes/pre.json b/.changes/pre.json index f025ae492b40..eb612d6cd27c 100644 --- a/.changes/pre.json +++ b/.changes/pre.json @@ -11,15 +11,30 @@ ".changes/dev-proxy.md", ".changes/fix-dev-server-proxy-path.md", ".changes/fix-ios-run-xcode14.md", + ".changes/fix-mobile-env-vars.md", + ".changes/force-colored-logs.md", ".changes/glob-match-require_literal_separator.md", + ".changes/gtk16.md", ".changes/improve-local-ip-detection.md", + ".changes/ios-keep-alive.md", + ".changes/ios-logs.md", + ".changes/logcat-all-tags.md", ".changes/mobile-config.md", ".changes/mobile-entry-point-macro.md", + ".changes/mobile-env-vars-rename.md", ".changes/mobile-init.md", + ".changes/mobile-lib-name.md", ".changes/mobile-open.md", ".changes/mobile-webview-access.md", ".changes/mobile.md", + ".changes/msrv-1.64.md", + ".changes/only-proxy-on-mobile.md", + ".changes/package-info-crate-name.md", ".changes/refactor-setup.md", - ".changes/tauri-mobile-entry-point.md" + ".changes/remove-mobile-log.md", + ".changes/rfd101.md", + ".changes/target-dir-detection.md", + ".changes/tauri-mobile-entry-point.md", + ".changes/wry26.md" ] } diff --git a/core/tauri-build/CHANGELOG.md b/core/tauri-build/CHANGELOG.md index 7a77a98ef0e6..b53665c67c0c 100644 --- a/core/tauri-build/CHANGELOG.md +++ b/core/tauri-build/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## \[2.0.0-alpha.1] + +- Refactor mobile environment variables. + - [dee9460f](https://www.github.com/tauri-apps/tauri/commit/dee9460f9c9bc92e9c638e7691e616849ac2085b) feat: keep CLI alive when iOS app exits, show logs, closes [#5855](https://www.github.com/tauri-apps/tauri/pull/5855) ([#5902](https://www.github.com/tauri-apps/tauri/pull/5902)) on 2022-12-27 +- Bump the MSRV to 1.64. + - [7eb9aa75](https://www.github.com/tauri-apps/tauri/commit/7eb9aa75cfd6a3176d3f566fdda02d88aa529b0f) Update gtk to 0.16 ([#6155](https://www.github.com/tauri-apps/tauri/pull/6155)) on 2023-01-30 +- Removed mobile logging initialization, which will be handled by `tauri-plugin-log`. + - [](https://www.github.com/tauri-apps/tauri/commit/undefined) on undefined + ## \[2.0.0-alpha.0] - Set environment variables used by `tauri::mobile_entry_point`. diff --git a/core/tauri-build/Cargo.toml b/core/tauri-build/Cargo.toml index 1f0b3617ffdb..eb000f4e771b 100644 --- a/core/tauri-build/Cargo.toml +++ b/core/tauri-build/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-build" -version = "2.0.0-alpha.0" +version = "2.0.0-alpha.1" authors = [ "Tauri Programme within The Commons Conservancy" ] categories = [ "gui", "web-programming" ] license = "Apache-2.0 OR MIT" @@ -19,8 +19,8 @@ rustdoc-args = [ "--cfg", "doc_cfg" ] [dependencies] anyhow = "1" quote = { version = "1", optional = true } -tauri-codegen = { version = "2.0.0-alpha.0", path = "../tauri-codegen", optional = true } -tauri-utils = { version = "2.0.0-alpha.0", path = "../tauri-utils", features = [ "build", "resources" ] } +tauri-codegen = { version = "2.0.0-alpha.1", path = "../tauri-codegen", optional = true } +tauri-utils = { version = "2.0.0-alpha.1", path = "../tauri-utils", features = [ "build", "resources" ] } cargo_toml = "0.13" serde_json = "1" heck = "0.4" diff --git a/core/tauri-codegen/CHANGELOG.md b/core/tauri-codegen/CHANGELOG.md index e32ce10b394a..3c110e020452 100644 --- a/core/tauri-codegen/CHANGELOG.md +++ b/core/tauri-codegen/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## \[2.0.0-alpha.1] + +- Bump the MSRV to 1.64. + - [7eb9aa75](https://www.github.com/tauri-apps/tauri/commit/7eb9aa75cfd6a3176d3f566fdda02d88aa529b0f) Update gtk to 0.16 ([#6155](https://www.github.com/tauri-apps/tauri/pull/6155)) on 2023-01-30 +- Added `crate_name` field on `PackageInfo`. + - [630a7f4b](https://www.github.com/tauri-apps/tauri/commit/630a7f4b18cef169bfd48673609306fec434e397) refactor: remove mobile log initialization, ref [#6049](https://www.github.com/tauri-apps/tauri/pull/6049) ([#6081](https://www.github.com/tauri-apps/tauri/pull/6081)) on 2023-01-17 + ## \[2.0.0-alpha.0] - Change `devPath` URL to use the local IP address on iOS and Android. diff --git a/core/tauri-codegen/Cargo.toml b/core/tauri-codegen/Cargo.toml index 36cc7b747eb8..bc36df3b4dbb 100644 --- a/core/tauri-codegen/Cargo.toml +++ b/core/tauri-codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-codegen" -version = "2.0.0-alpha.0" +version = "2.0.0-alpha.1" authors = [ "Tauri Programme within The Commons Conservancy" ] categories = [ "gui", "web-programming" ] license = "Apache-2.0 OR MIT" @@ -19,7 +19,7 @@ proc-macro2 = "1" quote = "1" serde = { version = "1", features = [ "derive" ] } serde_json = "1" -tauri-utils = { version = "2.0.0-alpha.0", path = "../tauri-utils", features = [ "build" ] } +tauri-utils = { version = "2.0.0-alpha.1", path = "../tauri-utils", features = [ "build" ] } thiserror = "1" walkdir = "2" brotli = { version = "3", optional = true, default-features = false, features = [ "std" ] } diff --git a/core/tauri-macros/CHANGELOG.md b/core/tauri-macros/CHANGELOG.md index 32d3e7e7067c..897a4f185f73 100644 --- a/core/tauri-macros/CHANGELOG.md +++ b/core/tauri-macros/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## \[2.0.0-alpha.1] + +- Refactor mobile environment variables. + - [dee9460f](https://www.github.com/tauri-apps/tauri/commit/dee9460f9c9bc92e9c638e7691e616849ac2085b) feat: keep CLI alive when iOS app exits, show logs, closes [#5855](https://www.github.com/tauri-apps/tauri/pull/5855) ([#5902](https://www.github.com/tauri-apps/tauri/pull/5902)) on 2022-12-27 +- Bump the MSRV to 1.64. + - [7eb9aa75](https://www.github.com/tauri-apps/tauri/commit/7eb9aa75cfd6a3176d3f566fdda02d88aa529b0f) Update gtk to 0.16 ([#6155](https://www.github.com/tauri-apps/tauri/pull/6155)) on 2023-01-30 +- Removed mobile logging initialization, which will be handled by `tauri-plugin-log`. + - [](https://www.github.com/tauri-apps/tauri/commit/undefined) on undefined + ## \[2.0.0-alpha.0] - Added the `mobile_entry_point` macro. diff --git a/core/tauri-macros/Cargo.toml b/core/tauri-macros/Cargo.toml index 575d0f8bdf16..563777fe2ed4 100644 --- a/core/tauri-macros/Cargo.toml +++ b/core/tauri-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-macros" -version = "2.0.0-alpha.0" +version = "2.0.0-alpha.1" authors = [ "Tauri Programme within The Commons Conservancy" ] categories = [ "gui", "os", "filesystem", "web-programming" ] license = "Apache-2.0 OR MIT" @@ -20,8 +20,8 @@ proc-macro2 = "1" quote = "1" syn = { version = "1", features = [ "full" ] } heck = "0.4" -tauri-codegen = { version = "2.0.0-alpha.0", default-features = false, path = "../tauri-codegen" } -tauri-utils = { version = "2.0.0-alpha.0", path = "../tauri-utils" } +tauri-codegen = { version = "2.0.0-alpha.1", default-features = false, path = "../tauri-codegen" } +tauri-utils = { version = "2.0.0-alpha.1", path = "../tauri-utils" } [features] custom-protocol = [ ] diff --git a/core/tauri-runtime-wry/CHANGELOG.md b/core/tauri-runtime-wry/CHANGELOG.md index 84d2d7893929..e121d5df09a6 100644 --- a/core/tauri-runtime-wry/CHANGELOG.md +++ b/core/tauri-runtime-wry/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## \[0.13.0-alpha.1] + +- Update gtk to 0.16. + - [7eb9aa75](https://www.github.com/tauri-apps/tauri/commit/7eb9aa75cfd6a3176d3f566fdda02d88aa529b0f) Update gtk to 0.16 ([#6155](https://www.github.com/tauri-apps/tauri/pull/6155)) on 2023-01-30 +- Bump the MSRV to 1.64. + - [7eb9aa75](https://www.github.com/tauri-apps/tauri/commit/7eb9aa75cfd6a3176d3f566fdda02d88aa529b0f) Update gtk to 0.16 ([#6155](https://www.github.com/tauri-apps/tauri/pull/6155)) on 2023-01-30 +- Update wry to 0.26. + - [f0a1d9cd](https://www.github.com/tauri-apps/tauri/commit/f0a1d9cdbcfb645ce1c5f1cdd597f764991772cd) chore: update rfd and wry versions ([#6174](https://www.github.com/tauri-apps/tauri/pull/6174)) on 2023-02-03 + ## \[0.13.0-alpha.0] - Support `with_webview` for Android platform alowing execution of JNI code in context. diff --git a/core/tauri-runtime-wry/Cargo.toml b/core/tauri-runtime-wry/Cargo.toml index 26144538ae40..6ab46fe07247 100644 --- a/core/tauri-runtime-wry/Cargo.toml +++ b/core/tauri-runtime-wry/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-runtime-wry" -version = "0.13.0-alpha.0" +version = "0.13.0-alpha.1" authors = [ "Tauri Programme within The Commons Conservancy" ] categories = [ "gui", "web-programming" ] license = "Apache-2.0 OR MIT" @@ -14,8 +14,8 @@ readme = "README.md" [dependencies] wry = { version = "0.26.0", default-features = false, features = [ "file-drop", "protocol" ] } -tauri-runtime = { version = "0.13.0-alpha.0", path = "../tauri-runtime" } -tauri-utils = { version = "2.0.0-alpha.0", path = "../tauri-utils" } +tauri-runtime = { version = "0.13.0-alpha.1", path = "../tauri-runtime" } +tauri-utils = { version = "2.0.0-alpha.1", path = "../tauri-utils" } uuid = { version = "1", features = [ "v4" ] } rand = "0.8" raw-window-handle = "0.5" diff --git a/core/tauri-runtime/CHANGELOG.md b/core/tauri-runtime/CHANGELOG.md index c488a06e150b..58dcd34e3721 100644 --- a/core/tauri-runtime/CHANGELOG.md +++ b/core/tauri-runtime/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## \[0.13.0-alpha.1] + +- Update gtk to 0.16. + - [7eb9aa75](https://www.github.com/tauri-apps/tauri/commit/7eb9aa75cfd6a3176d3f566fdda02d88aa529b0f) Update gtk to 0.16 ([#6155](https://www.github.com/tauri-apps/tauri/pull/6155)) on 2023-01-30 +- Bump the MSRV to 1.64. + - [7eb9aa75](https://www.github.com/tauri-apps/tauri/commit/7eb9aa75cfd6a3176d3f566fdda02d88aa529b0f) Update gtk to 0.16 ([#6155](https://www.github.com/tauri-apps/tauri/pull/6155)) on 2023-01-30 + ## \[0.13.0-alpha.0] - Parse `android` and `ios` Tauri configuration files. diff --git a/core/tauri-runtime/Cargo.toml b/core/tauri-runtime/Cargo.toml index 75d46e94a543..76052f276d85 100644 --- a/core/tauri-runtime/Cargo.toml +++ b/core/tauri-runtime/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-runtime" -version = "0.13.0-alpha.0" +version = "0.13.0-alpha.1" authors = [ "Tauri Programme within The Commons Conservancy" ] categories = [ "gui", "web-programming" ] license = "Apache-2.0 OR MIT" @@ -26,7 +26,7 @@ targets = [ serde = { version = "1.0", features = [ "derive" ] } serde_json = "1.0" thiserror = "1.0" -tauri-utils = { version = "2.0.0-alpha.0", path = "../tauri-utils" } +tauri-utils = { version = "2.0.0-alpha.1", path = "../tauri-utils" } uuid = { version = "1", features = [ "v4" ] } http = "0.2.4" http-range = "0.1.4" diff --git a/core/tauri-utils/CHANGELOG.md b/core/tauri-utils/CHANGELOG.md index 5e81091a6e4c..49d9503c3b02 100644 --- a/core/tauri-utils/CHANGELOG.md +++ b/core/tauri-utils/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## \[2.0.0-alpha.1] + +- Bump the MSRV to 1.64. + - [7eb9aa75](https://www.github.com/tauri-apps/tauri/commit/7eb9aa75cfd6a3176d3f566fdda02d88aa529b0f) Update gtk to 0.16 ([#6155](https://www.github.com/tauri-apps/tauri/pull/6155)) on 2023-01-30 +- Added `crate_name` field on `PackageInfo`. + - [630a7f4b](https://www.github.com/tauri-apps/tauri/commit/630a7f4b18cef169bfd48673609306fec434e397) refactor: remove mobile log initialization, ref [#6049](https://www.github.com/tauri-apps/tauri/pull/6049) ([#6081](https://www.github.com/tauri-apps/tauri/pull/6081)) on 2023-01-17 + ## \[2.0.0-alpha.0] - Parse `android` and `ios` Tauri configuration files. diff --git a/core/tauri-utils/Cargo.toml b/core/tauri-utils/Cargo.toml index 84ea058a1146..014361998668 100644 --- a/core/tauri-utils/Cargo.toml +++ b/core/tauri-utils/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-utils" -version = "2.0.0-alpha.0" +version = "2.0.0-alpha.1" authors = [ "Tauri Programme within The Commons Conservancy" ] license = "Apache-2.0 OR MIT" homepage = "https://tauri.app" diff --git a/core/tauri/CHANGELOG.md b/core/tauri/CHANGELOG.md index 73af8c9e0e2e..91204f1a1091 100644 --- a/core/tauri/CHANGELOG.md +++ b/core/tauri/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## \[2.0.0-alpha.3] + +- Update gtk to 0.16. + - [7eb9aa75](https://www.github.com/tauri-apps/tauri/commit/7eb9aa75cfd6a3176d3f566fdda02d88aa529b0f) Update gtk to 0.16 ([#6155](https://www.github.com/tauri-apps/tauri/pull/6155)) on 2023-01-30 +- Show all application logs on iOS. + - [dee9460f](https://www.github.com/tauri-apps/tauri/commit/dee9460f9c9bc92e9c638e7691e616849ac2085b) feat: keep CLI alive when iOS app exits, show logs, closes [#5855](https://www.github.com/tauri-apps/tauri/pull/5855) ([#5902](https://www.github.com/tauri-apps/tauri/pull/5902)) on 2022-12-27 +- Bump the MSRV to 1.64. + - [7eb9aa75](https://www.github.com/tauri-apps/tauri/commit/7eb9aa75cfd6a3176d3f566fdda02d88aa529b0f) Update gtk to 0.16 ([#6155](https://www.github.com/tauri-apps/tauri/pull/6155)) on 2023-01-30 +- Only proxy the dev server on mobile to simplify desktop usage. + - [78eaadae](https://www.github.com/tauri-apps/tauri/commit/78eaadae2e75ab165d1970e592bb1455bb8636e3) refactor(core): only proxy on mobile ([#6126](https://www.github.com/tauri-apps/tauri/pull/6126)) on 2023-01-23 +- Removed mobile logging initialization, which will be handled by `tauri-plugin-log`. + - [](https://www.github.com/tauri-apps/tauri/commit/undefined) on undefined +- Update rfd to 0.11. + - [f0a1d9cd](https://www.github.com/tauri-apps/tauri/commit/f0a1d9cdbcfb645ce1c5f1cdd597f764991772cd) chore: update rfd and wry versions ([#6174](https://www.github.com/tauri-apps/tauri/pull/6174)) on 2023-02-03 + ## \[2.0.0-alpha.2] - Fix the filesystem scope allowing sub-directories of the directory picked by the dialog when `recursive` option was `false`. diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml index b8389a55df7a..4d9ef4543438 100644 --- a/core/tauri/Cargo.toml +++ b/core/tauri/Cargo.toml @@ -10,7 +10,7 @@ license = "Apache-2.0 OR MIT" name = "tauri" readme = "README.md" repository = "https://github.com/tauri-apps/tauri" -version = "2.0.0-alpha.2" +version = "2.0.0-alpha.3" [package.metadata.docs.rs] no-default-features = true @@ -49,10 +49,10 @@ url = { version = "2.3" } anyhow = "1.0" thiserror = "1.0" once_cell = "1" -tauri-runtime = { version = "0.13.0-alpha.0", path = "../tauri-runtime" } -tauri-macros = { version = "2.0.0-alpha.0", path = "../tauri-macros" } -tauri-utils = { version = "2.0.0-alpha.0", features = [ "resources" ], path = "../tauri-utils" } -tauri-runtime-wry = { version = "0.13.0-alpha.0", path = "../tauri-runtime-wry", optional = true } +tauri-runtime = { version = "0.13.0-alpha.1", path = "../tauri-runtime" } +tauri-macros = { version = "2.0.0-alpha.1", path = "../tauri-macros" } +tauri-utils = { version = "2.0.0-alpha.1", features = [ "resources" ], path = "../tauri-utils" } +tauri-runtime-wry = { version = "0.13.0-alpha.1", path = "../tauri-runtime-wry", optional = true } rand = "0.8" semver = { version = "1.0", features = [ "serde" ] } serde_repr = "0.1" diff --git a/tooling/bundler/CHANGELOG.md b/tooling/bundler/CHANGELOG.md index 1011ffe01e73..a0eb497d35a8 100644 --- a/tooling/bundler/CHANGELOG.md +++ b/tooling/bundler/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## \[2.0.0-alpha.1] + +- Bump the MSRV to 1.64. + - [7eb9aa75](https://www.github.com/tauri-apps/tauri/commit/7eb9aa75cfd6a3176d3f566fdda02d88aa529b0f) Update gtk to 0.16 ([#6155](https://www.github.com/tauri-apps/tauri/pull/6155)) on 2023-01-30 + ## \[2.0.0-alpha.0] - First mobile alpha release! diff --git a/tooling/bundler/Cargo.toml b/tooling/bundler/Cargo.toml index 6de0c5dc337f..939a4f6909ba 100644 --- a/tooling/bundler/Cargo.toml +++ b/tooling/bundler/Cargo.toml @@ -2,7 +2,7 @@ workspace = { } [package] name = "tauri-bundler" -version = "2.0.0-alpha.0" +version = "2.0.0-alpha.1" authors = [ "George Burton ", "Tauri Programme within The Commons Conservancy" @@ -17,7 +17,7 @@ rust-version = "1.64" exclude = [ "CHANGELOG.md", "/target", "rustfmt.toml" ] [dependencies] -tauri-utils = { version = "2.0.0-alpha.0", path = "../../core/tauri-utils", features = [ "resources" ] } +tauri-utils = { version = "2.0.0-alpha.1", path = "../../core/tauri-utils", features = [ "resources" ] } image = "0.24.5" libflate = "1.2" anyhow = "1.0" diff --git a/tooling/cli/CHANGELOG.md b/tooling/cli/CHANGELOG.md index 2c8d108297a8..0bd14a976e0a 100644 --- a/tooling/cli/CHANGELOG.md +++ b/tooling/cli/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## \[2.0.0-alpha.2] + +- Fixes `TAURI_*` environment variables for hook scripts on mobile commands. + - [1af9be90](https://www.github.com/tauri-apps/tauri/commit/1af9be904a309138b9f79dc741391000b1652c75) feat(cli): properly fill target for TAURI\_ env vars on mobile ([#6116](https://www.github.com/tauri-apps/tauri/pull/6116)) on 2023-01-23 +- Force colored logs on mobile commands. + - [2c4a0bbd](https://www.github.com/tauri-apps/tauri/commit/2c4a0bbd1fbe15d7500264e6490772397e1917ed) feat(cli): force colored logs on mobile commands ([#5934](https://www.github.com/tauri-apps/tauri/pull/5934)) on 2022-12-28 +- Keep the process alive even when the iOS application is closed. + - [dee9460f](https://www.github.com/tauri-apps/tauri/commit/dee9460f9c9bc92e9c638e7691e616849ac2085b) feat: keep CLI alive when iOS app exits, show logs, closes [#5855](https://www.github.com/tauri-apps/tauri/pull/5855) ([#5902](https://www.github.com/tauri-apps/tauri/pull/5902)) on 2022-12-27 +- Show all application logs on iOS. + - [dee9460f](https://www.github.com/tauri-apps/tauri/commit/dee9460f9c9bc92e9c638e7691e616849ac2085b) feat: keep CLI alive when iOS app exits, show logs, closes [#5855](https://www.github.com/tauri-apps/tauri/pull/5855) ([#5902](https://www.github.com/tauri-apps/tauri/pull/5902)) on 2022-12-27 +- Print log output for all tags on Android development. + - [8cc11149](https://www.github.com/tauri-apps/tauri/commit/8cc111494d74161e489152e52191e1442dd99759) fix(cli): print Android logs for all tags on 2023-01-17 +- Add support to custom and kebab case library names for mobile apps. + - [50f6dd87](https://www.github.com/tauri-apps/tauri/commit/50f6dd87b1ac2c99f8794b055f1acba4ef7d34d3) feat: improvements to support hyphens in crate name ([#5989](https://www.github.com/tauri-apps/tauri/pull/5989)) on 2023-01-06 +- Bump the MSRV to 1.64. + - [7eb9aa75](https://www.github.com/tauri-apps/tauri/commit/7eb9aa75cfd6a3176d3f566fdda02d88aa529b0f) Update gtk to 0.16 ([#6155](https://www.github.com/tauri-apps/tauri/pull/6155)) on 2023-01-30 +- Fix target directory detection when compiling for Android. + - [e873bae0](https://www.github.com/tauri-apps/tauri/commit/e873bae09f0f27517f720a753f51c1dcb903f883) fix(cli): Cargo target dir detection on Android, closes [#5865](https://www.github.com/tauri-apps/tauri/pull/5865) ([#5932](https://www.github.com/tauri-apps/tauri/pull/5932)) on 2022-12-28 + ## \[2.0.0-alpha.1] - Fixes running on device using Xcode 14. diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 34a185138310..f2274bc6574f 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -3731,7 +3731,7 @@ dependencies = [ [[package]] name = "tauri-bundler" -version = "2.0.0-alpha.0" +version = "2.0.0-alpha.1" dependencies = [ "anyhow", "ar", @@ -3768,7 +3768,7 @@ dependencies = [ [[package]] name = "tauri-cli" -version = "2.0.0-alpha.1" +version = "2.0.0-alpha.2" dependencies = [ "anyhow", "axum", @@ -3883,7 +3883,7 @@ dependencies = [ [[package]] name = "tauri-utils" -version = "2.0.0-alpha.0" +version = "2.0.0-alpha.1" dependencies = [ "aes-gcm", "ctor", diff --git a/tooling/cli/Cargo.toml b/tooling/cli/Cargo.toml index 9753206456c3..4c0459ca14a7 100644 --- a/tooling/cli/Cargo.toml +++ b/tooling/cli/Cargo.toml @@ -3,7 +3,7 @@ members = [ "node" ] [package] name = "tauri-cli" -version = "2.0.0-alpha.1" +version = "2.0.0-alpha.2" authors = [ "Tauri Programme within The Commons Conservancy" ] edition = "2021" rust-version = "1.64" @@ -46,7 +46,7 @@ thiserror = "1" sublime_fuzzy = "0.7" clap = { version = "4.0", features = [ "derive" ] } anyhow = "1.0" -tauri-bundler = { version = "2.0.0-alpha.0", path = "../bundler" } +tauri-bundler = { version = "2.0.0-alpha.1", path = "../bundler" } colored = "2.0" once_cell = "1" serde = { version = "1.0", features = [ "derive" ] } @@ -56,7 +56,7 @@ notify-debouncer-mini = "0.2" shared_child = "1.0" toml_edit = "0.14" json-patch = "0.2" -tauri-utils = { version = "2.0.0-alpha.0", path = "../../core/tauri-utils", features = [ "isolation", "schema", "config-json5", "config-toml" ] } +tauri-utils = { version = "2.0.0-alpha.1", path = "../../core/tauri-utils", features = [ "isolation", "schema", "config-json5", "config-toml" ] } toml = "0.5" jsonschema = "0.16" handlebars = "4.3" diff --git a/tooling/cli/metadata.json b/tooling/cli/metadata.json index 880f2c35e4a7..560120ea8649 100644 --- a/tooling/cli/metadata.json +++ b/tooling/cli/metadata.json @@ -1,8 +1,8 @@ { "cli.js": { - "version": "2.0.0-alpha.1", + "version": "2.0.0-alpha.2", "node": ">= 10.0.0" }, - "tauri": "2.0.0-alpha.2", - "tauri-build": "2.0.0-alpha.0" + "tauri": "2.0.0-alpha.3", + "tauri-build": "2.0.0-alpha.1" } diff --git a/tooling/cli/node/CHANGELOG.md b/tooling/cli/node/CHANGELOG.md index f25572702399..502d54d21f82 100644 --- a/tooling/cli/node/CHANGELOG.md +++ b/tooling/cli/node/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## \[2.0.0-alpha.2] + +- Fixes `TAURI_*` environment variables for hook scripts on mobile commands. + - [1af9be90](https://www.github.com/tauri-apps/tauri/commit/1af9be904a309138b9f79dc741391000b1652c75) feat(cli): properly fill target for TAURI\_ env vars on mobile ([#6116](https://www.github.com/tauri-apps/tauri/pull/6116)) on 2023-01-23 +- Force colored logs on mobile commands. + - [2c4a0bbd](https://www.github.com/tauri-apps/tauri/commit/2c4a0bbd1fbe15d7500264e6490772397e1917ed) feat(cli): force colored logs on mobile commands ([#5934](https://www.github.com/tauri-apps/tauri/pull/5934)) on 2022-12-28 +- Keep the process alive even when the iOS application is closed. + - [dee9460f](https://www.github.com/tauri-apps/tauri/commit/dee9460f9c9bc92e9c638e7691e616849ac2085b) feat: keep CLI alive when iOS app exits, show logs, closes [#5855](https://www.github.com/tauri-apps/tauri/pull/5855) ([#5902](https://www.github.com/tauri-apps/tauri/pull/5902)) on 2022-12-27 +- Show all application logs on iOS. + - [dee9460f](https://www.github.com/tauri-apps/tauri/commit/dee9460f9c9bc92e9c638e7691e616849ac2085b) feat: keep CLI alive when iOS app exits, show logs, closes [#5855](https://www.github.com/tauri-apps/tauri/pull/5855) ([#5902](https://www.github.com/tauri-apps/tauri/pull/5902)) on 2022-12-27 +- Print log output for all tags on Android development. + - [8cc11149](https://www.github.com/tauri-apps/tauri/commit/8cc111494d74161e489152e52191e1442dd99759) fix(cli): print Android logs for all tags on 2023-01-17 +- Add support to custom and kebab case library names for mobile apps. + - [50f6dd87](https://www.github.com/tauri-apps/tauri/commit/50f6dd87b1ac2c99f8794b055f1acba4ef7d34d3) feat: improvements to support hyphens in crate name ([#5989](https://www.github.com/tauri-apps/tauri/pull/5989)) on 2023-01-06 +- Fix target directory detection when compiling for Android. + - [e873bae0](https://www.github.com/tauri-apps/tauri/commit/e873bae09f0f27517f720a753f51c1dcb903f883) fix(cli): Cargo target dir detection on Android, closes [#5865](https://www.github.com/tauri-apps/tauri/pull/5865) ([#5932](https://www.github.com/tauri-apps/tauri/pull/5932)) on 2022-12-28 + ## \[2.0.0-alpha.1] - Fixes running on device using Xcode 14. diff --git a/tooling/cli/node/package.json b/tooling/cli/node/package.json index 041925677829..38f6caedda3c 100644 --- a/tooling/cli/node/package.json +++ b/tooling/cli/node/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/cli", - "version": "2.0.0-alpha.1", + "version": "2.0.0-alpha.2", "description": "Command line interface for building Tauri apps", "funding": { "type": "opencollective", From 7500a0e23ac652250081807f518134a2dd0bb0d8 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Thu, 2 Feb 2023 18:22:34 -0300 Subject: [PATCH 131/436] chore(ci): use jbolda/covector again The patches we needed have been released! --- .github/workflows/covector-version-or-publish-next.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/covector-version-or-publish-next.yml b/.github/workflows/covector-version-or-publish-next.yml index 4a835376477c..19269c16a8c5 100644 --- a/.github/workflows/covector-version-or-publish-next.yml +++ b/.github/workflows/covector-version-or-publish-next.yml @@ -37,7 +37,7 @@ jobs: git config --global user.email "${{ github.event.pusher.email }}" - name: covector version or publish (publish when no change files present) - uses: lucasfernog/covector/packages/action@patches + uses: jbolda/covector/packages/action@covector-v0 id: covector env: NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }} From 84998532d6921caa56f45370a1d98b7fe8b363c5 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Fri, 3 Feb 2023 08:19:49 -0800 Subject: [PATCH 132/436] fix(ci): use vendored openSSL on the CLI (#6191) --- tooling/cli/Cargo.lock | 1 - tooling/cli/Cargo.toml | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index f2274bc6574f..1af4e72700b8 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -3796,7 +3796,6 @@ dependencies = [ "notify", "notify-debouncer-mini", "once_cell", - "openssl", "os_info", "os_pipe", "regex", diff --git a/tooling/cli/Cargo.toml b/tooling/cli/Cargo.toml index 4c0459ca14a7..e1d8b3dbce84 100644 --- a/tooling/cli/Cargo.toml +++ b/tooling/cli/Cargo.toml @@ -39,7 +39,7 @@ name = "cargo-tauri" path = "src/main.rs" [dependencies] -tauri-mobile = { version = "0.2", default-features = false } +tauri-mobile = { version = "0.2", default-features = false, features = ["openssl-vendored"] } textwrap = { version = "0.11.0", features = [ "term_size" ] } jsonrpsee = { version = "0.16", features = [ "client", "server" ] } thiserror = "1" @@ -92,8 +92,5 @@ winapi = { version = "0.3", features = [ "handleapi", "processenv", "winbase", " [target."cfg(unix)".dependencies] libc = "0.2" -[target."cfg(target_os = \"macos\")".dependencies] -openssl = { version = "0.10", features = [ "vendored" ] } - [profile.release] lto = true From 17f26764c899a150099867d6f553d0bcfe03af8f Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Mon, 6 Feb 2023 03:56:00 -0800 Subject: [PATCH 133/436] feat: initial work for Android plugins (#6167) --- core/tauri-build/Cargo.toml | 1 + core/tauri-build/src/lib.rs | 2 + core/tauri-build/src/mobile.rs | 93 + core/tauri-macros/src/command/handler.rs | 3 +- core/tauri-macros/src/command/wrapper.rs | 4 +- core/tauri-runtime-wry/Cargo.toml | 5 +- core/tauri-runtime-wry/src/lib.rs | 63 +- core/tauri-runtime/Cargo.toml | 3 + core/tauri-runtime/src/lib.rs | 22 + core/tauri-runtime/src/window.rs | 26 + core/tauri/Cargo.toml | 1 + core/tauri/src/app.rs | 74 +- core/tauri/src/hooks.rs | 23 +- core/tauri/src/manager.rs | 31 +- core/tauri/src/plugin.rs | 31 +- core/tauri/src/test/mock_runtime.rs | 25 + core/tauri/src/window.rs | 303 +- examples/api/src-tauri/Cargo.lock | 108 +- examples/api/src-tauri/Cargo.toml | 1 + examples/api/src-tauri/src/lib.rs | 1 + .../src-tauri/tauri-plugin-sample/Cargo.lock | 3169 +++++++++++++++++ .../src-tauri/tauri-plugin-sample/Cargo.toml | 10 + .../tauri-plugin-sample/android/.gitignore | 1 + .../android/build.gradle.kts | 45 + .../android/consumer-rules.pro | 0 .../android/proguard-rules.pro | 21 + .../android/settings.gradle | 2 + .../plugin/test/ExampleInstrumentedTest.kt | 24 + .../android/src/main/AndroidManifest.xml | 4 + .../src/main/java/com/plugin/test/Example.kt | 10 + .../java/com/plugin/test/ExamplePlugin.kt | 19 + .../java/com/plugin/test/ExampleUnitTest.kt | 17 + .../src-tauri/tauri-plugin-sample/build.rs | 11 + .../src-tauri/tauri-plugin-sample/src/lib.rs | 21 + examples/api/src-tauri/tauri.conf.json | 3 +- tooling/cli/mobile/android/.gitignore | 1 + tooling/cli/mobile/android/build.gradle.kts | 44 + tooling/cli/mobile/android/consumer-rules.pro | 0 tooling/cli/mobile/android/proguard-rules.pro | 21 + .../java/app/tauri/ExampleInstrumentedTest.kt | 24 + .../android/src/main/AndroidManifest.xml | 4 + .../android/src/main/java/app/tauri/Logger.kt | 81 + .../plugin/InvalidPluginMethodException.kt | 7 + .../src/main/java/app/tauri/plugin/Invoke.kt | 165 + .../src/main/java/app/tauri/plugin/JSArray.kt | 41 + .../main/java/app/tauri/plugin/JSObject.kt | 146 + .../src/main/java/app/tauri/plugin/Plugin.kt | 7 + .../java/app/tauri/plugin/PluginHandle.kt | 37 + .../java/app/tauri/plugin/PluginManager.kt | 49 + .../java/app/tauri/plugin/PluginMethod.kt | 4 + .../java/app/tauri/plugin/PluginMethodData.kt | 14 + .../java/app/tauri/plugin/PluginResult.kt | 63 + .../test/java/app/tauri/ExampleUnitTest.kt | 17 + tooling/cli/src/mobile/android.rs | 10 + tooling/cli/src/mobile/android/build.rs | 14 +- tooling/cli/src/mobile/android/dev.rs | 12 +- tooling/cli/src/mobile/android/project.rs | 99 +- tooling/cli/src/mobile/mod.rs | 21 +- tooling/cli/src/plugin/init.rs | 66 +- .../cli/templates/mobile/android/.gitignore | 3 + .../mobile/android/app/build.gradle.kts | 1 + .../android/app/src/main/MainActivity.kt | 6 +- .../templates/mobile/android/settings.gradle | 3 + .../cli/templates/plugin/android/.gitignore | 1 + .../templates/plugin/android/build.gradle.kts | 45 + .../plugin/android/consumer-rules.pro | 0 .../plugin/android/proguard-rules.pro | 21 + .../templates/plugin/android/settings.gradle | 2 + .../plugin/test/ExampleInstrumentedTest.kt | 24 + .../android/src/main/AndroidManifest.xml | 4 + .../plugin/android/src/main/Example.kt | 10 + .../plugin/android/src/main/ExamplePlugin.kt | 19 + .../java/com/plugin/test/ExampleUnitTest.kt | 17 + 73 files changed, 5069 insertions(+), 211 deletions(-) create mode 100644 core/tauri-build/src/mobile.rs create mode 100644 examples/api/src-tauri/tauri-plugin-sample/Cargo.lock create mode 100644 examples/api/src-tauri/tauri-plugin-sample/Cargo.toml create mode 100644 examples/api/src-tauri/tauri-plugin-sample/android/.gitignore create mode 100644 examples/api/src-tauri/tauri-plugin-sample/android/build.gradle.kts create mode 100644 examples/api/src-tauri/tauri-plugin-sample/android/consumer-rules.pro create mode 100644 examples/api/src-tauri/tauri-plugin-sample/android/proguard-rules.pro create mode 100644 examples/api/src-tauri/tauri-plugin-sample/android/settings.gradle create mode 100644 examples/api/src-tauri/tauri-plugin-sample/android/src/androidTest/java/com/plugin/test/ExampleInstrumentedTest.kt create mode 100644 examples/api/src-tauri/tauri-plugin-sample/android/src/main/AndroidManifest.xml create mode 100644 examples/api/src-tauri/tauri-plugin-sample/android/src/main/java/com/plugin/test/Example.kt create mode 100644 examples/api/src-tauri/tauri-plugin-sample/android/src/main/java/com/plugin/test/ExamplePlugin.kt create mode 100644 examples/api/src-tauri/tauri-plugin-sample/android/src/test/java/com/plugin/test/ExampleUnitTest.kt create mode 100644 examples/api/src-tauri/tauri-plugin-sample/build.rs create mode 100644 examples/api/src-tauri/tauri-plugin-sample/src/lib.rs create mode 100644 tooling/cli/mobile/android/.gitignore create mode 100644 tooling/cli/mobile/android/build.gradle.kts create mode 100644 tooling/cli/mobile/android/consumer-rules.pro create mode 100644 tooling/cli/mobile/android/proguard-rules.pro create mode 100644 tooling/cli/mobile/android/src/androidTest/java/app/tauri/ExampleInstrumentedTest.kt create mode 100644 tooling/cli/mobile/android/src/main/AndroidManifest.xml create mode 100644 tooling/cli/mobile/android/src/main/java/app/tauri/Logger.kt create mode 100644 tooling/cli/mobile/android/src/main/java/app/tauri/plugin/InvalidPluginMethodException.kt create mode 100644 tooling/cli/mobile/android/src/main/java/app/tauri/plugin/Invoke.kt create mode 100644 tooling/cli/mobile/android/src/main/java/app/tauri/plugin/JSArray.kt create mode 100644 tooling/cli/mobile/android/src/main/java/app/tauri/plugin/JSObject.kt create mode 100644 tooling/cli/mobile/android/src/main/java/app/tauri/plugin/Plugin.kt create mode 100644 tooling/cli/mobile/android/src/main/java/app/tauri/plugin/PluginHandle.kt create mode 100644 tooling/cli/mobile/android/src/main/java/app/tauri/plugin/PluginManager.kt create mode 100644 tooling/cli/mobile/android/src/main/java/app/tauri/plugin/PluginMethod.kt create mode 100644 tooling/cli/mobile/android/src/main/java/app/tauri/plugin/PluginMethodData.kt create mode 100644 tooling/cli/mobile/android/src/main/java/app/tauri/plugin/PluginResult.kt create mode 100644 tooling/cli/mobile/android/src/test/java/app/tauri/ExampleUnitTest.kt create mode 100644 tooling/cli/templates/plugin/android/.gitignore create mode 100644 tooling/cli/templates/plugin/android/build.gradle.kts create mode 100644 tooling/cli/templates/plugin/android/consumer-rules.pro create mode 100644 tooling/cli/templates/plugin/android/proguard-rules.pro create mode 100644 tooling/cli/templates/plugin/android/settings.gradle create mode 100644 tooling/cli/templates/plugin/android/src/androidTest/java/com/plugin/test/ExampleInstrumentedTest.kt create mode 100644 tooling/cli/templates/plugin/android/src/main/AndroidManifest.xml create mode 100644 tooling/cli/templates/plugin/android/src/main/Example.kt create mode 100644 tooling/cli/templates/plugin/android/src/main/ExamplePlugin.kt create mode 100644 tooling/cli/templates/plugin/android/src/test/java/com/plugin/test/ExampleUnitTest.kt diff --git a/core/tauri-build/Cargo.toml b/core/tauri-build/Cargo.toml index eb000f4e771b..540c9dbe3156 100644 --- a/core/tauri-build/Cargo.toml +++ b/core/tauri-build/Cargo.toml @@ -25,6 +25,7 @@ cargo_toml = "0.13" serde_json = "1" heck = "0.4" json-patch = "0.2" +walkdir = "2" [target."cfg(windows)".dependencies] winres = "0.1" diff --git a/core/tauri-build/src/lib.rs b/core/tauri-build/src/lib.rs index b3d157a74ffe..964929c088fe 100644 --- a/core/tauri-build/src/lib.rs +++ b/core/tauri-build/src/lib.rs @@ -13,6 +13,8 @@ use std::path::{Path, PathBuf}; #[cfg(feature = "codegen")] mod codegen; +/// Mobile build functions. +pub mod mobile; #[cfg(windows)] mod static_vcruntime; diff --git a/core/tauri-build/src/mobile.rs b/core/tauri-build/src/mobile.rs new file mode 100644 index 000000000000..8bcef4e76e58 --- /dev/null +++ b/core/tauri-build/src/mobile.rs @@ -0,0 +1,93 @@ +use std::{ + env::var, + fs, + path::{PathBuf, MAIN_SEPARATOR}, +}; + +use anyhow::Result; + +#[derive(Default)] +pub struct PluginBuilder { + android_path: Option, +} + +impl PluginBuilder { + /// Creates a new builder for mobile plugin functionality. + pub fn new() -> Self { + Self::default() + } + + /// Sets the Android project path. + pub fn android_path>(mut self, android_path: P) -> Self { + self.android_path.replace(android_path.into()); + self + } + + /// Injects the mobile templates in the given path relative to the manifest root. + pub fn run(self) -> Result<()> { + let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap(); + if target_os == "android" { + if let Some(path) = self.android_path { + let manifest_dir = var("CARGO_MANIFEST_DIR").map(PathBuf::from).unwrap(); + if let (Ok(out_dir), Ok(gradle_settings_path), Ok(app_build_gradle_path)) = ( + var("TAURI_PLUGIN_OUTPUT_PATH"), + var("TAURI_GRADLE_SETTINGS_PATH"), + var("TAURI_APP_GRADLE_BUILD_PATH"), + ) { + let source = manifest_dir.join(path); + let pkg_name = var("CARGO_PKG_NAME").unwrap(); + + println!("cargo:rerun-if-env-changed=TAURI_PLUGIN_OUTPUT_PATH"); + println!("cargo:rerun-if-env-changed=TAURI_GRADLE_SETTINGS_PATH"); + println!( + "cargo:rerun-if-changed={}{}{}", + out_dir, MAIN_SEPARATOR, pkg_name + ); + println!("cargo:rerun-if-changed={}", gradle_settings_path); + println!("cargo:rerun-if-changed={}", app_build_gradle_path); + + let target = PathBuf::from(out_dir).join(&pkg_name); + let _ = fs::remove_dir_all(&target); + + for entry in walkdir::WalkDir::new(&source) { + let entry = entry?; + let rel_path = entry.path().strip_prefix(&source)?; + let dest_path = target.join(rel_path); + if entry.file_type().is_dir() { + fs::create_dir(dest_path)?; + } else { + fs::copy(entry.path(), dest_path)?; + } + } + + let gradle_settings = fs::read_to_string(&gradle_settings_path)?; + let include = format!( + "include ':{pkg_name}' +project(':{pkg_name}').projectDir = new File('./tauri-plugins/{pkg_name}')" + ); + if !gradle_settings.contains(&include) { + fs::write( + &gradle_settings_path, + &format!("{gradle_settings}\n{include}"), + )?; + } + + let app_build_gradle = fs::read_to_string(&app_build_gradle_path)?; + let implementation = format!(r#"implementation(project(":{pkg_name}"))"#); + let target_implementation = r#"implementation(project(":tauri-android"))"#; + if !app_build_gradle.contains(&implementation) { + fs::write( + &app_build_gradle_path, + app_build_gradle.replace( + target_implementation, + &format!("{target_implementation}\n {implementation}"), + ), + )? + } + } + } + } + + Ok(()) + } +} diff --git a/core/tauri-macros/src/command/handler.rs b/core/tauri-macros/src/command/handler.rs index a170133902dc..89ea708678d5 100644 --- a/core/tauri-macros/src/command/handler.rs +++ b/core/tauri-macros/src/command/handler.rs @@ -59,7 +59,8 @@ impl From for proc_macro::TokenStream { match #cmd { #(stringify!(#commands) => #wrappers!(#paths, #invoke),)* _ => { - #invoke.resolver.reject(format!("command {} not found", #cmd)) + #invoke.resolver.reject(format!("command {} not found", #cmd)); + return false; }, } }) diff --git a/core/tauri-macros/src/command/wrapper.rs b/core/tauri-macros/src/command/wrapper.rs index 6dfa6db3a76f..2c7b4f953cad 100644 --- a/core/tauri-macros/src/command/wrapper.rs +++ b/core/tauri-macros/src/command/wrapper.rs @@ -159,6 +159,7 @@ fn body_async(function: &ItemFn, invoke: &Invoke, case: ArgumentCase) -> syn::Re let kind = (&result).async_kind(); kind.future(result).await }); + return true; } }) } @@ -179,13 +180,14 @@ fn body_blocking( // the body of a `match` to early return any argument that wasn't successful in parsing. let match_body = quote!({ Ok(arg) => arg, - Err(err) => return #resolver.invoke_error(err), + Err(err) => {#resolver.invoke_error(err); return true }, }); Ok(quote! { let result = $path(#(match #args #match_body),*); let kind = (&result).blocking_kind(); kind.block(result, #resolver); + return true; }) } diff --git a/core/tauri-runtime-wry/Cargo.toml b/core/tauri-runtime-wry/Cargo.toml index 6ab46fe07247..eb0e59a4c399 100644 --- a/core/tauri-runtime-wry/Cargo.toml +++ b/core/tauri-runtime-wry/Cargo.toml @@ -13,7 +13,7 @@ exclude = [ "CHANGELOG.md", "/target" ] readme = "README.md" [dependencies] -wry = { version = "0.26.0", default-features = false, features = [ "file-drop", "protocol" ] } +wry = { git = "https://github.com/tauri-apps/wry", branch = "dev", default-features = false, features = [ "file-drop", "protocol" ] } tauri-runtime = { version = "0.13.0-alpha.1", path = "../tauri-runtime" } tauri-utils = { version = "2.0.0-alpha.1", path = "../tauri-utils" } uuid = { version = "1", features = [ "v4" ] } @@ -35,6 +35,9 @@ percent-encoding = "2.1" [target."cfg(any(target_os = \"ios\", target_os = \"macos\"))".dependencies] cocoa = "0.24" +[target."cfg(target_os = \"android\")".dependencies] +jni = "0.20" + [features] dox = [ "wry/dox" ] devtools = [ "wry/devtools", "tauri-runtime/devtools" ] diff --git a/core/tauri-runtime-wry/src/lib.rs b/core/tauri-runtime-wry/src/lib.rs index 81b0cb4015f5..2c6df681ce08 100644 --- a/core/tauri-runtime-wry/src/lib.rs +++ b/core/tauri-runtime-wry/src/lib.rs @@ -66,9 +66,13 @@ use wry::{ pub use wry; pub use wry::application::window::{Window, WindowBuilder as WryWindowBuilder, WindowId}; - #[cfg(windows)] use wry::webview::WebviewExtWindows; +#[cfg(target_os = "android")] +use wry::webview::{ + prelude::{dispatch, find_class}, + WebViewBuilderExtAndroid, WebviewExtAndroid, +}; #[cfg(target_os = "macos")] use tauri_runtime::{menu::NativeImage, ActivationPolicy}; @@ -1161,16 +1165,6 @@ pub struct WryDispatcher { #[allow(clippy::non_send_fields_in_send_ty)] unsafe impl Sync for WryDispatcher {} -impl WryDispatcher { - #[cfg(any(desktop, target_os = "android"))] - pub fn with_webview(&self, f: F) -> Result<()> { - send_user_message( - &self.context, - Message::Window(self.window_id, WindowMessage::WithWebview(Box::new(f))), - ) - } -} - impl Dispatch for WryDispatcher { type Runtime = Wry; type WindowBuilder = WindowBuilderWrapper; @@ -1197,6 +1191,17 @@ impl Dispatch for WryDispatcher { id } + #[cfg(any(desktop, target_os = "android"))] + fn with_webview) + Send + 'static>(&self, f: F) -> Result<()> { + send_user_message( + &self.context, + Message::Window( + self.window_id, + WindowMessage::WithWebview(Box::new(move |webview| f(Box::new(webview)))), + ), + ) + } + #[cfg(any(debug_assertions, feature = "devtools"))] fn open_devtools(&self) { let _ = send_user_message( @@ -1814,6 +1819,26 @@ impl RuntimeHandle for WryHandle { Message::Application(ApplicationMessage::Hide), ) } + + #[cfg(target_os = "android")] + fn find_class<'a>( + &'a self, + env: jni::JNIEnv<'a>, + activity: jni::objects::JObject<'a>, + name: impl Into, + ) -> std::result::Result, jni::errors::Error> { + find_class(env, activity, name.into()) + } + + #[cfg(target_os = "android")] + fn run_on_android_context(&self, f: F) + where + F: FnOnce(jni::JNIEnv<'_>, jni::objects::JObject<'_>, jni::objects::JObject<'_>) + + Send + + 'static, + { + dispatch(f) + } } impl Wry { @@ -2290,7 +2315,6 @@ fn handle_user_message( } #[cfg(target_os = "android")] { - use wry::webview::WebviewExtAndroid; f(w.handle()) } } @@ -2957,6 +2981,8 @@ fn create_webview( url, menu_ids, js_event_listeners, + #[cfg(target_os = "android")] + on_webview_created, .. } = pending; let webview_id_map = context.webview_id_map.clone(); @@ -3066,6 +3092,19 @@ fn create_webview( webview_builder = webview_builder.with_devtools(true); } + #[cfg(target_os = "android")] + { + if let Some(on_webview_created) = on_webview_created { + webview_builder = webview_builder.on_webview_created(move |ctx| { + on_webview_created(tauri_runtime::window::CreationContext { + env: ctx.env, + activity: ctx.activity, + webview: ctx.webview, + }) + }); + } + } + let webview = webview_builder .with_web_context(web_context) .build() diff --git a/core/tauri-runtime/Cargo.toml b/core/tauri-runtime/Cargo.toml index 76052f276d85..27eace6c81dc 100644 --- a/core/tauri-runtime/Cargo.toml +++ b/core/tauri-runtime/Cargo.toml @@ -43,6 +43,9 @@ webview2-com = "0.19.1" [target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies] gtk = { version = "0.16", features = [ "v3_24" ] } +[target."cfg(target_os = \"android\")".dependencies] +jni = "0.20" + [features] devtools = [ ] system-tray = [ ] diff --git a/core/tauri-runtime/src/lib.rs b/core/tauri-runtime/src/lib.rs index 4dbde5901e6d..6cef8289a022 100644 --- a/core/tauri-runtime/src/lib.rs +++ b/core/tauri-runtime/src/lib.rs @@ -362,6 +362,25 @@ pub trait RuntimeHandle: Debug + Clone + Send + Sync + Sized + 'st #[cfg(target_os = "macos")] #[cfg_attr(doc_cfg, doc(cfg(target_os = "macos")))] fn hide(&self) -> Result<()>; + + /// Finds an Android class in the project scope. + #[cfg(target_os = "android")] + fn find_class<'a>( + &'a self, + env: jni::JNIEnv<'a>, + activity: jni::objects::JObject<'a>, + name: impl Into, + ) -> std::result::Result, jni::errors::Error>; + + /// Dispatch a closure to run on the Android context. + /// + /// The closure takes the JNI env, the Android activity instance and the possibly null webview. + #[cfg(target_os = "android")] + fn run_on_android_context(&self, f: F) + where + F: FnOnce(jni::JNIEnv<'_>, jni::objects::JObject<'_>, jni::objects::JObject<'_>) + + Send + + 'static; } /// A global shortcut manager. @@ -486,6 +505,9 @@ pub trait Dispatch: Debug + Clone + Send + Sync + Sized + 'static /// Registers a window event handler. fn on_menu_event(&self, f: F) -> Uuid; + #[cfg(any(desktop, target_os = "android"))] + fn with_webview) + Send + 'static>(&self, f: F) -> Result<()>; + /// Open the web inspector which is usually called devtools. #[cfg(any(debug_assertions, feature = "devtools"))] fn open_devtools(&self); diff --git a/core/tauri-runtime/src/window.rs b/core/tauri-runtime/src/window.rs index c07408b54795..2f59312807fa 100644 --- a/core/tauri-runtime/src/window.rs +++ b/core/tauri-runtime/src/window.rs @@ -208,6 +208,13 @@ impl Default for CursorIcon { } } +#[cfg(target_os = "android")] +pub struct CreationContext<'a> { + pub env: jni::JNIEnv<'a>, + pub activity: jni::objects::JObject<'a>, + pub webview: jni::objects::JObject<'a>, +} + /// A webview window that has yet to be built. pub struct PendingWindow> { /// The label that the window will be named. @@ -232,6 +239,10 @@ pub struct PendingWindow> { /// A HashMap mapping JS event names with associated listener ids. pub js_event_listeners: Arc>>>, + + #[cfg(target_os = "android")] + pub on_webview_created: + Option) -> Result<(), jni::errors::Error> + Send>>, } pub fn is_label_valid(label: &str) -> bool { @@ -271,6 +282,8 @@ impl> PendingWindow { url: "tauri://localhost".to_string(), menu_ids: Arc::new(Mutex::new(menu_ids)), js_event_listeners: Default::default(), + #[cfg(target_os = "android")] + on_webview_created: None, }) } } @@ -300,6 +313,8 @@ impl> PendingWindow { url: "tauri://localhost".to_string(), menu_ids: Arc::new(Mutex::new(menu_ids)), js_event_listeners: Default::default(), + #[cfg(target_os = "android")] + on_webview_created: None, }) } } @@ -326,6 +341,17 @@ impl> PendingWindow { .uri_scheme_protocols .insert(uri_scheme, Box::new(move |data| (protocol)(data))); } + + #[cfg(target_os = "android")] + pub fn on_webview_created< + F: Fn(CreationContext<'_>) -> Result<(), jni::errors::Error> + Send + 'static, + >( + mut self, + f: F, + ) -> Self { + self.on_webview_created.replace(Box::new(f)); + self + } } /// Key for a JS event listener. diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml index 4d9ef4543438..bb7a40a298f1 100644 --- a/core/tauri/Cargo.toml +++ b/core/tauri/Cargo.toml @@ -111,6 +111,7 @@ win7-notifications = { version = "0.3.1", optional = true } [target."cfg(target_os = \"android\")".dependencies] paste = "1.0" log = "0.4" +jni = "0.20" [target."cfg(target_os = \"ios\")".dependencies] log = "0.4" diff --git a/core/tauri/src/app.rs b/core/tauri/src/app.rs index 22463efa9789..eb217182b73e 100644 --- a/core/tauri/src/app.rs +++ b/core/tauri/src/app.rs @@ -366,7 +366,7 @@ impl AssetResolver { #[default_runtime(crate::Wry, wry)] #[derive(Debug)] pub struct AppHandle { - runtime_handle: R::Handle, + pub(crate) runtime_handle: R::Handle, pub(crate) manager: WindowManager, #[cfg(all(desktop, feature = "global-shortcut"))] global_shortcut_manager: R::GlobalShortcutManager, @@ -383,6 +383,74 @@ impl AppHandle { pub(crate) fn create_proxy(&self) -> R::EventLoopProxy { self.runtime_handle.create_proxy() } + + /// Initializes an Android plugin. + #[cfg(target_os = "android")] + pub fn initialize_android_plugin( + &self, + plugin_name: &'static str, + plugin_identifier: &str, + class_name: &str, + ) -> crate::Result<()> { + use jni::{errors::Error as JniError, objects::JObject, JNIEnv}; + + fn initialize_plugin<'a, R: Runtime>( + env: JNIEnv<'a>, + activity: JObject<'a>, + webview: JObject<'a>, + runtime_handle: &R::Handle, + plugin_name: &'static str, + plugin_class: String, + ) -> Result<(), JniError> { + let plugin_manager = env + .call_method( + activity, + "getPluginManager", + format!("()Lapp/tauri/plugin/PluginManager;"), + &[], + )? + .l()?; + + // instantiate plugin + let plugin_class = runtime_handle.find_class(env, activity, plugin_class)?; + let plugin = env.new_object( + plugin_class, + "(Landroid/app/Activity;)V", + &[activity.into()], + )?; + + // load plugin + env.call_method( + plugin_manager, + "load", + format!("(Landroid/webkit/WebView;Ljava/lang/String;Lapp/tauri/plugin/Plugin;)V"), + &[ + webview.into(), + env.new_string(plugin_name)?.into(), + plugin.into(), + ], + )?; + + Ok(()) + } + + let plugin_class = format!("{}/{}", plugin_identifier.replace(".", "/"), class_name); + let runtime_handle = self.runtime_handle.clone(); + self + .runtime_handle + .run_on_android_context(move |env, activity, webview| { + let _ = initialize_plugin::( + env, + activity, + webview, + &runtime_handle, + plugin_name, + plugin_class, + ); + }); + + Ok(()) + } } /// APIs specific to the wry runtime. @@ -1050,7 +1118,7 @@ impl Builder { #[cfg(any(windows, target_os = "linux"))] runtime_any_thread: false, setup: Box::new(|_| Ok(())), - invoke_handler: Box::new(|_| ()), + invoke_handler: Box::new(|_| false), invoke_responder: Arc::new(window_invoke_responder), invoke_initialization_script: "Object.defineProperty(window, '__TAURI_POST_MESSAGE__', { value: (message) => window.ipc.postMessage(JSON.stringify(message)) })".into(), @@ -1102,7 +1170,7 @@ impl Builder { #[must_use] pub fn invoke_handler(mut self, invoke_handler: F) -> Self where - F: Fn(Invoke) + Send + Sync + 'static, + F: Fn(Invoke) -> bool + Send + Sync + 'static, { self.invoke_handler = Box::new(invoke_handler); self diff --git a/core/tauri/src/hooks.rs b/core/tauri/src/hooks.rs index bd2337d69c7a..df80296ec8af 100644 --- a/core/tauri/src/hooks.rs +++ b/core/tauri/src/hooks.rs @@ -19,7 +19,7 @@ pub type SetupHook = Box) -> Result<(), Box> + Send>; /// A closure that is run every time Tauri receives a message it doesn't explicitly handle. -pub type InvokeHandler = dyn Fn(Invoke) + Send + Sync + 'static; +pub type InvokeHandler = dyn Fn(Invoke) -> bool + Send + Sync + 'static; /// A closure that is responsible for respond a JS message. pub type InvokeResponder = @@ -167,6 +167,16 @@ pub struct InvokeResolver { pub(crate) error: CallbackFn, } +impl Clone for InvokeResolver { + fn clone(&self) -> Self { + Self { + window: self.window.clone(), + callback: self.callback, + error: self.error, + } + } +} + impl InvokeResolver { pub(crate) fn new(window: Window, callback: CallbackFn, error: CallbackFn) -> Self { Self { @@ -293,6 +303,17 @@ pub struct InvokeMessage { pub(crate) payload: JsonValue, } +impl Clone for InvokeMessage { + fn clone(&self) -> Self { + Self { + window: self.window.clone(), + state: self.state.clone(), + command: self.command.clone(), + payload: self.payload.clone(), + } + } +} + impl InvokeMessage { /// Create an new [`InvokeMessage`] from a payload send to a window. pub(crate) fn new( diff --git a/core/tauri/src/manager.rs b/core/tauri/src/manager.rs index 48cccf053a1d..2d9deb672e5b 100644 --- a/core/tauri/src/manager.rs +++ b/core/tauri/src/manager.rs @@ -1151,7 +1151,7 @@ mod test { let manager: WindowManager = WindowManager::with_handlers( context, PluginStore::default(), - Box::new(|_| ()), + Box::new(|_| false), Box::new(|_, _| ()), Default::default(), StateManager::new(), @@ -1183,13 +1183,13 @@ impl WindowManager { .on_page_load(window, payload); } - pub fn extend_api(&self, invoke: Invoke) { + pub fn extend_api(&self, plugin: &str, invoke: Invoke) -> bool { self .inner .plugins .lock() .expect("poisoned plugin store") - .extend_api(invoke); + .extend_api(plugin, invoke) } pub fn initialize_plugins(&self, app: &AppHandle) -> crate::Result<()> { @@ -1285,6 +1285,31 @@ impl WindowManager { } } + #[cfg(target_os = "android")] + { + pending = pending.on_webview_created(move |ctx| { + let plugin_manager = ctx + .env + .call_method( + ctx.activity, + "getPluginManager", + format!("()Lapp/tauri/plugin/PluginManager;"), + &[], + )? + .l()?; + + // tell the manager the webview is ready + ctx.env.call_method( + plugin_manager, + "onWebViewCreated", + format!("(Landroid/webkit/WebView;)V"), + &[ctx.webview.into()], + )?; + + Ok(()) + }); + } + if is_local { let label = pending.label.clone(); pending = self.prepare_pending_window( diff --git a/core/tauri/src/plugin.rs b/core/tauri/src/plugin.rs index 6c42d9927d98..fe46334981eb 100644 --- a/core/tauri/src/plugin.rs +++ b/core/tauri/src/plugin.rs @@ -54,7 +54,9 @@ pub trait Plugin: Send { /// Extend commands to [`crate::Builder::invoke_handler`]. #[allow(unused_variables)] - fn extend_api(&mut self, invoke: Invoke) {} + fn extend_api(&mut self, invoke: Invoke) -> bool { + false + } } type SetupHook = dyn FnOnce(&AppHandle) -> Result<()> + Send; @@ -156,7 +158,7 @@ impl Builder { setup: None, setup_with_config: None, js_init_script: None, - invoke_handler: Box::new(|_| ()), + invoke_handler: Box::new(|_| false), on_page_load: Box::new(|_, _| ()), on_webview_ready: Box::new(|_| ()), on_event: Box::new(|_, _| ()), @@ -190,7 +192,7 @@ impl Builder { #[must_use] pub fn invoke_handler(mut self, invoke_handler: F) -> Self where - F: Fn(Invoke) + Send + Sync + 'static, + F: Fn(Invoke) -> bool + Send + Sync + 'static, { self.invoke_handler = Box::new(invoke_handler); self @@ -482,7 +484,7 @@ impl Plugin for TauriPlugin { (self.on_event)(app, event) } - fn extend_api(&mut self, invoke: Invoke) { + fn extend_api(&mut self, invoke: Invoke) -> bool { (self.invoke_handler)(invoke) } } @@ -573,20 +575,15 @@ impl PluginStore { .for_each(|plugin| plugin.on_event(app, event)) } - pub(crate) fn extend_api(&mut self, mut invoke: Invoke) { - let command = invoke.message.command.replace("plugin:", ""); - let mut tokens = command.split('|'); - // safe to unwrap: split always has a least one item - let target = tokens.next().unwrap(); - - if let Some(plugin) = self.store.get_mut(target) { - invoke.message.command = tokens - .next() - .map(|c| c.to_string()) - .unwrap_or_else(String::new); - plugin.extend_api(invoke); + /// Runs the plugin `extend_api` hook if it exists. Returns whether the invoke message was handled or not. + /// + /// The message is not handled when the plugin exists **and** the command does not. + pub(crate) fn extend_api(&mut self, plugin: &str, invoke: Invoke) -> bool { + if let Some(plugin) = self.store.get_mut(plugin) { + plugin.extend_api(invoke) } else { - invoke.resolver.reject(format!("plugin {target} not found")); + invoke.resolver.reject(format!("plugin {plugin} not found")); + true } } } diff --git a/core/tauri/src/test/mock_runtime.rs b/core/tauri/src/test/mock_runtime.rs index 166766a6fc13..c1a046c82442 100644 --- a/core/tauri/src/test/mock_runtime.rs +++ b/core/tauri/src/test/mock_runtime.rs @@ -106,6 +106,26 @@ impl RuntimeHandle for MockRuntimeHandle { fn hide(&self) -> Result<()> { Ok(()) } + + #[cfg(target_os = "android")] + fn find_class<'a>( + &'a self, + env: jni::JNIEnv<'a>, + activity: jni::objects::JObject<'a>, + name: impl Into, + ) -> std::result::Result, jni::errors::Error> { + todo!() + } + + #[cfg(target_os = "android")] + fn run_on_android_context(&self, f: F) + where + F: FnOnce(jni::JNIEnv<'_>, jni::objects::JObject<'_>, jni::objects::JObject<'_>) + + Send + + 'static, + { + todo!() + } } #[derive(Debug, Clone)] @@ -318,6 +338,11 @@ impl Dispatch for MockDispatcher { Uuid::new_v4() } + #[cfg(any(desktop, target_os = "android"))] + fn with_webview) + Send + 'static>(&self, f: F) -> Result<()> { + Ok(()) + } + #[cfg(any(debug_assertions, feature = "devtools"))] fn open_devtools(&self) {} diff --git a/core/tauri/src/window.rs b/core/tauri/src/window.rs index 156bfd21f134..5c9bddfe7c79 100644 --- a/core/tauri/src/window.rs +++ b/core/tauri/src/window.rs @@ -732,77 +732,6 @@ impl PlatformWebview { } } -/// APIs specific to the wry runtime. -#[cfg(feature = "wry")] -impl Window { - /// Executes a closure, providing it with the webview handle that is specific to the current platform. - /// - /// The closure is executed on the main thread. - /// - /// # Examples - /// - /// ```rust,no_run - /// #[cfg(target_os = "macos")] - /// #[macro_use] - /// extern crate objc; - /// use tauri::Manager; - /// - /// fn main() { - /// tauri::Builder::default() - /// .setup(|app| { - /// let main_window = app.get_window("main").unwrap(); - /// main_window.with_webview(|webview| { - /// #[cfg(target_os = "linux")] - /// { - /// // see https://docs.rs/webkit2gtk/0.18.2/webkit2gtk/struct.WebView.html - /// // and https://docs.rs/webkit2gtk/0.18.2/webkit2gtk/trait.WebViewExt.html - /// use webkit2gtk::traits::WebViewExt; - /// webview.inner().set_zoom_level(4.); - /// } - /// - /// #[cfg(windows)] - /// unsafe { - /// // see https://docs.rs/webview2-com/0.19.1/webview2_com/Microsoft/Web/WebView2/Win32/struct.ICoreWebView2Controller.html - /// webview.controller().SetZoomFactor(4.).unwrap(); - /// } - /// - /// #[cfg(target_os = "macos")] - /// unsafe { - /// let () = msg_send![webview.inner(), setPageZoom: 4.]; - /// let () = msg_send![webview.controller(), removeAllUserScripts]; - /// let bg_color: cocoa::base::id = msg_send![class!(NSColor), colorWithDeviceRed:0.5 green:0.2 blue:0.4 alpha:1.]; - /// let () = msg_send![webview.ns_window(), setBackgroundColor: bg_color]; - /// } - /// - /// #[cfg(target_os = "android")] - /// { - /// use jni::objects::JValue; - /// webview.jni_handle().exec(|env, _, webview| { - /// env.call_method(webview, "zoomBy", "(F)V", &[JValue::Float(4.)]).unwrap(); - /// }) - /// } - /// }); - /// Ok(()) - /// }); - /// } - /// ``` - #[cfg(any(desktop, target_os = "android"))] - #[cfg_attr( - doc_cfg, - doc(cfg(all(feature = "wry", any(desktop, target_os = "android")))) - )] - pub fn with_webview( - &self, - f: F, - ) -> crate::Result<()> { - self - .window - .dispatcher - .with_webview(|w| f(PlatformWebview(w))) - .map_err(Into::into) - } -} - /// Base window functions. impl Window { /// Create a new window that is attached to the manager. @@ -873,6 +802,73 @@ impl Window { f(MenuEvent { menu_item_id: id }) }) } + + /// Executes a closure, providing it with the webview handle that is specific to the current platform. + /// + /// The closure is executed on the main thread. + /// + /// # Examples + /// + /// ```rust,no_run + /// #[cfg(target_os = "macos")] + /// #[macro_use] + /// extern crate objc; + /// use tauri::Manager; + /// + /// fn main() { + /// tauri::Builder::default() + /// .setup(|app| { + /// let main_window = app.get_window("main").unwrap(); + /// main_window.with_webview(|webview| { + /// #[cfg(target_os = "linux")] + /// { + /// // see https://docs.rs/webkit2gtk/0.18.2/webkit2gtk/struct.WebView.html + /// // and https://docs.rs/webkit2gtk/0.18.2/webkit2gtk/trait.WebViewExt.html + /// use webkit2gtk::traits::WebViewExt; + /// webview.inner().set_zoom_level(4.); + /// } + /// + /// #[cfg(windows)] + /// unsafe { + /// // see https://docs.rs/webview2-com/0.19.1/webview2_com/Microsoft/Web/WebView2/Win32/struct.ICoreWebView2Controller.html + /// webview.controller().SetZoomFactor(4.).unwrap(); + /// } + /// + /// #[cfg(target_os = "macos")] + /// unsafe { + /// let () = msg_send![webview.inner(), setPageZoom: 4.]; + /// let () = msg_send![webview.controller(), removeAllUserScripts]; + /// let bg_color: cocoa::base::id = msg_send![class!(NSColor), colorWithDeviceRed:0.5 green:0.2 blue:0.4 alpha:1.]; + /// let () = msg_send![webview.ns_window(), setBackgroundColor: bg_color]; + /// } + /// + /// #[cfg(target_os = "android")] + /// { + /// use jni::objects::JValue; + /// webview.jni_handle().exec(|env, _, webview| { + /// env.call_method(webview, "zoomBy", "(F)V", &[JValue::Float(4.)]).unwrap(); + /// }) + /// } + /// }); + /// Ok(()) + /// }); + /// } + /// ``` + #[cfg(all(feature = "wry", any(desktop, target_os = "android")))] + #[cfg_attr( + doc_cfg, + doc(all(feature = "wry", any(desktop, target_os = "android"))) + )] + pub fn with_webview( + &self, + f: F, + ) -> crate::Result<()> { + self + .window + .dispatcher + .with_webview(|w| f(PlatformWebview(*w.downcast().unwrap()))) + .map_err(Into::into) + } } /// Window getters. @@ -1303,9 +1299,10 @@ impl Window { payload.cmd.to_string(), payload.inner, ); - let resolver = InvokeResolver::new(self, payload.callback, payload.error); + #[allow(clippy::redundant_clone)] + let resolver = InvokeResolver::new(self.clone(), payload.callback, payload.error); - let invoke = Invoke { message, resolver }; + let mut invoke = Invoke { message, resolver }; if let Some(module) = &payload.tauri_module { crate::endpoints::handle( module.to_string(), @@ -1314,7 +1311,165 @@ impl Window { manager.package_info(), ); } else if payload.cmd.starts_with("plugin:") { - manager.extend_api(invoke); + let command = invoke.message.command.replace("plugin:", ""); + let mut tokens = command.split('|'); + // safe to unwrap: split always has a least one item + let plugin = tokens.next().unwrap(); + invoke.message.command = tokens + .next() + .map(|c| c.to_string()) + .unwrap_or_else(String::new); + + #[cfg(target_os = "android")] + let (message, resolver) = (invoke.message.clone(), invoke.resolver.clone()); + + #[allow(unused_variables)] + let handled = manager.extend_api(plugin, invoke); + + #[cfg(target_os = "android")] + { + if !handled { + let runtime_handle = self.app_handle.runtime_handle.clone(); + let plugin = plugin.to_string(); + self.with_webview(move |webview| { + webview.jni_handle().exec(move |env, activity, webview| { + use crate::api::ipc::CallbackFn; + use jni::{ + errors::Error as JniError, + objects::{JObject, JValue}, + JNIEnv, + }; + use serde_json::Value as JsonValue; + + fn json_to_java<'a, R: Runtime>( + env: JNIEnv<'a>, + activity: JObject<'a>, + runtime_handle: &R::Handle, + json: JsonValue, + ) -> Result<(&'static str, JValue<'a>), JniError> { + let (class, v) = match json { + JsonValue::Null => ("Ljava/lang/Object;", JObject::null().into()), + JsonValue::Bool(val) => ("Z", val.into()), + JsonValue::Number(val) => { + if let Some(v) = val.as_i64() { + ("J", v.into()) + } else if let Some(v) = val.as_f64() { + ("D", v.into()) + } else { + ("Ljava/lang/Object;", JObject::null().into()) + } + } + JsonValue::String(val) => ( + "Ljava/lang/Object;", + JObject::from(env.new_string(&val)?).into(), + ), + JsonValue::Array(val) => { + let js_array_class = + runtime_handle.find_class(env, activity, "app/tauri/plugin/JSArray")?; + let data = env.new_object(js_array_class, "()V", &[])?; + + for v in val { + let (signature, val) = + json_to_java::(env, activity, runtime_handle, v)?; + env.call_method( + data, + "put", + format!("({signature})Lorg/json/JSONArray;"), + &[val], + )?; + } + + ("Ljava/lang/Object;", data.into()) + } + JsonValue::Object(val) => { + let js_object_class = + runtime_handle.find_class(env, activity, "app/tauri/plugin/JSObject")?; + let data = env.new_object(js_object_class, "()V", &[])?; + + for (key, value) in val { + let (signature, val) = + json_to_java::(env, activity, runtime_handle, value)?; + env.call_method( + data, + "put", + format!("(Ljava/lang/String;{signature})Lapp/tauri/plugin/JSObject;"), + &[env.new_string(&key)?.into(), val], + )?; + } + + ("Ljava/lang/Object;", data.into()) + } + }; + Ok((class, v)) + } + + fn to_jsobject<'a, R: Runtime>( + env: JNIEnv<'a>, + activity: JObject<'a>, + runtime_handle: &R::Handle, + json: JsonValue, + ) -> Result, JniError> { + if let JsonValue::Object(_) = &json { + json_to_java::(env, activity, runtime_handle, json) + .map(|(_class, data)| data) + } else { + Ok(JObject::null().into()) + } + } + + fn handle_message( + plugin: &str, + runtime_handle: &R::Handle, + message: InvokeMessage, + callback: CallbackFn, + error: CallbackFn, + env: JNIEnv<'_>, + activity: JObject<'_>, + webview: JObject<'_>, + ) -> Result<(), JniError> { + let data = to_jsobject::(env, activity, runtime_handle, message.payload)?; + let plugin_manager = env + .call_method( + activity, + "getPluginManager", + "()Lapp/tauri/plugin/PluginManager;", + &[], + )? + .l()?; + + env.call_method( + plugin_manager, + "postMessage", + "(Landroid/webkit/WebView;Ljava/lang/String;Ljava/lang/String;Lapp/tauri/plugin/JSObject;JJ)V", + &[ + webview.into(), + env.new_string(plugin)?.into(), + env.new_string(&message.command)?.into(), + data.into(), + (callback.0 as i64).into(), + (error.0 as i64).into(), + ], + )?; + + Ok(()) + } + + if let Err(e) = handle_message( + &plugin, + &runtime_handle, + message, + resolver.callback, + resolver.error, + env, + activity, + webview, + ) { + resolver.reject(format!("failed to reach Android layer: {e}")); + } + }); + })?; + } + } } else { manager.run_invoke_handler(invoke); } diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index c54d484e6c57..47038bde574e 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -101,6 +101,7 @@ dependencies = [ "tauri", "tauri-build", "tauri-plugin-log", + "tauri-plugin-sample", "tiny_http", "window-shadows", "window-vibrancy", @@ -2465,8 +2466,9 @@ dependencies = [ [[package]] name = "rfd" -version = "0.10.0" -source = "git+https://github.com/PolyMeilex/rfd#c2ea907bbcd055239d615cd8029a86089494bddc" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc2583255eadc4e0d816cb7648371cc91e49cbac85b0748b6ab417093bff4040" dependencies = [ "block", "dispatch", @@ -2482,7 +2484,7 @@ dependencies = [ "wasm-bindgen", "wasm-bindgen-futures", "web-sys", - "windows 0.43.0", + "windows 0.44.0", ] [[package]] @@ -2956,7 +2958,7 @@ dependencies = [ [[package]] name = "tauri" -version = "2.0.0-alpha.2" +version = "2.0.0-alpha.3" dependencies = [ "anyhow", "attohttpc", @@ -2977,6 +2979,7 @@ dependencies = [ "ico", "ignore", "infer 0.9.0", + "jni", "libc", "log", "minisign-verify", @@ -3021,7 +3024,7 @@ dependencies = [ [[package]] name = "tauri-build" -version = "2.0.0-alpha.0" +version = "2.0.0-alpha.1" dependencies = [ "anyhow", "cargo_toml", @@ -3032,12 +3035,13 @@ dependencies = [ "serde_json", "tauri-codegen", "tauri-utils", + "walkdir", "winres", ] [[package]] name = "tauri-codegen" -version = "2.0.0-alpha.0" +version = "2.0.0-alpha.1" dependencies = [ "base64", "brotli", @@ -3062,7 +3066,7 @@ dependencies = [ [[package]] name = "tauri-macros" -version = "2.0.0-alpha.0" +version = "2.0.0-alpha.1" dependencies = [ "heck 0.4.0", "proc-macro2", @@ -3089,13 +3093,22 @@ dependencies = [ "time", ] +[[package]] +name = "tauri-plugin-sample" +version = "0.1.0" +dependencies = [ + "tauri", + "tauri-build", +] + [[package]] name = "tauri-runtime" -version = "0.13.0-alpha.0" +version = "0.13.0-alpha.1" dependencies = [ "gtk", "http", "http-range", + "jni", "rand 0.8.5", "raw-window-handle", "serde", @@ -3109,10 +3122,11 @@ dependencies = [ [[package]] name = "tauri-runtime-wry" -version = "0.13.0-alpha.0" +version = "0.13.0-alpha.1" dependencies = [ "cocoa", "gtk", + "jni", "percent-encoding", "rand 0.8.5", "raw-window-handle", @@ -3127,7 +3141,7 @@ dependencies = [ [[package]] name = "tauri-utils" -version = "2.0.0-alpha.0" +version = "2.0.0-alpha.1" dependencies = [ "aes-gcm", "brotli", @@ -3654,9 +3668,9 @@ dependencies = [ [[package]] name = "webkit2gtk" -version = "0.19.1" +version = "0.19.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50668f506786de0e8c2542a07c4720effbd6e58be11746f2b451875d048d7f56" +checksum = "d8eea819afe15eb8dcdff4f19d8bfda540bae84d874c10e6f4b8faf2d6704bd1" dependencies = [ "bitflags", "cairo-rs", @@ -3828,17 +3842,11 @@ dependencies = [ [[package]] name = "windows" -version = "0.43.0" +version = "0.44.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04662ed0e3e5630dfa9b26e4cb823b817f1a9addda855d973a9458c236556244" +checksum = "9e745dab35a0c4c77aa3ce42d595e13d2003d6902d6b08c9ef5fc326d08da12b" dependencies = [ - "windows_aarch64_gnullvm", - "windows_aarch64_msvc 0.42.0", - "windows_i686_gnu 0.42.0", - "windows_i686_msvc 0.42.0", - "windows_x86_64_gnu 0.42.0", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc 0.42.0", + "windows-targets", ] [[package]] @@ -3887,12 +3895,27 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" dependencies = [ "windows_aarch64_gnullvm", - "windows_aarch64_msvc 0.42.0", - "windows_i686_gnu 0.42.0", - "windows_i686_msvc 0.42.0", - "windows_x86_64_gnu 0.42.0", + "windows_aarch64_msvc 0.42.1", + "windows_i686_gnu 0.42.1", + "windows_i686_msvc 0.42.1", + "windows_x86_64_gnu 0.42.1", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc 0.42.1", +] + +[[package]] +name = "windows-targets" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e2522491fbfcd58cc84d47aeb2958948c4b8982e9a2d8a2a35bbaed431390e7" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc 0.42.1", + "windows_i686_gnu 0.42.1", + "windows_i686_msvc 0.42.1", + "windows_x86_64_gnu 0.42.1", "windows_x86_64_gnullvm", - "windows_x86_64_msvc 0.42.0", + "windows_x86_64_msvc 0.42.1", ] [[package]] @@ -3903,9 +3926,9 @@ checksum = "f838de2fe15fe6bac988e74b798f26499a8b21a9d97edec321e79b28d1d7f597" [[package]] name = "windows_aarch64_gnullvm" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41d2aa71f6f0cbe00ae5167d90ef3cfe66527d6f613ca78ac8024c3ccab9a19e" +checksum = "8c9864e83243fdec7fc9c5444389dcbbfd258f745e7853198f365e3c4968a608" [[package]] name = "windows_aarch64_msvc" @@ -3927,9 +3950,9 @@ checksum = "ec7711666096bd4096ffa835238905bb33fb87267910e154b18b44eaabb340f2" [[package]] name = "windows_aarch64_msvc" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd0f252f5a35cac83d6311b2e795981f5ee6e67eb1f9a7f64eb4500fbc4dcdb4" +checksum = "4c8b1b673ffc16c47a9ff48570a9d85e25d265735c503681332589af6253c6c7" [[package]] name = "windows_i686_gnu" @@ -3951,9 +3974,9 @@ checksum = "763fc57100a5f7042e3057e7e8d9bdd7860d330070251a73d003563a3bb49e1b" [[package]] name = "windows_i686_gnu" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbeae19f6716841636c28d695375df17562ca208b2b7d0dc47635a50ae6c5de7" +checksum = "de3887528ad530ba7bdbb1faa8275ec7a1155a45ffa57c37993960277145d640" [[package]] name = "windows_i686_msvc" @@ -3975,9 +3998,9 @@ checksum = "7bc7cbfe58828921e10a9f446fcaaf649204dcfe6c1ddd712c5eebae6bda1106" [[package]] name = "windows_i686_msvc" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84c12f65daa39dd2babe6e442988fc329d6243fdce47d7d2d155b8d874862246" +checksum = "bf4d1122317eddd6ff351aa852118a2418ad4214e6613a50e0191f7004372605" [[package]] name = "windows_x86_64_gnu" @@ -3999,15 +4022,15 @@ checksum = "6868c165637d653ae1e8dc4d82c25d4f97dd6605eaa8d784b5c6e0ab2a252b65" [[package]] name = "windows_x86_64_gnu" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf7b1b21b5362cbc318f686150e5bcea75ecedc74dd157d874d754a2ca44b0ed" +checksum = "c1040f221285e17ebccbc2591ffdc2d44ee1f9186324dd3e84e99ac68d699c45" [[package]] name = "windows_x86_64_gnullvm" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09d525d2ba30eeb3297665bd434a54297e4170c7f1a44cad4ef58095b4cd2028" +checksum = "628bfdf232daa22b0d64fdb62b09fcc36bb01f05a3939e20ab73aaf9470d0463" [[package]] name = "windows_x86_64_msvc" @@ -4029,9 +4052,9 @@ checksum = "5e4d40883ae9cae962787ca76ba76390ffa29214667a111db9e0a1ad8377e809" [[package]] name = "windows_x86_64_msvc" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5" +checksum = "447660ad36a13288b1db4d4248e857b510e8c3a225c822ba4fb748c0aafecffd" [[package]] name = "winreg" @@ -4053,9 +4076,8 @@ dependencies = [ [[package]] name = "wry" -version = "0.25.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "164aae72fb3759aa178ebb274c572728a871abce011e53821e9468335314fe00" +version = "0.26.0" +source = "git+https://github.com/tauri-apps/wry?branch=dev#a9e186cab4456d7ac2c265e61e71b345f7d269c4" dependencies = [ "base64", "block", diff --git a/examples/api/src-tauri/Cargo.toml b/examples/api/src-tauri/Cargo.toml index eecf650f3e77..768b4e1433ed 100644 --- a/examples/api/src-tauri/Cargo.toml +++ b/examples/api/src-tauri/Cargo.toml @@ -18,6 +18,7 @@ serde = { version = "1.0", features = [ "derive" ] } tiny_http = "0.11" log = "0.4" tauri-plugin-log = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "next" } +tauri-plugin-sample = { path = "./tauri-plugin-sample/" } [patch.'https://github.com/tauri-apps/tauri'] tauri = { path = "../../../core/tauri" } diff --git a/examples/api/src-tauri/src/lib.rs b/examples/api/src-tauri/src/lib.rs index b44c207ff6ca..173b37cf0f3e 100644 --- a/examples/api/src-tauri/src/lib.rs +++ b/examples/api/src-tauri/src/lib.rs @@ -65,6 +65,7 @@ impl AppBuilder { .level(log::LevelFilter::Info) .build(), ) + .plugin(tauri_plugin_sample::init()) .setup(move |app| { if let Some(setup) = setup { (setup)(app)?; diff --git a/examples/api/src-tauri/tauri-plugin-sample/Cargo.lock b/examples/api/src-tauri/tauri-plugin-sample/Cargo.lock new file mode 100644 index 000000000000..9dd0abc81860 --- /dev/null +++ b/examples/api/src-tauri/tauri-plugin-sample/Cargo.lock @@ -0,0 +1,3169 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "adler" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" + +[[package]] +name = "aho-corasick" +version = "0.7.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac" +dependencies = [ + "memchr", +] + +[[package]] +name = "alloc-no-stdlib" +version = "2.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3" + +[[package]] +name = "alloc-stdlib" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece" +dependencies = [ + "alloc-no-stdlib", +] + +[[package]] +name = "android_log-sys" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85965b6739a430150bdd138e2374a98af0c3ee0d030b3bb7fc3bddff58d0102e" + +[[package]] +name = "android_logger" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ec2333c185d826313162cee39d3fcc6a84ba08114a839bebf53b961e7e75773" +dependencies = [ + "android_log-sys", + "env_logger", + "lazy_static", + "log", +] + +[[package]] +name = "anyhow" +version = "1.0.68" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2cb2f989d18dd141ab8ae82f64d1a8cdd37e0840f73a406896cf5e99502fab61" + +[[package]] +name = "atk" +version = "0.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c3d816ce6f0e2909a96830d6911c2aff044370b1ef92d7f267b43bae5addedd" +dependencies = [ + "atk-sys", + "bitflags", + "glib", + "libc", +] + +[[package]] +name = "atk-sys" +version = "0.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58aeb089fb698e06db8089971c7ee317ab9644bade33383f63631437b03aafb6" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps 6.0.3", +] + +[[package]] +name = "attohttpc" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b85f766c20e6ae766956f7a2fcc4e0931e79a7e1f48b29132b5d647021114914" +dependencies = [ + "flate2", + "http", + "log", + "serde", + "serde_json", + "serde_urlencoded", + "url", +] + +[[package]] +name = "autocfg" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" + +[[package]] +name = "base64" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "block" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a" + +[[package]] +name = "block-buffer" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cce20737498f97b993470a6e536b8523f0af7892a4f928cceb1ac5e52ebe7e" +dependencies = [ + "generic-array", +] + +[[package]] +name = "brotli" +version = "3.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1a0b1dbcc8ae29329621f8d4f0d835787c1c38bb1401979b49d13b0b305ff68" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", + "brotli-decompressor", +] + +[[package]] +name = "brotli-decompressor" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ad2d4653bf5ca36ae797b1f4bb4dbddb60ce49ca4aed8a2ce4829f60425b80" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", +] + +[[package]] +name = "bstr" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b45ea9b00a7b3f2988e9a65ad3917e62123c38dba709b666506207be96d1790b" +dependencies = [ + "memchr", + "serde", +] + +[[package]] +name = "bytemuck" +version = "1.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aaa3a8d9a1ca92e282c96a32d6511b695d7d994d1d102ba85d279f9b2756947f" + +[[package]] +name = "byteorder" +version = "1.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" + +[[package]] +name = "bytes" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfb24e866b15a1af2a1b663f10c6b6b8f397a84aadb828f12e5b289ec23a3a3c" + +[[package]] +name = "cairo-rs" +version = "0.15.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c76ee391b03d35510d9fa917357c7f1855bd9a6659c95a1b392e33f49b3369bc" +dependencies = [ + "bitflags", + "cairo-sys-rs", + "glib", + "libc", + "thiserror", +] + +[[package]] +name = "cairo-sys-rs" +version = "0.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c55d429bef56ac9172d25fecb85dc8068307d17acd74b377866b7a1ef25d3c8" +dependencies = [ + "glib-sys", + "libc", + "system-deps 6.0.3", +] + +[[package]] +name = "cc" +version = "1.0.78" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a20104e2335ce8a659d6dd92a51a767a0c062599c73b343fd152cb401e828c3d" + +[[package]] +name = "cesu8" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" + +[[package]] +name = "cfb" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74f89d248799e3f15f91b70917f65381062a01bb8e222700ea0e5a7ff9785f9c" +dependencies = [ + "byteorder", + "uuid 0.8.2", +] + +[[package]] +name = "cfg-expr" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3431df59f28accaf4cb4eed4a9acc66bea3f3c3753aa6cdc2f024174ef232af7" +dependencies = [ + "smallvec", +] + +[[package]] +name = "cfg-expr" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0357a6402b295ca3a86bc148e84df46c02e41f41fef186bda662557ef6328aa" +dependencies = [ + "smallvec", +] + +[[package]] +name = "cfg-if" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" + +[[package]] +name = "cocoa" +version = "0.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f425db7937052c684daec3bd6375c8abe2d146dca4b8b143d6db777c39138f3a" +dependencies = [ + "bitflags", + "block", + "cocoa-foundation", + "core-foundation", + "core-graphics", + "foreign-types", + "libc", + "objc", +] + +[[package]] +name = "cocoa-foundation" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ade49b65d560ca58c403a479bb396592b155c0185eada742ee323d1d68d6318" +dependencies = [ + "bitflags", + "block", + "core-foundation", + "core-graphics-types", + "foreign-types", + "libc", + "objc", +] + +[[package]] +name = "color_quant" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b" + +[[package]] +name = "combine" +version = "4.6.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35ed6e9d84f0b51a7f52daf1c7d71dd136fd7a3f41a8462b8cdb8c78d920fad4" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "convert_case" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" + +[[package]] +name = "core-foundation" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "194a7a9e6de53fa55116934067c844d9d749312f75c6f6d0980e8c252f8c2146" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc" + +[[package]] +name = "core-graphics" +version = "0.22.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2581bbab3b8ffc6fcbd550bf46c355135d16e9ff2a6ea032ad6b9bf1d7efe4fb" +dependencies = [ + "bitflags", + "core-foundation", + "core-graphics-types", + "foreign-types", + "libc", +] + +[[package]] +name = "core-graphics-types" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a68b68b3446082644c91ac778bf50cd4104bfb002b5a6a7c44cca5a2c70788b" +dependencies = [ + "bitflags", + "core-foundation", + "foreign-types", + "libc", +] + +[[package]] +name = "cpufeatures" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28d997bd5e24a5928dd43e46dc529867e207907fe0b239c3477d924f7f2ca320" +dependencies = [ + "libc", +] + +[[package]] +name = "crc32fast" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "crossbeam-channel" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2dd04ddaf88237dc3b8d8f9a3c1004b506b54b3313403944054d23c0870c521" +dependencies = [ + "cfg-if", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fb766fa798726286dbbb842f174001dab8abc7b627a1dd86e0b7222a95d929f" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "crypto-common" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" +dependencies = [ + "generic-array", + "typenum", +] + +[[package]] +name = "cssparser" +version = "0.27.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "754b69d351cdc2d8ee09ae203db831e005560fc6030da058f86ad60c92a9cb0a" +dependencies = [ + "cssparser-macros", + "dtoa-short", + "itoa 0.4.8", + "matches", + "phf 0.8.0", + "proc-macro2", + "quote", + "smallvec", + "syn", +] + +[[package]] +name = "cssparser-macros" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfae75de57f2b2e85e8768c3ea840fd159c8f33e2b6522c7835b7abac81be16e" +dependencies = [ + "quote", + "syn", +] + +[[package]] +name = "ctor" +version = "0.1.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d2301688392eb071b0bf1a37be05c469d3cc4dbbd95df672fe28ab021e6a096" +dependencies = [ + "quote", + "syn", +] + +[[package]] +name = "cty" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b365fabc795046672053e29c954733ec3b05e4be654ab130fe8f1f94d7051f35" + +[[package]] +name = "darling" +version = "0.13.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a01d95850c592940db9b8194bc39f4bc0e89dee5c4265e4b1807c34a9aba453c" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.13.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "859d65a907b6852c9361e3185c862aae7fafd2887876799fa55f5f99dc40d610" +dependencies = [ + "fnv", + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn", +] + +[[package]] +name = "darling_macro" +version = "0.13.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c972679f83bdf9c42bd905396b6c3588a843a17f0f16dfcfa3e2c5d57441835" +dependencies = [ + "darling_core", + "quote", + "syn", +] + +[[package]] +name = "dashmap" +version = "5.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "907076dfda823b0b36d2a1bb5f90c96660a5bbcd7729e10727f07858f22c4edc" +dependencies = [ + "cfg-if", + "hashbrown", + "lock_api", + "once_cell", + "parking_lot_core", +] + +[[package]] +name = "derive_more" +version = "0.99.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fb810d30a7c1953f91334de7244731fc3f3c10d7fe163338a35b9f640960321" +dependencies = [ + "convert_case", + "proc-macro2", + "quote", + "rustc_version 0.4.0", + "syn", +] + +[[package]] +name = "digest" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8168378f4e5023e7218c89c891c0fd8ecdb5e5e4f18cb78f38cf245dd021e76f" +dependencies = [ + "block-buffer", + "crypto-common", +] + +[[package]] +name = "dirs-next" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1" +dependencies = [ + "cfg-if", + "dirs-sys-next", +] + +[[package]] +name = "dirs-sys-next" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d" +dependencies = [ + "libc", + "redox_users", + "winapi", +] + +[[package]] +name = "dispatch" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b" + +[[package]] +name = "dtoa" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56899898ce76aaf4a0f24d914c97ea6ed976d42fec6ad33fcbb0a1103e07b2b0" + +[[package]] +name = "dtoa-short" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bde03329ae10e79ede66c9ce4dc930aa8599043b0743008548680f25b91502d6" +dependencies = [ + "dtoa", +] + +[[package]] +name = "dunce" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bd4b30a6560bbd9b4620f4de34c3f14f60848e58a9b7216801afcb4c7b31c3c" + +[[package]] +name = "embed_plist" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7" + +[[package]] +name = "encoding_rs" +version = "0.8.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9852635589dc9f9ea1b6fe9f05b50ef208c85c834a562f0c6abb1c475736ec2b" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "env_logger" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36" +dependencies = [ + "log", + "regex", +] + +[[package]] +name = "fastrand" +version = "1.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7a407cfaa3385c4ae6b23e84623d48c2798d06e3e6a1878f7f59f17b3f86499" +dependencies = [ + "instant", +] + +[[package]] +name = "field-offset" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e1c54951450cbd39f3dbcf1005ac413b49487dabf18a720ad2383eccfeffb92" +dependencies = [ + "memoffset", + "rustc_version 0.3.3", +] + +[[package]] +name = "filetime" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e884668cd0c7480504233e951174ddc3b382f7c2666e3b7310b5c4e7b0c37f9" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "windows-sys", +] + +[[package]] +name = "flate2" +version = "1.0.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8a2db397cb1c8772f31494cb8917e48cd1e64f0fa7efac59fbd741a0a8ce841" +dependencies = [ + "crc32fast", + "miniz_oxide", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foreign-types" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" +dependencies = [ + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-shared" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" + +[[package]] +name = "form_urlencoded" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9c384f161156f5260c24a097c56119f9be8c798586aecc13afbcbe7b7e26bf8" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "futf" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df420e2e84819663797d1ec6544b13c5be84629e7bb00dc960d6917db2987843" +dependencies = [ + "mac", + "new_debug_unreachable", +] + +[[package]] +name = "futures-channel" +version = "0.3.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ba265a92256105f45b719605a571ffe2d1f0fea3807304b522c1d778f79eed" +dependencies = [ + "futures-core", +] + +[[package]] +name = "futures-core" +version = "0.3.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04909a7a7e4633ae6c4a9ab280aeb86da1236243a77b694a49eacd659a4bd3ac" + +[[package]] +name = "futures-executor" +version = "0.3.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7acc85df6714c176ab5edf386123fafe217be88c0840ec11f199441134a074e2" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00f5fb52a06bdcadeb54e8d3671f8888a39697dcb0b81b23b55174030427f4eb" + +[[package]] +name = "futures-macro" +version = "0.3.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdfb8ce053d86b91919aad980c220b1fb8401a9394410e1c289ed7e66b61835d" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "futures-task" +version = "0.3.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ffb393ac5d9a6eaa9d3fdf37ae2776656b706e200c8e16b1bdb227f5198e6ea" + +[[package]] +name = "futures-util" +version = "0.3.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "197676987abd2f9cadff84926f410af1c183608d36641465df73ae8211dc65d6" +dependencies = [ + "futures-core", + "futures-macro", + "futures-task", + "pin-project-lite", + "pin-utils", + "slab", +] + +[[package]] +name = "fxhash" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c" +dependencies = [ + "byteorder", +] + +[[package]] +name = "gdk" +version = "0.15.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6e05c1f572ab0e1f15be94217f0dc29088c248b14f792a5ff0af0d84bcda9e8" +dependencies = [ + "bitflags", + "cairo-rs", + "gdk-pixbuf", + "gdk-sys", + "gio", + "glib", + "libc", + "pango", +] + +[[package]] +name = "gdk-pixbuf" +version = "0.15.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad38dd9cc8b099cceecdf41375bb6d481b1b5a7cd5cd603e10a69a9383f8619a" +dependencies = [ + "bitflags", + "gdk-pixbuf-sys", + "gio", + "glib", + "libc", +] + +[[package]] +name = "gdk-pixbuf-sys" +version = "0.15.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "140b2f5378256527150350a8346dbdb08fadc13453a7a2d73aecd5fab3c402a7" +dependencies = [ + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "system-deps 6.0.3", +] + +[[package]] +name = "gdk-sys" +version = "0.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32e7a08c1e8f06f4177fb7e51a777b8c1689f743a7bc11ea91d44d2226073a88" +dependencies = [ + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "pango-sys", + "pkg-config", + "system-deps 6.0.3", +] + +[[package]] +name = "gdkx11-sys" +version = "0.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4b7f8c7a84b407aa9b143877e267e848ff34106578b64d1e0a24bf550716178" +dependencies = [ + "gdk-sys", + "glib-sys", + "libc", + "system-deps 6.0.3", + "x11", +] + +[[package]] +name = "generator" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d266041a359dfa931b370ef684cceb84b166beb14f7f0421f4a6a3d0c446d12e" +dependencies = [ + "cc", + "libc", + "log", + "rustversion", + "windows", +] + +[[package]] +name = "generic-array" +version = "0.14.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bff49e947297f3312447abdca79f45f4738097cc82b06e72054d2223f601f1b9" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "getrandom" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" +dependencies = [ + "cfg-if", + "libc", + "wasi 0.9.0+wasi-snapshot-preview1", +] + +[[package]] +name = "getrandom" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31" +dependencies = [ + "cfg-if", + "libc", + "wasi 0.11.0+wasi-snapshot-preview1", +] + +[[package]] +name = "gio" +version = "0.15.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68fdbc90312d462781a395f7a16d96a2b379bb6ef8cd6310a2df272771c4283b" +dependencies = [ + "bitflags", + "futures-channel", + "futures-core", + "futures-io", + "gio-sys", + "glib", + "libc", + "once_cell", + "thiserror", +] + +[[package]] +name = "gio-sys" +version = "0.15.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32157a475271e2c4a023382e9cab31c4584ee30a97da41d3c4e9fdd605abcf8d" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps 6.0.3", + "winapi", +] + +[[package]] +name = "glib" +version = "0.15.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edb0306fbad0ab5428b0ca674a23893db909a98582969c9b537be4ced78c505d" +dependencies = [ + "bitflags", + "futures-channel", + "futures-core", + "futures-executor", + "futures-task", + "glib-macros", + "glib-sys", + "gobject-sys", + "libc", + "once_cell", + "smallvec", + "thiserror", +] + +[[package]] +name = "glib-macros" +version = "0.15.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25a68131a662b04931e71891fb14aaf65ee4b44d08e8abc10f49e77418c86c64" +dependencies = [ + "anyhow", + "heck 0.4.0", + "proc-macro-crate", + "proc-macro-error", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "glib-sys" +version = "0.15.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef4b192f8e65e9cf76cbf4ea71fa8e3be4a0e18ffe3d68b8da6836974cc5bad4" +dependencies = [ + "libc", + "system-deps 6.0.3", +] + +[[package]] +name = "glob" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" + +[[package]] +name = "globset" +version = "0.4.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "029d74589adefde59de1a0c4f4732695c32805624aec7b68d91503d4dba79afc" +dependencies = [ + "aho-corasick", + "bstr", + "fnv", + "log", + "regex", +] + +[[package]] +name = "gobject-sys" +version = "0.15.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d57ce44246becd17153bd035ab4d32cfee096a657fc01f2231c9278378d1e0a" +dependencies = [ + "glib-sys", + "libc", + "system-deps 6.0.3", +] + +[[package]] +name = "gtk" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92e3004a2d5d6d8b5057d2b57b3712c9529b62e82c77f25c1fecde1fd5c23bd0" +dependencies = [ + "atk", + "bitflags", + "cairo-rs", + "field-offset", + "futures-channel", + "gdk", + "gdk-pixbuf", + "gio", + "glib", + "gtk-sys", + "gtk3-macros", + "libc", + "once_cell", + "pango", + "pkg-config", +] + +[[package]] +name = "gtk-sys" +version = "0.15.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d5bc2f0587cba247f60246a0ca11fe25fb733eabc3de12d1965fc07efab87c84" +dependencies = [ + "atk-sys", + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gdk-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "pango-sys", + "system-deps 6.0.3", +] + +[[package]] +name = "gtk3-macros" +version = "0.15.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24f518afe90c23fba585b2d7697856f9e6a7bbc62f65588035e66f6afb01a2e9" +dependencies = [ + "anyhow", + "proc-macro-crate", + "proc-macro-error", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" + +[[package]] +name = "heck" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" +dependencies = [ + "unicode-segmentation", +] + +[[package]] +name = "heck" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9" + +[[package]] +name = "hermit-abi" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7" +dependencies = [ + "libc", +] + +[[package]] +name = "html5ever" +version = "0.25.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5c13fb08e5d4dfc151ee5e88bae63f7773d61852f3bdc73c9f4b9e1bde03148" +dependencies = [ + "log", + "mac", + "markup5ever", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "http" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75f43d41e26995c17e71ee126451dd3941010b0514a81a9d11f3b341debc2399" +dependencies = [ + "bytes", + "fnv", + "itoa 1.0.5", +] + +[[package]] +name = "http-range" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21dec9db110f5f872ed9699c3ecf50cf16f423502706ba5c72462e28d3157573" + +[[package]] +name = "ico" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "031530fe562d8c8d71c0635013d6d155bbfe8ba0aa4b4d2d24ce8af6b71047bd" +dependencies = [ + "byteorder", + "png", +] + +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + +[[package]] +name = "idna" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e14ddfc70884202db2244c223200c204c2bda1bc6e0998d11b5e024d657209e6" +dependencies = [ + "unicode-bidi", + "unicode-normalization", +] + +[[package]] +name = "ignore" +version = "0.4.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "713f1b139373f96a2e0ce3ac931cd01ee973c3c5dd7c40c0c2efe96ad2b6751d" +dependencies = [ + "crossbeam-utils", + "globset", + "lazy_static", + "log", + "memchr", + "regex", + "same-file", + "thread_local", + "walkdir", + "winapi-util", +] + +[[package]] +name = "image" +version = "0.24.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69b7ea949b537b0fd0af141fff8c77690f2ce96f4f41f042ccb6c69c6c965945" +dependencies = [ + "bytemuck", + "byteorder", + "color_quant", + "num-rational", + "num-traits", +] + +[[package]] +name = "indexmap" +version = "1.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1885e79c1fc4b10f0e172c475f458b7f7b93061064d98c3293e98c5ba0c8b399" +dependencies = [ + "autocfg", + "hashbrown", +] + +[[package]] +name = "infer" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20b2b533137b9cad970793453d4f921c2e91312a6d88b1085c07bc15fc51bb3b" +dependencies = [ + "cfb", +] + +[[package]] +name = "instant" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "itoa" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" + +[[package]] +name = "itoa" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fad582f4b9e86b6caa621cabeb0963332d92eea04729ab12892c2533951e6440" + +[[package]] +name = "javascriptcore-rs" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf053e7843f2812ff03ef5afe34bb9c06ffee120385caad4f6b9967fcd37d41c" +dependencies = [ + "bitflags", + "glib", + "javascriptcore-rs-sys", +] + +[[package]] +name = "javascriptcore-rs-sys" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "905fbb87419c5cde6e3269537e4ea7d46431f3008c5d057e915ef3f115e7793c" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps 5.0.0", +] + +[[package]] +name = "jni" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "039022cdf4d7b1cf548d31f60ae783138e5fd42013f6271049d7df7afadef96c" +dependencies = [ + "cesu8", + "combine", + "jni-sys", + "log", + "thiserror", + "walkdir", +] + +[[package]] +name = "jni-sys" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" + +[[package]] +name = "json-patch" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb3fa5a61630976fc4c353c70297f2e93f1930e3ccee574d59d618ccbd5154ce" +dependencies = [ + "serde", + "serde_json", + "treediff", +] + +[[package]] +name = "kuchiki" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ea8e9c6e031377cff82ee3001dc8026cdf431ed4e2e6b51f98ab8c73484a358" +dependencies = [ + "cssparser", + "html5ever", + "matches", + "selectors", +] + +[[package]] +name = "lazy_static" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" + +[[package]] +name = "libc" +version = "0.2.139" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" + +[[package]] +name = "line-wrap" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f30344350a2a51da54c1d53be93fade8a237e545dbcc4bdbe635413f2117cab9" +dependencies = [ + "safemem", +] + +[[package]] +name = "lock_api" +version = "0.4.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" +dependencies = [ + "autocfg", + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "loom" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff50ecb28bb86013e935fb6683ab1f6d3a20016f123c76fd4c27470076ac30f5" +dependencies = [ + "cfg-if", + "generator", + "scoped-tls", + "serde", + "serde_json", + "tracing", + "tracing-subscriber", +] + +[[package]] +name = "mac" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4" + +[[package]] +name = "malloc_buf" +version = "0.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb" +dependencies = [ + "libc", +] + +[[package]] +name = "markup5ever" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a24f40fb03852d1cdd84330cddcaf98e9ec08a7b7768e952fad3b4cf048ec8fd" +dependencies = [ + "log", + "phf 0.8.0", + "phf_codegen", + "string_cache", + "string_cache_codegen", + "tendril", +] + +[[package]] +name = "matchers" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558" +dependencies = [ + "regex-automata", +] + +[[package]] +name = "matches" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f" + +[[package]] +name = "memchr" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" + +[[package]] +name = "memoffset" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce" +dependencies = [ + "autocfg", +] + +[[package]] +name = "miniz_oxide" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b275950c28b37e794e8c55d88aeb5e139d0ce23fdbbeda68f8d7174abdf9e8fa" +dependencies = [ + "adler", +] + +[[package]] +name = "ndk" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2032c77e030ddee34a6787a64166008da93f6a352b629261d0fee232b8742dd4" +dependencies = [ + "bitflags", + "jni-sys", + "ndk-sys", + "num_enum", + "thiserror", +] + +[[package]] +name = "ndk-context" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b" + +[[package]] +name = "ndk-sys" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e5a6ae77c8ee183dcbbba6150e2e6b9f3f4196a7666c02a715a95692ec1fa97" +dependencies = [ + "jni-sys", +] + +[[package]] +name = "new_debug_unreachable" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4a24736216ec316047a1fc4252e27dabb04218aa4a3f37c6e7ddbf1f9782b54" + +[[package]] +name = "nodrop" +version = "0.1.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb" + +[[package]] +name = "nu-ansi-term" +version = "0.46.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84" +dependencies = [ + "overload", + "winapi", +] + +[[package]] +name = "num-integer" +version = "0.1.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9" +dependencies = [ + "autocfg", + "num-traits", +] + +[[package]] +name = "num-rational" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0638a1c9d0a3c0914158145bc76cff373a75a627e6ecbfb71cbe6f453a5a19b0" +dependencies = [ + "autocfg", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd" +dependencies = [ + "autocfg", +] + +[[package]] +name = "num_cpus" +version = "1.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" +dependencies = [ + "hermit-abi", + "libc", +] + +[[package]] +name = "num_enum" +version = "0.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf5395665662ef45796a4ff5486c5d41d29e0c09640af4c5f17fd94ee2c119c9" +dependencies = [ + "num_enum_derive", +] + +[[package]] +name = "num_enum_derive" +version = "0.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0498641e53dd6ac1a4f22547548caa6864cc4933784319cd1775271c5a46ce" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "objc" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1" +dependencies = [ + "malloc_buf", + "objc_exception", +] + +[[package]] +name = "objc_exception" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad970fb455818ad6cba4c122ad012fae53ae8b4795f86378bce65e4f6bab2ca4" +dependencies = [ + "cc", +] + +[[package]] +name = "objc_id" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c92d4ddb4bd7b50d730c215ff871754d0da6b2178849f8a2a2ab69712d0c073b" +dependencies = [ + "objc", +] + +[[package]] +name = "once_cell" +version = "1.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f61fba1741ea2b3d6a1e3178721804bb716a68a6aeba1149b5d52e3d464ea66" + +[[package]] +name = "oslog" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80d2043d1f61d77cb2f4b1f7b7b2295f40507f5f8e9d1c8bf10a1ca5f97a3969" +dependencies = [ + "cc", + "dashmap", + "log", +] + +[[package]] +name = "overload" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" + +[[package]] +name = "pango" +version = "0.15.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22e4045548659aee5313bde6c582b0d83a627b7904dd20dc2d9ef0895d414e4f" +dependencies = [ + "bitflags", + "glib", + "libc", + "once_cell", + "pango-sys", +] + +[[package]] +name = "pango-sys" +version = "0.15.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2a00081cde4661982ed91d80ef437c20eacaf6aa1a5962c0279ae194662c3aa" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps 6.0.3", +] + +[[package]] +name = "parking_lot" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba1ef8814b5c993410bb3adfad7a5ed269563e4a2f90c41f5d85be7fb47133bf" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-sys", +] + +[[package]] +name = "paste" +version = "1.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d01a5bd0424d00070b0098dd17ebca6f961a959dead1dbcbbbc1d1cd8d3deeba" + +[[package]] +name = "percent-encoding" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e" + +[[package]] +name = "pest" +version = "2.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4257b4a04d91f7e9e6290be5d3da4804dd5784fafde3a497d73eb2b4a158c30a" +dependencies = [ + "thiserror", + "ucd-trie", +] + +[[package]] +name = "phf" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3dfb61232e34fcb633f43d12c58f83c1df82962dcdfa565a4e866ffc17dafe12" +dependencies = [ + "phf_macros 0.8.0", + "phf_shared 0.8.0", + "proc-macro-hack", +] + +[[package]] +name = "phf" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fabbf1ead8a5bcbc20f5f8b939ee3f5b0f6f281b6ad3468b84656b658b455259" +dependencies = [ + "phf_macros 0.10.0", + "phf_shared 0.10.0", + "proc-macro-hack", +] + +[[package]] +name = "phf_codegen" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cbffee61585b0411840d3ece935cce9cb6321f01c45477d30066498cd5e1a815" +dependencies = [ + "phf_generator 0.8.0", + "phf_shared 0.8.0", +] + +[[package]] +name = "phf_generator" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17367f0cc86f2d25802b2c26ee58a7b23faeccf78a396094c13dced0d0182526" +dependencies = [ + "phf_shared 0.8.0", + "rand 0.7.3", +] + +[[package]] +name = "phf_generator" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d5285893bb5eb82e6aaf5d59ee909a06a16737a8970984dd7746ba9283498d6" +dependencies = [ + "phf_shared 0.10.0", + "rand 0.8.5", +] + +[[package]] +name = "phf_macros" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f6fde18ff429ffc8fe78e2bf7f8b7a5a5a6e2a8b58bc5a9ac69198bbda9189c" +dependencies = [ + "phf_generator 0.8.0", + "phf_shared 0.8.0", + "proc-macro-hack", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "phf_macros" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58fdf3184dd560f160dd73922bea2d5cd6e8f064bf4b13110abd81b03697b4e0" +dependencies = [ + "phf_generator 0.10.0", + "phf_shared 0.10.0", + "proc-macro-hack", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "phf_shared" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c00cf8b9eafe68dde5e9eaa2cef8ee84a9336a47d566ec55ca16589633b65af7" +dependencies = [ + "siphasher", +] + +[[package]] +name = "phf_shared" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096" +dependencies = [ + "siphasher", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" + +[[package]] +name = "pin-utils" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + +[[package]] +name = "pkg-config" +version = "0.3.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ac9a59f73473f1b8d852421e59e64809f025994837ef743615c6d0c5b305160" + +[[package]] +name = "plist" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd39bc6cdc9355ad1dc5eeedefee696bb35c34caf21768741e81826c0bbd7225" +dependencies = [ + "base64", + "indexmap", + "line-wrap", + "serde", + "time", + "xml-rs", +] + +[[package]] +name = "png" +version = "0.17.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d708eaf860a19b19ce538740d2b4bdeeb8337fa53f7738455e706623ad5c638" +dependencies = [ + "bitflags", + "crc32fast", + "flate2", + "miniz_oxide", +] + +[[package]] +name = "ppv-lite86" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" + +[[package]] +name = "precomputed-hash" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" + +[[package]] +name = "proc-macro-crate" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eda0fc3b0fb7c975631757e14d9049da17374063edb6ebbcbc54d880d4fe94e9" +dependencies = [ + "once_cell", + "thiserror", + "toml", +] + +[[package]] +name = "proc-macro-error" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" +dependencies = [ + "proc-macro-error-attr", + "proc-macro2", + "quote", + "syn", + "version_check", +] + +[[package]] +name = "proc-macro-error-attr" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +dependencies = [ + "proc-macro2", + "quote", + "version_check", +] + +[[package]] +name = "proc-macro-hack" +version = "0.5.20+deprecated" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068" + +[[package]] +name = "proc-macro2" +version = "1.0.49" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57a8eca9f9c4ffde41714334dee777596264c7825420f521abc92b5b5deb63a5" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quote" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "rand" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" +dependencies = [ + "getrandom 0.1.16", + "libc", + "rand_chacha 0.2.2", + "rand_core 0.5.1", + "rand_hc", + "rand_pcg", +] + +[[package]] +name = "rand" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +dependencies = [ + "libc", + "rand_chacha 0.3.1", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_chacha" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" +dependencies = [ + "ppv-lite86", + "rand_core 0.5.1", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_core" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" +dependencies = [ + "getrandom 0.1.16", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.8", +] + +[[package]] +name = "rand_hc" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" +dependencies = [ + "rand_core 0.5.1", +] + +[[package]] +name = "rand_pcg" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" +dependencies = [ + "rand_core 0.5.1", +] + +[[package]] +name = "raw-window-handle" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed7e3d950b66e19e0c372f3fa3fbbcf85b1746b571f74e0c2af6042a5c93420a" +dependencies = [ + "cty", +] + +[[package]] +name = "redox_syscall" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" +dependencies = [ + "bitflags", +] + +[[package]] +name = "redox_users" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b" +dependencies = [ + "getrandom 0.2.8", + "redox_syscall", + "thiserror", +] + +[[package]] +name = "regex" +version = "1.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48aaa5748ba571fb95cd2c85c09f629215d3a6ece942baa100950af03a34f733" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" +dependencies = [ + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.6.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848" + +[[package]] +name = "remove_dir_all" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7" +dependencies = [ + "winapi", +] + +[[package]] +name = "rustc_version" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0dfe2087c51c460008730de8b57e6a320782fbfb312e1f4d520e6c6fae155ee" +dependencies = [ + "semver 0.11.0", +] + +[[package]] +name = "rustc_version" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" +dependencies = [ + "semver 1.0.16", +] + +[[package]] +name = "rustversion" +version = "1.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5583e89e108996506031660fe09baa5011b9dd0341b89029313006d1fb508d70" + +[[package]] +name = "ryu" +version = "1.0.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b4b9743ed687d4b4bcedf9ff5eaa7398495ae14e61cba0a295704edbc7decde" + +[[package]] +name = "safemem" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "scoped-tls" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" + +[[package]] +name = "scopeguard" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" + +[[package]] +name = "selectors" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df320f1889ac4ba6bc0cdc9c9af7af4bd64bb927bccdf32d81140dc1f9be12fe" +dependencies = [ + "bitflags", + "cssparser", + "derive_more", + "fxhash", + "log", + "matches", + "phf 0.8.0", + "phf_codegen", + "precomputed-hash", + "servo_arc", + "smallvec", + "thin-slice", +] + +[[package]] +name = "semver" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f301af10236f6df4160f7c3f04eec6dbc70ace82d23326abad5edee88801c6b6" +dependencies = [ + "semver-parser", +] + +[[package]] +name = "semver" +version = "1.0.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58bc9567378fc7690d6b2addae4e60ac2eeea07becb2c64b9f218b53865cba2a" +dependencies = [ + "serde", +] + +[[package]] +name = "semver-parser" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b0bef5b7f9e0df16536d3961cfb6e84331c065b4066afb39768d0e319411f7" +dependencies = [ + "pest", +] + +[[package]] +name = "serde" +version = "1.0.152" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb7d1f0d3021d347a83e556fc4683dea2ea09d87bccdf88ff5c12545d89d5efb" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.152" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af487d118eecd09402d70a5d72551860e788df87b464af30e5ea6a38c75c541e" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "serde_json" +version = "1.0.91" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877c235533714907a8c2464236f5c4b2a17262ef1bd71f38f35ea592c8da6883" +dependencies = [ + "itoa 1.0.5", + "ryu", + "serde", +] + +[[package]] +name = "serde_repr" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a5ec9fa74a20ebbe5d9ac23dac1fc96ba0ecfe9f50f2843b52e537b10fbcb4e" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "serde_urlencoded" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" +dependencies = [ + "form_urlencoded", + "itoa 1.0.5", + "ryu", + "serde", +] + +[[package]] +name = "serde_with" +version = "1.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "678b5a069e50bf00ecd22d0cd8ddf7c236f68581b03db652061ed5eb13a312ff" +dependencies = [ + "serde", + "serde_with_macros", +] + +[[package]] +name = "serde_with_macros" +version = "1.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e182d6ec6f05393cc0e5ed1bf81ad6db3a8feedf8ee515ecdd369809bcce8082" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "serialize-to-javascript" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c9823f2d3b6a81d98228151fdeaf848206a7855a7a042bbf9bf870449a66cafb" +dependencies = [ + "serde", + "serde_json", + "serialize-to-javascript-impl", +] + +[[package]] +name = "serialize-to-javascript-impl" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74064874e9f6a15f04c1f3cb627902d0e6b410abbf36668afa873c61889f1763" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "servo_arc" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d98238b800e0d1576d8b6e3de32827c2d74bee68bb97748dcf5071fb53965432" +dependencies = [ + "nodrop", + "stable_deref_trait", +] + +[[package]] +name = "sha2" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82e6b795fe2e3b1e845bafcb27aa35405c4d47cdfc92af5fc8d3002f76cebdc0" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + +[[package]] +name = "sharded-slab" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "900fba806f70c630b0a382d0d825e17a0f19fcd059a2ade1ff237bcddf446b31" +dependencies = [ + "lazy_static", +] + +[[package]] +name = "siphasher" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7bd3e3206899af3f8b12af284fafc038cc1dc2b41d1b89dd17297221c5d225de" + +[[package]] +name = "slab" +version = "0.4.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4614a76b2a8be0058caa9dbbaf66d988527d86d003c11a94fbd335d7661edcef" +dependencies = [ + "autocfg", +] + +[[package]] +name = "smallvec" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" + +[[package]] +name = "soup2" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2b4d76501d8ba387cf0fefbe055c3e0a59891d09f0f995ae4e4b16f6b60f3c0" +dependencies = [ + "bitflags", + "gio", + "glib", + "libc", + "once_cell", + "soup2-sys", +] + +[[package]] +name = "soup2-sys" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "009ef427103fcb17f802871647a7fa6c60cbb654b4c4e4c0ac60a31c5f6dc9cf" +dependencies = [ + "bitflags", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "system-deps 5.0.0", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" + +[[package]] +name = "state" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dbe866e1e51e8260c9eed836a042a5e7f6726bb2b411dffeaa712e19c388f23b" +dependencies = [ + "loom", +] + +[[package]] +name = "string_cache" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "213494b7a2b503146286049378ce02b482200519accc31872ee8be91fa820a08" +dependencies = [ + "new_debug_unreachable", + "once_cell", + "parking_lot", + "phf_shared 0.10.0", + "precomputed-hash", + "serde", +] + +[[package]] +name = "string_cache_codegen" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6bb30289b722be4ff74a408c3cc27edeaad656e06cb1fe8fa9231fa59c728988" +dependencies = [ + "phf_generator 0.10.0", + "phf_shared 0.10.0", + "proc-macro2", + "quote", +] + +[[package]] +name = "strsim" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" + +[[package]] +name = "syn" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "system-deps" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18db855554db7bd0e73e06cf7ba3df39f97812cb11d3f75e71c39bf45171797e" +dependencies = [ + "cfg-expr 0.9.1", + "heck 0.3.3", + "pkg-config", + "toml", + "version-compare 0.0.11", +] + +[[package]] +name = "system-deps" +version = "6.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2955b1fe31e1fa2fbd1976b71cc69a606d7d4da16f6de3333d0c92d51419aeff" +dependencies = [ + "cfg-expr 0.11.0", + "heck 0.4.0", + "pkg-config", + "toml", + "version-compare 0.1.1", +] + +[[package]] +name = "tao" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "704522803dda895767f69198af8351b0a3f4fe2e293c3ca54cce0ecba05a97f2" +dependencies = [ + "bitflags", + "cairo-rs", + "cc", + "cocoa", + "core-foundation", + "core-graphics", + "crossbeam-channel", + "dispatch", + "gdk", + "gdk-pixbuf", + "gdk-sys", + "gdkx11-sys", + "gio", + "glib", + "glib-sys", + "gtk", + "image", + "instant", + "jni", + "lazy_static", + "libc", + "log", + "ndk", + "ndk-context", + "ndk-sys", + "objc", + "once_cell", + "parking_lot", + "png", + "raw-window-handle", + "scopeguard", + "serde", + "tao-macros", + "unicode-segmentation", + "uuid 1.2.2", + "windows", + "windows-implement", + "x11-dl", +] + +[[package]] +name = "tao-macros" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b6fcd8245d45a39ffc8715183d92ae242750eb57b285eb3bcd63dfd512afd09" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tar" +version = "0.4.38" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b55807c0344e1e6c04d7c965f5289c39a8d94ae23ed5c0b57aabac549f871c6" +dependencies = [ + "filetime", + "libc", + "xattr", +] + +[[package]] +name = "tauri" +version = "2.0.0-alpha.2" +dependencies = [ + "android_logger", + "anyhow", + "attohttpc", + "cocoa", + "dirs-next", + "embed_plist", + "encoding_rs", + "flate2", + "futures-util", + "glib", + "glob", + "gtk", + "heck 0.4.0", + "http", + "ignore", + "libc", + "log", + "objc", + "once_cell", + "oslog", + "paste", + "percent-encoding", + "rand 0.8.5", + "raw-window-handle", + "semver 1.0.16", + "serde", + "serde_json", + "serde_repr", + "serialize-to-javascript", + "state", + "tar", + "tauri-macros", + "tauri-runtime", + "tauri-runtime-wry", + "tauri-utils", + "tempfile", + "thiserror", + "tokio", + "url", + "uuid 1.2.2", + "webkit2gtk", + "webview2-com", + "windows", +] + +[[package]] +name = "tauri-codegen" +version = "2.0.0-alpha.0" +dependencies = [ + "base64", + "brotli", + "ico", + "json-patch", + "plist", + "png", + "proc-macro2", + "quote", + "semver 1.0.16", + "serde", + "serde_json", + "sha2", + "tauri-utils", + "thiserror", + "time", + "url", + "uuid 1.2.2", + "walkdir", +] + +[[package]] +name = "tauri-macros" +version = "2.0.0-alpha.0" +dependencies = [ + "heck 0.4.0", + "proc-macro2", + "quote", + "syn", + "tauri-codegen", + "tauri-utils", +] + +[[package]] +name = "tauri-plugin-sample" +version = "0.1.0" +dependencies = [ + "tauri", + "walkdir", +] + +[[package]] +name = "tauri-runtime" +version = "0.13.0-alpha.0" +dependencies = [ + "gtk", + "http", + "http-range", + "jni", + "rand 0.8.5", + "raw-window-handle", + "serde", + "serde_json", + "tauri-utils", + "thiserror", + "uuid 1.2.2", + "webview2-com", + "windows", +] + +[[package]] +name = "tauri-runtime-wry" +version = "0.13.0-alpha.0" +dependencies = [ + "cocoa", + "gtk", + "jni", + "percent-encoding", + "rand 0.8.5", + "raw-window-handle", + "tauri-runtime", + "tauri-utils", + "uuid 1.2.2", + "webkit2gtk", + "webview2-com", + "windows", + "wry", +] + +[[package]] +name = "tauri-utils" +version = "2.0.0-alpha.0" +dependencies = [ + "brotli", + "ctor", + "glob", + "heck 0.4.0", + "html5ever", + "infer", + "json-patch", + "kuchiki", + "memchr", + "phf 0.10.1", + "proc-macro2", + "quote", + "semver 1.0.16", + "serde", + "serde_json", + "serde_with", + "thiserror", + "url", + "walkdir", + "windows", +] + +[[package]] +name = "tempfile" +version = "3.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4" +dependencies = [ + "cfg-if", + "fastrand", + "libc", + "redox_syscall", + "remove_dir_all", + "winapi", +] + +[[package]] +name = "tendril" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d24a120c5fc464a3458240ee02c299ebcb9d67b5249c8848b09d639dca8d7bb0" +dependencies = [ + "futf", + "mac", + "utf-8", +] + +[[package]] +name = "thin-slice" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8eaa81235c7058867fa8c0e7314f33dcce9c215f535d1913822a2b3f5e289f3c" + +[[package]] +name = "thiserror" +version = "1.0.38" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a9cd18aa97d5c45c6603caea1da6628790b37f7a34b6ca89522331c5180fed0" +dependencies = [ + "thiserror-impl", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.38" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fb327af4685e4d03fa8cbcf1716380da910eeb2bb8be417e7f9fd3fb164f36f" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "thread_local" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5516c27b78311c50bf42c071425c560ac799b11c30b31f87e3081965fe5e0180" +dependencies = [ + "once_cell", +] + +[[package]] +name = "time" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a561bf4617eebd33bca6434b988f39ed798e527f51a1e797d0ee4f61c0a38376" +dependencies = [ + "itoa 1.0.5", + "serde", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e153e1f1acaef8acc537e68b44906d2db6436e2b35ac2c6b42640fff91f00fd" + +[[package]] +name = "time-macros" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d967f99f534ca7e495c575c62638eebc2898a8c84c119b89e250477bc4ba16b2" +dependencies = [ + "time-core", +] + +[[package]] +name = "tinyvec" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" + +[[package]] +name = "tokio" +version = "1.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d9f76183f91ecfb55e1d7d5602bd1d979e38a3a522fe900241cf195624d67ae" +dependencies = [ + "autocfg", + "bytes", + "memchr", + "num_cpus", + "pin-project-lite", + "windows-sys", +] + +[[package]] +name = "toml" +version = "0.5.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1333c76748e868a4d9d1017b5ab53171dfd095f70c712fdb4653a406547f598f" +dependencies = [ + "serde", +] + +[[package]] +name = "tracing" +version = "0.1.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8" +dependencies = [ + "cfg-if", + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4017f8f45139870ca7e672686113917c71c7a6e02d4924eda67186083c03081a" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tracing-core" +version = "0.1.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24eb03ba0eab1fd845050058ce5e616558e8f8d8fca633e6b163fe25c797213a" +dependencies = [ + "once_cell", + "valuable", +] + +[[package]] +name = "tracing-log" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78ddad33d2d10b1ed7eb9d1f518a5674713876e97e5bb9b7345a7984fbb4f922" +dependencies = [ + "lazy_static", + "log", + "tracing-core", +] + +[[package]] +name = "tracing-subscriber" +version = "0.3.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6176eae26dd70d0c919749377897b54a9276bd7061339665dd68777926b5a70" +dependencies = [ + "matchers", + "nu-ansi-term", + "once_cell", + "regex", + "sharded-slab", + "smallvec", + "thread_local", + "tracing", + "tracing-core", + "tracing-log", +] + +[[package]] +name = "treediff" +version = "3.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "761e8d5ad7ce14bb82b7e61ccc0ca961005a275a060b9644a2431aa11553c2ff" +dependencies = [ + "serde_json", +] + +[[package]] +name = "typenum" +version = "1.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba" + +[[package]] +name = "ucd-trie" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e79c4d996edb816c91e4308506774452e55e95c3c9de07b6729e17e15a5ef81" + +[[package]] +name = "unicode-bidi" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992" + +[[package]] +name = "unicode-ident" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" + +[[package]] +name = "unicode-normalization" +version = "0.1.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "unicode-segmentation" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fdbf052a0783de01e944a6ce7a8cb939e295b1e7be835a1112c3b9a7f047a5a" + +[[package]] +name = "url" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d68c799ae75762b8c3fe375feb6600ef5602c883c5d21eb51c09f22b83c4643" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", +] + +[[package]] +name = "utf-8" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" + +[[package]] +name = "uuid" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7" + +[[package]] +name = "uuid" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "422ee0de9031b5b948b97a8fc04e3aa35230001a722ddd27943e0be31564ce4c" +dependencies = [ + "getrandom 0.2.8", +] + +[[package]] +name = "valuable" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" + +[[package]] +name = "version-compare" +version = "0.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c18c859eead79d8b95d09e4678566e8d70105c4e7b251f707a03df32442661b" + +[[package]] +name = "version-compare" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "579a42fc0b8e0c63b76519a339be31bed574929511fa53c1a3acae26eb258f29" + +[[package]] +name = "version_check" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" + +[[package]] +name = "walkdir" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "808cf2735cd4b6866113f648b791c6adc5714537bc222d9347bb203386ffda56" +dependencies = [ + "same-file", + "winapi", + "winapi-util", +] + +[[package]] +name = "wasi" +version = "0.9.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" + +[[package]] +name = "wasi" +version = "0.11.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" + +[[package]] +name = "webkit2gtk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8f859735e4a452aeb28c6c56a852967a8a76c8eb1cc32dbf931ad28a13d6370" +dependencies = [ + "bitflags", + "cairo-rs", + "gdk", + "gdk-sys", + "gio", + "gio-sys", + "glib", + "glib-sys", + "gobject-sys", + "gtk", + "gtk-sys", + "javascriptcore-rs", + "libc", + "once_cell", + "soup2", + "webkit2gtk-sys", +] + +[[package]] +name = "webkit2gtk-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d76ca6ecc47aeba01ec61e480139dda143796abcae6f83bcddf50d6b5b1dcf3" +dependencies = [ + "atk-sys", + "bitflags", + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gdk-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "gtk-sys", + "javascriptcore-rs-sys", + "libc", + "pango-sys", + "pkg-config", + "soup2-sys", + "system-deps 6.0.3", +] + +[[package]] +name = "webview2-com" +version = "0.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4a769c9f1a64a8734bde70caafac2b96cada12cd4aefa49196b3a386b8b4178" +dependencies = [ + "webview2-com-macros", + "webview2-com-sys", + "windows", + "windows-implement", +] + +[[package]] +name = "webview2-com-macros" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eaebe196c01691db62e9e4ca52c5ef1e4fd837dcae27dae3ada599b5a8fd05ac" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "webview2-com-sys" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aac48ef20ddf657755fdcda8dfed2a7b4fc7e4581acce6fe9b88c3d64f29dee7" +dependencies = [ + "regex", + "serde", + "serde_json", + "thiserror", + "windows", + "windows-bindgen", + "windows-metadata", +] + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-util" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" +dependencies = [ + "winapi", +] + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "windows" +version = "0.39.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1c4bd0a50ac6020f65184721f758dba47bb9fbc2133df715ec74a237b26794a" +dependencies = [ + "windows-implement", + "windows_aarch64_msvc 0.39.0", + "windows_i686_gnu 0.39.0", + "windows_i686_msvc 0.39.0", + "windows_x86_64_gnu 0.39.0", + "windows_x86_64_msvc 0.39.0", +] + +[[package]] +name = "windows-bindgen" +version = "0.39.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68003dbd0e38abc0fb85b939240f4bce37c43a5981d3df37ccbaaa981b47cb41" +dependencies = [ + "windows-metadata", + "windows-tokens", +] + +[[package]] +name = "windows-implement" +version = "0.39.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba01f98f509cb5dc05f4e5fc95e535f78260f15fea8fe1a8abdd08f774f1cee7" +dependencies = [ + "syn", + "windows-tokens", +] + +[[package]] +name = "windows-metadata" +version = "0.39.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ee5e275231f07c6e240d14f34e1b635bf1faa1c76c57cfd59a5cdb9848e4278" + +[[package]] +name = "windows-sys" +version = "0.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc 0.42.1", + "windows_i686_gnu 0.42.1", + "windows_i686_msvc 0.42.1", + "windows_x86_64_gnu 0.42.1", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc 0.42.1", +] + +[[package]] +name = "windows-tokens" +version = "0.39.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f838de2fe15fe6bac988e74b798f26499a8b21a9d97edec321e79b28d1d7f597" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c9864e83243fdec7fc9c5444389dcbbfd258f745e7853198f365e3c4968a608" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.39.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec7711666096bd4096ffa835238905bb33fb87267910e154b18b44eaabb340f2" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c8b1b673ffc16c47a9ff48570a9d85e25d265735c503681332589af6253c6c7" + +[[package]] +name = "windows_i686_gnu" +version = "0.39.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "763fc57100a5f7042e3057e7e8d9bdd7860d330070251a73d003563a3bb49e1b" + +[[package]] +name = "windows_i686_gnu" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de3887528ad530ba7bdbb1faa8275ec7a1155a45ffa57c37993960277145d640" + +[[package]] +name = "windows_i686_msvc" +version = "0.39.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7bc7cbfe58828921e10a9f446fcaaf649204dcfe6c1ddd712c5eebae6bda1106" + +[[package]] +name = "windows_i686_msvc" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf4d1122317eddd6ff351aa852118a2418ad4214e6613a50e0191f7004372605" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.39.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6868c165637d653ae1e8dc4d82c25d4f97dd6605eaa8d784b5c6e0ab2a252b65" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1040f221285e17ebccbc2591ffdc2d44ee1f9186324dd3e84e99ac68d699c45" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "628bfdf232daa22b0d64fdb62b09fcc36bb01f05a3939e20ab73aaf9470d0463" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.39.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e4d40883ae9cae962787ca76ba76390ffa29214667a111db9e0a1ad8377e809" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "447660ad36a13288b1db4d4248e857b510e8c3a225c822ba4fb748c0aafecffd" + +[[package]] +name = "wry" +version = "0.24.1" +dependencies = [ + "base64", + "block", + "cocoa", + "core-graphics", + "crossbeam-channel", + "dunce", + "gdk", + "gio", + "glib", + "gtk", + "html5ever", + "http", + "kuchiki", + "libc", + "log", + "objc", + "objc_id", + "once_cell", + "serde", + "serde_json", + "sha2", + "soup2", + "tao", + "thiserror", + "url", + "webkit2gtk", + "webkit2gtk-sys", + "webview2-com", + "windows", + "windows-implement", +] + +[[package]] +name = "x11" +version = "2.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2638d5b9c17ac40575fb54bb461a4b1d2a8d1b4ffcc4ff237d254ec59ddeb82" +dependencies = [ + "libc", + "pkg-config", +] + +[[package]] +name = "x11-dl" +version = "2.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1536d6965a5d4e573c7ef73a2c15ebcd0b2de3347bdf526c34c297c00ac40f0" +dependencies = [ + "lazy_static", + "libc", + "pkg-config", +] + +[[package]] +name = "xattr" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d1526bbe5aaeb5eb06885f4d987bcdfa5e23187055de9b83fe00156a821fabc" +dependencies = [ + "libc", +] + +[[package]] +name = "xml-rs" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2d7d3948613f75c98fd9328cfdcc45acc4d360655289d0a7d4ec931392200a3" diff --git a/examples/api/src-tauri/tauri-plugin-sample/Cargo.toml b/examples/api/src-tauri/tauri-plugin-sample/Cargo.toml new file mode 100644 index 000000000000..e920682fc1cb --- /dev/null +++ b/examples/api/src-tauri/tauri-plugin-sample/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "tauri-plugin-sample" +version = "0.1.0" +edition = "2021" + +[dependencies] +tauri = { path = "../../../../core/tauri" } + +[build-dependencies] +tauri-build = { path = "../../../../core/tauri-build/" } diff --git a/examples/api/src-tauri/tauri-plugin-sample/android/.gitignore b/examples/api/src-tauri/tauri-plugin-sample/android/.gitignore new file mode 100644 index 000000000000..42afabfd2abe --- /dev/null +++ b/examples/api/src-tauri/tauri-plugin-sample/android/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/examples/api/src-tauri/tauri-plugin-sample/android/build.gradle.kts b/examples/api/src-tauri/tauri-plugin-sample/android/build.gradle.kts new file mode 100644 index 000000000000..83f86a9a9f00 --- /dev/null +++ b/examples/api/src-tauri/tauri-plugin-sample/android/build.gradle.kts @@ -0,0 +1,45 @@ +plugins { + id("com.android.library") + id("org.jetbrains.kotlin.android") +} + +android { + namespace = "com.plugin.test" + compileSdk = 32 + + defaultConfig { + minSdk = 24 + targetSdk = 32 + + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" + consumerProguardFiles("consumer-rules.pro") + } + + buildTypes { + release { + isMinifyEnabled = false + proguardFiles( + getDefaultProguardFile("proguard-android-optimize.txt"), + "proguard-rules.pro" + ) + } + } + compileOptions { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 + } + kotlinOptions { + jvmTarget = "1.8" + } +} + +dependencies { + + implementation("androidx.core:core-ktx:1.9.0") + implementation("androidx.appcompat:appcompat:1.6.0") + implementation("com.google.android.material:material:1.7.0") + testImplementation("junit:junit:4.13.2") + androidTestImplementation("androidx.test.ext:junit:1.1.5") + androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") + implementation(project(":tauri-android")) +} \ No newline at end of file diff --git a/examples/api/src-tauri/tauri-plugin-sample/android/consumer-rules.pro b/examples/api/src-tauri/tauri-plugin-sample/android/consumer-rules.pro new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/examples/api/src-tauri/tauri-plugin-sample/android/proguard-rules.pro b/examples/api/src-tauri/tauri-plugin-sample/android/proguard-rules.pro new file mode 100644 index 000000000000..481bb4348141 --- /dev/null +++ b/examples/api/src-tauri/tauri-plugin-sample/android/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/examples/api/src-tauri/tauri-plugin-sample/android/settings.gradle b/examples/api/src-tauri/tauri-plugin-sample/android/settings.gradle new file mode 100644 index 000000000000..32f9aac23d11 --- /dev/null +++ b/examples/api/src-tauri/tauri-plugin-sample/android/settings.gradle @@ -0,0 +1,2 @@ +include ':tauri-android' +project(':tauri-android').projectDir = new File('./tauri-api') diff --git a/examples/api/src-tauri/tauri-plugin-sample/android/src/androidTest/java/com/plugin/test/ExampleInstrumentedTest.kt b/examples/api/src-tauri/tauri-plugin-sample/android/src/androidTest/java/com/plugin/test/ExampleInstrumentedTest.kt new file mode 100644 index 000000000000..1010bda3ea90 --- /dev/null +++ b/examples/api/src-tauri/tauri-plugin-sample/android/src/androidTest/java/com/plugin/test/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.plugin.test + +import androidx.test.platform.app.InstrumentationRegistry +import androidx.test.ext.junit.runners.AndroidJUnit4 + +import org.junit.Test +import org.junit.runner.RunWith + +import org.junit.Assert.* + +/** + * Instrumented test, which will execute on an Android device. + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +@RunWith(AndroidJUnit4::class) +class ExampleInstrumentedTest { + @Test + fun useAppContext() { + // Context of the app under test. + val appContext = InstrumentationRegistry.getInstrumentation().targetContext + assertEquals("com.plugin.test.test", appContext.packageName) + } +} \ No newline at end of file diff --git a/examples/api/src-tauri/tauri-plugin-sample/android/src/main/AndroidManifest.xml b/examples/api/src-tauri/tauri-plugin-sample/android/src/main/AndroidManifest.xml new file mode 100644 index 000000000000..a5918e68abcd --- /dev/null +++ b/examples/api/src-tauri/tauri-plugin-sample/android/src/main/AndroidManifest.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/examples/api/src-tauri/tauri-plugin-sample/android/src/main/java/com/plugin/test/Example.kt b/examples/api/src-tauri/tauri-plugin-sample/android/src/main/java/com/plugin/test/Example.kt new file mode 100644 index 000000000000..8253a9b7c436 --- /dev/null +++ b/examples/api/src-tauri/tauri-plugin-sample/android/src/main/java/com/plugin/test/Example.kt @@ -0,0 +1,10 @@ +package com.plugin.test + +import android.util.Log + +class Example { + fun pong(value: String): String { + Log.i("Pong", value) + return value + } +} diff --git a/examples/api/src-tauri/tauri-plugin-sample/android/src/main/java/com/plugin/test/ExamplePlugin.kt b/examples/api/src-tauri/tauri-plugin-sample/android/src/main/java/com/plugin/test/ExamplePlugin.kt new file mode 100644 index 000000000000..37d2769cee68 --- /dev/null +++ b/examples/api/src-tauri/tauri-plugin-sample/android/src/main/java/com/plugin/test/ExamplePlugin.kt @@ -0,0 +1,19 @@ +package com.plugin.test + +import android.app.Activity +import app.tauri.plugin.JSObject +import app.tauri.plugin.Plugin +import app.tauri.plugin.Invoke +import app.tauri.plugin.PluginMethod + +class ExamplePlugin(private val activity: Activity): Plugin() { + private val implementation = Example() + + @PluginMethod + fun ping(invoke: Invoke) { + val value = invoke.getString("value") ?: "" + val ret = JSObject() + ret.put("value", implementation.pong(value)) + invoke.resolve(ret) + } +} diff --git a/examples/api/src-tauri/tauri-plugin-sample/android/src/test/java/com/plugin/test/ExampleUnitTest.kt b/examples/api/src-tauri/tauri-plugin-sample/android/src/test/java/com/plugin/test/ExampleUnitTest.kt new file mode 100644 index 000000000000..62cdd277efb8 --- /dev/null +++ b/examples/api/src-tauri/tauri-plugin-sample/android/src/test/java/com/plugin/test/ExampleUnitTest.kt @@ -0,0 +1,17 @@ +package com.plugin.test + +import org.junit.Test + +import org.junit.Assert.* + +/** + * Example local unit test, which will execute on the development machine (host). + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +class ExampleUnitTest { + @Test + fun addition_isCorrect() { + assertEquals(4, 2 + 2) + } +} \ No newline at end of file diff --git a/examples/api/src-tauri/tauri-plugin-sample/build.rs b/examples/api/src-tauri/tauri-plugin-sample/build.rs new file mode 100644 index 000000000000..d58b7f93ff40 --- /dev/null +++ b/examples/api/src-tauri/tauri-plugin-sample/build.rs @@ -0,0 +1,11 @@ +use std::process::exit; + +fn main() { + if let Err(error) = tauri_build::mobile::PluginBuilder::new() + .android_path("android") + .run() + { + println!("{error:#}"); + exit(1); + } +} diff --git a/examples/api/src-tauri/tauri-plugin-sample/src/lib.rs b/examples/api/src-tauri/tauri-plugin-sample/src/lib.rs new file mode 100644 index 000000000000..5e5b94c9acb7 --- /dev/null +++ b/examples/api/src-tauri/tauri-plugin-sample/src/lib.rs @@ -0,0 +1,21 @@ +use tauri::{ + plugin::{Builder, TauriPlugin}, + Runtime, +}; + +const PLUGIN_NAME: &str = "sample"; +#[cfg(target_os = "android")] +const PLUGIN_IDENTIFIER: &str = "com.plugin.test"; + +pub fn init() -> TauriPlugin { + #[allow(unused_mut)] + let mut builder = Builder::new(PLUGIN_NAME); + #[cfg(target_os = "android")] + { + builder = builder.setup(|app| { + app.initialize_android_plugin(PLUGIN_NAME, PLUGIN_IDENTIFIER, "ExamplePlugin")?; + Ok(()) + }); + } + builder.build() +} diff --git a/examples/api/src-tauri/tauri.conf.json b/examples/api/src-tauri/tauri.conf.json index 192781efb8d1..fe8e127e688c 100644 --- a/examples/api/src-tauri/tauri.conf.json +++ b/examples/api/src-tauri/tauri.conf.json @@ -4,7 +4,8 @@ "distDir": "../dist", "devPath": "http://localhost:5173", "beforeDevCommand": "yarn dev", - "beforeBuildCommand": "yarn build" + "beforeBuildCommand": "yarn build", + "withGlobalTauri": true }, "package": { "productName": "Tauri API", diff --git a/tooling/cli/mobile/android/.gitignore b/tooling/cli/mobile/android/.gitignore new file mode 100644 index 000000000000..42afabfd2abe --- /dev/null +++ b/tooling/cli/mobile/android/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/tooling/cli/mobile/android/build.gradle.kts b/tooling/cli/mobile/android/build.gradle.kts new file mode 100644 index 000000000000..3ed1b0dc3088 --- /dev/null +++ b/tooling/cli/mobile/android/build.gradle.kts @@ -0,0 +1,44 @@ +plugins { + id("com.android.library") + id("org.jetbrains.kotlin.android") +} + +android { + namespace = "app.tauri" + compileSdk = 33 + + defaultConfig { + minSdk = 24 + targetSdk = 33 + + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" + consumerProguardFiles("consumer-rules.pro") + } + + buildTypes { + release { + isMinifyEnabled = false + proguardFiles( + getDefaultProguardFile("proguard-android-optimize.txt"), + "proguard-rules.pro" + ) + } + } + compileOptions { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 + } + kotlinOptions { + jvmTarget = "1.8" + } +} + +dependencies { + + implementation("androidx.core:core-ktx:1.7.0") + implementation("androidx.appcompat:appcompat:1.6.0") + implementation("com.google.android.material:material:1.7.0") + testImplementation("junit:junit:4.13.2") + androidTestImplementation("androidx.test.ext:junit:1.1.5") + androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") +} \ No newline at end of file diff --git a/tooling/cli/mobile/android/consumer-rules.pro b/tooling/cli/mobile/android/consumer-rules.pro new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tooling/cli/mobile/android/proguard-rules.pro b/tooling/cli/mobile/android/proguard-rules.pro new file mode 100644 index 000000000000..481bb4348141 --- /dev/null +++ b/tooling/cli/mobile/android/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/tooling/cli/mobile/android/src/androidTest/java/app/tauri/ExampleInstrumentedTest.kt b/tooling/cli/mobile/android/src/androidTest/java/app/tauri/ExampleInstrumentedTest.kt new file mode 100644 index 000000000000..d283b837546f --- /dev/null +++ b/tooling/cli/mobile/android/src/androidTest/java/app/tauri/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package app.tauri + +import androidx.test.platform.app.InstrumentationRegistry +import androidx.test.ext.junit.runners.AndroidJUnit4 + +import org.junit.Test +import org.junit.runner.RunWith + +import org.junit.Assert.* + +/** + * Instrumented test, which will execute on an Android device. + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +@RunWith(AndroidJUnit4::class) +class ExampleInstrumentedTest { + @Test + fun useAppContext() { + // Context of the app under test. + val appContext = InstrumentationRegistry.getInstrumentation().targetContext + assertEquals("app.tauri.test", appContext.packageName) + } +} \ No newline at end of file diff --git a/tooling/cli/mobile/android/src/main/AndroidManifest.xml b/tooling/cli/mobile/android/src/main/AndroidManifest.xml new file mode 100644 index 000000000000..a5918e68abcd --- /dev/null +++ b/tooling/cli/mobile/android/src/main/AndroidManifest.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/tooling/cli/mobile/android/src/main/java/app/tauri/Logger.kt b/tooling/cli/mobile/android/src/main/java/app/tauri/Logger.kt new file mode 100644 index 000000000000..ee8d511be220 --- /dev/null +++ b/tooling/cli/mobile/android/src/main/java/app/tauri/Logger.kt @@ -0,0 +1,81 @@ +package app.tauri + +// taken from https://github.com/ionic-team/capacitor/blob/6658bca41e78239347e458175b14ca8bd5c1d6e8/android/capacitor/src/main/java/com/getcapacitor/Logger.java + +import android.text.TextUtils; +import android.util.Log; + +class Logger { + companion object { + private const val LOG_TAG_CORE = "Tauri" + + fun tags(vararg subtags: String): String { + return if (subtags.isNotEmpty()) { + LOG_TAG_CORE + "/" + TextUtils.join("/", subtags) + } else LOG_TAG_CORE + } + + fun verbose(message: String) { + verbose(LOG_TAG_CORE, message) + } + + fun verbose(tag: String, message: String) { + if (!shouldLog()) { + return + } + Log.v(tag, message) + } + + fun debug(message: String) { + debug(LOG_TAG_CORE, message) + } + + fun debug(tag: String, message: String) { + if (!shouldLog()) { + return + } + Log.d(tag, message) + } + + fun info(message: String) { + info(LOG_TAG_CORE, message) + } + + fun info(tag: String, message: String) { + if (!shouldLog()) { + return + } + Log.i(tag, message) + } + + fun warn(message: String) { + warn(LOG_TAG_CORE, message) + } + + fun warn(tag: String, message: String) { + if (!shouldLog()) { + return + } + Log.w(tag, message) + } + + fun error(message: String) { + error(LOG_TAG_CORE, message, null) + } + + fun error(message: String, e: Throwable?) { + error(LOG_TAG_CORE, message, e) + } + + fun error(tag: String, message: String, e: Throwable?) { + if (!shouldLog()) { + return + } + Log.e(tag, message, e) + } + + private fun shouldLog(): Boolean { + return BuildConfig.DEBUG + } + } +} diff --git a/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/InvalidPluginMethodException.kt b/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/InvalidPluginMethodException.kt new file mode 100644 index 000000000000..eac3f62fb43e --- /dev/null +++ b/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/InvalidPluginMethodException.kt @@ -0,0 +1,7 @@ +package app.tauri.plugin + +internal class InvalidPluginMethodException : Exception { + constructor(s: String?) : super(s) {} + constructor(t: Throwable?) : super(t) {} + constructor(s: String?, t: Throwable?) : super(s, t) {} +} diff --git a/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/Invoke.kt b/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/Invoke.kt new file mode 100644 index 000000000000..3bb7a7fc5d7c --- /dev/null +++ b/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/Invoke.kt @@ -0,0 +1,165 @@ +package app.tauri.plugin + +import org.json.JSONArray +import org.json.JSONException +import org.json.JSONObject +import app.tauri.Logger + +class Invoke( + private val sendResponse: (succcess: PluginResult?, error: PluginResult?) -> Unit, + val data: JSObject?) { + + fun resolve(data: JSObject?) { + val result = PluginResult(data) + sendResponse(result, null) + } + + fun resolve() { + sendResponse(null, null) + } + + fun reject(msg: String?, code: String?, ex: Exception?, data: JSObject?) { + val errorResult = PluginResult() + if (ex != null) { + Logger.error(Logger.tags("Plugin"), msg!!, ex) + } + try { + errorResult.put("message", msg) + errorResult.put("code", code) + if (null != data) { + errorResult.put("data", data) + } + } catch (jsonEx: Exception) { + Logger.error(Logger.tags("Plugin"), jsonEx.message!!, jsonEx) + } + sendResponse(null, errorResult) + } + + fun reject(msg: String?, ex: Exception?, data: JSObject?) { + reject(msg, null, ex, data) + } + + fun reject(msg: String?, code: String?, data: JSObject?) { + reject(msg, code, null, data) + } + + fun reject(msg: String?, code: String?, ex: Exception?) { + reject(msg, code, ex, null) + } + + fun reject(msg: String?, data: JSObject?) { + reject(msg, null, null, data) + } + + fun reject(msg: String?, ex: Exception?) { + reject(msg, null, ex, null) + } + + fun reject(msg: String?, code: String?) { + reject(msg, code, null, null) + } + + fun reject(msg: String?) { + reject(msg, null, null, null) + } + + fun getString(name: String): String? { + return this.getString(name, null) + } + + fun getString(name: String, defaultValue: String?): String? { + val value = data!!.opt(name) ?: return defaultValue + return if (value is String) { + value + } else defaultValue + } + + fun getInt(name: String): Int? { + return this.getInt(name, null) + } + + fun getInt(name: String, defaultValue: Int?): Int? { + val value = data!!.opt(name) ?: return defaultValue + return if (value is Int) { + value + } else defaultValue + } + + fun getLong(name: String): Long? { + return this.getLong(name, null) + } + + fun getLong(name: String, defaultValue: Long?): Long? { + val value = data!!.opt(name) ?: return defaultValue + return if (value is Long) { + value + } else defaultValue + } + + fun getFloat(name: String): Float? { + return this.getFloat(name, null) + } + + fun getFloat(name: String, defaultValue: Float?): Float? { + val value = data!!.opt(name) ?: return defaultValue + if (value is Float) { + return value + } + if (value is Double) { + return value.toFloat() + } + return if (value is Int) { + value.toFloat() + } else defaultValue + } + + fun getDouble(name: String): Double? { + return this.getDouble(name, null) + } + + fun getDouble(name: String, defaultValue: Double?): Double? { + val value = data!!.opt(name) ?: return defaultValue + if (value is Double) { + return value + } + if (value is Float) { + return value.toDouble() + } + return if (value is Int) { + value.toDouble() + } else defaultValue + } + + fun getBoolean(name: String): Boolean? { + return this.getBoolean(name, null) + } + + fun getBoolean(name: String, defaultValue: Boolean?): Boolean? { + val value = data!!.opt(name) ?: return defaultValue + return if (value is Boolean) { + value + } else defaultValue + } + + fun getObject(name: String): JSObject? { + return this.getObject(name, null) + } + + fun getObject(name: String, defaultValue: JSObject?): JSObject? { + val value = data!!.opt(name) ?: return defaultValue + return if (value is JSObject) value else defaultValue + } + + fun getArray(name: String): JSArray? { + return this.getArray(name, null) + } + + fun getArray(name: String, defaultValue: JSArray?): JSArray? { + val value = data!!.opt(name) ?: return defaultValue + return if (value is JSArray) value else defaultValue + } + + fun hasOption(name: String): Boolean { + return data!!.has(name) + } +} diff --git a/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/JSArray.kt b/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/JSArray.kt new file mode 100644 index 000000000000..be98c1fd16c3 --- /dev/null +++ b/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/JSArray.kt @@ -0,0 +1,41 @@ +package app.tauri.plugin + +import org.json.JSONArray +import org.json.JSONException + +class JSArray : JSONArray { + constructor() : super() {} + constructor(json: String?) : super(json) {} + constructor(copyFrom: Collection<*>?) : super(copyFrom) {} + constructor(array: Any?) : super(array) {} + + @Suppress("UNCHECKED_CAST", "ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") + @Throws(JSONException::class) + fun toList(): List { + val items: MutableList = ArrayList() + var o: Any? = null + for (i in 0 until this.length()) { + this.get(i).also { o = it } + try { + items.add(this.get(i) as E) + } catch (ex: Exception) { + throw JSONException("Not all items are instances of the given type") + } + } + return items + } + + companion object { + /** + * Create a new JSArray without throwing a error + */ + fun from(array: Any?): JSArray? { + try { + return JSArray(array) + } catch (ex: JSONException) { + // + } + return null + } + } +} diff --git a/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/JSObject.kt b/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/JSObject.kt new file mode 100644 index 000000000000..929812e57815 --- /dev/null +++ b/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/JSObject.kt @@ -0,0 +1,146 @@ +package app.tauri.plugin + +import org.json.JSONException +import org.json.JSONObject + +class JSObject : JSONObject { + constructor() : super() + constructor(json: String) : super(json) + constructor(obj: JSONObject, names: Array) : super(obj, names) + + override fun getString(key: String): String { + return getString(key, "") + } + + fun getString(key: String, defaultValue: String): String { + try { + val value = super.getString(key) + if (!super.isNull(key)) { + return value + } + } catch (_: JSONException) { + } + return defaultValue + } + + fun getInteger(key: String): Int? { + return getInteger(key, null) + } + + fun getInteger(key: String, defaultValue: Int?): Int? { + try { + return super.getInt(key) + } catch (_: JSONException) { + } + return defaultValue + } + + fun getBoolean(key: String, defaultValue: Boolean?): Boolean? { + try { + return super.getBoolean(key) + } catch (_: JSONException) { + } + return defaultValue + } + + /** + * Fetch boolean from jsonObject + */ + fun getBool(key: String): Boolean? { + return getBoolean(key, null) + } + + fun getJSObject(name: String): JSObject? { + try { + return getJSObject(name, null) + } catch (e: JSONException) { + } + return null + } + + @Throws(JSONException::class) + fun getJSObject(name: String, defaultValue: JSObject?): JSObject? { + try { + val obj = get(name) + if (obj is JSONObject) { + val keysIter = obj.keys() + val keys: MutableList = ArrayList() + while (keysIter.hasNext()) { + keys.add(keysIter.next()) + } + return JSObject(obj, keys.toTypedArray()) + } + } catch (_: JSONException) { + } + return defaultValue + } + + override fun put(key: String, value: Boolean): JSObject { + try { + super.put(key, value) + } catch (_: JSONException) { + } + return this + } + + override fun put(key: String, value: Int): JSObject { + try { + super.put(key, value) + } catch (_: JSONException) { + } + return this + } + + override fun put(key: String, value: Long): JSObject { + try { + super.put(key, value) + } catch (_: JSONException) { + } + return this + } + + override fun put(key: String, value: Double): JSObject { + try { + super.put(key, value) + } catch (_: JSONException) { + } + return this + } + + override fun put(key: String, value: Any?): JSObject { + try { + super.put(key, value) + } catch (_: JSONException) { + } + return this + } + + fun put(key: String, value: String?): JSObject { + try { + super.put(key, value) + } catch (_: JSONException) { + } + return this + } + + @Throws(JSONException::class) + fun putSafe(key: String, value: Any?): JSObject { + return super.put(key, value) as JSObject + } + + companion object { + /** + * Convert a pathetic JSONObject into a JSObject + * @param obj + */ + @Throws(JSONException::class) + fun fromJSONObject(obj: JSONObject): JSObject { + val keysIter = obj.keys() + val keys: MutableList = ArrayList() + while (keysIter.hasNext()) { + keys.add(keysIter.next()) + } + return JSObject(obj, keys.toTypedArray()) + } + } +} diff --git a/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/Plugin.kt b/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/Plugin.kt new file mode 100644 index 000000000000..0300636c425c --- /dev/null +++ b/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/Plugin.kt @@ -0,0 +1,7 @@ +package app.tauri.plugin + +import android.webkit.WebView + +abstract class Plugin { + open fun load(webView: WebView) {} +} diff --git a/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/PluginHandle.kt b/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/PluginHandle.kt new file mode 100644 index 000000000000..c4986ef5e7fd --- /dev/null +++ b/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/PluginHandle.kt @@ -0,0 +1,37 @@ +package app.tauri.plugin + +import android.webkit.WebView +import java.lang.reflect.Method + +class PluginHandle(val instance: Plugin) { + private val pluginMethods: HashMap = HashMap() + var loaded = false + + init { + indexMethods() + } + + fun load(webView: WebView) { + instance.load(webView) + loaded = true + } + + @Throws( + InvalidPluginMethodException::class, + IllegalAccessException::class + ) + fun invoke(methodName: String, invoke: Invoke) { + val methodMeta = pluginMethods[methodName] + ?: throw InvalidPluginMethodException("No method " + methodName + " found for plugin " + instance.javaClass.name) + methodMeta.method.invoke(instance, invoke) + } + + private fun indexMethods() { + val methods: Array = instance.javaClass.methods + for (methodReflect in methods) { + val method: PluginMethod = methodReflect.getAnnotation(PluginMethod::class.java) ?: continue + val methodMeta = PluginMethodData(methodReflect, method) + pluginMethods.put(methodReflect.name, methodMeta) + } + } +} diff --git a/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/PluginManager.kt b/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/PluginManager.kt new file mode 100644 index 000000000000..0b3a6c2e595e --- /dev/null +++ b/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/PluginManager.kt @@ -0,0 +1,49 @@ +package app.tauri.plugin + +import android.webkit.WebView +import app.tauri.Logger + +class PluginManager { + private val plugins: HashMap = HashMap() + + fun onWebViewCreated(webView: WebView) { + for ((_, plugin) in plugins) { + if (!plugin.loaded) { + plugin.load(webView) + } + } + } + + fun load(webView: WebView?, name: String, plugin: Plugin) { + val handle = PluginHandle(plugin) + plugins[name] = handle + if (webView != null) { + plugin.load(webView) + } + } + + fun postMessage(webView: WebView, pluginId: String, methodName: String, data: JSObject, callback: Long, error: Long) { + Logger.verbose( + Logger.tags("Plugin"), + "Tauri plugin: pluginId: $pluginId, methodName: $methodName, callback: $callback, error: $error" + ) + + val invoke = Invoke({ successResult, errorResult -> + val (fn, result) = if (errorResult == null) Pair(callback, successResult) else Pair( + error, + errorResult + ) + webView.evaluateJavascript("window['_$fn']($result)", null) + }, data) + try { + val plugin = plugins[pluginId] + if (plugin == null) { + invoke.reject("Plugin $pluginId not initialized") + } else { + plugins[pluginId]?.invoke(methodName, invoke) + } + } catch (e: Exception) { + invoke.reject(e.toString()) + } + } +} diff --git a/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/PluginMethod.kt b/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/PluginMethod.kt new file mode 100644 index 000000000000..cbee37361b54 --- /dev/null +++ b/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/PluginMethod.kt @@ -0,0 +1,4 @@ +package app.tauri.plugin + +@Retention(AnnotationRetention.RUNTIME) +annotation class PluginMethod(val returnType: String = "promise") { } diff --git a/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/PluginMethodData.kt b/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/PluginMethodData.kt new file mode 100644 index 000000000000..1b4e88f081f9 --- /dev/null +++ b/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/PluginMethodData.kt @@ -0,0 +1,14 @@ +package app.tauri.plugin + +import java.lang.reflect.Method + +class PluginMethodData( + val method: Method, methodDecorator: PluginMethod +) { + + // The name of the method + val name: String = method.name + + // The return type of the method (see PluginMethod for constants) + val returnType: String = methodDecorator.returnType +} diff --git a/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/PluginResult.kt b/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/PluginResult.kt new file mode 100644 index 000000000000..47ff3ea96782 --- /dev/null +++ b/tooling/cli/mobile/android/src/main/java/app/tauri/plugin/PluginResult.kt @@ -0,0 +1,63 @@ +package app.tauri.plugin + +import android.annotation.SuppressLint +import app.tauri.Logger +import java.text.DateFormat +import java.text.SimpleDateFormat +import java.util.* + +class PluginResult @JvmOverloads constructor(json: JSObject? = JSObject()) { + private val json: JSObject + + init { + this.json = json ?: JSObject() + } + + fun put(name: String, value: Boolean): PluginResult { + return jsonPut(name, value) + } + + fun put(name: String, value: Double): PluginResult { + return jsonPut(name, value) + } + + fun put(name: String, value: Int): PluginResult { + return jsonPut(name, value) + } + + fun put(name: String, value: Long): PluginResult { + return jsonPut(name, value) + } + + /** + * Format a date as an ISO string + */ + @SuppressLint("SimpleDateFormat") + fun put(name: String, value: Date): PluginResult { + val tz: TimeZone = TimeZone.getTimeZone("UTC") + val df: DateFormat = SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'") + df.timeZone = tz + return jsonPut(name, df.format(value)) + } + + fun put(name: String, value: Any?): PluginResult { + return jsonPut(name, value) + } + + fun put(name: String, value: PluginResult): PluginResult { + return jsonPut(name, value.json) + } + + private fun jsonPut(name: String, value: Any?): PluginResult { + try { + json.put(name, value) + } catch (ex: Exception) { + Logger.error(Logger.tags("Plugin"), "", ex) + } + return this + } + + override fun toString(): String { + return json.toString() + } +} diff --git a/tooling/cli/mobile/android/src/test/java/app/tauri/ExampleUnitTest.kt b/tooling/cli/mobile/android/src/test/java/app/tauri/ExampleUnitTest.kt new file mode 100644 index 000000000000..637e05ce58fe --- /dev/null +++ b/tooling/cli/mobile/android/src/test/java/app/tauri/ExampleUnitTest.kt @@ -0,0 +1,17 @@ +package app.tauri + +import org.junit.Test + +import org.junit.Assert.* + +/** + * Example local unit test, which will execute on the development machine (host). + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +class ExampleUnitTest { + @Test + fun addition_isCorrect() { + assertEquals(4, 2 + 2) + } +} \ No newline at end of file diff --git a/tooling/cli/src/mobile/android.rs b/tooling/cli/src/mobile/android.rs index 7a8ea1d3daee..31a38eaa3a93 100644 --- a/tooling/cli/src/mobile/android.rs +++ b/tooling/cli/src/mobile/android.rs @@ -136,6 +136,16 @@ pub fn get_config( )) .join("generated"), ); + let plugin_output_path = config.project_dir().join("tauri-plugins"); + set_var("TAURI_PLUGIN_OUTPUT_PATH", plugin_output_path); + set_var( + "TAURI_GRADLE_SETTINGS_PATH", + config.project_dir().join("settings.gradle"), + ); + set_var( + "TAURI_APP_GRADLE_BUILD_PATH", + config.project_dir().join("app").join("build.gradle.kts"), + ); (app, config, metadata) } diff --git a/tooling/cli/src/mobile/android/build.rs b/tooling/cli/src/mobile/android/build.rs index 22b7ca948b01..ed31548d28a2 100644 --- a/tooling/cli/src/mobile/android/build.rs +++ b/tooling/cli/src/mobile/android/build.rs @@ -120,13 +120,16 @@ fn run_build( .triple .into(), ); - let interface = crate::build::setup(&mut build_options, true)?; + let mut interface = crate::build::setup(&mut build_options, true)?; - let app_settings = interface.app_settings(); - let bin_path = app_settings.app_binary_path(&InterfaceOptions { + let interface_options = InterfaceOptions { debug: build_options.debug, + target: build_options.target.clone(), ..Default::default() - })?; + }; + + let app_settings = interface.app_settings(); + let bin_path = app_settings.app_binary_path(&interface_options)?; let out_dir = bin_path.parent().unwrap(); let _lock = flock::open_rw(out_dir.join("lock").with_extension("android"), "Android")?; @@ -143,6 +146,9 @@ fn run_build( .get_or_insert(Vec::new()) .push("custom-protocol".into()); + // run an initial build to initialize plugins + interface.build(interface_options)?; + let apk_outputs = if options.apk { apk::build( config, diff --git a/tooling/cli/src/mobile/android/dev.rs b/tooling/cli/src/mobile/android/dev.rs index b9e4d2226461..897db7fa5f3c 100644 --- a/tooling/cli/src/mobile/android/dev.rs +++ b/tooling/cli/src/mobile/android/dev.rs @@ -120,16 +120,22 @@ fn run_dev( ); let mut interface = crate::dev::setup(&mut dev_options, true)?; - let app_settings = interface.app_settings(); - let bin_path = app_settings.app_binary_path(&InterfaceOptions { + let interface_options = InterfaceOptions { debug: !dev_options.release_mode, + target: dev_options.target.clone(), ..Default::default() - })?; + }; + + let app_settings = interface.app_settings(); + let bin_path = app_settings.app_binary_path(&interface_options)?; let out_dir = bin_path.parent().unwrap(); let _lock = flock::open_rw(out_dir.join("lock").with_extension("android"), "Android")?; init_dot_cargo(app, Some((&env, config)))?; + // run an initial build to initialize plugins + interface.build(interface_options)?; + let open = options.open; let exit_on_panic = options.exit_on_panic; let no_watch = options.no_watch; diff --git a/tooling/cli/src/mobile/android/project.rs b/tooling/cli/src/mobile/android/project.rs index 2db507e20c53..b1afa6e8a5d6 100644 --- a/tooling/cli/src/mobile/android/project.rs +++ b/tooling/cli/src/mobile/android/project.rs @@ -21,7 +21,11 @@ use tauri_mobile::{ }, }; -use std::{ffi::OsStr, fs, path::Path}; +use std::{ + ffi::OsStr, + fs, + path::{Path, PathBuf}, +}; const TEMPLATE_DIR: Dir<'_> = include_dir!("templates/mobile/android"); @@ -93,49 +97,7 @@ pub fn gen( map.inner(), &TEMPLATE_DIR, &dest, - &mut |path| { - let mut iter = path.iter(); - let root = iter.next().unwrap().to_str().unwrap(); - let path_without_root: std::path::PathBuf = iter.collect(); - let path = match ( - root, - path.extension().and_then(|o| o.to_str()), - path_without_root.strip_prefix("src/main"), - ) { - ("app" | "buildSrc", Some("kt"), Ok(path)) => { - let parent = path.parent().unwrap(); - let file_name = path.file_name().unwrap(); - let out_dir = dest - .join(root) - .join("src/main") - .join(&package_path) - .join(parent); - out_dir.join(file_name) - } - _ => dest.join(path), - }; - - let parent = path.parent().unwrap().to_path_buf(); - if !created_dirs.contains(&parent) { - fs::create_dir_all(&parent)?; - created_dirs.push(parent); - } - - let mut options = fs::OpenOptions::new(); - options.write(true); - - #[cfg(unix)] - if path.file_name().unwrap() == OsStr::new("gradlew") { - use std::os::unix::fs::OpenOptionsExt; - options.mode(0o755); - } - - if path.file_name().unwrap() == OsStr::new("BuildTask.kt") || !path.exists() { - options.create(true).open(path).map(Some) - } else { - Ok(None) - } - }, + &mut |path| generate_out_file(path, &dest, &package_path, &mut created_dirs), ) .with_context(|| "failed to process template")?; @@ -183,3 +145,52 @@ pub fn gen( Ok(()) } + +pub(crate) fn generate_out_file( + path: &Path, + dest: &Path, + package_path: &str, + created_dirs: &mut Vec, +) -> std::io::Result> { + let mut iter = path.iter(); + let root = iter.next().unwrap().to_str().unwrap(); + let path_without_root: std::path::PathBuf = iter.collect(); + let path = match ( + root, + path.extension().and_then(|o| o.to_str()), + path_without_root.strip_prefix("src/main"), + ) { + ("app" | "buildSrc", Some("kt"), Ok(path)) => { + let parent = path.parent().unwrap(); + let file_name = path.file_name().unwrap(); + let out_dir = dest + .join(root) + .join("src/main") + .join(package_path) + .join(parent); + out_dir.join(file_name) + } + _ => dest.join(path), + }; + + let parent = path.parent().unwrap().to_path_buf(); + if !created_dirs.contains(&parent) { + fs::create_dir_all(&parent)?; + created_dirs.push(parent); + } + + let mut options = fs::OpenOptions::new(); + options.write(true); + + #[cfg(unix)] + if path.file_name().unwrap() == OsStr::new("gradlew") { + use std::os::unix::fs::OpenOptionsExt; + options.mode(0o755); + } + + if path.file_name().unwrap() == OsStr::new("BuildTask.kt") || !path.exists() { + options.create(true).open(path).map(Some) + } else { + Ok(None) + } +} diff --git a/tooling/cli/src/mobile/mod.rs b/tooling/cli/src/mobile/mod.rs index e92f0fa4f907..b5eb14f33ad8 100644 --- a/tooling/cli/src/mobile/mod.rs +++ b/tooling/cli/src/mobile/mod.rs @@ -11,19 +11,22 @@ use crate::{ }, interface::{AppInterface, AppSettings, DevProcess, Interface, Options as InterfaceOptions}, }; -use anyhow::{bail, Result}; +use anyhow::{bail, Context, Result}; +use include_dir::{include_dir, Dir}; use jsonrpsee::client_transport::ws::WsTransportClientBuilder; use jsonrpsee::core::client::{Client, ClientBuilder, ClientT}; use jsonrpsee::rpc_params; use jsonrpsee::server::{RpcModule, ServerBuilder, ServerHandle}; use serde::{Deserialize, Serialize}; use shared_child::SharedChild; + use std::{ collections::HashMap, env::set_var, env::var, ffi::OsString, fmt::Write, + fs::{create_dir_all, remove_dir_all}, net::SocketAddr, path::PathBuf, process::ExitStatus, @@ -51,6 +54,7 @@ mod init; pub mod ios; const MIN_DEVICE_MATCH_SCORE: isize = 0; +static ANDROID_API_PROJECT_DIR: Dir<'_> = include_dir!("mobile/android"); #[derive(Clone)] pub struct DevChild { @@ -305,6 +309,21 @@ fn ensure_init(project_dir: PathBuf, target: Target) -> Result<()> { target.command_name(), ) } else { + create_dir_all(project_dir.join("tauri-plugins"))?; + + #[allow(irrefutable_let_patterns)] + if let Target::Android = target { + let tauri_api_dir_path = project_dir.join("tauri-api"); + if tauri_api_dir_path.exists() { + remove_dir_all(&tauri_api_dir_path)?; + } + create_dir_all(&tauri_api_dir_path)?; + + ANDROID_API_PROJECT_DIR + .extract(tauri_api_dir_path) + .context("failed to extract Tauri API project")?; + } + Ok(()) } } diff --git a/tooling/cli/src/plugin/init.rs b/tooling/cli/src/plugin/init.rs index 62eafcc02aee..fee5dacf9eab 100644 --- a/tooling/cli/src/plugin/init.rs +++ b/tooling/cli/src/plugin/init.rs @@ -9,14 +9,19 @@ use crate::{ }; use anyhow::Context; use clap::Parser; +use dialoguer::Input; use handlebars::{to_json, Handlebars}; use heck::{AsKebabCase, ToKebabCase, ToSnakeCase}; use include_dir::{include_dir, Dir}; use log::warn; -use std::{collections::BTreeMap, env::current_dir, fs::remove_dir_all, path::PathBuf}; +use std::{ + collections::BTreeMap, env::current_dir, fmt::Display, fs::remove_dir_all, path::PathBuf, + str::FromStr, +}; const BACKEND_PLUGIN_DIR: Dir<'_> = include_dir!("templates/plugin/backend"); const API_PLUGIN_DIR: Dir<'_> = include_dir!("templates/plugin/with-api"); +const ANDROID_PLUGIN_DIR: Dir<'_> = include_dir!("templates/plugin/android"); #[derive(Debug, Parser)] #[clap(about = "Initializes a Tauri plugin project")] @@ -40,6 +45,9 @@ pub struct Options { /// Author name #[clap(short, long)] author: Option, + /// Adds native Android support. + #[clap(long)] + android: bool, } impl Options { @@ -127,6 +135,62 @@ pub fn command(mut options: Options) -> Result<()> { &template_target_path, ) .with_context(|| "failed to render Tauri template")?; + + if options.android { + let plugin_id = request_input( + "What should be the Package ID for your plugin?", + Some(format!("com.plugin.{}", options.plugin_name)), + false, + false, + )? + .unwrap(); + + let mut data = BTreeMap::new(); + data.insert("package_id", to_json(&plugin_id)); + + let mut created_dirs = Vec::new(); + template::render_with_generator( + &handlebars, + &data, + &ANDROID_PLUGIN_DIR, + &template_target_path, + &mut |path| { + crate::mobile::android::project::generate_out_file( + path, + &template_target_path.join("android"), + &plugin_id.replace('.', "/"), + &mut created_dirs, + ) + }, + ) + .with_context(|| "failed to render Tauri template")?; + } } Ok(()) } + +fn request_input( + prompt: &str, + initial: Option, + skip: bool, + allow_empty: bool, +) -> Result> +where + T: Clone + FromStr + Display + ToString, + T::Err: Display + std::fmt::Debug, +{ + if skip { + Ok(initial) + } else { + let theme = dialoguer::theme::ColorfulTheme::default(); + let mut builder = Input::with_theme(&theme); + builder.with_prompt(prompt); + builder.allow_empty(allow_empty); + + if let Some(v) = initial { + builder.with_initial_text(v.to_string()); + } + + builder.interact_text().map(Some).map_err(Into::into) + } +} diff --git a/tooling/cli/templates/mobile/android/.gitignore b/tooling/cli/templates/mobile/android/.gitignore index 09f56a44322b..9421ffb1aba8 100644 --- a/tooling/cli/templates/mobile/android/.gitignore +++ b/tooling/cli/templates/mobile/android/.gitignore @@ -15,3 +15,6 @@ build .externalNativeBuild .cxx local.properties + +/tauri-plugins +/tauri-api diff --git a/tooling/cli/templates/mobile/android/app/build.gradle.kts b/tooling/cli/templates/mobile/android/app/build.gradle.kts index 48978e8d6177..9b3d8f532fd4 100644 --- a/tooling/cli/templates/mobile/android/app/build.gradle.kts +++ b/tooling/cli/templates/mobile/android/app/build.gradle.kts @@ -86,6 +86,7 @@ dependencies { testImplementation("junit:junit:4.13.2") androidTestImplementation("androidx.test.ext:junit:1.1.4") androidTestImplementation("androidx.test.espresso:espresso-core:3.5.0") + implementation(project(":tauri-android")) } afterEvaluate { diff --git a/tooling/cli/templates/mobile/android/app/src/main/MainActivity.kt b/tooling/cli/templates/mobile/android/app/src/main/MainActivity.kt index 8425f5e2eeec..b099c29ea629 100644 --- a/tooling/cli/templates/mobile/android/app/src/main/MainActivity.kt +++ b/tooling/cli/templates/mobile/android/app/src/main/MainActivity.kt @@ -1,3 +1,7 @@ package {{reverse-domain app.domain}}.{{snake-case app.name}} -class MainActivity : TauriActivity() +import app.tauri.plugin.PluginManager + +class MainActivity : TauriActivity() { + var pluginManager: PluginManager = PluginManager() +} diff --git a/tooling/cli/templates/mobile/android/settings.gradle b/tooling/cli/templates/mobile/android/settings.gradle index 74680c9c1bd6..7708e58014d4 100644 --- a/tooling/cli/templates/mobile/android/settings.gradle +++ b/tooling/cli/templates/mobile/android/settings.gradle @@ -1,3 +1,6 @@ include ':app' {{~#each asset-packs}} include ':{{this}}'{{/each}} + +include ':tauri-android' +project(':tauri-android').projectDir = new File('./tauri-api') diff --git a/tooling/cli/templates/plugin/android/.gitignore b/tooling/cli/templates/plugin/android/.gitignore new file mode 100644 index 000000000000..42afabfd2abe --- /dev/null +++ b/tooling/cli/templates/plugin/android/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/tooling/cli/templates/plugin/android/build.gradle.kts b/tooling/cli/templates/plugin/android/build.gradle.kts new file mode 100644 index 000000000000..83f86a9a9f00 --- /dev/null +++ b/tooling/cli/templates/plugin/android/build.gradle.kts @@ -0,0 +1,45 @@ +plugins { + id("com.android.library") + id("org.jetbrains.kotlin.android") +} + +android { + namespace = "com.plugin.test" + compileSdk = 32 + + defaultConfig { + minSdk = 24 + targetSdk = 32 + + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" + consumerProguardFiles("consumer-rules.pro") + } + + buildTypes { + release { + isMinifyEnabled = false + proguardFiles( + getDefaultProguardFile("proguard-android-optimize.txt"), + "proguard-rules.pro" + ) + } + } + compileOptions { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 + } + kotlinOptions { + jvmTarget = "1.8" + } +} + +dependencies { + + implementation("androidx.core:core-ktx:1.9.0") + implementation("androidx.appcompat:appcompat:1.6.0") + implementation("com.google.android.material:material:1.7.0") + testImplementation("junit:junit:4.13.2") + androidTestImplementation("androidx.test.ext:junit:1.1.5") + androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") + implementation(project(":tauri-android")) +} \ No newline at end of file diff --git a/tooling/cli/templates/plugin/android/consumer-rules.pro b/tooling/cli/templates/plugin/android/consumer-rules.pro new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tooling/cli/templates/plugin/android/proguard-rules.pro b/tooling/cli/templates/plugin/android/proguard-rules.pro new file mode 100644 index 000000000000..481bb4348141 --- /dev/null +++ b/tooling/cli/templates/plugin/android/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/tooling/cli/templates/plugin/android/settings.gradle b/tooling/cli/templates/plugin/android/settings.gradle new file mode 100644 index 000000000000..32f9aac23d11 --- /dev/null +++ b/tooling/cli/templates/plugin/android/settings.gradle @@ -0,0 +1,2 @@ +include ':tauri-android' +project(':tauri-android').projectDir = new File('./tauri-api') diff --git a/tooling/cli/templates/plugin/android/src/androidTest/java/com/plugin/test/ExampleInstrumentedTest.kt b/tooling/cli/templates/plugin/android/src/androidTest/java/com/plugin/test/ExampleInstrumentedTest.kt new file mode 100644 index 000000000000..1010bda3ea90 --- /dev/null +++ b/tooling/cli/templates/plugin/android/src/androidTest/java/com/plugin/test/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.plugin.test + +import androidx.test.platform.app.InstrumentationRegistry +import androidx.test.ext.junit.runners.AndroidJUnit4 + +import org.junit.Test +import org.junit.runner.RunWith + +import org.junit.Assert.* + +/** + * Instrumented test, which will execute on an Android device. + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +@RunWith(AndroidJUnit4::class) +class ExampleInstrumentedTest { + @Test + fun useAppContext() { + // Context of the app under test. + val appContext = InstrumentationRegistry.getInstrumentation().targetContext + assertEquals("com.plugin.test.test", appContext.packageName) + } +} \ No newline at end of file diff --git a/tooling/cli/templates/plugin/android/src/main/AndroidManifest.xml b/tooling/cli/templates/plugin/android/src/main/AndroidManifest.xml new file mode 100644 index 000000000000..a5918e68abcd --- /dev/null +++ b/tooling/cli/templates/plugin/android/src/main/AndroidManifest.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/tooling/cli/templates/plugin/android/src/main/Example.kt b/tooling/cli/templates/plugin/android/src/main/Example.kt new file mode 100644 index 000000000000..5f9049c6c8ea --- /dev/null +++ b/tooling/cli/templates/plugin/android/src/main/Example.kt @@ -0,0 +1,10 @@ +package {{package_id}} + +import android.util.Log + +class Example { + fun pong(value: String): String { + Log.i("Pong", value) + return value + } +} diff --git a/tooling/cli/templates/plugin/android/src/main/ExamplePlugin.kt b/tooling/cli/templates/plugin/android/src/main/ExamplePlugin.kt new file mode 100644 index 000000000000..b351381246bc --- /dev/null +++ b/tooling/cli/templates/plugin/android/src/main/ExamplePlugin.kt @@ -0,0 +1,19 @@ +package {{package_id}} + +import android.app.Activity +import app.tauri.plugin.JSObject +import app.tauri.plugin.Plugin +import app.tauri.plugin.Invoke +import app.tauri.plugin.PluginMethod + +class ExamplePlugin(private val activity: Activity): Plugin() { + private val implementation = Example() + + @PluginMethod + fun ping(invoke: Invoke) { + val value = invoke.getString("value") ?: "" + val ret = JSObject() + ret.put("value", implementation.pong(value)) + invoke.resolve(ret) + } +} diff --git a/tooling/cli/templates/plugin/android/src/test/java/com/plugin/test/ExampleUnitTest.kt b/tooling/cli/templates/plugin/android/src/test/java/com/plugin/test/ExampleUnitTest.kt new file mode 100644 index 000000000000..62cdd277efb8 --- /dev/null +++ b/tooling/cli/templates/plugin/android/src/test/java/com/plugin/test/ExampleUnitTest.kt @@ -0,0 +1,17 @@ +package com.plugin.test + +import org.junit.Test + +import org.junit.Assert.* + +/** + * Example local unit test, which will execute on the development machine (host). + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +class ExampleUnitTest { + @Test + fun addition_isCorrect() { + assertEquals(4, 2 + 2) + } +} \ No newline at end of file From a81750d779bc72f0fdb7de90b7fbddfd8049b328 Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Wed, 8 Feb 2023 00:38:10 +0200 Subject: [PATCH 134/436] feat(core): add shadow APIs (#6206) Co-authored-by: Lucas Nogueira --- .changes/shadow-api.md | 5 + .changes/shadow-config.md | 5 + .changes/shadow.md | 7 + core/config-schema/schema.json | 13 + core/tauri-runtime-wry/Cargo.toml | 8 +- core/tauri-runtime-wry/src/lib.rs | 29 +- core/tauri-runtime/Cargo.toml | 8 +- core/tauri-runtime/src/lib.rs | 5 +- core/tauri-runtime/src/webview.rs | 12 + core/tauri-utils/Cargo.toml | 2 +- core/tauri-utils/src/config.rs | 99 ++-- core/tauri/Cargo.toml | 10 +- core/tauri/build.rs | 1 + core/tauri/scripts/bundle.global.js | 8 +- core/tauri/src/endpoints/window.rs | 5 + core/tauri/src/lib.rs | 1 + core/tauri/src/test/mock_runtime.rs | 8 + core/tauri/src/window.rs | 32 ++ examples/api/dist/assets/index.css | 2 +- examples/api/dist/assets/index.js | 80 +-- examples/api/src-tauri/Cargo.lock | 680 +++++++++++++------------- examples/api/src-tauri/Cargo.toml | 4 - examples/api/src-tauri/src/lib.rs | 12 +- examples/api/src/App.svelte | 4 +- examples/splashscreen/tauri.conf.json | 1 + tooling/api/src/window.ts | 82 +++- tooling/cli/Cargo.lock | 553 +++++++++++---------- tooling/cli/schema.json | 13 + 28 files changed, 950 insertions(+), 739 deletions(-) create mode 100644 .changes/shadow-api.md create mode 100644 .changes/shadow-config.md create mode 100644 .changes/shadow.md diff --git a/.changes/shadow-api.md b/.changes/shadow-api.md new file mode 100644 index 000000000000..ce9337b22d03 --- /dev/null +++ b/.changes/shadow-api.md @@ -0,0 +1,5 @@ +--- +'api': minor +--- + +Added the `shadow` option when creating a window and `setShadow` function. diff --git a/.changes/shadow-config.md b/.changes/shadow-config.md new file mode 100644 index 000000000000..9b922b9df3d8 --- /dev/null +++ b/.changes/shadow-config.md @@ -0,0 +1,5 @@ +--- +'tauri-utils': minor +--- + +Added the `shadow` option to the window configuration and `set_shadow` option to the `window` allow list. diff --git a/.changes/shadow.md b/.changes/shadow.md new file mode 100644 index 000000000000..439213262d4c --- /dev/null +++ b/.changes/shadow.md @@ -0,0 +1,7 @@ +--- +'tauri': minor +'tauri-runtime-wry': minor +'tauri-runtime': minor +--- + +Added the `shadow` option when creating a window and `Window::set_shadow`. diff --git a/core/config-schema/schema.json b/core/config-schema/schema.json index b439d0d218dd..f9bdc4030c9a 100644 --- a/core/config-schema/schema.json +++ b/core/config-schema/schema.json @@ -118,6 +118,7 @@ "setMinSize": false, "setPosition": false, "setResizable": false, + "setShadow": false, "setSize": false, "setSkipTaskbar": false, "setTitle": false, @@ -393,6 +394,7 @@ "setMinSize": false, "setPosition": false, "setResizable": false, + "setShadow": false, "setSize": false, "setSkipTaskbar": false, "setTitle": false, @@ -684,6 +686,11 @@ "string", "null" ] + }, + "shadow": { + "description": "Whether or not the window has shadow.\n\n## Platform-specific\n\n- **Windows:** - `false` has no effect on decorated window, shadow are always ON. - `true` will make ndecorated window have a 1px white border, and on Windows 11, it will have a rounded corners. - **Linux:** Unsupported.", + "default": false, + "type": "boolean" } }, "additionalProperties": false @@ -1699,6 +1706,7 @@ "setMinSize": false, "setPosition": false, "setResizable": false, + "setShadow": false, "setSize": false, "setSkipTaskbar": false, "setTitle": false, @@ -2031,6 +2039,11 @@ "default": false, "type": "boolean" }, + "setShadow": { + "description": "Allows setting the shadow flag of the window.", + "default": false, + "type": "boolean" + }, "setAlwaysOnTop": { "description": "Allows setting the always_on_top flag of the window.", "default": false, diff --git a/core/tauri-runtime-wry/Cargo.toml b/core/tauri-runtime-wry/Cargo.toml index eb0e59a4c399..7d0619f84e0e 100644 --- a/core/tauri-runtime-wry/Cargo.toml +++ b/core/tauri-runtime-wry/Cargo.toml @@ -21,11 +21,11 @@ rand = "0.8" raw-window-handle = "0.5" [target."cfg(windows)".dependencies] -webview2-com = "0.19.1" +webview2-com = "0.22" - [target."cfg(windows)".dependencies.windows] - version = "0.39.0" - features = [ "Win32_Foundation" ] +[target."cfg(windows)".dependencies.windows] +version = "0.44" +features = [ "Win32_Foundation" ] [target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies] gtk = { version = "0.16", features = [ "v3_24" ] } diff --git a/core/tauri-runtime-wry/src/lib.rs b/core/tauri-runtime-wry/src/lib.rs index 2c6df681ce08..1a7bd6807e64 100644 --- a/core/tauri-runtime-wry/src/lib.rs +++ b/core/tauri-runtime-wry/src/lib.rs @@ -741,7 +741,8 @@ impl WindowBuilder for WindowBuilderWrapper { .maximized(config.maximized) .always_on_top(config.always_on_top) .skip_taskbar(config.skip_taskbar) - .theme(config.theme); + .theme(config.theme) + .shadow(config.shadow); if let (Some(min_width), Some(min_height)) = (config.min_width, config.min_height) { window = window.min_inner_size(min_width, min_height); @@ -849,6 +850,18 @@ impl WindowBuilder for WindowBuilderWrapper { self } + fn shadow(#[allow(unused_mut)] mut self, _enable: bool) -> Self { + #[cfg(windows)] + { + self.inner = self.inner.with_undecorated_shadow(_enable); + } + #[cfg(target_os = "macos")] + { + self.inner = self.inner.with_has_shadow(_enable); + } + self + } + #[cfg(windows)] fn parent_window(mut self, parent: HWND) -> Self { self.inner = self.inner.with_parent_window(parent); @@ -1066,6 +1079,7 @@ pub enum WindowMessage { Hide, Close, SetDecorations(bool), + SetShadow(bool), SetAlwaysOnTop(bool), SetSize(Size), SetMinSize(Option), @@ -1430,6 +1444,13 @@ impl Dispatch for WryDispatcher { ) } + fn set_shadow(&self, enable: bool) -> Result<()> { + send_user_message( + &self.context, + Message::Window(self.window_id, WindowMessage::SetShadow(enable)), + ) + } + fn set_always_on_top(&self, always_on_top: bool) -> Result<()> { send_user_message( &self.context, @@ -2420,6 +2441,12 @@ fn handle_user_message( panic!("cannot handle `WindowMessage::Close` on the main thread") } WindowMessage::SetDecorations(decorations) => window.set_decorations(decorations), + WindowMessage::SetShadow(_enable) => { + #[cfg(windows)] + window.set_undecorated_shadow(_enable); + #[cfg(target_os = "macos")] + window.set_has_shadow(_enable); + } WindowMessage::SetAlwaysOnTop(always_on_top) => window.set_always_on_top(always_on_top), WindowMessage::SetSize(size) => { window.set_inner_size(SizeWrapper::from(size).0); diff --git a/core/tauri-runtime/Cargo.toml b/core/tauri-runtime/Cargo.toml index 27eace6c81dc..2a392c406f7f 100644 --- a/core/tauri-runtime/Cargo.toml +++ b/core/tauri-runtime/Cargo.toml @@ -34,11 +34,11 @@ raw-window-handle = "0.5" rand = "0.8" [target."cfg(windows)".dependencies] -webview2-com = "0.19.1" +webview2-com = "0.22" - [target."cfg(windows)".dependencies.windows] - version = "0.39.0" - features = [ "Win32_Foundation" ] +[target."cfg(windows)".dependencies.windows] +version = "0.44" +features = [ "Win32_Foundation" ] [target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies] gtk = { version = "0.16", features = [ "v3_24" ] } diff --git a/core/tauri-runtime/src/lib.rs b/core/tauri-runtime/src/lib.rs index 6cef8289a022..1fe35d929d2b 100644 --- a/core/tauri-runtime/src/lib.rs +++ b/core/tauri-runtime/src/lib.rs @@ -639,9 +639,12 @@ pub trait Dispatch: Debug + Clone + Send + Sync + Sized + 'static /// Closes the window. fn close(&self) -> Result<()>; - /// Updates the hasDecorations flag. + /// Updates the decorations flag. fn set_decorations(&self, decorations: bool) -> Result<()>; + /// Updates the shadow flag. + fn set_shadow(&self, enable: bool) -> Result<()>; + /// Updates the window alwaysOnTop flag. fn set_always_on_top(&self, always_on_top: bool) -> Result<()>; diff --git a/core/tauri-runtime/src/webview.rs b/core/tauri-runtime/src/webview.rs index 8b6a0a6940cb..db9c8dfcc65a 100644 --- a/core/tauri-runtime/src/webview.rs +++ b/core/tauri-runtime/src/webview.rs @@ -179,6 +179,18 @@ pub trait WindowBuilder: WindowBuilderBase { #[must_use] fn skip_taskbar(self, skip: bool) -> Self; + /// Sets whether or not the window has shadow. + /// + /// ## Platform-specific + /// + /// - **Windows:** + /// - `false` has no effect on decorated window, shadows are always ON. + /// - `true` will make ndecorated window have a 1px white border, + /// and on Windows 11, it will have a rounded corners. + /// - **Linux:** Unsupported. + #[must_use] + fn shadow(self, enable: bool) -> Self; + /// Sets a parent to the window to be created. /// /// A child window has the WS_CHILD style and is confined to the client area of its parent window. diff --git a/core/tauri-utils/Cargo.toml b/core/tauri-utils/Cargo.toml index 014361998668..f7724a5e53c0 100644 --- a/core/tauri-utils/Cargo.toml +++ b/core/tauri-utils/Cargo.toml @@ -41,7 +41,7 @@ infer = "0.7" heck = "0.4" [target."cfg(windows)".dependencies.windows] -version = "0.39.0" +version = "0.44.0" features = [ "implement", "Win32_Foundation", diff --git a/core/tauri-utils/src/config.rs b/core/tauri-utils/src/config.rs index 6ae0deb36e3c..65f97a388518 100644 --- a/core/tauri-utils/src/config.rs +++ b/core/tauri-utils/src/config.rs @@ -431,7 +431,7 @@ pub enum WebviewInstallMode { /// Results in a smaller installer size, but is not recommended on Windows 7. DownloadBootstrapper { /// Instructs the installer to run the bootstrapper in silent mode. Defaults to `true`. - #[serde(default = "default_webview_install_silent")] + #[serde(default = "default_true")] silent: bool, }, /// Embed the bootstrapper and run it. @@ -439,7 +439,7 @@ pub enum WebviewInstallMode { /// Increases the installer size by around 1.8MB, but offers better support on Windows 7. EmbedBootstrapper { /// Instructs the installer to run the bootstrapper in silent mode. Defaults to `true`. - #[serde(default = "default_webview_install_silent")] + #[serde(default = "default_true")] silent: bool, }, /// Embed the offline installer and run it. @@ -447,7 +447,7 @@ pub enum WebviewInstallMode { /// Increases the installer size by around 127MB. OfflineInstaller { /// Instructs the installer to run the installer in silent mode. Defaults to `true`. - #[serde(default = "default_webview_install_silent")] + #[serde(default = "default_true")] silent: bool, }, /// Embed a fixed webview2 version and use it at runtime. @@ -461,14 +461,10 @@ pub enum WebviewInstallMode { }, } -fn default_webview_install_silent() -> bool { - true -} - impl Default for WebviewInstallMode { fn default() -> Self { Self::DownloadBootstrapper { - silent: default_webview_install_silent(), + silent: default_true(), } } } @@ -508,7 +504,7 @@ pub struct WindowsConfig { /// For instance, if `1.2.1` is installed, the user won't be able to install app version `1.2.0` or `1.1.5`. /// /// The default value of this flag is `true`. - #[serde(default = "default_allow_downgrades", alias = "allow-downgrades")] + #[serde(default = "default_true", alias = "allow-downgrades")] pub allow_downgrades: bool, /// Configuration for the MSI generated with WiX. pub wix: Option, @@ -523,16 +519,12 @@ impl Default for WindowsConfig { tsp: false, webview_install_mode: Default::default(), webview_fixed_runtime_path: None, - allow_downgrades: default_allow_downgrades(), + allow_downgrades: default_true(), wix: None, } } } -fn default_allow_downgrades() -> bool { - true -} - /// Configuration for tauri-bundler. #[skip_serializing_none] #[derive(Debug, Default, PartialEq, Eq, Clone, Deserialize, Serialize)] @@ -805,7 +797,7 @@ pub struct WindowConfig { /// Whether the file drop is enabled or not on the webview. By default it is enabled. /// /// Disabling it is required to use drag and drop on the frontend on Windows. - #[serde(default = "default_file_drop_enabled", alias = "file-drop-enabled")] + #[serde(default = "default_true", alias = "file-drop-enabled")] pub file_drop_enabled: bool, /// Whether or not the window starts centered or not. #[serde(default)] @@ -833,7 +825,7 @@ pub struct WindowConfig { #[serde(alias = "max-height")] pub max_height: Option, /// Whether the window is resizable or not. - #[serde(default = "default_resizable")] + #[serde(default = "default_true")] pub resizable: bool, /// The window title. #[serde(default = "default_title")] @@ -842,7 +834,7 @@ pub struct WindowConfig { #[serde(default)] pub fullscreen: bool, /// Whether the window will be initially focused or not. - #[serde(default = "default_focus")] + #[serde(default = "default_true")] pub focus: bool, /// Whether the window is transparent or not. /// @@ -854,10 +846,10 @@ pub struct WindowConfig { #[serde(default)] pub maximized: bool, /// Whether the window is visible or not. - #[serde(default = "default_visible")] + #[serde(default = "default_true")] pub visible: bool, /// Whether the window should have borders and bars. - #[serde(default = "default_decorations")] + #[serde(default = "default_true")] pub decorations: bool, /// Whether the window should always be on top of other windows. #[serde(default, alias = "always-on-top")] @@ -884,6 +876,17 @@ pub struct WindowConfig { /// [tabbing identifier]: #[serde(default, alias = "tabbing-identifier")] pub tabbing_identifier: Option, + /// Whether or not the window has shadow. + /// + /// ## Platform-specific + /// + /// - **Windows:** + /// - `false` has no effect on decorated window, shadow are always ON. + /// - `true` will make ndecorated window have a 1px white border, + /// and on Windows 11, it will have a rounded corners. + /// - **Linux:** Unsupported. + #[serde(default)] + pub shadow: bool, } impl Default for WindowConfig { @@ -892,7 +895,7 @@ impl Default for WindowConfig { label: default_window_label(), url: WindowUrl::default(), user_agent: None, - file_drop_enabled: default_file_drop_enabled(), + file_drop_enabled: default_true(), center: false, x: None, y: None, @@ -902,14 +905,14 @@ impl Default for WindowConfig { min_height: None, max_width: None, max_height: None, - resizable: default_resizable(), + resizable: default_true(), title: default_title(), fullscreen: false, focus: false, transparent: false, maximized: false, - visible: default_visible(), - decorations: default_decorations(), + visible: default_true(), + decorations: default_true(), always_on_top: false, skip_taskbar: false, theme: None, @@ -917,6 +920,7 @@ impl Default for WindowConfig { hidden_title: false, accept_first_mouse: false, tabbing_identifier: None, + shadow: false, } } } @@ -933,7 +937,7 @@ fn default_height() -> f64 { 600f64 } -fn default_resizable() -> bool { +fn default_true() -> bool { true } @@ -941,22 +945,6 @@ fn default_title() -> String { "Tauri App".to_string() } -fn default_focus() -> bool { - true -} - -fn default_visible() -> bool { - true -} - -fn default_decorations() -> bool { - true -} - -fn default_file_drop_enabled() -> bool { - true -} - /// A Content-Security-Policy directive source list. /// See . #[derive(Debug, PartialEq, Eq, Clone, Deserialize, Serialize)] @@ -1329,6 +1317,9 @@ pub struct WindowAllowlistConfig { /// Allows setting the decorations flag of the window. #[serde(default, alias = "set-decorations")] pub set_decorations: bool, + /// Allows setting the shadow flag of the window. + #[serde(default, alias = "set-shadow")] + pub set_shadow: bool, /// Allows setting the always_on_top flag of the window. #[serde(default, alias = "set-always-on-top")] pub set_always_on_top: bool, @@ -1410,6 +1401,7 @@ impl Allowlist for WindowAllowlistConfig { set_cursor_icon: true, set_cursor_position: true, set_ignore_cursor_events: true, + set_shadow: true, start_dragging: true, print: true, }; @@ -1441,6 +1433,7 @@ impl Allowlist for WindowAllowlistConfig { check_feature!(self, features, hide, "window-hide"); check_feature!(self, features, close, "window-close"); check_feature!(self, features, set_decorations, "window-set-decorations"); + check_feature!(self, features, set_shadow, "window-set-shadow"); check_feature!( self, features, @@ -2376,7 +2369,7 @@ pub struct UpdaterConfig { #[serde(default)] pub active: bool, /// Display built-in dialog or use event system if disabled. - #[serde(default = "default_dialog")] + #[serde(default = "default_true")] pub dialog: bool, /// The updater endpoints. TLS is enforced on production. /// @@ -2407,7 +2400,7 @@ impl<'de> Deserialize<'de> for UpdaterConfig { struct InnerUpdaterConfig { #[serde(default)] active: bool, - #[serde(default = "default_dialog")] + #[serde(default = "default_true")] dialog: bool, endpoints: Option>, pubkey: Option, @@ -2437,7 +2430,7 @@ impl Default for UpdaterConfig { fn default() -> Self { Self { active: false, - dialog: default_dialog(), + dialog: default_true(), endpoints: None, pubkey: "".into(), windows: Default::default(), @@ -2458,26 +2451,12 @@ pub struct SystemTrayConfig { #[serde(default, alias = "icon-as-template")] pub icon_as_template: bool, /// A Boolean value that determines whether the menu should appear when the tray icon receives a left click on macOS. - #[serde( - default = "default_tray_menu_on_left_click", - alias = "menu-on-left-click" - )] + #[serde(default = "default_true", alias = "menu-on-left-click")] pub menu_on_left_click: bool, /// Title for MacOS tray pub title: Option, } -fn default_tray_menu_on_left_click() -> bool { - true -} - -// We enable the unnecessary_wraps because we need -// to use an Option for dialog otherwise the CLI schema will mark -// the dialog as a required field which is not as we default it to true. -fn default_dialog() -> bool { - true -} - /// General configuration for the iOS target. #[skip_serializing_none] #[derive(Debug, Default, PartialEq, Eq, Clone, Deserialize, Serialize)] @@ -3060,6 +3039,7 @@ mod build { let hidden_title = self.hidden_title; let accept_first_mouse = self.accept_first_mouse; let tabbing_identifier = opt_str_lit(self.tabbing_identifier.as_ref()); + let shadow = self.shadow; literal_struct!( tokens, @@ -3091,7 +3071,8 @@ mod build { title_bar_style, hidden_title, accept_first_mouse, - tabbing_identifier + tabbing_identifier, + shadow ); } } diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml index bb7a40a298f1..50be52a22982 100644 --- a/core/tauri/Cargo.toml +++ b/core/tauri/Cargo.toml @@ -101,12 +101,12 @@ cocoa = "0.24" objc = "0.2" [target."cfg(windows)".dependencies] -webview2-com = "0.19.1" +webview2-com = "0.22" win7-notifications = { version = "0.3.1", optional = true } - [target."cfg(windows)".dependencies.windows] - version = "0.39.0" - features = [ "Win32_Foundation" ] +[target."cfg(windows)".dependencies.windows] +version = "0.44" +features = [ "Win32_Foundation" ] [target."cfg(target_os = \"android\")".dependencies] paste = "1.0" @@ -250,6 +250,7 @@ window-all = [ "window-hide", "window-close", "window-set-decorations", + "window-set-shadow", "window-set-always-on-top", "window-set-size", "window-set-min-size", @@ -280,6 +281,7 @@ window-show = [ ] window-hide = [ ] window-close = [ ] window-set-decorations = [ ] +window-set-shadow = [ ] window-set-always-on-top = [ ] window-set-size = [ ] window-set-min-size = [ ] diff --git a/core/tauri/build.rs b/core/tauri/build.rs index 59208e9ec46d..7e6a6083e172 100644 --- a/core/tauri/build.rs +++ b/core/tauri/build.rs @@ -80,6 +80,7 @@ fn main() { "hide", "close", "set-decorations", + "set-shadow", "set-always-on-top", "set-size", "set-min-size", diff --git a/core/tauri/scripts/bundle.global.js b/core/tauri/scripts/bundle.global.js index 711c6ef9e883..9b125f1afb81 100644 --- a/core/tauri/scripts/bundle.global.js +++ b/core/tauri/scripts/bundle.global.js @@ -1,8 +1,8 @@ -"use strict";var __TAURI_IIFE__=(()=>{var L=Object.defineProperty;var de=Object.getOwnPropertyDescriptor;var me=Object.getOwnPropertyNames;var pe=Object.prototype.hasOwnProperty;var c=(t,e)=>{for(var n in e)L(t,n,{get:e[n],enumerable:!0})},ge=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of me(e))!pe.call(t,s)&&s!==n&&L(t,s,{get:()=>e[s],enumerable:!(r=de(e,s))||r.enumerable});return t};var he=t=>ge(L({},"__esModule",{value:!0}),t);var Jt={};c(Jt,{app:()=>k,cli:()=>U,clipboard:()=>I,dialog:()=>N,event:()=>V,fs:()=>j,globalShortcut:()=>q,http:()=>$,invoke:()=>$t,notification:()=>J,os:()=>ne,path:()=>K,process:()=>Q,shell:()=>Z,tauri:()=>R,updater:()=>X,window:()=>te});var k={};c(k,{getName:()=>be,getTauriVersion:()=>Pe,getVersion:()=>_e,hide:()=>ve,show:()=>we});var R={};c(R,{convertFileSrc:()=>fe,invoke:()=>f,transformCallback:()=>d});function ye(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function d(t,e=!1){let n=ye(),r=`_${n}`;return Object.defineProperty(window,r,{value:s=>(e&&Reflect.deleteProperty(window,r),t?.(s)),writable:!1,configurable:!0}),n}async function f(t,e={}){return new Promise((n,r)=>{let s=d(l=>{n(l),Reflect.deleteProperty(window,`_${a}`)},!0),a=d(l=>{r(l),Reflect.deleteProperty(window,`_${s}`)},!0);window.__TAURI_IPC__({cmd:t,callback:s,error:a,...e})})}function fe(t,e="asset"){let n=encodeURIComponent(t);return navigator.userAgent.includes("Windows")?`https://${e}.localhost/${n}`:`${e}://localhost/${n}`}async function i(t){return f("tauri",t)}async function _e(){return i({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function be(){return i({__tauriModule:"App",message:{cmd:"getAppName"}})}async function Pe(){return i({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function we(){return i({__tauriModule:"App",message:{cmd:"show"}})}async function ve(){return i({__tauriModule:"App",message:{cmd:"hide"}})}var U={};c(U,{getMatches:()=>Me});async function Me(){return i({__tauriModule:"Cli",message:{cmd:"cliMatches"}})}var I={};c(I,{readText:()=>Oe,writeText:()=>Te});async function Te(t){return i({__tauriModule:"Clipboard",message:{cmd:"writeText",data:t}})}async function Oe(){return i({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})}var N={};c(N,{ask:()=>Ce,confirm:()=>De,message:()=>Ae,open:()=>Fe,save:()=>Ee});async function Fe(t={}){return typeof t=="object"&&Object.freeze(t),i({__tauriModule:"Dialog",message:{cmd:"openDialog",options:t}})}async function Ee(t={}){return typeof t=="object"&&Object.freeze(t),i({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:t}})}async function Ae(t,e){let n=typeof e=="string"?{title:e}:e;return i({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:t.toString(),title:n?.title?.toString(),type:n?.type}})}async function Ce(t,e){let n=typeof e=="string"?{title:e}:e;return i({__tauriModule:"Dialog",message:{cmd:"askDialog",message:t.toString(),title:n?.title?.toString(),type:n?.type}})}async function De(t,e){let n=typeof e=="string"?{title:e}:e;return i({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:t.toString(),title:n?.title?.toString(),type:n?.type}})}var V={};c(V,{TauriEvent:()=>M,emit:()=>T,listen:()=>z,once:()=>H});async function ie(t,e){return i({__tauriModule:"Event",message:{cmd:"unlisten",event:t,eventId:e}})}async function w(t,e,n){await i({__tauriModule:"Event",message:{cmd:"emit",event:t,windowLabel:e,payload:n}})}async function _(t,e,n){return i({__tauriModule:"Event",message:{cmd:"listen",event:t,windowLabel:e,handler:d(n)}}).then(r=>async()=>ie(t,r))}async function v(t,e,n){return _(t,e,r=>{n(r),ie(t,r.id).catch(()=>{})})}var M=(u=>(u.WINDOW_RESIZED="tauri://resize",u.WINDOW_MOVED="tauri://move",u.WINDOW_CLOSE_REQUESTED="tauri://close-requested",u.WINDOW_CREATED="tauri://window-created",u.WINDOW_DESTROYED="tauri://destroyed",u.WINDOW_FOCUS="tauri://focus",u.WINDOW_BLUR="tauri://blur",u.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",u.WINDOW_THEME_CHANGED="tauri://theme-changed",u.WINDOW_FILE_DROP="tauri://file-drop",u.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",u.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",u.MENU="tauri://menu",u.CHECK_UPDATE="tauri://update",u.UPDATE_AVAILABLE="tauri://update-available",u.INSTALL_UPDATE="tauri://update-install",u.STATUS_UPDATE="tauri://update-status",u.DOWNLOAD_PROGRESS="tauri://update-download-progress",u))(M||{});async function z(t,e){return _(t,null,e)}async function H(t,e){return v(t,null,e)}async function T(t,e){return w(t,void 0,e)}var j={};c(j,{BaseDirectory:()=>O,Dir:()=>O,copyFile:()=>Ne,createDir:()=>Ue,exists:()=>Ve,readBinaryFile:()=>xe,readDir:()=>ke,readTextFile:()=>We,removeDir:()=>Ie,removeFile:()=>ze,renameFile:()=>He,writeBinaryFile:()=>Re,writeFile:()=>Le,writeTextFile:()=>Le});var O=(o=>(o[o.Audio=1]="Audio",o[o.Cache=2]="Cache",o[o.Config=3]="Config",o[o.Data=4]="Data",o[o.LocalData=5]="LocalData",o[o.Desktop=6]="Desktop",o[o.Document=7]="Document",o[o.Download=8]="Download",o[o.Executable=9]="Executable",o[o.Font=10]="Font",o[o.Home=11]="Home",o[o.Picture=12]="Picture",o[o.Public=13]="Public",o[o.Runtime=14]="Runtime",o[o.Template=15]="Template",o[o.Video=16]="Video",o[o.Resource=17]="Resource",o[o.App=18]="App",o[o.Log=19]="Log",o[o.Temp=20]="Temp",o[o.AppConfig=21]="AppConfig",o[o.AppData=22]="AppData",o[o.AppLocalData=23]="AppLocalData",o[o.AppCache=24]="AppCache",o[o.AppLog=25]="AppLog",o))(O||{});async function We(t,e={}){return i({__tauriModule:"Fs",message:{cmd:"readTextFile",path:t,options:e}})}async function xe(t,e={}){let n=await i({__tauriModule:"Fs",message:{cmd:"readFile",path:t,options:e}});return Uint8Array.from(n)}async function Le(t,e,n){typeof n=="object"&&Object.freeze(n),typeof t=="object"&&Object.freeze(t);let r={path:"",contents:""},s=n;return typeof t=="string"?r.path=t:(r.path=t.path,r.contents=t.contents),typeof e=="string"?r.contents=e??"":s=e,i({__tauriModule:"Fs",message:{cmd:"writeFile",path:r.path,contents:Array.from(new TextEncoder().encode(r.contents)),options:s}})}async function Re(t,e,n){typeof n=="object"&&Object.freeze(n),typeof t=="object"&&Object.freeze(t);let r={path:"",contents:[]},s=n;return typeof t=="string"?r.path=t:(r.path=t.path,r.contents=t.contents),e&&"dir"in e?s=e:typeof t=="string"&&(r.contents=e??[]),i({__tauriModule:"Fs",message:{cmd:"writeFile",path:r.path,contents:Array.from(r.contents instanceof ArrayBuffer?new Uint8Array(r.contents):r.contents),options:s}})}async function ke(t,e={}){return i({__tauriModule:"Fs",message:{cmd:"readDir",path:t,options:e}})}async function Ue(t,e={}){return i({__tauriModule:"Fs",message:{cmd:"createDir",path:t,options:e}})}async function Ie(t,e={}){return i({__tauriModule:"Fs",message:{cmd:"removeDir",path:t,options:e}})}async function Ne(t,e,n={}){return i({__tauriModule:"Fs",message:{cmd:"copyFile",source:t,destination:e,options:n}})}async function ze(t,e={}){return i({__tauriModule:"Fs",message:{cmd:"removeFile",path:t,options:e}})}async function He(t,e,n={}){return i({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:t,newPath:e,options:n}})}async function Ve(t,e={}){return i({__tauriModule:"Fs",message:{cmd:"exists",path:t,options:e}})}var q={};c(q,{isRegistered:()=>Ge,register:()=>je,registerAll:()=>qe,unregister:()=>$e,unregisterAll:()=>Je});async function je(t,e){return i({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:t,handler:d(e)}})}async function qe(t,e){return i({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:t,handler:d(e)}})}async function Ge(t){return i({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:t}})}async function $e(t){return i({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:t}})}async function Je(){return i({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})}var $={};c($,{Body:()=>p,Client:()=>E,Response:()=>F,ResponseType:()=>re,fetch:()=>Ke,getClient:()=>se});var re=(r=>(r[r.JSON=1]="JSON",r[r.Text=2]="Text",r[r.Binary=3]="Binary",r))(re||{}),p=class{constructor(e,n){this.type=e,this.payload=n}static form(e){let n={},r=(s,a)=>{if(a!==null){let l;typeof a=="string"?l=a:a instanceof Uint8Array||Array.isArray(a)?l=Array.from(a):a instanceof File?l={file:a.name,mime:a.type,fileName:a.name}:typeof a.file=="string"?l={file:a.file,mime:a.mime,fileName:a.fileName}:l={file:Array.from(a.file),mime:a.mime,fileName:a.fileName},n[String(s)]=l}};if(e instanceof FormData)for(let[s,a]of e)r(s,a);else for(let[s,a]of Object.entries(e))r(s,a);return new p("Form",n)}static json(e){return new p("Json",e)}static text(e){return new p("Text",e)}static bytes(e){return new p("Bytes",Array.from(e instanceof ArrayBuffer?new Uint8Array(e):e))}},F=class{constructor(e){this.url=e.url,this.status=e.status,this.ok=this.status>=200&&this.status<300,this.headers=e.headers,this.rawHeaders=e.rawHeaders,this.data=e.data}},E=class{constructor(e){this.id=e}async drop(){return i({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})}async request(e){let n=!e.responseType||e.responseType===1;return n&&(e.responseType=2),i({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:e}}).then(r=>{let s=new F(r);if(n){try{s.data=JSON.parse(s.data)}catch(a){if(s.ok&&s.data==="")s.data={};else if(s.ok)throw Error(`Failed to parse response \`${s.data}\` as JSON: ${a}; - try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`)}return s}return s})}async get(e,n){return this.request({method:"GET",url:e,...n})}async post(e,n,r){return this.request({method:"POST",url:e,body:n,...r})}async put(e,n,r){return this.request({method:"PUT",url:e,body:n,...r})}async patch(e,n){return this.request({method:"PATCH",url:e,...n})}async delete(e,n){return this.request({method:"DELETE",url:e,...n})}};async function se(t){return i({__tauriModule:"Http",message:{cmd:"createClient",options:t}}).then(e=>new E(e))}var G=null;async function Ke(t,e){return G===null&&(G=await se()),G.request({url:t,method:e?.method??"GET",...e})}var J={};c(J,{isPermissionGranted:()=>Qe,requestPermission:()=>Ze,sendNotification:()=>Ye});async function Qe(){return window.Notification.permission!=="default"?Promise.resolve(window.Notification.permission==="granted"):i({__tauriModule:"Notification",message:{cmd:"isNotificationPermissionGranted"}})}async function Ze(){return window.Notification.requestPermission()}function Ye(t){typeof t=="string"?new window.Notification(t):new window.Notification(t.title,t)}var K={};c(K,{BaseDirectory:()=>O,appCacheDir:()=>tt,appConfigDir:()=>ae,appDataDir:()=>Be,appDir:()=>Xe,appLocalDataDir:()=>et,appLogDir:()=>oe,audioDir:()=>nt,basename:()=>At,cacheDir:()=>it,configDir:()=>rt,dataDir:()=>st,delimiter:()=>vt,desktopDir:()=>at,dirname:()=>Ft,documentDir:()=>ot,downloadDir:()=>lt,executableDir:()=>ut,extname:()=>Et,fontDir:()=>ct,homeDir:()=>dt,isAbsolute:()=>Ct,join:()=>Ot,localDataDir:()=>mt,logDir:()=>Pt,normalize:()=>Tt,pictureDir:()=>pt,publicDir:()=>gt,resolve:()=>Mt,resolveResource:()=>yt,resourceDir:()=>ht,runtimeDir:()=>ft,sep:()=>wt,templateDir:()=>_t,videoDir:()=>bt});function b(){return navigator.appVersion.includes("Win")}async function Xe(){return ae()}async function ae(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:21}})}async function Be(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:22}})}async function et(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:23}})}async function tt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:24}})}async function nt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:1}})}async function it(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:2}})}async function rt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:3}})}async function st(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:4}})}async function at(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:6}})}async function ot(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:7}})}async function lt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:8}})}async function ut(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:9}})}async function ct(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:10}})}async function dt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:11}})}async function mt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:5}})}async function pt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:12}})}async function gt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:13}})}async function ht(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:17}})}async function yt(t){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:t,directory:17}})}async function ft(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:14}})}async function _t(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:15}})}async function bt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:16}})}async function Pt(){return oe()}async function oe(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:25}})}var wt=b()?"\\":"/",vt=b()?";":":";async function Mt(...t){return i({__tauriModule:"Path",message:{cmd:"resolve",paths:t}})}async function Tt(t){return i({__tauriModule:"Path",message:{cmd:"normalize",path:t}})}async function Ot(...t){return i({__tauriModule:"Path",message:{cmd:"join",paths:t}})}async function Ft(t){return i({__tauriModule:"Path",message:{cmd:"dirname",path:t}})}async function Et(t){return i({__tauriModule:"Path",message:{cmd:"extname",path:t}})}async function At(t,e){return i({__tauriModule:"Path",message:{cmd:"basename",path:t,ext:e}})}async function Ct(t){return i({__tauriModule:"Path",message:{cmd:"isAbsolute",path:t}})}var Q={};c(Q,{exit:()=>Dt,relaunch:()=>St});async function Dt(t=0){return i({__tauriModule:"Process",message:{cmd:"exit",exitCode:t}})}async function St(){return i({__tauriModule:"Process",message:{cmd:"relaunch"}})}var Z={};c(Z,{Child:()=>A,Command:()=>P,EventEmitter:()=>g,open:()=>xt});async function Wt(t,e,n=[],r){return typeof n=="object"&&Object.freeze(n),i({__tauriModule:"Shell",message:{cmd:"execute",program:e,args:n,options:r,onEventFn:d(t)}})}var g=class{constructor(){this.eventListeners=Object.create(null)}addListener(e,n){return this.on(e,n)}removeListener(e,n){return this.off(e,n)}on(e,n){return e in this.eventListeners?this.eventListeners[e].push(n):this.eventListeners[e]=[n],this}once(e,n){let r=(...s)=>{this.removeListener(e,r),n(...s)};return this.addListener(e,r)}off(e,n){return e in this.eventListeners&&(this.eventListeners[e]=this.eventListeners[e].filter(r=>r!==n)),this}removeAllListeners(e){return e?delete this.eventListeners[e]:this.eventListeners=Object.create(null),this}emit(e,...n){if(e in this.eventListeners){let r=this.eventListeners[e];for(let s of r)s(...n);return!0}return!1}listenerCount(e){return e in this.eventListeners?this.eventListeners[e].length:0}prependListener(e,n){return e in this.eventListeners?this.eventListeners[e].unshift(n):this.eventListeners[e]=[n],this}prependOnceListener(e,n){let r=(...s)=>{this.removeListener(e,r),n(...s)};return this.prependListener(e,r)}},A=class{constructor(e){this.pid=e}async write(e){return i({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:typeof e=="string"?e:Array.from(e)}})}async kill(){return i({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})}},P=class extends g{constructor(n,r=[],s){super();this.stdout=new g;this.stderr=new g;this.program=n,this.args=typeof r=="string"?[r]:r,this.options=s??{}}static sidecar(n,r=[],s){let a=new P(n,r,s);return a.options.sidecar=!0,a}async spawn(){return Wt(n=>{switch(n.event){case"Error":this.emit("error",n.payload);break;case"Terminated":this.emit("close",n.payload);break;case"Stdout":this.stdout.emit("data",n.payload);break;case"Stderr":this.stderr.emit("data",n.payload);break}},this.program,this.args,this.options).then(n=>new A(n))}async execute(){return new Promise((n,r)=>{this.on("error",r);let s=[],a=[];this.stdout.on("data",l=>{s.push(l)}),this.stderr.on("data",l=>{a.push(l)}),this.on("close",l=>{n({code:l.code,signal:l.signal,stdout:s.join(` +"use strict";var __TAURI_IIFE__=(()=>{var L=Object.defineProperty;var ce=Object.getOwnPropertyDescriptor;var me=Object.getOwnPropertyNames;var pe=Object.prototype.hasOwnProperty;var d=(t,e)=>{for(var n in e)L(t,n,{get:e[n],enumerable:!0})},ge=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of me(e))!pe.call(t,s)&&s!==n&&L(t,s,{get:()=>e[s],enumerable:!(r=ce(e,s))||r.enumerable});return t};var he=t=>ge(L({},"__esModule",{value:!0}),t);var Jt={};d(Jt,{app:()=>k,cli:()=>U,clipboard:()=>I,dialog:()=>N,event:()=>V,fs:()=>j,globalShortcut:()=>q,http:()=>$,invoke:()=>$t,notification:()=>J,os:()=>ne,path:()=>K,process:()=>Q,shell:()=>Z,tauri:()=>R,updater:()=>X,window:()=>te});var k={};d(k,{getName:()=>be,getTauriVersion:()=>Pe,getVersion:()=>_e,hide:()=>ve,show:()=>we});var R={};d(R,{convertFileSrc:()=>fe,invoke:()=>f,transformCallback:()=>c});function ye(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function c(t,e=!1){let n=ye(),r=`_${n}`;return Object.defineProperty(window,r,{value:s=>(e&&Reflect.deleteProperty(window,r),t?.(s)),writable:!1,configurable:!0}),n}async function f(t,e={}){return new Promise((n,r)=>{let s=c(l=>{n(l),Reflect.deleteProperty(window,`_${a}`)},!0),a=c(l=>{r(l),Reflect.deleteProperty(window,`_${s}`)},!0);window.__TAURI_IPC__({cmd:t,callback:s,error:a,...e})})}function fe(t,e="asset"){let n=encodeURIComponent(t);return navigator.userAgent.includes("Windows")?`https://${e}.localhost/${n}`:`${e}://localhost/${n}`}async function i(t){return f("tauri",t)}async function _e(){return i({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function be(){return i({__tauriModule:"App",message:{cmd:"getAppName"}})}async function Pe(){return i({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function we(){return i({__tauriModule:"App",message:{cmd:"show"}})}async function ve(){return i({__tauriModule:"App",message:{cmd:"hide"}})}var U={};d(U,{getMatches:()=>Me});async function Me(){return i({__tauriModule:"Cli",message:{cmd:"cliMatches"}})}var I={};d(I,{readText:()=>Oe,writeText:()=>Te});async function Te(t){return i({__tauriModule:"Clipboard",message:{cmd:"writeText",data:t}})}async function Oe(){return i({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})}var N={};d(N,{ask:()=>Ce,confirm:()=>De,message:()=>Ae,open:()=>Fe,save:()=>Ee});async function Fe(t={}){return typeof t=="object"&&Object.freeze(t),i({__tauriModule:"Dialog",message:{cmd:"openDialog",options:t}})}async function Ee(t={}){return typeof t=="object"&&Object.freeze(t),i({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:t}})}async function Ae(t,e){let n=typeof e=="string"?{title:e}:e;return i({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:t.toString(),title:n?.title?.toString(),type:n?.type}})}async function Ce(t,e){let n=typeof e=="string"?{title:e}:e;return i({__tauriModule:"Dialog",message:{cmd:"askDialog",message:t.toString(),title:n?.title?.toString(),type:n?.type}})}async function De(t,e){let n=typeof e=="string"?{title:e}:e;return i({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:t.toString(),title:n?.title?.toString(),type:n?.type}})}var V={};d(V,{TauriEvent:()=>M,emit:()=>T,listen:()=>z,once:()=>H});async function ie(t,e){return i({__tauriModule:"Event",message:{cmd:"unlisten",event:t,eventId:e}})}async function w(t,e,n){await i({__tauriModule:"Event",message:{cmd:"emit",event:t,windowLabel:e,payload:n}})}async function _(t,e,n){return i({__tauriModule:"Event",message:{cmd:"listen",event:t,windowLabel:e,handler:c(n)}}).then(r=>async()=>ie(t,r))}async function v(t,e,n){return _(t,e,r=>{n(r),ie(t,r.id).catch(()=>{})})}var M=(u=>(u.WINDOW_RESIZED="tauri://resize",u.WINDOW_MOVED="tauri://move",u.WINDOW_CLOSE_REQUESTED="tauri://close-requested",u.WINDOW_CREATED="tauri://window-created",u.WINDOW_DESTROYED="tauri://destroyed",u.WINDOW_FOCUS="tauri://focus",u.WINDOW_BLUR="tauri://blur",u.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",u.WINDOW_THEME_CHANGED="tauri://theme-changed",u.WINDOW_FILE_DROP="tauri://file-drop",u.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",u.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",u.MENU="tauri://menu",u.CHECK_UPDATE="tauri://update",u.UPDATE_AVAILABLE="tauri://update-available",u.INSTALL_UPDATE="tauri://update-install",u.STATUS_UPDATE="tauri://update-status",u.DOWNLOAD_PROGRESS="tauri://update-download-progress",u))(M||{});async function z(t,e){return _(t,null,e)}async function H(t,e){return v(t,null,e)}async function T(t,e){return w(t,void 0,e)}var j={};d(j,{BaseDirectory:()=>O,Dir:()=>O,copyFile:()=>Ne,createDir:()=>Ue,exists:()=>Ve,readBinaryFile:()=>xe,readDir:()=>ke,readTextFile:()=>We,removeDir:()=>Ie,removeFile:()=>ze,renameFile:()=>He,writeBinaryFile:()=>Re,writeFile:()=>Le,writeTextFile:()=>Le});var O=(o=>(o[o.Audio=1]="Audio",o[o.Cache=2]="Cache",o[o.Config=3]="Config",o[o.Data=4]="Data",o[o.LocalData=5]="LocalData",o[o.Desktop=6]="Desktop",o[o.Document=7]="Document",o[o.Download=8]="Download",o[o.Executable=9]="Executable",o[o.Font=10]="Font",o[o.Home=11]="Home",o[o.Picture=12]="Picture",o[o.Public=13]="Public",o[o.Runtime=14]="Runtime",o[o.Template=15]="Template",o[o.Video=16]="Video",o[o.Resource=17]="Resource",o[o.App=18]="App",o[o.Log=19]="Log",o[o.Temp=20]="Temp",o[o.AppConfig=21]="AppConfig",o[o.AppData=22]="AppData",o[o.AppLocalData=23]="AppLocalData",o[o.AppCache=24]="AppCache",o[o.AppLog=25]="AppLog",o))(O||{});async function We(t,e={}){return i({__tauriModule:"Fs",message:{cmd:"readTextFile",path:t,options:e}})}async function xe(t,e={}){let n=await i({__tauriModule:"Fs",message:{cmd:"readFile",path:t,options:e}});return Uint8Array.from(n)}async function Le(t,e,n){typeof n=="object"&&Object.freeze(n),typeof t=="object"&&Object.freeze(t);let r={path:"",contents:""},s=n;return typeof t=="string"?r.path=t:(r.path=t.path,r.contents=t.contents),typeof e=="string"?r.contents=e??"":s=e,i({__tauriModule:"Fs",message:{cmd:"writeFile",path:r.path,contents:Array.from(new TextEncoder().encode(r.contents)),options:s}})}async function Re(t,e,n){typeof n=="object"&&Object.freeze(n),typeof t=="object"&&Object.freeze(t);let r={path:"",contents:[]},s=n;return typeof t=="string"?r.path=t:(r.path=t.path,r.contents=t.contents),e&&"dir"in e?s=e:typeof t=="string"&&(r.contents=e??[]),i({__tauriModule:"Fs",message:{cmd:"writeFile",path:r.path,contents:Array.from(r.contents instanceof ArrayBuffer?new Uint8Array(r.contents):r.contents),options:s}})}async function ke(t,e={}){return i({__tauriModule:"Fs",message:{cmd:"readDir",path:t,options:e}})}async function Ue(t,e={}){return i({__tauriModule:"Fs",message:{cmd:"createDir",path:t,options:e}})}async function Ie(t,e={}){return i({__tauriModule:"Fs",message:{cmd:"removeDir",path:t,options:e}})}async function Ne(t,e,n={}){return i({__tauriModule:"Fs",message:{cmd:"copyFile",source:t,destination:e,options:n}})}async function ze(t,e={}){return i({__tauriModule:"Fs",message:{cmd:"removeFile",path:t,options:e}})}async function He(t,e,n={}){return i({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:t,newPath:e,options:n}})}async function Ve(t,e={}){return i({__tauriModule:"Fs",message:{cmd:"exists",path:t,options:e}})}var q={};d(q,{isRegistered:()=>Ge,register:()=>je,registerAll:()=>qe,unregister:()=>$e,unregisterAll:()=>Je});async function je(t,e){return i({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:t,handler:c(e)}})}async function qe(t,e){return i({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:t,handler:c(e)}})}async function Ge(t){return i({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:t}})}async function $e(t){return i({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:t}})}async function Je(){return i({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})}var $={};d($,{Body:()=>p,Client:()=>E,Response:()=>F,ResponseType:()=>re,fetch:()=>Ke,getClient:()=>se});var re=(r=>(r[r.JSON=1]="JSON",r[r.Text=2]="Text",r[r.Binary=3]="Binary",r))(re||{}),p=class{constructor(e,n){this.type=e,this.payload=n}static form(e){let n={},r=(s,a)=>{if(a!==null){let l;typeof a=="string"?l=a:a instanceof Uint8Array||Array.isArray(a)?l=Array.from(a):a instanceof File?l={file:a.name,mime:a.type,fileName:a.name}:typeof a.file=="string"?l={file:a.file,mime:a.mime,fileName:a.fileName}:l={file:Array.from(a.file),mime:a.mime,fileName:a.fileName},n[String(s)]=l}};if(e instanceof FormData)for(let[s,a]of e)r(s,a);else for(let[s,a]of Object.entries(e))r(s,a);return new p("Form",n)}static json(e){return new p("Json",e)}static text(e){return new p("Text",e)}static bytes(e){return new p("Bytes",Array.from(e instanceof ArrayBuffer?new Uint8Array(e):e))}},F=class{constructor(e){this.url=e.url,this.status=e.status,this.ok=this.status>=200&&this.status<300,this.headers=e.headers,this.rawHeaders=e.rawHeaders,this.data=e.data}},E=class{constructor(e){this.id=e}async drop(){return i({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})}async request(e){let n=!e.responseType||e.responseType===1;return n&&(e.responseType=2),i({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:e}}).then(r=>{let s=new F(r);if(n){try{s.data=JSON.parse(s.data)}catch(a){if(s.ok&&s.data==="")s.data={};else if(s.ok)throw Error(`Failed to parse response \`${s.data}\` as JSON: ${a}; + try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`)}return s}return s})}async get(e,n){return this.request({method:"GET",url:e,...n})}async post(e,n,r){return this.request({method:"POST",url:e,body:n,...r})}async put(e,n,r){return this.request({method:"PUT",url:e,body:n,...r})}async patch(e,n){return this.request({method:"PATCH",url:e,...n})}async delete(e,n){return this.request({method:"DELETE",url:e,...n})}};async function se(t){return i({__tauriModule:"Http",message:{cmd:"createClient",options:t}}).then(e=>new E(e))}var G=null;async function Ke(t,e){return G===null&&(G=await se()),G.request({url:t,method:e?.method??"GET",...e})}var J={};d(J,{isPermissionGranted:()=>Qe,requestPermission:()=>Ze,sendNotification:()=>Ye});async function Qe(){return window.Notification.permission!=="default"?Promise.resolve(window.Notification.permission==="granted"):i({__tauriModule:"Notification",message:{cmd:"isNotificationPermissionGranted"}})}async function Ze(){return window.Notification.requestPermission()}function Ye(t){typeof t=="string"?new window.Notification(t):new window.Notification(t.title,t)}var K={};d(K,{BaseDirectory:()=>O,appCacheDir:()=>tt,appConfigDir:()=>ae,appDataDir:()=>Be,appDir:()=>Xe,appLocalDataDir:()=>et,appLogDir:()=>oe,audioDir:()=>nt,basename:()=>At,cacheDir:()=>it,configDir:()=>rt,dataDir:()=>st,delimiter:()=>vt,desktopDir:()=>at,dirname:()=>Ft,documentDir:()=>ot,downloadDir:()=>lt,executableDir:()=>ut,extname:()=>Et,fontDir:()=>dt,homeDir:()=>ct,isAbsolute:()=>Ct,join:()=>Ot,localDataDir:()=>mt,logDir:()=>Pt,normalize:()=>Tt,pictureDir:()=>pt,publicDir:()=>gt,resolve:()=>Mt,resolveResource:()=>yt,resourceDir:()=>ht,runtimeDir:()=>ft,sep:()=>wt,templateDir:()=>_t,videoDir:()=>bt});function b(){return navigator.appVersion.includes("Win")}async function Xe(){return ae()}async function ae(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:21}})}async function Be(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:22}})}async function et(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:23}})}async function tt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:24}})}async function nt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:1}})}async function it(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:2}})}async function rt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:3}})}async function st(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:4}})}async function at(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:6}})}async function ot(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:7}})}async function lt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:8}})}async function ut(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:9}})}async function dt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:10}})}async function ct(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:11}})}async function mt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:5}})}async function pt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:12}})}async function gt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:13}})}async function ht(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:17}})}async function yt(t){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:t,directory:17}})}async function ft(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:14}})}async function _t(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:15}})}async function bt(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:16}})}async function Pt(){return oe()}async function oe(){return i({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:25}})}var wt=b()?"\\":"/",vt=b()?";":":";async function Mt(...t){return i({__tauriModule:"Path",message:{cmd:"resolve",paths:t}})}async function Tt(t){return i({__tauriModule:"Path",message:{cmd:"normalize",path:t}})}async function Ot(...t){return i({__tauriModule:"Path",message:{cmd:"join",paths:t}})}async function Ft(t){return i({__tauriModule:"Path",message:{cmd:"dirname",path:t}})}async function Et(t){return i({__tauriModule:"Path",message:{cmd:"extname",path:t}})}async function At(t,e){return i({__tauriModule:"Path",message:{cmd:"basename",path:t,ext:e}})}async function Ct(t){return i({__tauriModule:"Path",message:{cmd:"isAbsolute",path:t}})}var Q={};d(Q,{exit:()=>Dt,relaunch:()=>St});async function Dt(t=0){return i({__tauriModule:"Process",message:{cmd:"exit",exitCode:t}})}async function St(){return i({__tauriModule:"Process",message:{cmd:"relaunch"}})}var Z={};d(Z,{Child:()=>A,Command:()=>P,EventEmitter:()=>g,open:()=>xt});async function Wt(t,e,n=[],r){return typeof n=="object"&&Object.freeze(n),i({__tauriModule:"Shell",message:{cmd:"execute",program:e,args:n,options:r,onEventFn:c(t)}})}var g=class{constructor(){this.eventListeners=Object.create(null)}addListener(e,n){return this.on(e,n)}removeListener(e,n){return this.off(e,n)}on(e,n){return e in this.eventListeners?this.eventListeners[e].push(n):this.eventListeners[e]=[n],this}once(e,n){let r=(...s)=>{this.removeListener(e,r),n(...s)};return this.addListener(e,r)}off(e,n){return e in this.eventListeners&&(this.eventListeners[e]=this.eventListeners[e].filter(r=>r!==n)),this}removeAllListeners(e){return e?delete this.eventListeners[e]:this.eventListeners=Object.create(null),this}emit(e,...n){if(e in this.eventListeners){let r=this.eventListeners[e];for(let s of r)s(...n);return!0}return!1}listenerCount(e){return e in this.eventListeners?this.eventListeners[e].length:0}prependListener(e,n){return e in this.eventListeners?this.eventListeners[e].unshift(n):this.eventListeners[e]=[n],this}prependOnceListener(e,n){let r=(...s)=>{this.removeListener(e,r),n(...s)};return this.prependListener(e,r)}},A=class{constructor(e){this.pid=e}async write(e){return i({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:typeof e=="string"?e:Array.from(e)}})}async kill(){return i({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})}},P=class extends g{constructor(n,r=[],s){super();this.stdout=new g;this.stderr=new g;this.program=n,this.args=typeof r=="string"?[r]:r,this.options=s??{}}static sidecar(n,r=[],s){let a=new P(n,r,s);return a.options.sidecar=!0,a}async spawn(){return Wt(n=>{switch(n.event){case"Error":this.emit("error",n.payload);break;case"Terminated":this.emit("close",n.payload);break;case"Stdout":this.stdout.emit("data",n.payload);break;case"Stderr":this.stderr.emit("data",n.payload);break}},this.program,this.args,this.options).then(n=>new A(n))}async execute(){return new Promise((n,r)=>{this.on("error",r);let s=[],a=[];this.stdout.on("data",l=>{s.push(l)}),this.stderr.on("data",l=>{a.push(l)}),this.on("close",l=>{n({code:l.code,signal:l.signal,stdout:s.join(` `),stderr:a.join(` -`)})}),this.spawn().catch(r)})}};async function xt(t,e){return i({__tauriModule:"Shell",message:{cmd:"open",path:t,with:e}})}var X={};c(X,{checkUpdate:()=>Rt,installUpdate:()=>Lt,onUpdaterEvent:()=>Y});async function Y(t){return z("tauri://update-status",e=>{t(e?.payload)})}async function Lt(){let t;function e(){t&&t(),t=void 0}return new Promise((n,r)=>{function s(a){if(a.error)return e(),r(a.error);if(a.status==="DONE")return e(),n()}Y(s).then(a=>{t=a}).catch(a=>{throw e(),a}),T("tauri://update-install").catch(a=>{throw e(),a})})}async function Rt(){let t;function e(){t&&t(),t=void 0}return new Promise((n,r)=>{function s(l){return e(),n({manifest:l,shouldUpdate:!0})}function a(l){if(l.error)return e(),r(l.error);if(l.status==="UPTODATE")return e(),n({shouldUpdate:!1})}H("tauri://update-available",l=>{s(l?.payload)}).catch(l=>{throw e(),l}),Y(a).then(l=>{t=l}).catch(l=>{throw e(),l}),T("tauri://update").catch(l=>{throw e(),l})})}var te={};c(te,{CloseRequestedEvent:()=>x,LogicalPosition:()=>D,LogicalSize:()=>C,PhysicalPosition:()=>y,PhysicalSize:()=>h,UserAttentionType:()=>ue,WebviewWindow:()=>m,WebviewWindowHandle:()=>S,WindowManager:()=>W,appWindow:()=>B,availableMonitors:()=>Nt,currentMonitor:()=>Ut,getAll:()=>ce,getCurrent:()=>kt,primaryMonitor:()=>It});var C=class{constructor(e,n){this.type="Logical";this.width=e,this.height=n}},h=class{constructor(e,n){this.type="Physical";this.width=e,this.height=n}toLogical(e){return new C(this.width/e,this.height/e)}},D=class{constructor(e,n){this.type="Logical";this.x=e,this.y=n}},y=class{constructor(e,n){this.type="Physical";this.x=e,this.y=n}toLogical(e){return new D(this.x/e,this.y/e)}},ue=(n=>(n[n.Critical=1]="Critical",n[n.Informational=2]="Informational",n))(ue||{});function kt(){return new m(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function ce(){return window.__TAURI_METADATA__.__windows.map(t=>new m(t.label,{skip:!0}))}var le=["tauri://created","tauri://error"],S=class{constructor(e){this.label=e,this.listeners=Object.create(null)}async listen(e,n){return this._handleTauriEvent(e,n)?Promise.resolve(()=>{let r=this.listeners[e];r.splice(r.indexOf(n),1)}):_(e,this.label,n)}async once(e,n){return this._handleTauriEvent(e,n)?Promise.resolve(()=>{let r=this.listeners[e];r.splice(r.indexOf(n),1)}):v(e,this.label,n)}async emit(e,n){if(le.includes(e)){for(let r of this.listeners[e]||[])r({event:e,id:-1,windowLabel:this.label,payload:n});return Promise.resolve()}return w(e,this.label,n)}_handleTauriEvent(e,n){return le.includes(e)?(e in this.listeners?this.listeners[e].push(n):this.listeners[e]=[n],!0):!1}},W=class extends S{async scaleFactor(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(({x:e,y:n})=>new y(e,n))}async outerPosition(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(({x:e,y:n})=>new y(e,n))}async innerSize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(({width:e,height:n})=>new h(e,n))}async outerSize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(({width:e,height:n})=>new h(e,n))}async isFullscreen(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})}async isMaximized(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})}async isDecorated(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})}async isResizable(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})}async isVisible(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})}async theme(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"theme"}}}})}async center(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})}async requestUserAttention(e){let n=null;return e&&(e===1?n={type:"Critical"}:n={type:"Informational"}),i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:n}}}})}async setResizable(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:e}}}})}async setTitle(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:e}}}})}async maximize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})}async unmaximize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})}async toggleMaximize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})}async minimize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})}async unminimize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})}async show(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})}async hide(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})}async close(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})}async setDecorations(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:e}}}})}async setAlwaysOnTop(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:e}}}})}async setSize(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:e.type,data:{width:e.width,height:e.height}}}}}})}async setMinSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setMaxSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setFullscreen(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:e}}}})}async setFocus(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})}async setIcon(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof e=="string"?e:Array.from(e)}}}}})}async setSkipTaskbar(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:e}}}})}async setCursorGrab(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorGrab",payload:e}}}})}async setCursorVisible(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorVisible",payload:e}}}})}async setCursorIcon(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorIcon",payload:e}}}})}async setCursorPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setIgnoreCursorEvents(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIgnoreCursorEvents",payload:e}}}})}async startDragging(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})}async onResized(e){return this.listen("tauri://resize",e)}async onMoved(e){return this.listen("tauri://move",e)}async onCloseRequested(e){return this.listen("tauri://close-requested",n=>{let r=new x(n);Promise.resolve(e(r)).then(()=>{if(!r.isPreventDefault())return this.close()})})}async onFocusChanged(e){let n=await this.listen("tauri://focus",s=>{e({...s,payload:!0})}),r=await this.listen("tauri://blur",s=>{e({...s,payload:!1})});return()=>{n(),r()}}async onScaleChanged(e){return this.listen("tauri://scale-change",e)}async onMenuClicked(e){return this.listen("tauri://menu",e)}async onFileDropEvent(e){let n=await this.listen("tauri://file-drop",a=>{e({...a,payload:{type:"drop",paths:a.payload}})}),r=await this.listen("tauri://file-drop-hover",a=>{e({...a,payload:{type:"hover",paths:a.payload}})}),s=await this.listen("tauri://file-drop-cancelled",a=>{e({...a,payload:{type:"cancel"}})});return()=>{n(),r(),s()}}async onThemeChanged(e){return this.listen("tauri://theme-changed",e)}},x=class{constructor(e){this._preventDefault=!1;this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}},m=class extends W{constructor(e,n={}){super(e),n?.skip||i({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:{label:e,...n}}}}).then(async()=>this.emit("tauri://created")).catch(async r=>this.emit("tauri://error",r))}static getByLabel(e){return ce().some(n=>n.label===e)?new m(e,{skip:!0}):null}},B;"__TAURI_METADATA__"in window?B=new m(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0}):(console.warn(`Could not find "window.__TAURI_METADATA__". The "appWindow" value will reference the "main" window label. -Note that this is not an issue if running this frontend on a browser instead of a Tauri window.`),B=new m("main",{skip:!0}));function ee(t){return t===null?null:{name:t.name,scaleFactor:t.scaleFactor,position:new y(t.position.x,t.position.y),size:new h(t.size.width,t.size.height)}}async function Ut(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}}).then(ee)}async function It(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}}).then(ee)}async function Nt(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}}).then(t=>t.map(ee))}var ne={};c(ne,{EOL:()=>zt,arch:()=>qt,platform:()=>Ht,tempdir:()=>Gt,type:()=>jt,version:()=>Vt});var zt=b()?`\r +`)})}),this.spawn().catch(r)})}};async function xt(t,e){return i({__tauriModule:"Shell",message:{cmd:"open",path:t,with:e}})}var X={};d(X,{checkUpdate:()=>Rt,installUpdate:()=>Lt,onUpdaterEvent:()=>Y});async function Y(t){return z("tauri://update-status",e=>{t(e?.payload)})}async function Lt(){let t;function e(){t&&t(),t=void 0}return new Promise((n,r)=>{function s(a){if(a.error)return e(),r(a.error);if(a.status==="DONE")return e(),n()}Y(s).then(a=>{t=a}).catch(a=>{throw e(),a}),T("tauri://update-install").catch(a=>{throw e(),a})})}async function Rt(){let t;function e(){t&&t(),t=void 0}return new Promise((n,r)=>{function s(l){return e(),n({manifest:l,shouldUpdate:!0})}function a(l){if(l.error)return e(),r(l.error);if(l.status==="UPTODATE")return e(),n({shouldUpdate:!1})}H("tauri://update-available",l=>{s(l?.payload)}).catch(l=>{throw e(),l}),Y(a).then(l=>{t=l}).catch(l=>{throw e(),l}),T("tauri://update").catch(l=>{throw e(),l})})}var te={};d(te,{CloseRequestedEvent:()=>x,LogicalPosition:()=>D,LogicalSize:()=>C,PhysicalPosition:()=>y,PhysicalSize:()=>h,UserAttentionType:()=>ue,WebviewWindow:()=>m,WebviewWindowHandle:()=>S,WindowManager:()=>W,appWindow:()=>B,availableMonitors:()=>Nt,currentMonitor:()=>Ut,getAll:()=>de,getCurrent:()=>kt,primaryMonitor:()=>It});var C=class{constructor(e,n){this.type="Logical";this.width=e,this.height=n}},h=class{constructor(e,n){this.type="Physical";this.width=e,this.height=n}toLogical(e){return new C(this.width/e,this.height/e)}},D=class{constructor(e,n){this.type="Logical";this.x=e,this.y=n}},y=class{constructor(e,n){this.type="Physical";this.x=e,this.y=n}toLogical(e){return new D(this.x/e,this.y/e)}},ue=(n=>(n[n.Critical=1]="Critical",n[n.Informational=2]="Informational",n))(ue||{});function kt(){return new m(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function de(){return window.__TAURI_METADATA__.__windows.map(t=>new m(t.label,{skip:!0}))}var le=["tauri://created","tauri://error"],S=class{constructor(e){this.label=e,this.listeners=Object.create(null)}async listen(e,n){return this._handleTauriEvent(e,n)?Promise.resolve(()=>{let r=this.listeners[e];r.splice(r.indexOf(n),1)}):_(e,this.label,n)}async once(e,n){return this._handleTauriEvent(e,n)?Promise.resolve(()=>{let r=this.listeners[e];r.splice(r.indexOf(n),1)}):v(e,this.label,n)}async emit(e,n){if(le.includes(e)){for(let r of this.listeners[e]||[])r({event:e,id:-1,windowLabel:this.label,payload:n});return Promise.resolve()}return w(e,this.label,n)}_handleTauriEvent(e,n){return le.includes(e)?(e in this.listeners?this.listeners[e].push(n):this.listeners[e]=[n],!0):!1}},W=class extends S{async scaleFactor(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(({x:e,y:n})=>new y(e,n))}async outerPosition(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(({x:e,y:n})=>new y(e,n))}async innerSize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(({width:e,height:n})=>new h(e,n))}async outerSize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(({width:e,height:n})=>new h(e,n))}async isFullscreen(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})}async isMaximized(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})}async isDecorated(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})}async isResizable(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})}async isVisible(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})}async theme(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"theme"}}}})}async center(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})}async requestUserAttention(e){let n=null;return e&&(e===1?n={type:"Critical"}:n={type:"Informational"}),i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:n}}}})}async setResizable(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:e}}}})}async setTitle(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:e}}}})}async maximize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})}async unmaximize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})}async toggleMaximize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})}async minimize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})}async unminimize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})}async show(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})}async hide(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})}async close(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})}async setDecorations(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:e}}}})}async setShadow(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setShadow",payload:e}}}})}async setAlwaysOnTop(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:e}}}})}async setSize(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:e.type,data:{width:e.width,height:e.height}}}}}})}async setMinSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setMaxSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setFullscreen(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:e}}}})}async setFocus(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})}async setIcon(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof e=="string"?e:Array.from(e)}}}}})}async setSkipTaskbar(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:e}}}})}async setCursorGrab(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorGrab",payload:e}}}})}async setCursorVisible(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorVisible",payload:e}}}})}async setCursorIcon(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorIcon",payload:e}}}})}async setCursorPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setIgnoreCursorEvents(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIgnoreCursorEvents",payload:e}}}})}async startDragging(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})}async onResized(e){return this.listen("tauri://resize",e)}async onMoved(e){return this.listen("tauri://move",e)}async onCloseRequested(e){return this.listen("tauri://close-requested",n=>{let r=new x(n);Promise.resolve(e(r)).then(()=>{if(!r.isPreventDefault())return this.close()})})}async onFocusChanged(e){let n=await this.listen("tauri://focus",s=>{e({...s,payload:!0})}),r=await this.listen("tauri://blur",s=>{e({...s,payload:!1})});return()=>{n(),r()}}async onScaleChanged(e){return this.listen("tauri://scale-change",e)}async onMenuClicked(e){return this.listen("tauri://menu",e)}async onFileDropEvent(e){let n=await this.listen("tauri://file-drop",a=>{e({...a,payload:{type:"drop",paths:a.payload}})}),r=await this.listen("tauri://file-drop-hover",a=>{e({...a,payload:{type:"hover",paths:a.payload}})}),s=await this.listen("tauri://file-drop-cancelled",a=>{e({...a,payload:{type:"cancel"}})});return()=>{n(),r(),s()}}async onThemeChanged(e){return this.listen("tauri://theme-changed",e)}},x=class{constructor(e){this._preventDefault=!1;this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}},m=class extends W{constructor(e,n={}){super(e),n?.skip||i({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:{label:e,...n}}}}).then(async()=>this.emit("tauri://created")).catch(async r=>this.emit("tauri://error",r))}static getByLabel(e){return de().some(n=>n.label===e)?new m(e,{skip:!0}):null}},B;"__TAURI_METADATA__"in window?B=new m(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0}):(console.warn(`Could not find "window.__TAURI_METADATA__". The "appWindow" value will reference the "main" window label. +Note that this is not an issue if running this frontend on a browser instead of a Tauri window.`),B=new m("main",{skip:!0}));function ee(t){return t===null?null:{name:t.name,scaleFactor:t.scaleFactor,position:new y(t.position.x,t.position.y),size:new h(t.size.width,t.size.height)}}async function Ut(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}}).then(ee)}async function It(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}}).then(ee)}async function Nt(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}}).then(t=>t.map(ee))}var ne={};d(ne,{EOL:()=>zt,arch:()=>qt,platform:()=>Ht,tempdir:()=>Gt,type:()=>jt,version:()=>Vt});var zt=b()?`\r `:` `;async function Ht(){return i({__tauriModule:"Os",message:{cmd:"platform"}})}async function Vt(){return i({__tauriModule:"Os",message:{cmd:"version"}})}async function jt(){return i({__tauriModule:"Os",message:{cmd:"osType"}})}async function qt(){return i({__tauriModule:"Os",message:{cmd:"arch"}})}async function Gt(){return i({__tauriModule:"Os",message:{cmd:"tempdir"}})}var $t=f;return he(Jt);})(); window.__TAURI__ = __TAURI_IIFE__ diff --git a/core/tauri/src/endpoints/window.rs b/core/tauri/src/endpoints/window.rs index f4a545cdae2d..e20e63e663f4 100644 --- a/core/tauri/src/endpoints/window.rs +++ b/core/tauri/src/endpoints/window.rs @@ -98,6 +98,8 @@ pub enum WindowManagerCmd { Close, #[cfg(window_set_decorations)] SetDecorations(bool), + #[cfg(window_set_shadow)] + SetShadow(bool), #[cfg(window_set_always_on_top)] #[serde(rename_all = "camelCase")] SetAlwaysOnTop(bool), @@ -161,6 +163,7 @@ pub fn into_allowlist_error(variant: &str) -> crate::Error { "hide" => crate::Error::ApiNotAllowlisted("window > hide".to_string()), "close" => crate::Error::ApiNotAllowlisted("window > close".to_string()), "setDecorations" => crate::Error::ApiNotAllowlisted("window > setDecorations".to_string()), + "setShadow" => crate::Error::ApiNotAllowlisted("window > setShadow".to_string()), "setAlwaysOnTop" => crate::Error::ApiNotAllowlisted("window > setAlwaysOnTop".to_string()), "setSize" => crate::Error::ApiNotAllowlisted("window > setSize".to_string()), "setMinSize" => crate::Error::ApiNotAllowlisted("window > setMinSize".to_string()), @@ -293,6 +296,8 @@ impl Cmd { WindowManagerCmd::Close => window.close()?, #[cfg(all(desktop, window_set_decorations))] WindowManagerCmd::SetDecorations(decorations) => window.set_decorations(decorations)?, + #[cfg(all(desktop, window_set_shadow))] + WindowManagerCmd::SetShadow(enable) => window.set_shadow(enable)?, #[cfg(all(desktop, window_set_always_on_top))] WindowManagerCmd::SetAlwaysOnTop(always_on_top) => window.set_always_on_top(always_on_top)?, #[cfg(all(desktop, window_set_size))] diff --git a/core/tauri/src/lib.rs b/core/tauri/src/lib.rs index 237c64988f14..bccd39d9607c 100644 --- a/core/tauri/src/lib.rs +++ b/core/tauri/src/lib.rs @@ -135,6 +135,7 @@ //! - **window-hide**: Enables the [`hide` API](https://tauri.app/en/docs/api/js/classes/window.WebviewWindow#hide). //! - **window-close**: Enables the [`close` API](https://tauri.app/en/docs/api/js/classes/window.WebviewWindow#close). //! - **window-set-decorations**: Enables the [`setDecorations` API](https://tauri.app/en/docs/api/js/classes/window.WebviewWindow#setdecorations). +//! - **window-set-shadow**: Enables the [`setShadow` API](https://tauri.app/en/docs/api/js/classes/window.WebviewWindow#setshadow). //! - **window-set-always-on-top**: Enables the [`setAlwaysOnTop` API](https://tauri.app/en/docs/api/js/classes/window.WebviewWindow#setalwaysontop). //! - **window-set-size**: Enables the [`setSize` API](https://tauri.app/en/docs/api/js/classes/window.WebviewWindow#setsize). //! - **window-set-min-size**: Enables the [`setMinSize` API](https://tauri.app/en/docs/api/js/classes/window.WebviewWindow#setminsize). diff --git a/core/tauri/src/test/mock_runtime.rs b/core/tauri/src/test/mock_runtime.rs index c1a046c82442..764d7d556ab1 100644 --- a/core/tauri/src/test/mock_runtime.rs +++ b/core/tauri/src/test/mock_runtime.rs @@ -278,6 +278,10 @@ impl WindowBuilder for MockWindowBuilder { self } + fn shadow(self, enable: bool) -> Self { + self + } + #[cfg(windows)] fn parent_window(self, parent: HWND) -> Self { self @@ -502,6 +506,10 @@ impl Dispatch for MockDispatcher { Ok(()) } + fn set_shadow(&self, shadow: bool) -> Result<()> { + Ok(()) + } + fn set_always_on_top(&self, always_on_top: bool) -> Result<()> { Ok(()) } diff --git a/core/tauri/src/window.rs b/core/tauri/src/window.rs index 5c9bddfe7c79..47b65c1fb1f4 100644 --- a/core/tauri/src/window.rs +++ b/core/tauri/src/window.rs @@ -425,6 +425,21 @@ impl<'a, R: Runtime> WindowBuilder<'a, R> { self } + /// Sets whether or not the window has shadow. + /// + /// ## Platform-specific + /// + /// - **Windows:** + /// - `false` has no effect on decorated window, shadows are always ON. + /// - `true` will make ndecorated window have a 1px white border, + /// and on Windows 11, it will have a rounded corners. + /// - **Linux:** Unsupported. + #[must_use] + pub fn shadow(mut self, enable: bool) -> Self { + self.window_builder = self.window_builder.shadow(enable); + self + } + /// Sets a parent to the window to be created. /// /// A child window has the WS_CHILD style and is confined to the client area of its parent window. @@ -1134,6 +1149,23 @@ impl Window { .map_err(Into::into) } + /// Determines if this window should have shadow. + /// + /// ## Platform-specific + /// + /// - **Windows:** + /// - `false` has no effect on decorated window, shadow are always ON. + /// - `true` will make ndecorated window have a 1px white border, + /// and on Windows 11, it will have a rounded corners. + /// - **Linux:** Unsupported. + pub fn set_shadow(&self, enable: bool) -> crate::Result<()> { + self + .window + .dispatcher + .set_shadow(enable) + .map_err(Into::into) + } + /// Determines if this window should always be on top of other windows. pub fn set_always_on_top(&self, always_on_top: bool) -> crate::Result<()> { self diff --git a/examples/api/dist/assets/index.css b/examples/api/dist/assets/index.css index c1feae7e6020..a5061964d9b9 100644 --- a/examples/api/dist/assets/index.css +++ b/examples/api/dist/assets/index.css @@ -1 +1 @@ -*,::before,::after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x:var(--un-empty,/*!*/ /*!*/);--un-pan-y:var(--un-empty,/*!*/ /*!*/);--un-pinch-zoom:var(--un-empty,/*!*/ /*!*/);--un-scroll-snap-strictness:proximity;--un-ordinal:var(--un-empty,/*!*/ /*!*/);--un-slashed-zero:var(--un-empty,/*!*/ /*!*/);--un-numeric-figure:var(--un-empty,/*!*/ /*!*/);--un-numeric-spacing:var(--un-empty,/*!*/ /*!*/);--un-numeric-fraction:var(--un-empty,/*!*/ /*!*/);--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #0000;--un-ring-shadow:0 0 #0000;--un-shadow-inset:var(--un-empty,/*!*/ /*!*/);--un-shadow:0 0 #0000;--un-ring-inset:var(--un-empty,/*!*/ /*!*/);--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,0.5);--un-blur:var(--un-empty,/*!*/ /*!*/);--un-brightness:var(--un-empty,/*!*/ /*!*/);--un-contrast:var(--un-empty,/*!*/ /*!*/);--un-drop-shadow:var(--un-empty,/*!*/ /*!*/);--un-grayscale:var(--un-empty,/*!*/ /*!*/);--un-hue-rotate:var(--un-empty,/*!*/ /*!*/);--un-invert:var(--un-empty,/*!*/ /*!*/);--un-saturate:var(--un-empty,/*!*/ /*!*/);--un-sepia:var(--un-empty,/*!*/ /*!*/);--un-backdrop-blur:var(--un-empty,/*!*/ /*!*/);--un-backdrop-brightness:var(--un-empty,/*!*/ /*!*/);--un-backdrop-contrast:var(--un-empty,/*!*/ /*!*/);--un-backdrop-grayscale:var(--un-empty,/*!*/ /*!*/);--un-backdrop-hue-rotate:var(--un-empty,/*!*/ /*!*/);--un-backdrop-invert:var(--un-empty,/*!*/ /*!*/);--un-backdrop-opacity:var(--un-empty,/*!*/ /*!*/);--un-backdrop-saturate:var(--un-empty,/*!*/ /*!*/);--un-backdrop-sepia:var(--un-empty,/*!*/ /*!*/);}@font-face { font-family: 'Fira Code'; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/firacode/v21/uU9eCBsR6Z2vfE9aq3bL0fxyUs4tcw4W_D1sFVc.ttf) format('truetype');}@font-face { font-family: 'Fira Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/firamono/v14/N0bX2SlFPv1weGeLZDtQIQ.ttf) format('truetype');}@font-face { font-family: 'Fira Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(https://fonts.gstatic.com/s/firamono/v14/N0bS2SlFPv1weGeLZDtondv3mQ.ttf) format('truetype');}@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/rubik/v21/iJWZBXyIfDnIV5PNhY1KTN7Z-Yh-B4i1UA.ttf) format('truetype');}.i-codicon-bell-dot{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M12.994 7.875A4.008 4.008 0 0 1 12 8h-.01v.217c0 .909.143 1.818.442 2.691l.371 1.113h-9.63v-.012l.37-1.113a8.633 8.633 0 0 0 .443-2.691V6.004c0-.563.12-1.113.347-1.616c.227-.514.55-.969.969-1.34c.419-.382.91-.67 1.436-.837c.538-.18 1.1-.24 1.65-.18l.12.018a4 4 0 0 1 .673-.887a5.15 5.15 0 0 0-.697-.135c-.694-.072-1.4 0-2.07.227c-.67.215-1.28.574-1.794 1.053a4.923 4.923 0 0 0-1.208 1.675a5.067 5.067 0 0 0-.431 2.022v2.2a7.61 7.61 0 0 1-.383 2.37L2 12.343l.479.658h3.505c0 .526.215 1.04.586 1.412c.37.37.885.586 1.412.586c.526 0 1.04-.215 1.411-.586s.587-.886.587-1.412h3.505l.478-.658l-.586-1.77a7.63 7.63 0 0 1-.383-2.381v-.318ZM7.982 14.02a.997.997 0 0 0 .706-.3a.939.939 0 0 0 .287-.705H6.977c0 .263.107.514.299.706a.999.999 0 0 0 .706.299Z' clip-rule='evenodd'/%3E%3Cpath d='M12 7a3 3 0 1 0 0-6a3 3 0 0 0 0 6Z'/%3E%3C/g%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-chrome-close{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='m7.116 8l-4.558 4.558l.884.884L8 8.884l4.558 4.558l.884-.884L8.884 8l4.558-4.558l-.884-.884L8 7.116L3.442 2.558l-.884.884L7.116 8z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-chrome-maximize{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M3 3v10h10V3H3zm9 9H4V4h8v8z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-chrome-minimize{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M14 8v1H3V8h11z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-chrome-restore{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M3 5v9h9V5H3zm8 8H4V6h7v7z'/%3E%3Cpath fill-rule='evenodd' d='M5 5h1V4h7v7h-1v1h2V3H5v2z' clip-rule='evenodd'/%3E%3C/g%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-clear-all{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m10 12.6l.7.7l1.6-1.6l1.6 1.6l.8-.7L13 11l1.7-1.6l-.8-.8l-1.6 1.7l-1.6-1.7l-.7.8l1.6 1.6l-1.6 1.6zM1 4h14V3H1v1zm0 3h14V6H1v1zm8 2.5V9H1v1h8v-.5zM9 13v-1H1v1h8z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-clippy{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M7 13.992H4v-9h8v2h1v-2.5l-.5-.5H11v-1h-1a2 2 0 0 0-4 0H4.94v1H3.5l-.5.5v10l.5.5H7v-1zm0-11.2a1 1 0 0 1 .8-.8a1 1 0 0 1 .58.06a.94.94 0 0 1 .45.36a1 1 0 1 1-1.75.94a1 1 0 0 1-.08-.56zm7.08 9.46L13 13.342v-5.35h-1v5.34l-1.08-1.08l-.71.71l1.94 1.93h.71l1.93-1.93l-.71-.71zm-5.92-4.16h.71l1.93 1.93l-.71.71l-1.08-1.08v5.34h-1v-5.35l-1.08 1.09l-.71-.71l1.94-1.93z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-close{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='m8 8.707l3.646 3.647l.708-.707L8.707 8l3.647-3.646l-.707-.708L8 7.293L4.354 3.646l-.707.708L7.293 8l-3.646 3.646l.707.708L8 8.707z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-cloud-download{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M11.957 6h.05a2.99 2.99 0 0 1 2.116.879a3.003 3.003 0 0 1 0 4.242a2.99 2.99 0 0 1-2.117.879v-1a2.002 2.002 0 0 0 0-4h-.914l-.123-.857a2.49 2.49 0 0 0-2.126-2.122A2.478 2.478 0 0 0 6.231 5.5l-.333.762l-.809-.189A2.49 2.49 0 0 0 4.523 6c-.662 0-1.297.263-1.764.732A2.503 2.503 0 0 0 4.523 11h.498v1h-.498a3.486 3.486 0 0 1-2.628-1.16a3.502 3.502 0 0 1 1.958-5.78a3.462 3.462 0 0 1 1.468.04a3.486 3.486 0 0 1 3.657-2.06A3.479 3.479 0 0 1 11.957 6zm-5.25 5.121l1.314 1.314V7h.994v5.4l1.278-1.279l.707.707l-2.146 2.147h-.708L6 11.829l.707-.708z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-files{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17.5 0h-9L7 1.5V6H2.5L1 7.5v15.07L2.5 24h12.07L16 22.57V18h4.7l1.3-1.43V4.5L17.5 0zm0 2.12l2.38 2.38H17.5V2.12zm-3 20.38h-12v-15H7v9.07L8.5 18h6v4.5zm6-6h-12v-15H16V6h4.5v10.5z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-hubot{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M8.48 4h4l.5.5v2.03h.52l.5.5V8l-.5.5h-.52v3l-.5.5H9.36l-2.5 2.76L6 14.4V12H3.5l-.5-.64V8.5h-.5L2 8v-.97l.5-.5H3V4.36L3.53 4h4V2.86A1 1 0 0 1 7 2a1 1 0 0 1 2 0a1 1 0 0 1-.52.83V4zM12 8V5H4v5.86l2.5.14H7v2.19l1.8-2.04l.35-.15H12V8zm-2.12.51a2.71 2.71 0 0 1-1.37.74v-.01a2.71 2.71 0 0 1-2.42-.74l-.7.71c.34.34.745.608 1.19.79c.45.188.932.286 1.42.29a3.7 3.7 0 0 0 2.58-1.07l-.7-.71zM6.49 6.5h-1v1h1v-1zm3 0h1v1h-1v-1z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-link-external{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M1.5 1H6v1H2v12h12v-4h1v4.5l-.5.5h-13l-.5-.5v-13l.5-.5z'/%3E%3Cpath d='M15 1.5V8h-1V2.707L7.243 9.465l-.707-.708L13.293 2H8V1h6.5l.5.5z'/%3E%3C/g%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-menu{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 5H0V4h16v1zm0 8H0v-1h16v1zm0-4.008H0V8h16v.992z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-multiple-windows{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='m6 1.5l.5-.5h8l.5.5v7l-.5.5H12V8h2V4H7v1H6V1.5zM7 2v1h7V2H7zM1.5 7l-.5.5v7l.5.5h8l.5-.5v-7L9.5 7h-8zM2 9V8h7v1H2zm0 1h7v4H2v-4z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-radio-tower{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2.998 5.58a5.55 5.55 0 0 1 1.62-3.88l-.71-.7a6.45 6.45 0 0 0 0 9.16l.71-.7a5.55 5.55 0 0 1-1.62-3.88zm1.06 0a4.42 4.42 0 0 0 1.32 3.17l.71-.71a3.27 3.27 0 0 1-.76-1.12a3.45 3.45 0 0 1 0-2.67a3.22 3.22 0 0 1 .76-1.13l-.71-.71a4.46 4.46 0 0 0-1.32 3.17zm7.65 3.21l-.71-.71c.33-.32.59-.704.76-1.13a3.449 3.449 0 0 0 0-2.67a3.22 3.22 0 0 0-.76-1.13l.71-.7a4.468 4.468 0 0 1 0 6.34zM13.068 1l-.71.71a5.43 5.43 0 0 1 0 7.74l.71.71a6.45 6.45 0 0 0 0-9.16zM9.993 5.43a1.5 1.5 0 0 1-.245.98a2 2 0 0 1-.27.23l3.44 7.73l-.92.4l-.77-1.73h-5.54l-.77 1.73l-.92-.4l3.44-7.73a1.52 1.52 0 0 1-.33-1.63a1.55 1.55 0 0 1 .56-.68a1.5 1.5 0 0 1 2.325 1.1zm-1.595-.34a.52.52 0 0 0-.25.14a.52.52 0 0 0-.11.22a.48.48 0 0 0 0 .29c.04.09.102.17.18.23a.54.54 0 0 0 .28.08a.51.51 0 0 0 .5-.5a.54.54 0 0 0-.08-.28a.58.58 0 0 0-.23-.18a.48.48 0 0 0-.29 0zm.23 2.05h-.27l-.87 1.94h2l-.86-1.94zm2.2 4.94l-.89-2h-2.88l-.89 2h4.66z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-record-keys{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M14 3H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zm0 8H3V4h11v7zm-3-6h-1v1h1V5zm-1 2H9v1h1V7zm2-2h1v1h-1V5zm1 4h-1v1h1V9zM6 9h5v1H6V9zm7-2h-2v1h2V7zM8 5h1v1H8V5zm0 2H7v1h1V7zM4 9h1v1H4V9zm0-4h1v1H4V5zm3 0H6v1h1V5zM4 7h2v1H4V7z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-terminal{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M3 1.5L1.5 3v18L3 22.5h18l1.5-1.5V3L21 1.5H3zM3 21V3h18v18H3zm5.656-4.01l1.038 1.061l5.26-5.243v-.912l-5.26-5.26l-1.035 1.06l4.59 4.702l-4.593 4.592z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-terminal-bash{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M13.655 3.56L8.918.75a1.785 1.785 0 0 0-1.82 0L2.363 3.56a1.889 1.889 0 0 0-.921 1.628v5.624a1.889 1.889 0 0 0 .913 1.627l4.736 2.812a1.785 1.785 0 0 0 1.82 0l4.736-2.812a1.888 1.888 0 0 0 .913-1.627V5.188a1.889 1.889 0 0 0-.904-1.627zm-3.669 8.781v.404a.149.149 0 0 1-.07.124l-.239.137c-.038.02-.07 0-.07-.053v-.396a.78.78 0 0 1-.545.053a.073.073 0 0 1-.027-.09l.086-.365a.153.153 0 0 1 .071-.096a.048.048 0 0 1 .038 0a.662.662 0 0 0 .497-.063a.662.662 0 0 0 .37-.567c0-.206-.112-.292-.384-.293c-.344 0-.661-.066-.67-.574A1.47 1.47 0 0 1 9.6 9.437V9.03a.147.147 0 0 1 .07-.126l.231-.147c.038-.02.07 0 .07.054v.409a.754.754 0 0 1 .453-.055a.073.073 0 0 1 .03.095l-.081.362a.156.156 0 0 1-.065.09a.055.055 0 0 1-.035 0a.6.6 0 0 0-.436.072a.549.549 0 0 0-.331.486c0 .185.098.242.425.248c.438 0 .627.199.632.639a1.568 1.568 0 0 1-.576 1.185zm2.481-.68a.094.094 0 0 1-.036.092l-1.198.727a.034.034 0 0 1-.04.003a.035.035 0 0 1-.016-.037v-.31a.086.086 0 0 1 .055-.076l1.179-.706a.035.035 0 0 1 .056.035v.273zm.827-6.914L8.812 7.515c-.559.331-.97.693-.97 1.367v5.52c0 .404.165.662.413.741a1.465 1.465 0 0 1-.248.025c-.264 0-.522-.072-.748-.207L2.522 12.15a1.558 1.558 0 0 1-.75-1.338V5.188a1.558 1.558 0 0 1 .75-1.34l4.738-2.81a1.46 1.46 0 0 1 1.489 0l4.736 2.812a1.548 1.548 0 0 1 .728 1.083c-.154-.334-.508-.427-.92-.185h.002z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-window{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M14.5 2h-13l-.5.5v11l.5.5h13l.5-.5v-11l-.5-.5zM14 13H2V6h12v7zm0-8H2V3h12v2z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-ph-broadcast{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M128 88a40 40 0 1 0 40 40a40 40 0 0 0-40-40Zm0 64a24 24 0 1 1 24-24a24.1 24.1 0 0 1-24 24Zm-59-48.9a64.5 64.5 0 0 0 0 49.8a65.4 65.4 0 0 0 13.7 20.4a7.9 7.9 0 0 1 0 11.3a8 8 0 0 1-5.6 2.3a8.3 8.3 0 0 1-5.7-2.3a80 80 0 0 1-17.1-25.5a79.9 79.9 0 0 1 0-62.2a80 80 0 0 1 17.1-25.5a8 8 0 0 1 11.3 0a7.9 7.9 0 0 1 0 11.3A65.4 65.4 0 0 0 69 103.1Zm132.7 56a80 80 0 0 1-17.1 25.5a8.3 8.3 0 0 1-5.7 2.3a8 8 0 0 1-5.6-2.3a7.9 7.9 0 0 1 0-11.3a65.4 65.4 0 0 0 13.7-20.4a64.5 64.5 0 0 0 0-49.8a65.4 65.4 0 0 0-13.7-20.4a7.9 7.9 0 0 1 0-11.3a8 8 0 0 1 11.3 0a80 80 0 0 1 17.1 25.5a79.9 79.9 0 0 1 0 62.2ZM54.5 201.5a8.1 8.1 0 0 1 0 11.4a8.3 8.3 0 0 1-5.7 2.3a8.5 8.5 0 0 1-5.7-2.3a121.8 121.8 0 0 1-25.7-38.2a120.7 120.7 0 0 1 0-93.4a121.8 121.8 0 0 1 25.7-38.2a8.1 8.1 0 0 1 11.4 11.4A103.5 103.5 0 0 0 24 128a103.5 103.5 0 0 0 30.5 73.5ZM248 128a120.2 120.2 0 0 1-9.4 46.7a121.8 121.8 0 0 1-25.7 38.2a8.5 8.5 0 0 1-5.7 2.3a8.3 8.3 0 0 1-5.7-2.3a8.1 8.1 0 0 1 0-11.4A103.5 103.5 0 0 0 232 128a103.5 103.5 0 0 0-30.5-73.5a8.1 8.1 0 1 1 11.4-11.4a121.8 121.8 0 0 1 25.7 38.2A120.2 120.2 0 0 1 248 128Z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-ph-globe-hemisphere-west{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M221.6 173.3A102.9 102.9 0 0 0 232 128a104.2 104.2 0 0 0-77.2-100.5h-.5A103.8 103.8 0 0 0 60.4 49l-1.3 1.2A103.9 103.9 0 0 0 128 232h2.4a104.3 104.3 0 0 0 90.6-57.4ZM216 128a89.3 89.3 0 0 1-5.5 30.7l-46.4-28.5a16.6 16.6 0 0 0-6.3-2.3l-22.8-3a16.1 16.1 0 0 0-15.3 6.8h-8.6l-3.8-7.9a15.9 15.9 0 0 0-11-8.7l-6.6-1.4l4.6-10.8h21.4a16.1 16.1 0 0 0 7.7-2l12.2-6.8a16.1 16.1 0 0 0 3-2.1l26.9-24.4a15.7 15.7 0 0 0 4.5-16.9a88 88 0 0 1 46 77.3Zm-68.8-85.9l7.6 13.7l-26.9 24.3l-12.2 6.8H94.3a15.9 15.9 0 0 0-14.7 9.8l-5.3 12.4l-10.9-29.2l8.1-19.3a88 88 0 0 1 75.7-18.5ZM40 128a87.1 87.1 0 0 1 9.5-39.7l10.4 27.9a16.1 16.1 0 0 0 11.6 10l5.5 1.2h.1l15.8 3.4l3.8 7.9a16.3 16.3 0 0 0 14.4 9h1.2l-7.7 17.2a15.9 15.9 0 0 0 2.8 17.4l18.8 20.4l-2.5 13.2A88.1 88.1 0 0 1 40 128Zm100.1 87.2l1.8-9.5a16 16 0 0 0-3.9-13.9l-18.8-20.3l12.7-28.7l1-2.1l22.8 3.1l47.8 29.4a88.5 88.5 0 0 1-63.4 42Z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-ph-hand-waving{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m220.2 104l-20-34.7a28.1 28.1 0 0 0-47.3-1.9l-17.3-30a28.1 28.1 0 0 0-38.3-10.3a29.4 29.4 0 0 0-9.9 9.6a27.9 27.9 0 0 0-11.5-6.2a27.2 27.2 0 0 0-21.2 2.8a27.9 27.9 0 0 0-10.3 38.2l3.4 5.8A28.5 28.5 0 0 0 36 81a28.1 28.1 0 0 0-10.2 38.2l42 72.8a88 88 0 1 0 152.4-88Zm-6.7 62.6a71.2 71.2 0 0 1-33.5 43.7A72.1 72.1 0 0 1 81.6 184l-42-72.8a12 12 0 0 1 20.8-12l22 38.1l.6.9v.2l.5.5l.2.2l.7.6h.1l.7.5h.3l.6.3h.2l.9.3h.1l.8.2h2.2l.9-.2h.3l.6-.2h.3l.9-.4a8.1 8.1 0 0 0 2.9-11l-22-38.1l-16-27.7a12 12 0 0 1-1.2-9.1a11.8 11.8 0 0 1 5.6-7.3a12 12 0 0 1 9.1-1.2a12.5 12.5 0 0 1 7.3 5.6l8 14h.1l26 45a7 7 0 0 0 1.5 1.9a8 8 0 0 0 12.3-9.9l-26-45a12 12 0 1 1 20.8-12l30 51.9l6.3 11a48.1 48.1 0 0 0-10.9 61a8 8 0 0 0 13.8-8a32 32 0 0 1 11.7-43.7l.7-.4l.5-.4h.1l.6-.6l.5-.5l.4-.5l.3-.6h.1l.2-.5v-.2a1.9 1.9 0 0 0 .2-.7h.1c0-.2.1-.4.1-.6s0-.2.1-.2v-2.1a6.4 6.4 0 0 0-.2-.7a1.9 1.9 0 0 0-.2-.7v-.2c0-.2-.1-.3-.2-.5l-.3-.7l-10-17.4a12 12 0 0 1 13.5-17.5a11.8 11.8 0 0 1 7.2 5.5l20 34.7a70.9 70.9 0 0 1 7.2 53.8Zm-125.8 78a8.2 8.2 0 0 1-6.6 3.4a8.6 8.6 0 0 1-4.6-1.4A117.9 117.9 0 0 1 41.1 208a8 8 0 1 1 13.8-8a102.6 102.6 0 0 0 30.8 33.4a8.1 8.1 0 0 1 2 11.2ZM168 31a8 8 0 0 1 8-8a60.2 60.2 0 0 1 52 30a7.9 7.9 0 0 1-3 10.9a7.1 7.1 0 0 1-4 1.1a8 8 0 0 1-6.9-4A44 44 0 0 0 176 39a8 8 0 0 1-8-8Z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-ph-moon{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M224.3 150.3a8.1 8.1 0 0 0-7.8-5.7l-2.2.4A84 84 0 0 1 111 41.6a5.7 5.7 0 0 0 .3-1.8a7.9 7.9 0 0 0-10.3-8.1a100 100 0 1 0 123.3 123.2a7.2 7.2 0 0 0 0-4.6ZM128 212A84 84 0 0 1 92.8 51.7a99.9 99.9 0 0 0 111.5 111.5A84.4 84.4 0 0 1 128 212Z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-ph-sun{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M128 60a68 68 0 1 0 68 68a68.1 68.1 0 0 0-68-68Zm0 120a52 52 0 1 1 52-52a52 52 0 0 1-52 52Zm-8-144V16a8 8 0 0 1 16 0v20a8 8 0 0 1-16 0ZM43.1 54.5a8.1 8.1 0 1 1 11.4-11.4l14.1 14.2a8 8 0 0 1 0 11.3a8.1 8.1 0 0 1-11.3 0ZM36 136H16a8 8 0 0 1 0-16h20a8 8 0 0 1 0 16Zm32.6 51.4a8 8 0 0 1 0 11.3l-14.1 14.2a8.3 8.3 0 0 1-5.7 2.3a8.5 8.5 0 0 1-5.7-2.3a8.1 8.1 0 0 1 0-11.4l14.2-14.1a8 8 0 0 1 11.3 0ZM136 220v20a8 8 0 0 1-16 0v-20a8 8 0 0 1 16 0Zm76.9-18.5a8.1 8.1 0 0 1 0 11.4a8.5 8.5 0 0 1-5.7 2.3a8.3 8.3 0 0 1-5.7-2.3l-14.1-14.2a8 8 0 0 1 11.3-11.3ZM248 128a8 8 0 0 1-8 8h-20a8 8 0 0 1 0-16h20a8 8 0 0 1 8 8Zm-60.6-59.4a8 8 0 0 1 0-11.3l14.1-14.2a8.1 8.1 0 0 1 11.4 11.4l-14.2 14.1a8.1 8.1 0 0 1-11.3 0Z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.note{position:relative;display:inline-flex;align-items:center;border-left-width:4px;border-left-style:solid;--un-border-opacity:1;border-color:rgba(53,120,229,var(--un-border-opacity));border-radius:0.25rem;background-color:rgba(53,120,229,0.1);padding:0.5rem;text-decoration:none;}.note-red{position:relative;display:inline-flex;align-items:center;border-left-width:4px;border-left-style:solid;--un-border-opacity:1;border-color:rgba(53,120,229,var(--un-border-opacity));border-radius:0.25rem;background-color:rgba(53,120,229,0.1);background-color:rgba(185,28,28,0.1);padding:0.5rem;text-decoration:none;}.nv{position:relative;display:flex;align-items:center;border-radius:0.25rem;padding:0.5rem;--un-text-opacity:1;color:rgba(194,197,202,var(--un-text-opacity));text-decoration:none;transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:125ms;}.nv_selected{position:relative;display:flex;align-items:center;border-left-width:4px;border-left-style:solid;border-radius:0.25rem;--un-bg-opacity:.05;background-color:hsla(0,0%,100%,var(--un-bg-opacity));padding:0.5rem;--un-text-opacity:1;color:rgba(194,197,202,var(--un-text-opacity));color:rgba(53,120,229,var(--un-text-opacity));text-decoration:none;transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:125ms;}.input{height:2.5rem;display:flex;align-items:center;border-radius:0.25rem;border-style:none;--un-bg-opacity:1;background-color:rgba(233,236,239,var(--un-bg-opacity));padding:0.5rem;--un-text-opacity:1;color:rgba(28,30,33,var(--un-text-opacity));--un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgba(0,0,0,0.1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgba(0,0,0,0.1));box-shadow:var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow);outline:2px solid transparent;outline-offset:2px;}.btn{user-select:none;border-radius:0.25rem;border-style:none;--un-bg-opacity:1;background-color:rgba(53,120,229,var(--un-bg-opacity));padding:0.5rem;font-weight:400;--un-text-opacity:1;color:rgba(28,30,33,var(--un-text-opacity));color:rgba(255,255,255,var(--un-text-opacity));--un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgba(0,0,0,0.1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgba(0,0,0,0.1));box-shadow:var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow);outline:2px solid transparent;outline-offset:2px;}.nv_selected:hover,.nv:hover{border-left-width:4px;border-left-style:solid;--un-bg-opacity:.05;background-color:hsla(0,0%,100%,var(--un-bg-opacity));--un-text-opacity:1;color:rgba(53,120,229,var(--un-text-opacity));}.dark .note{--un-border-opacity:1;border-color:rgba(103,214,237,var(--un-border-opacity));background-color:rgba(103,214,237,0.1);}.dark .note-red{--un-border-opacity:1;border-color:rgba(103,214,237,var(--un-border-opacity));background-color:rgba(103,214,237,0.1);background-color:rgba(185,28,28,0.1);}.btn:hover{--un-bg-opacity:1;background-color:rgba(45,102,195,var(--un-bg-opacity));}.dark .btn{--un-bg-opacity:1;background-color:rgba(103,214,237,var(--un-bg-opacity));font-weight:600;--un-text-opacity:1;color:rgba(28,30,33,var(--un-text-opacity));}.dark .btn:hover{--un-bg-opacity:1;background-color:rgba(57,202,232,var(--un-bg-opacity));}.dark .input{--un-bg-opacity:1;background-color:rgba(36,37,38,var(--un-bg-opacity));--un-text-opacity:1;color:rgba(227,227,227,var(--un-text-opacity));}.dark .note-red::after,.note-red::after{--un-bg-opacity:1;background-color:rgba(185,28,28,var(--un-bg-opacity));}.btn:active{--un-bg-opacity:1;background-color:rgba(37,84,160,var(--un-bg-opacity));}.dark .btn:active{--un-bg-opacity:1;background-color:rgba(25,181,213,var(--un-bg-opacity));}.dark .nv_selected,.dark .nv_selected:hover,.dark .nv:hover{--un-text-opacity:1;color:rgba(103,214,237,var(--un-text-opacity));} ::-webkit-scrollbar-thumb { background-color: #3578E5; } .dark ::-webkit-scrollbar-thumb { background-color: #67d6ed; } code { font-size: 0.75rem; font-family: "Fira Code","Fira Mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace; border-radius: 0.25rem; background-color: #d6d8da; } .code-block { font-family: "Fira Code","Fira Mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace; font-size: 0.875rem; } .dark code { background-color: #282a2e; } .visible{visibility:visible;}.absolute{position:absolute;}.left-2{left:0.5rem;}.top-2{top:0.5rem;}.z-2000{z-index:2000;}.grid{display:grid;}.grid-rows-\[2fr_auto\]{grid-template-rows:2fr auto;}.grid-rows-\[2px_2rem_1fr\]{grid-template-rows:2px 2rem 1fr;}.grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr;}.my-2{margin-top:0.5rem;margin-bottom:0.5rem;}.mb-2{margin-bottom:0.5rem;}.mr-2{margin-right:0.5rem;}.display-none,.hidden{display:none;}.children-h-10>*,.children\:h10>*{height:2.5rem;}.children\:h-100\%>*,.h-100\%{height:100%;}.children\:w-12>*{width:3rem;}.h-15rem{height:15rem;}.h-2px{height:2px;}.h-8{height:2rem;}.h-85\%{height:85%;}.h-auto{height:auto;}.h-screen{height:100vh;}.w-100\%{width:100%;}.w-8{width:2rem;}.w-screen{width:100vw;}.flex{display:flex;}.children\:inline-flex>*{display:inline-flex;}.flex-1{flex:1 1 0%;}.children-flex-none>*{flex:none;}.children\:grow>*,.grow{flex-grow:1;}.flex-row{flex-direction:row;}.flex-col{flex-direction:column;}.flex-wrap{flex-wrap:wrap;}@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.animate-fade-in{animation:fade-in 1s linear 1;}.animate-spin{animation:spin 1s linear infinite;}.animate-duration-300ms{animation-duration:300ms;}.cursor-ns-resize{cursor:ns-resize;}.cursor-pointer{cursor:pointer;}.select-none{user-select:none;}.children\:items-center>*,.items-center{align-items:center;}.self-center{align-self:center;}.children\:justify-center>*,.justify-center{justify-content:center;}.justify-between{justify-content:space-between;}.gap-1{grid-gap:0.25rem;gap:0.25rem;}.gap-2{grid-gap:0.5rem;gap:0.5rem;}.overflow-hidden{overflow:hidden;}.overflow-y-auto{overflow-y:auto;}.rd-1{border-radius:0.25rem;}.rd-8{border-radius:2rem;}.bg-accent{--un-bg-opacity:1;background-color:rgba(53,120,229,var(--un-bg-opacity));}.bg-black\/20{background-color:rgba(0,0,0,0.2);}.bg-darkPrimaryLighter{--un-bg-opacity:1;background-color:rgba(36,37,38,var(--un-bg-opacity));}.bg-darkPrimaryLighter\/60{background-color:rgba(36,37,38,0.6);}.bg-primary{--un-bg-opacity:1;background-color:rgba(255,255,255,var(--un-bg-opacity));}.bg-white\/5{background-color:rgba(255,255,255,0.05);}.dark .dark\:bg-darkAccent{--un-bg-opacity:1;background-color:rgba(103,214,237,var(--un-bg-opacity));}.dark .dark\:bg-darkPrimary{--un-bg-opacity:1;background-color:rgba(27,27,29,var(--un-bg-opacity));}.dark .dark\:hover\:bg-darkHoverOverlay:hover{--un-bg-opacity:.05;background-color:hsla(0,0%,100%,var(--un-bg-opacity));}.dark .dark\:hover\:bg-red-700:hover,.hover\:bg-red-700:hover{--un-bg-opacity:1;background-color:rgba(185,28,28,var(--un-bg-opacity));}.hover\:bg-hoverOverlay:hover{--un-bg-opacity:.05;background-color:rgba(0,0,0,var(--un-bg-opacity));}.active\:bg-accentDark:active{--un-bg-opacity:1;background-color:rgba(48,108,206,var(--un-bg-opacity));}.active\:bg-hoverOverlay\/25:active{background-color:rgba(0,0,0,0.25);}.active\:bg-hoverOverlayDarker:active{--un-bg-opacity:.1;background-color:rgba(0,0,0,var(--un-bg-opacity));}.active\:bg-red-700\/90:active,.dark .dark\:active\:bg-red-700\/90:active{background-color:rgba(185,28,28,0.9);}.dark .dark\:active\:bg-darkAccentDark:active{--un-bg-opacity:1;background-color:rgba(73,206,233,var(--un-bg-opacity));}.dark .dark\:active\:bg-darkHoverOverlay\/25:active{background-color:hsla(0,0%,100%,0.25);}.dark .dark\:active\:bg-darkHoverOverlayDarker:active{--un-bg-opacity:.1;background-color:hsla(0,0%,100%,var(--un-bg-opacity));}.p-1{padding:0.25rem;}.p-7{padding:1.75rem;}.px{padding-left:1rem;padding-right:1rem;}.px-2{padding-left:0.5rem;padding-right:0.5rem;}.px-5{padding-left:1.25rem;padding-right:1.25rem;}.children-pb-2>*{padding-bottom:0.5rem;}.children-pt8>*{padding-top:2rem;}.pl-2{padding-left:0.5rem;}.all\:font-mono *{font-family:"Fira Code","Fira Mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;}.all\:text-xs *{font-size:0.75rem;line-height:1rem;}.text-sm{font-size:0.875rem;line-height:1.25rem;}.font-700{font-weight:700;}.font-semibold{font-weight:600;}.dark .dark\:text-darkAccent{--un-text-opacity:1;color:rgba(103,214,237,var(--un-text-opacity));}.dark .dark\:text-darkAccentText,.text-primaryText{--un-text-opacity:1;color:rgba(28,30,33,var(--un-text-opacity));}.dark .dark\:text-darkPrimaryText,.hover\:text-darkPrimaryText:hover,.text-darkPrimaryText,.active\:text-darkPrimaryText:active{--un-text-opacity:1;color:rgba(227,227,227,var(--un-text-opacity));}.text-accent{--un-text-opacity:1;color:rgba(53,120,229,var(--un-text-opacity));}.text-accentText{--un-text-opacity:1;color:rgba(255,255,255,var(--un-text-opacity));}.filter{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia);}.transition-colors-250{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:250ms;}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}@media (max-width: 639.9px){.lt-sm\:absolute{position:absolute;}.lt-sm\:z-1999{z-index:1999;}.lt-sm\:h-screen{height:100vh;}.lt-sm\:flex{display:flex;}.lt-sm\:bg-darkPrimaryLighter{--un-bg-opacity:1;background-color:rgba(36,37,38,var(--un-bg-opacity));}.lt-sm\:pl-10{padding-left:2.5rem;}.lt-sm\:shadow{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgba(0,0,0,0.1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgba(0,0,0,0.1));box-shadow:var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow);}.lt-sm\:shadow-lg{--un-shadow:var(--un-shadow-inset) 0 10px 15px -3px var(--un-shadow-color, rgba(0,0,0,0.1)),var(--un-shadow-inset) 0 4px 6px -4px var(--un-shadow-color, rgba(0,0,0,0.1));box-shadow:var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow);}.lt-sm\:transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}}*:not(h1,h2,h3,h4,h5,h6){margin:0;padding:0}*{box-sizing:border-box;font-family:Rubik,sans-serif}::-webkit-scrollbar{width:.25rem;height:3px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{border-radius:.25rem}code{padding:.05rem .25rem}code.code-block{padding:.5rem}#sidebar{width:18.75rem}@media screen and (max-width: 640px){#sidebar{--translate-x: -18.75rem;transform:translate(var(--translate-x))}}ul.svelte-gbh3pt{list-style:none;margin:0;padding:0;padding-left:var(--nodePaddingLeft, 1rem);border-left:var(--nodeBorderLeft, 1px dotted #9ca3af);color:var(--nodeColor, #374151)}.hidden.svelte-gbh3pt{display:none}.bracket.svelte-gbh3pt{cursor:pointer}.bracket.svelte-gbh3pt:hover{background:var(--bracketHoverBackground, #d1d5db)}.comma.svelte-gbh3pt{color:var(--nodeColor, #374151)}.val.svelte-gbh3pt{color:var(--leafDefaultColor, #9ca3af)}.val.string.svelte-gbh3pt{color:var(--leafStringColor, #059669)}.val.number.svelte-gbh3pt{color:var(--leafNumberColor, #d97706)}.val.boolean.svelte-gbh3pt{color:var(--leafBooleanColor, #2563eb)}.spinner.svelte-4xesec{height:1.2rem;width:1.2rem;border-radius:50rem;color:currentColor;border:2px dashed currentColor} +*,::before,::after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x:var(--un-empty,/*!*/ /*!*/);--un-pan-y:var(--un-empty,/*!*/ /*!*/);--un-pinch-zoom:var(--un-empty,/*!*/ /*!*/);--un-scroll-snap-strictness:proximity;--un-ordinal:var(--un-empty,/*!*/ /*!*/);--un-slashed-zero:var(--un-empty,/*!*/ /*!*/);--un-numeric-figure:var(--un-empty,/*!*/ /*!*/);--un-numeric-spacing:var(--un-empty,/*!*/ /*!*/);--un-numeric-fraction:var(--un-empty,/*!*/ /*!*/);--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #0000;--un-ring-shadow:0 0 #0000;--un-shadow-inset:var(--un-empty,/*!*/ /*!*/);--un-shadow:0 0 #0000;--un-ring-inset:var(--un-empty,/*!*/ /*!*/);--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,0.5);--un-blur:var(--un-empty,/*!*/ /*!*/);--un-brightness:var(--un-empty,/*!*/ /*!*/);--un-contrast:var(--un-empty,/*!*/ /*!*/);--un-drop-shadow:var(--un-empty,/*!*/ /*!*/);--un-grayscale:var(--un-empty,/*!*/ /*!*/);--un-hue-rotate:var(--un-empty,/*!*/ /*!*/);--un-invert:var(--un-empty,/*!*/ /*!*/);--un-saturate:var(--un-empty,/*!*/ /*!*/);--un-sepia:var(--un-empty,/*!*/ /*!*/);--un-backdrop-blur:var(--un-empty,/*!*/ /*!*/);--un-backdrop-brightness:var(--un-empty,/*!*/ /*!*/);--un-backdrop-contrast:var(--un-empty,/*!*/ /*!*/);--un-backdrop-grayscale:var(--un-empty,/*!*/ /*!*/);--un-backdrop-hue-rotate:var(--un-empty,/*!*/ /*!*/);--un-backdrop-invert:var(--un-empty,/*!*/ /*!*/);--un-backdrop-opacity:var(--un-empty,/*!*/ /*!*/);--un-backdrop-saturate:var(--un-empty,/*!*/ /*!*/);--un-backdrop-sepia:var(--un-empty,/*!*/ /*!*/);}@font-face { font-family: 'Fira Code'; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/firacode/v21/uU9eCBsR6Z2vfE9aq3bL0fxyUs4tcw4W_D1sFVc.ttf) format('truetype');}@font-face { font-family: 'Fira Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/firamono/v14/N0bX2SlFPv1weGeLZDtQIQ.ttf) format('truetype');}@font-face { font-family: 'Fira Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(https://fonts.gstatic.com/s/firamono/v14/N0bS2SlFPv1weGeLZDtondv3mQ.ttf) format('truetype');}@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/rubik/v23/iJWZBXyIfDnIV5PNhY1KTN7Z-Yh-B4i1UA.ttf) format('truetype');}.i-codicon-bell-dot{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M12.994 7.875A4.008 4.008 0 0 1 12 8h-.01v.217c0 .909.143 1.818.442 2.691l.371 1.113h-9.63v-.012l.37-1.113a8.633 8.633 0 0 0 .443-2.691V6.004c0-.563.12-1.113.347-1.616c.227-.514.55-.969.969-1.34c.419-.382.91-.67 1.436-.837c.538-.18 1.1-.24 1.65-.18l.12.018a4 4 0 0 1 .673-.887a5.15 5.15 0 0 0-.697-.135c-.694-.072-1.4 0-2.07.227c-.67.215-1.28.574-1.794 1.053a4.923 4.923 0 0 0-1.208 1.675a5.067 5.067 0 0 0-.431 2.022v2.2a7.61 7.61 0 0 1-.383 2.37L2 12.343l.479.658h3.505c0 .526.215 1.04.586 1.412c.37.37.885.586 1.412.586c.526 0 1.04-.215 1.411-.586s.587-.886.587-1.412h3.505l.478-.658l-.586-1.77a7.63 7.63 0 0 1-.383-2.381v-.318ZM7.982 14.02a.997.997 0 0 0 .706-.3a.939.939 0 0 0 .287-.705H6.977c0 .263.107.514.299.706a.999.999 0 0 0 .706.299Z' clip-rule='evenodd'/%3E%3Cpath d='M12 7a3 3 0 1 0 0-6a3 3 0 0 0 0 6Z'/%3E%3C/g%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-chrome-close{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='m7.116 8l-4.558 4.558l.884.884L8 8.884l4.558 4.558l.884-.884L8.884 8l4.558-4.558l-.884-.884L8 7.116L3.442 2.558l-.884.884L7.116 8z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-chrome-maximize{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M3 3v10h10V3H3zm9 9H4V4h8v8z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-chrome-minimize{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M14 8v1H3V8h11z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-chrome-restore{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M3 5v9h9V5H3zm8 8H4V6h7v7z'/%3E%3Cpath fill-rule='evenodd' d='M5 5h1V4h7v7h-1v1h2V3H5v2z' clip-rule='evenodd'/%3E%3C/g%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-clear-all{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m10 12.6l.7.7l1.6-1.6l1.6 1.6l.8-.7L13 11l1.7-1.6l-.8-.8l-1.6 1.7l-1.6-1.7l-.7.8l1.6 1.6l-1.6 1.6zM1 4h14V3H1v1zm0 3h14V6H1v1zm8 2.5V9H1v1h8v-.5zM9 13v-1H1v1h8z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-clippy{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M7 13.992H4v-9h8v2h1v-2.5l-.5-.5H11v-1h-1a2 2 0 0 0-4 0H4.94v1H3.5l-.5.5v10l.5.5H7v-1zm0-11.2a1 1 0 0 1 .8-.8a1 1 0 0 1 .58.06a.94.94 0 0 1 .45.36a1 1 0 1 1-1.75.94a1 1 0 0 1-.08-.56zm7.08 9.46L13 13.342v-5.35h-1v5.34l-1.08-1.08l-.71.71l1.94 1.93h.71l1.93-1.93l-.71-.71zm-5.92-4.16h.71l1.93 1.93l-.71.71l-1.08-1.08v5.34h-1v-5.35l-1.08 1.09l-.71-.71l1.94-1.93z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-close{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='m8 8.707l3.646 3.647l.708-.707L8.707 8l3.647-3.646l-.707-.708L8 7.293L4.354 3.646l-.707.708L7.293 8l-3.646 3.646l.707.708L8 8.707z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-cloud-download{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M11.957 6h.05a2.99 2.99 0 0 1 2.116.879a3.003 3.003 0 0 1 0 4.242a2.99 2.99 0 0 1-2.117.879v-1a2.002 2.002 0 0 0 0-4h-.914l-.123-.857a2.49 2.49 0 0 0-2.126-2.122A2.478 2.478 0 0 0 6.231 5.5l-.333.762l-.809-.189A2.49 2.49 0 0 0 4.523 6c-.662 0-1.297.263-1.764.732A2.503 2.503 0 0 0 4.523 11h.498v1h-.498a3.486 3.486 0 0 1-2.628-1.16a3.502 3.502 0 0 1 1.958-5.78a3.462 3.462 0 0 1 1.468.04a3.486 3.486 0 0 1 3.657-2.06A3.479 3.479 0 0 1 11.957 6zm-5.25 5.121l1.314 1.314V7h.994v5.4l1.278-1.279l.707.707l-2.146 2.147h-.708L6 11.829l.707-.708z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-files{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17.5 0h-9L7 1.5V6H2.5L1 7.5v15.07L2.5 24h12.07L16 22.57V18h4.7l1.3-1.43V4.5L17.5 0zm0 2.12l2.38 2.38H17.5V2.12zm-3 20.38h-12v-15H7v9.07L8.5 18h6v4.5zm6-6h-12v-15H16V6h4.5v10.5z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-hubot{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M8.48 4h4l.5.5v2.03h.52l.5.5V8l-.5.5h-.52v3l-.5.5H9.36l-2.5 2.76L6 14.4V12H3.5l-.5-.64V8.5h-.5L2 8v-.97l.5-.5H3V4.36L3.53 4h4V2.86A1 1 0 0 1 7 2a1 1 0 0 1 2 0a1 1 0 0 1-.52.83V4zM12 8V5H4v5.86l2.5.14H7v2.19l1.8-2.04l.35-.15H12V8zm-2.12.51a2.71 2.71 0 0 1-1.37.74v-.01a2.71 2.71 0 0 1-2.42-.74l-.7.71c.34.34.745.608 1.19.79c.45.188.932.286 1.42.29a3.7 3.7 0 0 0 2.58-1.07l-.7-.71zM6.49 6.5h-1v1h1v-1zm3 0h1v1h-1v-1z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-link-external{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M1.5 1H6v1H2v12h12v-4h1v4.5l-.5.5h-13l-.5-.5v-13l.5-.5z'/%3E%3Cpath d='M15 1.5V8h-1V2.707L7.243 9.465l-.707-.708L13.293 2H8V1h6.5l.5.5z'/%3E%3C/g%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-menu{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 5H0V4h16v1zm0 8H0v-1h16v1zm0-4.008H0V8h16v.992z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-multiple-windows{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='m6 1.5l.5-.5h8l.5.5v7l-.5.5H12V8h2V4H7v1H6V1.5zM7 2v1h7V2H7zM1.5 7l-.5.5v7l.5.5h8l.5-.5v-7L9.5 7h-8zM2 9V8h7v1H2zm0 1h7v4H2v-4z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-radio-tower{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2.998 5.58a5.55 5.55 0 0 1 1.62-3.88l-.71-.7a6.45 6.45 0 0 0 0 9.16l.71-.7a5.55 5.55 0 0 1-1.62-3.88zm1.06 0a4.42 4.42 0 0 0 1.32 3.17l.71-.71a3.27 3.27 0 0 1-.76-1.12a3.45 3.45 0 0 1 0-2.67a3.22 3.22 0 0 1 .76-1.13l-.71-.71a4.46 4.46 0 0 0-1.32 3.17zm7.65 3.21l-.71-.71c.33-.32.59-.704.76-1.13a3.449 3.449 0 0 0 0-2.67a3.22 3.22 0 0 0-.76-1.13l.71-.7a4.468 4.468 0 0 1 0 6.34zM13.068 1l-.71.71a5.43 5.43 0 0 1 0 7.74l.71.71a6.45 6.45 0 0 0 0-9.16zM9.993 5.43a1.5 1.5 0 0 1-.245.98a2 2 0 0 1-.27.23l3.44 7.73l-.92.4l-.77-1.73h-5.54l-.77 1.73l-.92-.4l3.44-7.73a1.52 1.52 0 0 1-.33-1.63a1.55 1.55 0 0 1 .56-.68a1.5 1.5 0 0 1 2.325 1.1zm-1.595-.34a.52.52 0 0 0-.25.14a.52.52 0 0 0-.11.22a.48.48 0 0 0 0 .29c.04.09.102.17.18.23a.54.54 0 0 0 .28.08a.51.51 0 0 0 .5-.5a.54.54 0 0 0-.08-.28a.58.58 0 0 0-.23-.18a.48.48 0 0 0-.29 0zm.23 2.05h-.27l-.87 1.94h2l-.86-1.94zm2.2 4.94l-.89-2h-2.88l-.89 2h4.66z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-record-keys{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M14 3H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zm0 8H3V4h11v7zm-3-6h-1v1h1V5zm-1 2H9v1h1V7zm2-2h1v1h-1V5zm1 4h-1v1h1V9zM6 9h5v1H6V9zm7-2h-2v1h2V7zM8 5h1v1H8V5zm0 2H7v1h1V7zM4 9h1v1H4V9zm0-4h1v1H4V5zm3 0H6v1h1V5zM4 7h2v1H4V7z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-terminal{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M3 1.5L1.5 3v18L3 22.5h18l1.5-1.5V3L21 1.5H3zM3 21V3h18v18H3zm5.656-4.01l1.038 1.061l5.26-5.243v-.912l-5.26-5.26l-1.035 1.06l4.59 4.702l-4.593 4.592z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-terminal-bash{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M13.655 3.56L8.918.75a1.785 1.785 0 0 0-1.82 0L2.363 3.56a1.889 1.889 0 0 0-.921 1.628v5.624a1.889 1.889 0 0 0 .913 1.627l4.736 2.812a1.785 1.785 0 0 0 1.82 0l4.736-2.812a1.888 1.888 0 0 0 .913-1.627V5.188a1.889 1.889 0 0 0-.904-1.627zm-3.669 8.781v.404a.149.149 0 0 1-.07.124l-.239.137c-.038.02-.07 0-.07-.053v-.396a.78.78 0 0 1-.545.053a.073.073 0 0 1-.027-.09l.086-.365a.153.153 0 0 1 .071-.096a.048.048 0 0 1 .038 0a.662.662 0 0 0 .497-.063a.662.662 0 0 0 .37-.567c0-.206-.112-.292-.384-.293c-.344 0-.661-.066-.67-.574A1.47 1.47 0 0 1 9.6 9.437V9.03a.147.147 0 0 1 .07-.126l.231-.147c.038-.02.07 0 .07.054v.409a.754.754 0 0 1 .453-.055a.073.073 0 0 1 .03.095l-.081.362a.156.156 0 0 1-.065.09a.055.055 0 0 1-.035 0a.6.6 0 0 0-.436.072a.549.549 0 0 0-.331.486c0 .185.098.242.425.248c.438 0 .627.199.632.639a1.568 1.568 0 0 1-.576 1.185zm2.481-.68a.094.094 0 0 1-.036.092l-1.198.727a.034.034 0 0 1-.04.003a.035.035 0 0 1-.016-.037v-.31a.086.086 0 0 1 .055-.076l1.179-.706a.035.035 0 0 1 .056.035v.273zm.827-6.914L8.812 7.515c-.559.331-.97.693-.97 1.367v5.52c0 .404.165.662.413.741a1.465 1.465 0 0 1-.248.025c-.264 0-.522-.072-.748-.207L2.522 12.15a1.558 1.558 0 0 1-.75-1.338V5.188a1.558 1.558 0 0 1 .75-1.34l4.738-2.81a1.46 1.46 0 0 1 1.489 0l4.736 2.812a1.548 1.548 0 0 1 .728 1.083c-.154-.334-.508-.427-.92-.185h.002z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-window{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M14.5 2h-13l-.5.5v11l.5.5h13l.5-.5v-11l-.5-.5zM14 13H2V6h12v7zm0-8H2V3h12v2z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-ph-broadcast{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M128 88a40 40 0 1 0 40 40a40 40 0 0 0-40-40Zm0 64a24 24 0 1 1 24-24a24.1 24.1 0 0 1-24 24Zm-59-48.9a64.5 64.5 0 0 0 0 49.8a65.4 65.4 0 0 0 13.7 20.4a7.9 7.9 0 0 1 0 11.3a8 8 0 0 1-5.6 2.3a8.3 8.3 0 0 1-5.7-2.3a80 80 0 0 1-17.1-25.5a79.9 79.9 0 0 1 0-62.2a80 80 0 0 1 17.1-25.5a8 8 0 0 1 11.3 0a7.9 7.9 0 0 1 0 11.3A65.4 65.4 0 0 0 69 103.1Zm132.7 56a80 80 0 0 1-17.1 25.5a8.3 8.3 0 0 1-5.7 2.3a8 8 0 0 1-5.6-2.3a7.9 7.9 0 0 1 0-11.3a65.4 65.4 0 0 0 13.7-20.4a64.5 64.5 0 0 0 0-49.8a65.4 65.4 0 0 0-13.7-20.4a7.9 7.9 0 0 1 0-11.3a8 8 0 0 1 11.3 0a80 80 0 0 1 17.1 25.5a79.9 79.9 0 0 1 0 62.2ZM54.5 201.5a8.1 8.1 0 0 1 0 11.4a8.3 8.3 0 0 1-5.7 2.3a8.5 8.5 0 0 1-5.7-2.3a121.8 121.8 0 0 1-25.7-38.2a120.7 120.7 0 0 1 0-93.4a121.8 121.8 0 0 1 25.7-38.2a8.1 8.1 0 0 1 11.4 11.4A103.5 103.5 0 0 0 24 128a103.5 103.5 0 0 0 30.5 73.5ZM248 128a120.2 120.2 0 0 1-9.4 46.7a121.8 121.8 0 0 1-25.7 38.2a8.5 8.5 0 0 1-5.7 2.3a8.3 8.3 0 0 1-5.7-2.3a8.1 8.1 0 0 1 0-11.4A103.5 103.5 0 0 0 232 128a103.5 103.5 0 0 0-30.5-73.5a8.1 8.1 0 1 1 11.4-11.4a121.8 121.8 0 0 1 25.7 38.2A120.2 120.2 0 0 1 248 128Z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-ph-globe-hemisphere-west{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M221.6 173.3A102.9 102.9 0 0 0 232 128a104.2 104.2 0 0 0-77.2-100.5h-.5A103.8 103.8 0 0 0 60.4 49l-1.3 1.2A103.9 103.9 0 0 0 128 232h2.4a104.3 104.3 0 0 0 90.6-57.4ZM216 128a89.3 89.3 0 0 1-5.5 30.7l-46.4-28.5a16.6 16.6 0 0 0-6.3-2.3l-22.8-3a16.1 16.1 0 0 0-15.3 6.8h-8.6l-3.8-7.9a15.9 15.9 0 0 0-11-8.7l-6.6-1.4l4.6-10.8h21.4a16.1 16.1 0 0 0 7.7-2l12.2-6.8a16.1 16.1 0 0 0 3-2.1l26.9-24.4a15.7 15.7 0 0 0 4.5-16.9a88 88 0 0 1 46 77.3Zm-68.8-85.9l7.6 13.7l-26.9 24.3l-12.2 6.8H94.3a15.9 15.9 0 0 0-14.7 9.8l-5.3 12.4l-10.9-29.2l8.1-19.3a88 88 0 0 1 75.7-18.5ZM40 128a87.1 87.1 0 0 1 9.5-39.7l10.4 27.9a16.1 16.1 0 0 0 11.6 10l5.5 1.2h.1l15.8 3.4l3.8 7.9a16.3 16.3 0 0 0 14.4 9h1.2l-7.7 17.2a15.9 15.9 0 0 0 2.8 17.4l18.8 20.4l-2.5 13.2A88.1 88.1 0 0 1 40 128Zm100.1 87.2l1.8-9.5a16 16 0 0 0-3.9-13.9l-18.8-20.3l12.7-28.7l1-2.1l22.8 3.1l47.8 29.4a88.5 88.5 0 0 1-63.4 42Z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-ph-hand-waving{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m220.2 104l-20-34.7a28.1 28.1 0 0 0-47.3-1.9l-17.3-30a28.1 28.1 0 0 0-38.3-10.3a29.4 29.4 0 0 0-9.9 9.6a27.9 27.9 0 0 0-11.5-6.2a27.2 27.2 0 0 0-21.2 2.8a27.9 27.9 0 0 0-10.3 38.2l3.4 5.8A28.5 28.5 0 0 0 36 81a28.1 28.1 0 0 0-10.2 38.2l42 72.8a88 88 0 1 0 152.4-88Zm-6.7 62.6a71.2 71.2 0 0 1-33.5 43.7A72.1 72.1 0 0 1 81.6 184l-42-72.8a12 12 0 0 1 20.8-12l22 38.1l.6.9v.2l.5.5l.2.2l.7.6h.1l.7.5h.3l.6.3h.2l.9.3h.1l.8.2h2.2l.9-.2h.3l.6-.2h.3l.9-.4a8.1 8.1 0 0 0 2.9-11l-22-38.1l-16-27.7a12 12 0 0 1-1.2-9.1a11.8 11.8 0 0 1 5.6-7.3a12 12 0 0 1 9.1-1.2a12.5 12.5 0 0 1 7.3 5.6l8 14h.1l26 45a7 7 0 0 0 1.5 1.9a8 8 0 0 0 12.3-9.9l-26-45a12 12 0 1 1 20.8-12l30 51.9l6.3 11a48.1 48.1 0 0 0-10.9 61a8 8 0 0 0 13.8-8a32 32 0 0 1 11.7-43.7l.7-.4l.5-.4h.1l.6-.6l.5-.5l.4-.5l.3-.6h.1l.2-.5v-.2a1.9 1.9 0 0 0 .2-.7h.1c0-.2.1-.4.1-.6s0-.2.1-.2v-2.1a6.4 6.4 0 0 0-.2-.7a1.9 1.9 0 0 0-.2-.7v-.2c0-.2-.1-.3-.2-.5l-.3-.7l-10-17.4a12 12 0 0 1 13.5-17.5a11.8 11.8 0 0 1 7.2 5.5l20 34.7a70.9 70.9 0 0 1 7.2 53.8Zm-125.8 78a8.2 8.2 0 0 1-6.6 3.4a8.6 8.6 0 0 1-4.6-1.4A117.9 117.9 0 0 1 41.1 208a8 8 0 1 1 13.8-8a102.6 102.6 0 0 0 30.8 33.4a8.1 8.1 0 0 1 2 11.2ZM168 31a8 8 0 0 1 8-8a60.2 60.2 0 0 1 52 30a7.9 7.9 0 0 1-3 10.9a7.1 7.1 0 0 1-4 1.1a8 8 0 0 1-6.9-4A44 44 0 0 0 176 39a8 8 0 0 1-8-8Z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-ph-moon{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M224.3 150.3a8.1 8.1 0 0 0-7.8-5.7l-2.2.4A84 84 0 0 1 111 41.6a5.7 5.7 0 0 0 .3-1.8a7.9 7.9 0 0 0-10.3-8.1a100 100 0 1 0 123.3 123.2a7.2 7.2 0 0 0 0-4.6ZM128 212A84 84 0 0 1 92.8 51.7a99.9 99.9 0 0 0 111.5 111.5A84.4 84.4 0 0 1 128 212Z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-ph-sun{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M128 60a68 68 0 1 0 68 68a68.1 68.1 0 0 0-68-68Zm0 120a52 52 0 1 1 52-52a52 52 0 0 1-52 52Zm-8-144V16a8 8 0 0 1 16 0v20a8 8 0 0 1-16 0ZM43.1 54.5a8.1 8.1 0 1 1 11.4-11.4l14.1 14.2a8 8 0 0 1 0 11.3a8.1 8.1 0 0 1-11.3 0ZM36 136H16a8 8 0 0 1 0-16h20a8 8 0 0 1 0 16Zm32.6 51.4a8 8 0 0 1 0 11.3l-14.1 14.2a8.3 8.3 0 0 1-5.7 2.3a8.5 8.5 0 0 1-5.7-2.3a8.1 8.1 0 0 1 0-11.4l14.2-14.1a8 8 0 0 1 11.3 0ZM136 220v20a8 8 0 0 1-16 0v-20a8 8 0 0 1 16 0Zm76.9-18.5a8.1 8.1 0 0 1 0 11.4a8.5 8.5 0 0 1-5.7 2.3a8.3 8.3 0 0 1-5.7-2.3l-14.1-14.2a8 8 0 0 1 11.3-11.3ZM248 128a8 8 0 0 1-8 8h-20a8 8 0 0 1 0-16h20a8 8 0 0 1 8 8Zm-60.6-59.4a8 8 0 0 1 0-11.3l14.1-14.2a8.1 8.1 0 0 1 11.4 11.4l-14.2 14.1a8.1 8.1 0 0 1-11.3 0Z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.note{position:relative;display:inline-flex;align-items:center;border-left-width:4px;border-left-style:solid;--un-border-opacity:1;border-color:rgba(53,120,229,var(--un-border-opacity));border-radius:0.25rem;background-color:rgba(53,120,229,0.1);padding:0.5rem;text-decoration:none;}.note-red{position:relative;display:inline-flex;align-items:center;border-left-width:4px;border-left-style:solid;--un-border-opacity:1;border-color:rgba(53,120,229,var(--un-border-opacity));border-radius:0.25rem;background-color:rgba(53,120,229,0.1);background-color:rgba(185,28,28,0.1);padding:0.5rem;text-decoration:none;}.nv{position:relative;display:flex;align-items:center;border-radius:0.25rem;padding:0.5rem;--un-text-opacity:1;color:rgba(194,197,202,var(--un-text-opacity));text-decoration:none;transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:125ms;}.nv_selected{position:relative;display:flex;align-items:center;border-left-width:4px;border-left-style:solid;border-radius:0.25rem;--un-bg-opacity:.05;background-color:hsla(0,0%,100%,var(--un-bg-opacity));padding:0.5rem;--un-text-opacity:1;color:rgba(194,197,202,var(--un-text-opacity));color:rgba(53,120,229,var(--un-text-opacity));text-decoration:none;transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:125ms;}.input{height:2.5rem;display:flex;align-items:center;border-radius:0.25rem;border-style:none;--un-bg-opacity:1;background-color:rgba(233,236,239,var(--un-bg-opacity));padding:0.5rem;--un-text-opacity:1;color:rgba(28,30,33,var(--un-text-opacity));--un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgba(0,0,0,0.1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgba(0,0,0,0.1));box-shadow:var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow);outline:2px solid transparent;outline-offset:2px;}.btn{user-select:none;border-radius:0.25rem;border-style:none;--un-bg-opacity:1;background-color:rgba(53,120,229,var(--un-bg-opacity));padding:0.5rem;font-weight:400;--un-text-opacity:1;color:rgba(28,30,33,var(--un-text-opacity));color:rgba(255,255,255,var(--un-text-opacity));--un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgba(0,0,0,0.1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgba(0,0,0,0.1));box-shadow:var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow);outline:2px solid transparent;outline-offset:2px;}.nv_selected:hover,.nv:hover{border-left-width:4px;border-left-style:solid;--un-bg-opacity:.05;background-color:hsla(0,0%,100%,var(--un-bg-opacity));--un-text-opacity:1;color:rgba(53,120,229,var(--un-text-opacity));}.dark .note{--un-border-opacity:1;border-color:rgba(103,214,237,var(--un-border-opacity));background-color:rgba(103,214,237,0.1);}.dark .note-red{--un-border-opacity:1;border-color:rgba(103,214,237,var(--un-border-opacity));background-color:rgba(103,214,237,0.1);background-color:rgba(185,28,28,0.1);}.btn:hover{--un-bg-opacity:1;background-color:rgba(45,102,195,var(--un-bg-opacity));}.dark .btn{--un-bg-opacity:1;background-color:rgba(103,214,237,var(--un-bg-opacity));font-weight:600;--un-text-opacity:1;color:rgba(28,30,33,var(--un-text-opacity));}.dark .btn:hover{--un-bg-opacity:1;background-color:rgba(57,202,232,var(--un-bg-opacity));}.dark .input{--un-bg-opacity:1;background-color:rgba(36,37,38,var(--un-bg-opacity));--un-text-opacity:1;color:rgba(227,227,227,var(--un-text-opacity));}.dark .note-red::after,.note-red::after{--un-bg-opacity:1;background-color:rgba(185,28,28,var(--un-bg-opacity));}.btn:active{--un-bg-opacity:1;background-color:rgba(37,84,160,var(--un-bg-opacity));}.dark .btn:active{--un-bg-opacity:1;background-color:rgba(25,181,213,var(--un-bg-opacity));}.dark .nv_selected,.dark .nv_selected:hover,.dark .nv:hover{--un-text-opacity:1;color:rgba(103,214,237,var(--un-text-opacity));} ::-webkit-scrollbar-thumb { background-color: #3578E5; } .dark ::-webkit-scrollbar-thumb { background-color: #67d6ed; } code { font-size: 0.75rem; font-family: "Fira Code","Fira Mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace; border-radius: 0.25rem; background-color: #d6d8da; } .code-block { font-family: "Fira Code","Fira Mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace; font-size: 0.875rem; } .dark code { background-color: #282a2e; } .visible{visibility:visible;}.absolute{position:absolute;}.left-2{left:0.5rem;}.top-2{top:0.5rem;}.z-2000{z-index:2000;}.grid{display:grid;}.grid-rows-\[2fr_auto\]{grid-template-rows:2fr auto;}.grid-rows-\[2px_2rem_1fr\]{grid-template-rows:2px 2rem 1fr;}.grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr;}.my-2{margin-top:0.5rem;margin-bottom:0.5rem;}.mb-2{margin-bottom:0.5rem;}.mr-2{margin-right:0.5rem;}.display-none,.hidden{display:none;}.children-h-10>*,.children\:h10>*{height:2.5rem;}.children\:h-100\%>*,.h-100\%{height:100%;}.children\:w-12>*{width:3rem;}.h-15rem{height:15rem;}.h-2px{height:2px;}.h-8{height:2rem;}.h-85\%{height:85%;}.h-auto{height:auto;}.h-screen{height:100vh;}.w-100\%{width:100%;}.w-8{width:2rem;}.w-screen{width:100vw;}.flex{display:flex;}.children\:inline-flex>*{display:inline-flex;}.flex-1{flex:1 1 0%;}.children-flex-none>*{flex:none;}.children\:grow>*,.grow{flex-grow:1;}.flex-row{flex-direction:row;}.flex-col{flex-direction:column;}.flex-wrap{flex-wrap:wrap;}@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.animate-fade-in{animation:fade-in 1s linear 1;}.animate-spin{animation:spin 1s linear infinite;}.animate-duration-300ms{animation-duration:300ms;}.cursor-ns-resize{cursor:ns-resize;}.cursor-pointer{cursor:pointer;}.select-none{user-select:none;}.children\:items-center>*,.items-center{align-items:center;}.self-center{align-self:center;}.children\:justify-center>*,.justify-center{justify-content:center;}.justify-between{justify-content:space-between;}.gap-1{grid-gap:0.25rem;gap:0.25rem;}.gap-2{grid-gap:0.5rem;gap:0.5rem;}.overflow-hidden{overflow:hidden;}.overflow-y-auto{overflow-y:auto;}.rd-1{border-radius:0.25rem;}.rd-8{border-radius:2rem;}.bg-accent{--un-bg-opacity:1;background-color:rgba(53,120,229,var(--un-bg-opacity));}.bg-black\/20{background-color:rgba(0,0,0,0.2);}.bg-darkPrimaryLighter{--un-bg-opacity:1;background-color:rgba(36,37,38,var(--un-bg-opacity));}.bg-primary{--un-bg-opacity:1;background-color:rgba(255,255,255,var(--un-bg-opacity));}.bg-white\/5{background-color:rgba(255,255,255,0.05);}.dark .dark\:bg-darkAccent{--un-bg-opacity:1;background-color:rgba(103,214,237,var(--un-bg-opacity));}.dark .dark\:bg-darkPrimary{--un-bg-opacity:1;background-color:rgba(27,27,29,var(--un-bg-opacity));}.dark .dark\:hover\:bg-darkHoverOverlay:hover{--un-bg-opacity:.05;background-color:hsla(0,0%,100%,var(--un-bg-opacity));}.dark .dark\:hover\:bg-red-700:hover,.hover\:bg-red-700:hover{--un-bg-opacity:1;background-color:rgba(185,28,28,var(--un-bg-opacity));}.hover\:bg-hoverOverlay:hover{--un-bg-opacity:.05;background-color:rgba(0,0,0,var(--un-bg-opacity));}.active\:bg-accentDark:active{--un-bg-opacity:1;background-color:rgba(48,108,206,var(--un-bg-opacity));}.active\:bg-hoverOverlay\/25:active{background-color:rgba(0,0,0,0.25);}.active\:bg-hoverOverlayDarker:active{--un-bg-opacity:.1;background-color:rgba(0,0,0,var(--un-bg-opacity));}.active\:bg-red-700\/90:active,.dark .dark\:active\:bg-red-700\/90:active{background-color:rgba(185,28,28,0.9);}.dark .dark\:active\:bg-darkAccentDark:active{--un-bg-opacity:1;background-color:rgba(73,206,233,var(--un-bg-opacity));}.dark .dark\:active\:bg-darkHoverOverlay\/25:active{background-color:hsla(0,0%,100%,0.25);}.dark .dark\:active\:bg-darkHoverOverlayDarker:active{--un-bg-opacity:.1;background-color:hsla(0,0%,100%,var(--un-bg-opacity));}.p-1{padding:0.25rem;}.p-7{padding:1.75rem;}.px{padding-left:1rem;padding-right:1rem;}.px-2{padding-left:0.5rem;padding-right:0.5rem;}.px-5{padding-left:1.25rem;padding-right:1.25rem;}.children-pb-2>*{padding-bottom:0.5rem;}.children-pt8>*{padding-top:2rem;}.pl-2{padding-left:0.5rem;}.all\:font-mono *{font-family:"Fira Code","Fira Mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;}.all\:text-xs *{font-size:0.75rem;line-height:1rem;}.text-sm{font-size:0.875rem;line-height:1.25rem;}.font-700{font-weight:700;}.font-semibold{font-weight:600;}.dark .dark\:text-darkAccent{--un-text-opacity:1;color:rgba(103,214,237,var(--un-text-opacity));}.dark .dark\:text-darkAccentText,.text-primaryText{--un-text-opacity:1;color:rgba(28,30,33,var(--un-text-opacity));}.dark .dark\:text-darkPrimaryText,.hover\:text-darkPrimaryText:hover,.text-darkPrimaryText,.active\:text-darkPrimaryText:active{--un-text-opacity:1;color:rgba(227,227,227,var(--un-text-opacity));}.text-accent{--un-text-opacity:1;color:rgba(53,120,229,var(--un-text-opacity));}.text-accentText{--un-text-opacity:1;color:rgba(255,255,255,var(--un-text-opacity));}.filter{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia);}.transition-colors-250{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:250ms;}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}@media (max-width: 639.9px){.lt-sm\:absolute{position:absolute;}.lt-sm\:z-1999{z-index:1999;}.lt-sm\:h-screen{height:100vh;}.lt-sm\:flex{display:flex;}.lt-sm\:pl-10{padding-left:2.5rem;}.lt-sm\:shadow{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgba(0,0,0,0.1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgba(0,0,0,0.1));box-shadow:var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow);}.lt-sm\:shadow-lg{--un-shadow:var(--un-shadow-inset) 0 10px 15px -3px var(--un-shadow-color, rgba(0,0,0,0.1)),var(--un-shadow-inset) 0 4px 6px -4px var(--un-shadow-color, rgba(0,0,0,0.1));box-shadow:var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow);}.lt-sm\:transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}}*:not(h1,h2,h3,h4,h5,h6){margin:0;padding:0}*{box-sizing:border-box;font-family:Rubik,sans-serif}::-webkit-scrollbar{width:.25rem;height:3px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{border-radius:.25rem}code{padding:.05rem .25rem}code.code-block{padding:.5rem}#sidebar{width:18.75rem}@media screen and (max-width: 640px){#sidebar{--translate-x: -18.75rem;transform:translate(var(--translate-x))}}ul.svelte-gbh3pt{list-style:none;margin:0;padding:0;padding-left:var(--nodePaddingLeft, 1rem);border-left:var(--nodeBorderLeft, 1px dotted #9ca3af);color:var(--nodeColor, #374151)}.hidden.svelte-gbh3pt{display:none}.bracket.svelte-gbh3pt{cursor:pointer}.bracket.svelte-gbh3pt:hover{background:var(--bracketHoverBackground, #d1d5db)}.comma.svelte-gbh3pt{color:var(--nodeColor, #374151)}.val.svelte-gbh3pt{color:var(--leafDefaultColor, #9ca3af)}.val.string.svelte-gbh3pt{color:var(--leafStringColor, #059669)}.val.number.svelte-gbh3pt{color:var(--leafNumberColor, #d97706)}.val.boolean.svelte-gbh3pt{color:var(--leafBooleanColor, #2563eb)}.spinner.svelte-4xesec{height:1.2rem;width:1.2rem;border-radius:50rem;color:currentColor;border:2px dashed currentColor} diff --git a/examples/api/dist/assets/index.js b/examples/api/dist/assets/index.js index f86184eb1412..6a4093e32f52 100644 --- a/examples/api/dist/assets/index.js +++ b/examples/api/dist/assets/index.js @@ -1,46 +1,46 @@ -const to=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerpolicy&&(o.referrerPolicy=l.referrerpolicy),l.crossorigin==="use-credentials"?o.credentials="include":l.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}};to();function V(){}function bs(e){return e()}function jl(){return Object.create(null)}function se(e){e.forEach(bs)}function no(e){return typeof e=="function"}function me(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Un;function io(e,t){return Un||(Un=document.createElement("a")),Un.href=t,e===Un.href}function lo(e){return Object.keys(e).length===0}function so(e,...t){if(e==null)return V;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function gs(e,t,n){e.$$.on_destroy.push(so(t,n))}function s(e,t){e.appendChild(t)}function m(e,t,n){e.insertBefore(t,n||null)}function p(e){e.parentNode.removeChild(e)}function ft(e,t){for(let n=0;ne.removeEventListener(t,n,i)}function Xn(e){return function(t){return t.preventDefault(),e.call(this,t)}}function a(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function le(e){return e===""?null:+e}function ro(e){return Array.from(e.childNodes)}function K(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function B(e,t){e.value=t==null?"":t}function zt(e,t){for(let n=0;n{Gn.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function $n(e){e&&e.c()}function Vt(e,t,n,i){const{fragment:l,on_mount:o,on_destroy:u,after_update:d}=e.$$;l&&l.m(t,n),i||Dt(()=>{const c=o.map(bs).filter(no);u?u.push(...c):se(c),e.$$.on_mount=[]}),d.forEach(Dt)}function Gt(e,t){const n=e.$$;n.fragment!==null&&(se(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function po(e,t){e.$$.dirty[0]===-1&&(jt.push(e),co(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const g=y.length?y[0]:_;return f.ctx&&l(f.ctx[k],f.ctx[k]=g)&&(!f.skip_bound&&f.bound[k]&&f.bound[k](g),v&&po(e,k)),_}):[],f.update(),v=!0,se(f.before_update),f.fragment=i?i(f.ctx):!1,t.target){if(t.hydrate){const k=ro(t.target);f.fragment&&f.fragment.l(k),k.forEach(p)}else f.fragment&&f.fragment.c();t.intro&&ze(e.$$.fragment),Vt(e,t.target,t.anchor,t.customElement),ys()}qt(c)}class we{$destroy(){Gt(this,1),this.$destroy=V}$on(t,n){const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const l=i.indexOf(n);l!==-1&&i.splice(l,1)}}$set(t){this.$$set&&!lo(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Et=[];function ws(e,t=V){let n;const i=new Set;function l(d){if(me(e,d)&&(e=d,n)){const c=!Et.length;for(const f of i)f[1](),Et.push(f,e);if(c){for(let f=0;f{i.delete(f),i.size===0&&(n(),n=null)}}return{set:l,update:o,subscribe:u}}var mo=Object.defineProperty,Te=(e,t)=>{for(var n in t)mo(e,n,{get:t[n],enumerable:!0})},ho={};Te(ho,{convertFileSrc:()=>ks,invoke:()=>Kn,transformCallback:()=>pt});function _o(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function pt(e,t=!1){let n=_o(),i=`_${n}`;return Object.defineProperty(window,i,{value:l=>(t&&Reflect.deleteProperty(window,i),e==null?void 0:e(l)),writable:!1,configurable:!0}),n}async function Kn(e,t={}){return new Promise((n,i)=>{let l=pt(u=>{n(u),Reflect.deleteProperty(window,`_${o}`)},!0),o=pt(u=>{i(u),Reflect.deleteProperty(window,`_${l}`)},!0);window.__TAURI_IPC__({cmd:e,callback:l,error:o,...t})})}function ks(e,t="asset"){let n=encodeURIComponent(e);return navigator.userAgent.includes("Windows")?`https://${t}.localhost/${n}`:`${t}://localhost/${n}`}async function L(e){return Kn("tauri",e)}var bo={};Te(bo,{Child:()=>Ms,Command:()=>Wi,EventEmitter:()=>Jn,open:()=>Oi});async function go(e,t,n=[],i){return typeof n=="object"&&Object.freeze(n),L({__tauriModule:"Shell",message:{cmd:"execute",program:t,args:n,options:i,onEventFn:pt(e)}})}var Jn=class{constructor(){this.eventListeners=Object.create(null)}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}on(e,t){return e in this.eventListeners?this.eventListeners[e].push(t):this.eventListeners[e]=[t],this}once(e,t){let n=(...i)=>{this.removeListener(e,n),t(...i)};return this.addListener(e,n)}off(e,t){return e in this.eventListeners&&(this.eventListeners[e]=this.eventListeners[e].filter(n=>n!==t)),this}removeAllListeners(e){return e?delete this.eventListeners[e]:this.eventListeners=Object.create(null),this}emit(e,...t){if(e in this.eventListeners){let n=this.eventListeners[e];for(let i of n)i(...t);return!0}return!1}listenerCount(e){return e in this.eventListeners?this.eventListeners[e].length:0}prependListener(e,t){return e in this.eventListeners?this.eventListeners[e].unshift(t):this.eventListeners[e]=[t],this}prependOnceListener(e,t){let n=(...i)=>{this.removeListener(e,n),t(...i)};return this.prependListener(e,n)}},Ms=class{constructor(e){this.pid=e}async write(e){return L({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:typeof e=="string"?e:Array.from(e)}})}async kill(){return L({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})}},Wi=class extends Jn{constructor(e,t=[],n){super(),this.stdout=new Jn,this.stderr=new Jn,this.program=e,this.args=typeof t=="string"?[t]:t,this.options=n!=null?n:{}}static sidecar(e,t=[],n){let i=new Wi(e,t,n);return i.options.sidecar=!0,i}async spawn(){return go(e=>{switch(e.event){case"Error":this.emit("error",e.payload);break;case"Terminated":this.emit("close",e.payload);break;case"Stdout":this.stdout.emit("data",e.payload);break;case"Stderr":this.stderr.emit("data",e.payload);break}},this.program,this.args,this.options).then(e=>new Ms(e))}async execute(){return new Promise((e,t)=>{this.on("error",t);let n=[],i=[];this.stdout.on("data",l=>{n.push(l)}),this.stderr.on("data",l=>{i.push(l)}),this.on("close",l=>{e({code:l.code,signal:l.signal,stdout:n.join(` +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerpolicy&&(o.referrerPolicy=l.referrerpolicy),l.crossorigin==="use-credentials"?o.credentials="include":l.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function V(){}function bs(e){return e()}function jl(){return Object.create(null)}function ue(e){e.forEach(bs)}function to(e){return typeof e=="function"}function he(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Un;function no(e,t){return Un||(Un=document.createElement("a")),Un.href=t,e===Un.href}function io(e){return Object.keys(e).length===0}function lo(e,...t){if(e==null)return V;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function gs(e,t,n){e.$$.on_destroy.push(lo(t,n))}function s(e,t){e.appendChild(t)}function m(e,t,n){e.insertBefore(t,n||null)}function p(e){e.parentNode.removeChild(e)}function ft(e,t){for(let n=0;ne.removeEventListener(t,n,i)}function Xn(e){return function(t){return t.preventDefault(),e.call(this,t)}}function r(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function re(e){return e===""?null:+e}function oo(e){return Array.from(e.childNodes)}function $(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function q(e,t){e.value=t==null?"":t}function zt(e,t){for(let n=0;n{Gn.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function Kn(e){e&&e.c()}function Vt(e,t,n,i){const{fragment:l,on_mount:o,on_destroy:u,after_update:d}=e.$$;l&&l.m(t,n),i||Dt(()=>{const c=o.map(bs).filter(to);u?u.push(...c):ue(c),e.$$.on_mount=[]}),d.forEach(Dt)}function Gt(e,t){const n=e.$$;n.fragment!==null&&(ue(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function fo(e,t){e.$$.dirty[0]===-1&&(jt.push(e),uo(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const g=v.length?v[0]:_;return f.ctx&&l(f.ctx[k],f.ctx[k]=g)&&(!f.skip_bound&&f.bound[k]&&f.bound[k](g),y&&fo(e,k)),_}):[],f.update(),y=!0,ue(f.before_update),f.fragment=i?i(f.ctx):!1,t.target){if(t.hydrate){const k=oo(t.target);f.fragment&&f.fragment.l(k),k.forEach(p)}else f.fragment&&f.fragment.c();t.intro&&Me(e.$$.fragment),Vt(e,t.target,t.anchor,t.customElement),vs()}qt(c)}class ye{$destroy(){Gt(this,1),this.$destroy=V}$on(t,n){const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const l=i.indexOf(n);l!==-1&&i.splice(l,1)}}$set(t){this.$$set&&!io(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Et=[];function ws(e,t=V){let n;const i=new Set;function l(d){if(he(e,d)&&(e=d,n)){const c=!Et.length;for(const f of i)f[1](),Et.push(f,e);if(c){for(let f=0;f{i.delete(f),i.size===0&&(n(),n=null)}}return{set:l,update:o,subscribe:u}}var po=Object.defineProperty,we=(e,t)=>{for(var n in t)po(e,n,{get:t[n],enumerable:!0})},mo={};we(mo,{convertFileSrc:()=>ks,invoke:()=>$n,transformCallback:()=>pt});function ho(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function pt(e,t=!1){let n=ho(),i=`_${n}`;return Object.defineProperty(window,i,{value:l=>(t&&Reflect.deleteProperty(window,i),e==null?void 0:e(l)),writable:!1,configurable:!0}),n}async function $n(e,t={}){return new Promise((n,i)=>{let l=pt(u=>{n(u),Reflect.deleteProperty(window,`_${o}`)},!0),o=pt(u=>{i(u),Reflect.deleteProperty(window,`_${l}`)},!0);window.__TAURI_IPC__({cmd:e,callback:l,error:o,...t})})}function ks(e,t="asset"){let n=encodeURIComponent(e);return navigator.userAgent.includes("Windows")?`https://${t}.localhost/${n}`:`${t}://localhost/${n}`}async function S(e){return $n("tauri",e)}var _o={};we(_o,{Child:()=>Ms,Command:()=>Oi,EventEmitter:()=>Jn,open:()=>Pi});async function bo(e,t,n=[],i){return typeof n=="object"&&Object.freeze(n),S({__tauriModule:"Shell",message:{cmd:"execute",program:t,args:n,options:i,onEventFn:pt(e)}})}var Jn=class{constructor(){this.eventListeners=Object.create(null)}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}on(e,t){return e in this.eventListeners?this.eventListeners[e].push(t):this.eventListeners[e]=[t],this}once(e,t){let n=(...i)=>{this.removeListener(e,n),t(...i)};return this.addListener(e,n)}off(e,t){return e in this.eventListeners&&(this.eventListeners[e]=this.eventListeners[e].filter(n=>n!==t)),this}removeAllListeners(e){return e?delete this.eventListeners[e]:this.eventListeners=Object.create(null),this}emit(e,...t){if(e in this.eventListeners){let n=this.eventListeners[e];for(let i of n)i(...t);return!0}return!1}listenerCount(e){return e in this.eventListeners?this.eventListeners[e].length:0}prependListener(e,t){return e in this.eventListeners?this.eventListeners[e].unshift(t):this.eventListeners[e]=[t],this}prependOnceListener(e,t){let n=(...i)=>{this.removeListener(e,n),t(...i)};return this.prependListener(e,n)}},Ms=class{constructor(e){this.pid=e}async write(e){return S({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:typeof e=="string"?e:Array.from(e)}})}async kill(){return S({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})}},Oi=class extends Jn{constructor(e,t=[],n){super(),this.stdout=new Jn,this.stderr=new Jn,this.program=e,this.args=typeof t=="string"?[t]:t,this.options=n!=null?n:{}}static sidecar(e,t=[],n){let i=new Oi(e,t,n);return i.options.sidecar=!0,i}async spawn(){return bo(e=>{switch(e.event){case"Error":this.emit("error",e.payload);break;case"Terminated":this.emit("close",e.payload);break;case"Stdout":this.stdout.emit("data",e.payload);break;case"Stderr":this.stderr.emit("data",e.payload);break}},this.program,this.args,this.options).then(e=>new Ms(e))}async execute(){return new Promise((e,t)=>{this.on("error",t);let n=[],i=[];this.stdout.on("data",l=>{n.push(l)}),this.stderr.on("data",l=>{i.push(l)}),this.on("close",l=>{e({code:l.code,signal:l.signal,stdout:n.join(` `),stderr:i.join(` -`)})}),this.spawn().catch(t)})}};async function Oi(e,t){return L({__tauriModule:"Shell",message:{cmd:"open",path:e,with:t}})}var vo={};Te(vo,{TauriEvent:()=>Ls,emit:()=>ni,listen:()=>Xt,once:()=>Ss});async function Cs(e,t){return L({__tauriModule:"Event",message:{cmd:"unlisten",event:e,eventId:t}})}async function Ts(e,t,n){await L({__tauriModule:"Event",message:{cmd:"emit",event:e,windowLabel:t,payload:n}})}async function Ri(e,t,n){return L({__tauriModule:"Event",message:{cmd:"listen",event:e,windowLabel:t,handler:pt(n)}}).then(i=>async()=>Cs(e,i))}async function As(e,t,n){return Ri(e,t,i=>{n(i),Cs(e,i.id).catch(()=>{})})}var Ls=(e=>(e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_CREATED="tauri://window-created",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_FILE_DROP="tauri://file-drop",e.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",e.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",e.MENU="tauri://menu",e.CHECK_UPDATE="tauri://update",e.UPDATE_AVAILABLE="tauri://update-available",e.INSTALL_UPDATE="tauri://update-install",e.STATUS_UPDATE="tauri://update-status",e.DOWNLOAD_PROGRESS="tauri://update-download-progress",e))(Ls||{});async function Xt(e,t){return Ri(e,null,t)}async function Ss(e,t){return As(e,null,t)}async function ni(e,t){return Ts(e,void 0,t)}var yo={};Te(yo,{CloseRequestedEvent:()=>Ws,LogicalPosition:()=>Es,LogicalSize:()=>Qn,PhysicalPosition:()=>xe,PhysicalSize:()=>dt,UserAttentionType:()=>Ii,WebviewWindow:()=>mt,WebviewWindowHandle:()=>Ds,WindowManager:()=>Ps,appWindow:()=>je,availableMonitors:()=>Mo,currentMonitor:()=>wo,getAll:()=>zs,getCurrent:()=>Ut,primaryMonitor:()=>ko});var Qn=class{constructor(e,t){this.type="Logical",this.width=e,this.height=t}},dt=class{constructor(e,t){this.type="Physical",this.width=e,this.height=t}toLogical(e){return new Qn(this.width/e,this.height/e)}},Es=class{constructor(e,t){this.type="Logical",this.x=e,this.y=t}},xe=class{constructor(e,t){this.type="Physical",this.x=e,this.y=t}toLogical(e){return new Es(this.x/e,this.y/e)}},Ii=(e=>(e[e.Critical=1]="Critical",e[e.Informational=2]="Informational",e))(Ii||{});function Ut(){return new mt(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function zs(){return window.__TAURI_METADATA__.__windows.map(e=>new mt(e.label,{skip:!0}))}var ql=["tauri://created","tauri://error"],Ds=class{constructor(e){this.label=e,this.listeners=Object.create(null)}async listen(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let n=this.listeners[e];n.splice(n.indexOf(t),1)}):Ri(e,this.label,t)}async once(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let n=this.listeners[e];n.splice(n.indexOf(t),1)}):As(e,this.label,t)}async emit(e,t){if(ql.includes(e)){for(let n of this.listeners[e]||[])n({event:e,id:-1,windowLabel:this.label,payload:t});return Promise.resolve()}return Ts(e,this.label,t)}_handleTauriEvent(e,t){return ql.includes(e)?(e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t],!0):!1}},Ps=class extends Ds{async scaleFactor(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(({x:e,y:t})=>new xe(e,t))}async outerPosition(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(({x:e,y:t})=>new xe(e,t))}async innerSize(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(({width:e,height:t})=>new dt(e,t))}async outerSize(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(({width:e,height:t})=>new dt(e,t))}async isFullscreen(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})}async isMaximized(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})}async isDecorated(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})}async isResizable(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})}async isVisible(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})}async theme(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"theme"}}}})}async center(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})}async requestUserAttention(e){let t=null;return e&&(e===1?t={type:"Critical"}:t={type:"Informational"}),L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:t}}}})}async setResizable(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:e}}}})}async setTitle(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:e}}}})}async maximize(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})}async unmaximize(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})}async toggleMaximize(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})}async minimize(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})}async unminimize(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})}async show(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})}async hide(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})}async close(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})}async setDecorations(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:e}}}})}async setAlwaysOnTop(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:e}}}})}async setSize(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:e.type,data:{width:e.width,height:e.height}}}}}})}async setMinSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setMaxSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setFullscreen(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:e}}}})}async setFocus(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})}async setIcon(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof e=="string"?e:Array.from(e)}}}}})}async setSkipTaskbar(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:e}}}})}async setCursorGrab(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorGrab",payload:e}}}})}async setCursorVisible(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorVisible",payload:e}}}})}async setCursorIcon(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorIcon",payload:e}}}})}async setCursorPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setIgnoreCursorEvents(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIgnoreCursorEvents",payload:e}}}})}async startDragging(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})}async onResized(e){return this.listen("tauri://resize",e)}async onMoved(e){return this.listen("tauri://move",e)}async onCloseRequested(e){return this.listen("tauri://close-requested",t=>{let n=new Ws(t);Promise.resolve(e(n)).then(()=>{if(!n.isPreventDefault())return this.close()})})}async onFocusChanged(e){let t=await this.listen("tauri://focus",i=>{e({...i,payload:!0})}),n=await this.listen("tauri://blur",i=>{e({...i,payload:!1})});return()=>{t(),n()}}async onScaleChanged(e){return this.listen("tauri://scale-change",e)}async onMenuClicked(e){return this.listen("tauri://menu",e)}async onFileDropEvent(e){let t=await this.listen("tauri://file-drop",l=>{e({...l,payload:{type:"drop",paths:l.payload}})}),n=await this.listen("tauri://file-drop-hover",l=>{e({...l,payload:{type:"hover",paths:l.payload}})}),i=await this.listen("tauri://file-drop-cancelled",l=>{e({...l,payload:{type:"cancel"}})});return()=>{t(),n(),i()}}async onThemeChanged(e){return this.listen("tauri://theme-changed",e)}},Ws=class{constructor(e){this._preventDefault=!1,this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}},mt=class extends Ps{constructor(e,t={}){super(e),t!=null&&t.skip||L({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:{label:e,...t}}}}).then(async()=>this.emit("tauri://created")).catch(async n=>this.emit("tauri://error",n))}static getByLabel(e){return zs().some(t=>t.label===e)?new mt(e,{skip:!0}):null}},je;"__TAURI_METADATA__"in window?je=new mt(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0}):(console.warn(`Could not find "window.__TAURI_METADATA__". The "appWindow" value will reference the "main" window label. -Note that this is not an issue if running this frontend on a browser instead of a Tauri window.`),je=new mt("main",{skip:!0}));function Hi(e){return e===null?null:{name:e.name,scaleFactor:e.scaleFactor,position:new xe(e.position.x,e.position.y),size:new dt(e.size.width,e.size.height)}}async function wo(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}}).then(Hi)}async function ko(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}}).then(Hi)}async function Mo(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}}).then(e=>e.map(Hi))}function Co(){return navigator.appVersion.includes("Win")}var To={};Te(To,{EOL:()=>Ao,arch:()=>Eo,platform:()=>Os,tempdir:()=>zo,type:()=>So,version:()=>Lo});var Ao=Co()?`\r +`)})}),this.spawn().catch(t)})}};async function Pi(e,t){return S({__tauriModule:"Shell",message:{cmd:"open",path:e,with:t}})}var go={};we(go,{TauriEvent:()=>Ss,emit:()=>ni,listen:()=>Xt,once:()=>Ls});async function Ts(e,t){return S({__tauriModule:"Event",message:{cmd:"unlisten",event:e,eventId:t}})}async function Cs(e,t,n){await S({__tauriModule:"Event",message:{cmd:"emit",event:e,windowLabel:t,payload:n}})}async function Ri(e,t,n){return S({__tauriModule:"Event",message:{cmd:"listen",event:e,windowLabel:t,handler:pt(n)}}).then(i=>async()=>Ts(e,i))}async function As(e,t,n){return Ri(e,t,i=>{n(i),Ts(e,i.id).catch(()=>{})})}var Ss=(e=>(e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_CREATED="tauri://window-created",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_FILE_DROP="tauri://file-drop",e.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",e.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",e.MENU="tauri://menu",e.CHECK_UPDATE="tauri://update",e.UPDATE_AVAILABLE="tauri://update-available",e.INSTALL_UPDATE="tauri://update-install",e.STATUS_UPDATE="tauri://update-status",e.DOWNLOAD_PROGRESS="tauri://update-download-progress",e))(Ss||{});async function Xt(e,t){return Ri(e,null,t)}async function Ls(e,t){return As(e,null,t)}async function ni(e,t){return Cs(e,void 0,t)}var yo={};we(yo,{CloseRequestedEvent:()=>Os,LogicalPosition:()=>Es,LogicalSize:()=>Qn,PhysicalPosition:()=>et,PhysicalSize:()=>dt,UserAttentionType:()=>Ii,WebviewWindow:()=>mt,WebviewWindowHandle:()=>Ds,WindowManager:()=>Ws,appWindow:()=>Ue,availableMonitors:()=>ko,currentMonitor:()=>vo,getAll:()=>zs,getCurrent:()=>Ut,primaryMonitor:()=>wo});var Qn=class{constructor(e,t){this.type="Logical",this.width=e,this.height=t}},dt=class{constructor(e,t){this.type="Physical",this.width=e,this.height=t}toLogical(e){return new Qn(this.width/e,this.height/e)}},Es=class{constructor(e,t){this.type="Logical",this.x=e,this.y=t}},et=class{constructor(e,t){this.type="Physical",this.x=e,this.y=t}toLogical(e){return new Es(this.x/e,this.y/e)}},Ii=(e=>(e[e.Critical=1]="Critical",e[e.Informational=2]="Informational",e))(Ii||{});function Ut(){return new mt(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function zs(){return window.__TAURI_METADATA__.__windows.map(e=>new mt(e.label,{skip:!0}))}var ql=["tauri://created","tauri://error"],Ds=class{constructor(e){this.label=e,this.listeners=Object.create(null)}async listen(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let n=this.listeners[e];n.splice(n.indexOf(t),1)}):Ri(e,this.label,t)}async once(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let n=this.listeners[e];n.splice(n.indexOf(t),1)}):As(e,this.label,t)}async emit(e,t){if(ql.includes(e)){for(let n of this.listeners[e]||[])n({event:e,id:-1,windowLabel:this.label,payload:t});return Promise.resolve()}return Cs(e,this.label,t)}_handleTauriEvent(e,t){return ql.includes(e)?(e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t],!0):!1}},Ws=class extends Ds{async scaleFactor(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(({x:e,y:t})=>new et(e,t))}async outerPosition(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(({x:e,y:t})=>new et(e,t))}async innerSize(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(({width:e,height:t})=>new dt(e,t))}async outerSize(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(({width:e,height:t})=>new dt(e,t))}async isFullscreen(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})}async isMaximized(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})}async isDecorated(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})}async isResizable(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})}async isVisible(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})}async theme(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"theme"}}}})}async center(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})}async requestUserAttention(e){let t=null;return e&&(e===1?t={type:"Critical"}:t={type:"Informational"}),S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:t}}}})}async setResizable(e){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:e}}}})}async setTitle(e){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:e}}}})}async maximize(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})}async unmaximize(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})}async toggleMaximize(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})}async minimize(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})}async unminimize(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})}async show(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})}async hide(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})}async close(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})}async setDecorations(e){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:e}}}})}async setShadow(e){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setShadow",payload:e}}}})}async setAlwaysOnTop(e){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:e}}}})}async setSize(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:e.type,data:{width:e.width,height:e.height}}}}}})}async setMinSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setMaxSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setFullscreen(e){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:e}}}})}async setFocus(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})}async setIcon(e){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof e=="string"?e:Array.from(e)}}}}})}async setSkipTaskbar(e){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:e}}}})}async setCursorGrab(e){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorGrab",payload:e}}}})}async setCursorVisible(e){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorVisible",payload:e}}}})}async setCursorIcon(e){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorIcon",payload:e}}}})}async setCursorPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setIgnoreCursorEvents(e){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIgnoreCursorEvents",payload:e}}}})}async startDragging(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})}async onResized(e){return this.listen("tauri://resize",e)}async onMoved(e){return this.listen("tauri://move",e)}async onCloseRequested(e){return this.listen("tauri://close-requested",t=>{let n=new Os(t);Promise.resolve(e(n)).then(()=>{if(!n.isPreventDefault())return this.close()})})}async onFocusChanged(e){let t=await this.listen("tauri://focus",i=>{e({...i,payload:!0})}),n=await this.listen("tauri://blur",i=>{e({...i,payload:!1})});return()=>{t(),n()}}async onScaleChanged(e){return this.listen("tauri://scale-change",e)}async onMenuClicked(e){return this.listen("tauri://menu",e)}async onFileDropEvent(e){let t=await this.listen("tauri://file-drop",l=>{e({...l,payload:{type:"drop",paths:l.payload}})}),n=await this.listen("tauri://file-drop-hover",l=>{e({...l,payload:{type:"hover",paths:l.payload}})}),i=await this.listen("tauri://file-drop-cancelled",l=>{e({...l,payload:{type:"cancel"}})});return()=>{t(),n(),i()}}async onThemeChanged(e){return this.listen("tauri://theme-changed",e)}},Os=class{constructor(e){this._preventDefault=!1,this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}},mt=class extends Ws{constructor(e,t={}){super(e),t!=null&&t.skip||S({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:{label:e,...t}}}}).then(async()=>this.emit("tauri://created")).catch(async n=>this.emit("tauri://error",n))}static getByLabel(e){return zs().some(t=>t.label===e)?new mt(e,{skip:!0}):null}},Ue;"__TAURI_METADATA__"in window?Ue=new mt(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0}):(console.warn(`Could not find "window.__TAURI_METADATA__". The "appWindow" value will reference the "main" window label. +Note that this is not an issue if running this frontend on a browser instead of a Tauri window.`),Ue=new mt("main",{skip:!0}));function Hi(e){return e===null?null:{name:e.name,scaleFactor:e.scaleFactor,position:new et(e.position.x,e.position.y),size:new dt(e.size.width,e.size.height)}}async function vo(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}}).then(Hi)}async function wo(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}}).then(Hi)}async function ko(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}}).then(e=>e.map(Hi))}function Mo(){return navigator.appVersion.includes("Win")}var To={};we(To,{EOL:()=>Co,arch:()=>Lo,platform:()=>Ps,tempdir:()=>Eo,type:()=>So,version:()=>Ao});var Co=Mo()?`\r `:` -`;async function Os(){return L({__tauriModule:"Os",message:{cmd:"platform"}})}async function Lo(){return L({__tauriModule:"Os",message:{cmd:"version"}})}async function So(){return L({__tauriModule:"Os",message:{cmd:"osType"}})}async function Eo(){return L({__tauriModule:"Os",message:{cmd:"arch"}})}async function zo(){return L({__tauriModule:"Os",message:{cmd:"tempdir"}})}var Do={};Te(Do,{getName:()=>Is,getTauriVersion:()=>Hs,getVersion:()=>Rs,hide:()=>Ns,show:()=>Fs});async function Rs(){return L({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function Is(){return L({__tauriModule:"App",message:{cmd:"getAppName"}})}async function Hs(){return L({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function Fs(){return L({__tauriModule:"App",message:{cmd:"show"}})}async function Ns(){return L({__tauriModule:"App",message:{cmd:"hide"}})}var Po={};Te(Po,{exit:()=>js,relaunch:()=>Fi});async function js(e=0){return L({__tauriModule:"Process",message:{cmd:"exit",exitCode:e}})}async function Fi(){return L({__tauriModule:"Process",message:{cmd:"relaunch"}})}function Wo(e){let t,n,i,l,o,u,d,c,f,v,k,_,y,g,b,A,D,F,W,j,S,C,T,P,M,N;return{c(){t=r("p"),t.innerHTML=`This is a demo of Tauri's API capabilities using the @tauri-apps/api package. It's used as the main validation app, serving as the test bed of our +`;async function Ps(){return S({__tauriModule:"Os",message:{cmd:"platform"}})}async function Ao(){return S({__tauriModule:"Os",message:{cmd:"version"}})}async function So(){return S({__tauriModule:"Os",message:{cmd:"osType"}})}async function Lo(){return S({__tauriModule:"Os",message:{cmd:"arch"}})}async function Eo(){return S({__tauriModule:"Os",message:{cmd:"tempdir"}})}var zo={};we(zo,{getName:()=>Is,getTauriVersion:()=>Hs,getVersion:()=>Rs,hide:()=>Ns,show:()=>Fs});async function Rs(){return S({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function Is(){return S({__tauriModule:"App",message:{cmd:"getAppName"}})}async function Hs(){return S({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function Fs(){return S({__tauriModule:"App",message:{cmd:"show"}})}async function Ns(){return S({__tauriModule:"App",message:{cmd:"hide"}})}var Do={};we(Do,{exit:()=>js,relaunch:()=>Fi});async function js(e=0){return S({__tauriModule:"Process",message:{cmd:"exit",exitCode:e}})}async function Fi(){return S({__tauriModule:"Process",message:{cmd:"relaunch"}})}function Wo(e){let t,n,i,l,o,u,d,c,f,y,k,_,v,g,b,A,O,I,P,F,L,T,C,W,M,j;return{c(){t=a("p"),t.innerHTML=`This is a demo of Tauri's API capabilities using the @tauri-apps/api package. It's used as the main validation app, serving as the test bed of our development process. In the future, this app will be used on Tauri's integration - tests.`,n=h(),i=r("br"),l=h(),o=r("br"),u=h(),d=r("pre"),c=z("App name: "),f=r("code"),v=z(e[2]),k=z(` -App version: `),_=r("code"),y=z(e[0]),g=z(` -Tauri version: `),b=r("code"),A=z(e[1]),D=z(` -`),F=h(),W=r("br"),j=h(),S=r("div"),C=r("button"),C.textContent="Close application",T=h(),P=r("button"),P.textContent="Relaunch application",a(C,"class","btn"),a(P,"class","btn"),a(S,"class","flex flex-wrap gap-1 shadow-")},m(U,J){m(U,t,J),m(U,n,J),m(U,i,J),m(U,l,J),m(U,o,J),m(U,u,J),m(U,d,J),s(d,c),s(d,f),s(f,v),s(d,k),s(d,_),s(_,y),s(d,g),s(d,b),s(b,A),s(d,D),m(U,F,J),m(U,W,J),m(U,j,J),m(U,S,J),s(S,C),s(S,T),s(S,P),M||(N=[E(C,"click",e[3]),E(P,"click",e[4])],M=!0)},p(U,[J]){J&4&&K(v,U[2]),J&1&&K(y,U[0]),J&2&&K(A,U[1])},i:V,o:V,d(U){U&&p(t),U&&p(n),U&&p(i),U&&p(l),U&&p(o),U&&p(u),U&&p(d),U&&p(F),U&&p(W),U&&p(j),U&&p(S),M=!1,se(N)}}}function Oo(e,t,n){let i="0.0.0",l="0.0.0",o="Unknown";Is().then(c=>{n(2,o=c)}),Rs().then(c=>{n(0,i=c)}),Hs().then(c=>{n(1,l=c)});async function u(){await js()}async function d(){await Fi()}return[i,l,o,u,d]}class Ro extends we{constructor(t){super(),ye(this,t,Oo,Wo,me,{})}}var Io={};Te(Io,{getMatches:()=>Us});async function Us(){return L({__tauriModule:"Cli",message:{cmd:"cliMatches"}})}function Ho(e){let t,n,i,l,o,u,d,c,f,v,k,_,y;return{c(){t=r("p"),t.innerHTML=`This binary can be run from the terminal and takes the following arguments: + tests.`,n=h(),i=a("br"),l=h(),o=a("br"),u=h(),d=a("pre"),c=z("App name: "),f=a("code"),y=z(e[2]),k=z(` +App version: `),_=a("code"),v=z(e[0]),g=z(` +Tauri version: `),b=a("code"),A=z(e[1]),O=z(` +`),I=h(),P=a("br"),F=h(),L=a("div"),T=a("button"),T.textContent="Close application",C=h(),W=a("button"),W.textContent="Relaunch application",r(T,"class","btn"),r(W,"class","btn"),r(L,"class","flex flex-wrap gap-1 shadow-")},m(U,J){m(U,t,J),m(U,n,J),m(U,i,J),m(U,l,J),m(U,o,J),m(U,u,J),m(U,d,J),s(d,c),s(d,f),s(f,y),s(d,k),s(d,_),s(_,v),s(d,g),s(d,b),s(b,A),s(d,O),m(U,I,J),m(U,P,J),m(U,F,J),m(U,L,J),s(L,T),s(L,C),s(L,W),M||(j=[E(T,"click",e[3]),E(W,"click",e[4])],M=!0)},p(U,[J]){J&4&&$(y,U[2]),J&1&&$(v,U[0]),J&2&&$(A,U[1])},i:V,o:V,d(U){U&&p(t),U&&p(n),U&&p(i),U&&p(l),U&&p(o),U&&p(u),U&&p(d),U&&p(I),U&&p(P),U&&p(F),U&&p(L),M=!1,ue(j)}}}function Oo(e,t,n){let i="0.0.0",l="0.0.0",o="Unknown";Is().then(c=>{n(2,o=c)}),Rs().then(c=>{n(0,i=c)}),Hs().then(c=>{n(1,l=c)});async function u(){await js()}async function d(){await Fi()}return[i,l,o,u,d]}class Po extends ye{constructor(t){super(),ge(this,t,Oo,Wo,he,{})}}var Ro={};we(Ro,{getMatches:()=>Us});async function Us(){return S({__tauriModule:"Cli",message:{cmd:"cliMatches"}})}function Io(e){let t,n,i,l,o,u,d,c,f,y,k,_,v;return{c(){t=a("p"),t.innerHTML=`This binary can be run from the terminal and takes the following arguments:

  --config <PATH>
   --theme <light|dark|system>
   --verbose
- Additionally, it has a update --background subcommand.`,n=h(),i=r("br"),l=h(),o=r("div"),o.textContent="Note that the arguments are only parsed, not implemented.",u=h(),d=r("br"),c=h(),f=r("br"),v=h(),k=r("button"),k.textContent="Get matches",a(o,"class","note"),a(k,"class","btn"),a(k,"id","cli-matches")},m(g,b){m(g,t,b),m(g,n,b),m(g,i,b),m(g,l,b),m(g,o,b),m(g,u,b),m(g,d,b),m(g,c,b),m(g,f,b),m(g,v,b),m(g,k,b),_||(y=E(k,"click",e[0]),_=!0)},p:V,i:V,o:V,d(g){g&&p(t),g&&p(n),g&&p(i),g&&p(l),g&&p(o),g&&p(u),g&&p(d),g&&p(c),g&&p(f),g&&p(v),g&&p(k),_=!1,y()}}}function Fo(e,t,n){let{onMessage:i}=t;function l(){Us().then(i).catch(i)}return e.$$set=o=>{"onMessage"in o&&n(1,i=o.onMessage)},[l,i]}class No extends we{constructor(t){super(),ye(this,t,Fo,Ho,me,{onMessage:1})}}function jo(e){let t,n,i,l,o,u,d,c;return{c(){t=r("div"),n=r("button"),n.textContent="Call Log API",i=h(),l=r("button"),l.textContent="Call Request (async) API",o=h(),u=r("button"),u.textContent="Send event to Rust",a(n,"class","btn"),a(n,"id","log"),a(l,"class","btn"),a(l,"id","request"),a(u,"class","btn"),a(u,"id","event")},m(f,v){m(f,t,v),s(t,n),s(t,i),s(t,l),s(t,o),s(t,u),d||(c=[E(n,"click",e[0]),E(l,"click",e[1]),E(u,"click",e[2])],d=!0)},p:V,i:V,o:V,d(f){f&&p(t),d=!1,se(c)}}}function Uo(e,t,n){let{onMessage:i}=t,l;ut(async()=>{l=await Xt("rust-event",i)}),Pi(()=>{l&&l()});function o(){Kn("log_operation",{event:"tauri-click",payload:"this payload is optional because we used Option in Rust"})}function u(){Kn("perform_request",{endpoint:"dummy endpoint arg",body:{id:5,name:"test"}}).then(i).catch(i)}function d(){ni("js-event","this is the payload string")}return e.$$set=c=>{"onMessage"in c&&n(3,i=c.onMessage)},[o,u,d,i]}class qo extends we{constructor(t){super(),ye(this,t,Uo,jo,me,{onMessage:3})}}var Bo={};Te(Bo,{ask:()=>Bs,confirm:()=>Go,message:()=>Vo,open:()=>Ni,save:()=>qs});async function Ni(e={}){return typeof e=="object"&&Object.freeze(e),L({__tauriModule:"Dialog",message:{cmd:"openDialog",options:e}})}async function qs(e={}){return typeof e=="object"&&Object.freeze(e),L({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:e}})}async function Vo(e,t){var n;let i=typeof t=="string"?{title:t}:t;return L({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:e.toString(),title:(n=i==null?void 0:i.title)==null?void 0:n.toString(),type:i==null?void 0:i.type}})}async function Bs(e,t){var n;let i=typeof t=="string"?{title:t}:t;return L({__tauriModule:"Dialog",message:{cmd:"askDialog",message:e.toString(),title:(n=i==null?void 0:i.title)==null?void 0:n.toString(),type:i==null?void 0:i.type}})}async function Go(e,t){var n;let i=typeof t=="string"?{title:t}:t;return L({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:e.toString(),title:(n=i==null?void 0:i.title)==null?void 0:n.toString(),type:i==null?void 0:i.type}})}var Jo={};Te(Jo,{BaseDirectory:()=>Jt,Dir:()=>Jt,copyFile:()=>Qo,createDir:()=>$o,exists:()=>er,readBinaryFile:()=>ji,readDir:()=>Vs,readTextFile:()=>Xo,removeDir:()=>Ko,removeFile:()=>Zo,renameFile:()=>xo,writeBinaryFile:()=>Yo,writeFile:()=>Di,writeTextFile:()=>Di});var Jt=(e=>(e[e.Audio=1]="Audio",e[e.Cache=2]="Cache",e[e.Config=3]="Config",e[e.Data=4]="Data",e[e.LocalData=5]="LocalData",e[e.Desktop=6]="Desktop",e[e.Document=7]="Document",e[e.Download=8]="Download",e[e.Executable=9]="Executable",e[e.Font=10]="Font",e[e.Home=11]="Home",e[e.Picture=12]="Picture",e[e.Public=13]="Public",e[e.Runtime=14]="Runtime",e[e.Template=15]="Template",e[e.Video=16]="Video",e[e.Resource=17]="Resource",e[e.App=18]="App",e[e.Log=19]="Log",e[e.Temp=20]="Temp",e[e.AppConfig=21]="AppConfig",e[e.AppData=22]="AppData",e[e.AppLocalData=23]="AppLocalData",e[e.AppCache=24]="AppCache",e[e.AppLog=25]="AppLog",e))(Jt||{});async function Xo(e,t={}){return L({__tauriModule:"Fs",message:{cmd:"readTextFile",path:e,options:t}})}async function ji(e,t={}){let n=await L({__tauriModule:"Fs",message:{cmd:"readFile",path:e,options:t}});return Uint8Array.from(n)}async function Di(e,t,n){typeof n=="object"&&Object.freeze(n),typeof e=="object"&&Object.freeze(e);let i={path:"",contents:""},l=n;return typeof e=="string"?i.path=e:(i.path=e.path,i.contents=e.contents),typeof t=="string"?i.contents=t!=null?t:"":l=t,L({__tauriModule:"Fs",message:{cmd:"writeFile",path:i.path,contents:Array.from(new TextEncoder().encode(i.contents)),options:l}})}async function Yo(e,t,n){typeof n=="object"&&Object.freeze(n),typeof e=="object"&&Object.freeze(e);let i={path:"",contents:[]},l=n;return typeof e=="string"?i.path=e:(i.path=e.path,i.contents=e.contents),t&&"dir"in t?l=t:typeof e=="string"&&(i.contents=t!=null?t:[]),L({__tauriModule:"Fs",message:{cmd:"writeFile",path:i.path,contents:Array.from(i.contents instanceof ArrayBuffer?new Uint8Array(i.contents):i.contents),options:l}})}async function Vs(e,t={}){return L({__tauriModule:"Fs",message:{cmd:"readDir",path:e,options:t}})}async function $o(e,t={}){return L({__tauriModule:"Fs",message:{cmd:"createDir",path:e,options:t}})}async function Ko(e,t={}){return L({__tauriModule:"Fs",message:{cmd:"removeDir",path:e,options:t}})}async function Qo(e,t,n={}){return L({__tauriModule:"Fs",message:{cmd:"copyFile",source:e,destination:t,options:n}})}async function Zo(e,t={}){return L({__tauriModule:"Fs",message:{cmd:"removeFile",path:e,options:t}})}async function xo(e,t,n={}){return L({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:e,newPath:t,options:n}})}async function er(e,t={}){return L({__tauriModule:"Fs",message:{cmd:"exists",path:e,options:t}})}function tr(e){let t,n,i,l,o,u,d,c,f,v,k,_,y,g,b,A,D,F,W,j,S,C,T,P;return{c(){t=r("div"),n=r("input"),i=h(),l=r("input"),o=h(),u=r("br"),d=h(),c=r("div"),f=r("input"),v=h(),k=r("label"),k.textContent="Multiple",_=h(),y=r("div"),g=r("input"),b=h(),A=r("label"),A.textContent="Directory",D=h(),F=r("br"),W=h(),j=r("button"),j.textContent="Open dialog",S=h(),C=r("button"),C.textContent="Open save dialog",a(n,"class","input"),a(n,"id","dialog-default-path"),a(n,"placeholder","Default path"),a(l,"class","input"),a(l,"id","dialog-filter"),a(l,"placeholder","Extensions filter, comma-separated"),a(t,"class","flex gap-2 children:grow"),a(f,"type","checkbox"),a(f,"id","dialog-multiple"),a(k,"for","dialog-multiple"),a(g,"type","checkbox"),a(g,"id","dialog-directory"),a(A,"for","dialog-directory"),a(j,"class","btn"),a(j,"id","open-dialog"),a(C,"class","btn"),a(C,"id","save-dialog")},m(M,N){m(M,t,N),s(t,n),B(n,e[0]),s(t,i),s(t,l),B(l,e[1]),m(M,o,N),m(M,u,N),m(M,d,N),m(M,c,N),s(c,f),f.checked=e[2],s(c,v),s(c,k),m(M,_,N),m(M,y,N),s(y,g),g.checked=e[3],s(y,b),s(y,A),m(M,D,N),m(M,F,N),m(M,W,N),m(M,j,N),m(M,S,N),m(M,C,N),T||(P=[E(n,"input",e[8]),E(l,"input",e[9]),E(f,"change",e[10]),E(g,"change",e[11]),E(j,"click",e[4]),E(C,"click",e[5])],T=!0)},p(M,[N]){N&1&&n.value!==M[0]&&B(n,M[0]),N&2&&l.value!==M[1]&&B(l,M[1]),N&4&&(f.checked=M[2]),N&8&&(g.checked=M[3])},i:V,o:V,d(M){M&&p(t),M&&p(o),M&&p(u),M&&p(d),M&&p(c),M&&p(_),M&&p(y),M&&p(D),M&&p(F),M&&p(W),M&&p(j),M&&p(S),M&&p(C),T=!1,se(P)}}}function nr(e,t){var n=new Blob([e],{type:"application/octet-binary"}),i=new FileReader;i.onload=function(l){var o=l.target.result;t(o.substr(o.indexOf(",")+1))},i.readAsDataURL(n)}function ir(e,t,n){let{onMessage:i}=t,{insecureRenderHtml:l}=t,o=null,u=null,d=!1,c=!1;function f(){Ni({title:"My wonderful open dialog",defaultPath:o,filters:u?[{name:"Tauri Example",extensions:u.split(",").map(b=>b.trim())}]:[],multiple:d,directory:c}).then(function(b){if(Array.isArray(b))i(b);else{var A=b,D=A.match(/\S+\.\S+$/g);ji(A).then(function(F){D&&(A.includes(".png")||A.includes(".jpg"))?nr(new Uint8Array(F),function(W){var j="data:image/png;base64,"+W;l('')}):i(b)}).catch(i(b))}}).catch(i)}function v(){qs({title:"My wonderful save dialog",defaultPath:o,filters:u?[{name:"Tauri Example",extensions:u.split(",").map(b=>b.trim())}]:[]}).then(i).catch(i)}function k(){o=this.value,n(0,o)}function _(){u=this.value,n(1,u)}function y(){d=this.checked,n(2,d)}function g(){c=this.checked,n(3,c)}return e.$$set=b=>{"onMessage"in b&&n(6,i=b.onMessage),"insecureRenderHtml"in b&&n(7,l=b.insecureRenderHtml)},[o,u,d,c,f,v,i,l,k,_,y,g]}class lr extends we{constructor(t){super(),ye(this,t,ir,tr,me,{onMessage:6,insecureRenderHtml:7})}}function Bl(e,t,n){const i=e.slice();return i[9]=t[n],i}function Vl(e){let t,n=e[9][0]+"",i,l;return{c(){t=r("option"),i=z(n),t.__value=l=e[9][1],t.value=t.__value},m(o,u){m(o,t,u),s(t,i)},p:V,d(o){o&&p(t)}}}function sr(e){let t,n,i,l,o,u,d,c,f,v,k,_,y,g,b,A,D,F,W,j=e[2],S=[];for(let C=0;CisNaN(parseInt(_))).map(_=>[_,Jt[_]]);function c(){const _=o.match(/\S+\.\S+$/g),y={dir:Gl()};(_?ji(o,y):Vs(o,y)).then(function(b){if(_)if(o.includes(".png")||o.includes(".jpg"))or(new Uint8Array(b),function(A){const D="data:image/png;base64,"+A;l('')});else{const A=String.fromCharCode.apply(null,b);l(''),setTimeout(()=>{const D=document.getElementById("file-response");D.value=A,document.getElementById("file-save").addEventListener("click",function(){Di(o,D.value,{dir:Gl()}).catch(i)})})}else i(b)}).catch(i)}function f(){n(1,u.src=ks(o),u)}function v(){o=this.value,n(0,o)}function k(_){Yn[_?"unshift":"push"](()=>{u=_,n(1,u)})}return e.$$set=_=>{"onMessage"in _&&n(5,i=_.onMessage),"insecureRenderHtml"in _&&n(6,l=_.insecureRenderHtml)},[o,u,d,c,f,i,l,v,k]}class ar extends we{constructor(t){super(),ye(this,t,rr,sr,me,{onMessage:5,insecureRenderHtml:6})}}var ur={};Te(ur,{Body:()=>et,Client:()=>Js,Response:()=>Gs,ResponseType:()=>Ui,fetch:()=>cr,getClient:()=>Zn});var Ui=(e=>(e[e.JSON=1]="JSON",e[e.Text=2]="Text",e[e.Binary=3]="Binary",e))(Ui||{}),et=class{constructor(e,t){this.type=e,this.payload=t}static form(e){let t={},n=(i,l)=>{if(l!==null){let o;typeof l=="string"?o=l:l instanceof Uint8Array||Array.isArray(l)?o=Array.from(l):l instanceof File?o={file:l.name,mime:l.type,fileName:l.name}:typeof l.file=="string"?o={file:l.file,mime:l.mime,fileName:l.fileName}:o={file:Array.from(l.file),mime:l.mime,fileName:l.fileName},t[i]=o}};if(e instanceof FormData)for(let[i,l]of e)n(i,l);else for(let i in e){let l=e[i];n(i,l)}return new et("Form",t)}static json(e){return new et("Json",e)}static text(e){return new et("Text",e)}static bytes(e){return new et("Bytes",Array.from(e instanceof ArrayBuffer?new Uint8Array(e):e))}},Gs=class{constructor(e){this.url=e.url,this.status=e.status,this.ok=this.status>=200&&this.status<300,this.headers=e.headers,this.rawHeaders=e.rawHeaders,this.data=e.data}},Js=class{constructor(e){this.id=e}async drop(){return L({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})}async request(e){let t=!e.responseType||e.responseType===1;return t&&(e.responseType=2),L({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:e}}).then(n=>{let i=new Gs(n);if(t){try{i.data=JSON.parse(i.data)}catch(l){if(i.ok&&i.data==="")i.data={};else if(i.ok)throw Error(`Failed to parse response \`${i.data}\` as JSON: ${l}; - try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`)}return i}return i})}async get(e,t){return this.request({method:"GET",url:e,...t})}async post(e,t,n){return this.request({method:"POST",url:e,body:t,...n})}async put(e,t,n){return this.request({method:"PUT",url:e,body:t,...n})}async patch(e,t){return this.request({method:"PATCH",url:e,...t})}async delete(e,t){return this.request({method:"DELETE",url:e,...t})}};async function Zn(e){return L({__tauriModule:"Http",message:{cmd:"createClient",options:e}}).then(t=>new Js(t))}var Si=null;async function cr(e,t){var n;return Si===null&&(Si=await Zn()),Si.request({url:e,method:(n=t==null?void 0:t.method)!=null?n:"GET",...t})}function Jl(e,t,n){const i=e.slice();return i[12]=t[n],i[14]=n,i}function Xl(e){let t,n,i,l,o,u,d,c,f,v,k,_,y,g,b,A,D,F=e[5],W=[];for(let T=0;TRe(W[T],1,1,()=>{W[T]=null});let S=!e[3]&&Ql(),C=!e[3]&&e[8]&&Zl();return{c(){t=r("span"),n=r("span"),i=z(e[6]),l=h(),o=r("ul");for(let T=0;T{v[g]=null}),ti(),o=v[l],o?o.p(_,y):(o=v[l]=f[l](_),o.c()),ze(o,1),o.m(t,u))},i(_){d||(ze(o),d=!0)},o(_){Re(o),d=!1},d(_){_&&p(t),c&&c.d(),v[l].d()}}}function Ql(e){let t;return{c(){t=r("span"),t.textContent=",",a(t,"class","comma svelte-gbh3pt")},m(n,i){m(n,t,i)},d(n){n&&p(t)}}}function Zl(e){let t;return{c(){t=r("span"),t.textContent=",",a(t,"class","comma svelte-gbh3pt")},m(n,i){m(n,t,i)},d(n){n&&p(t)}}}function pr(e){let t,n,i=e[5].length&&Xl(e);return{c(){i&&i.c(),t=xn()},m(l,o){i&&i.m(l,o),m(l,t,o),n=!0},p(l,[o]){l[5].length?i?(i.p(l,o),o&32&&ze(i,1)):(i=Xl(l),i.c(),ze(i,1),i.m(t.parentNode,t)):i&&(ei(),Re(i,1,1,()=>{i=null}),ti())},i(l){n||(ze(i),n=!0)},o(l){Re(i),n=!1},d(l){i&&i.d(l),l&&p(t)}}}const mr="...";function hr(e,t,n){let{json:i}=t,{depth:l=1/0}=t,{_lvl:o=0}=t,{_last:u=!0}=t;const d=b=>b===null?"null":typeof b;let c,f,v,k,_;const y=b=>{switch(d(b)){case"string":return`"${b}"`;case"function":return"f () {...}";case"symbol":return b.toString();default:return b}},g=()=>{n(8,_=!_)};return e.$$set=b=>{"json"in b&&n(0,i=b.json),"depth"in b&&n(1,l=b.depth),"_lvl"in b&&n(2,o=b._lvl),"_last"in b&&n(3,u=b._last)},e.$$.update=()=>{e.$$.dirty&17&&(n(5,c=d(i)==="object"?Object.keys(i):[]),n(4,f=Array.isArray(i)),n(6,v=f?"[":"{"),n(7,k=f?"]":"}")),e.$$.dirty&6&&n(8,_=le[9].call(n)),a(k,"class","input h-auto w-100%"),a(k,"id","request-body"),a(k,"placeholder","Request body"),a(k,"rows","5"),a(b,"class","btn"),a(b,"id","make-request"),a(C,"class","input"),a(P,"class","input"),a(S,"class","flex gap-2 children:grow"),a(Q,"type","checkbox"),a($,"class","btn"),a($,"type","button")},m(R,q){m(R,t,q),s(t,n),s(n,i),s(n,l),s(n,o),s(n,u),s(n,d),zt(n,e[0]),s(t,c),s(t,f),s(t,v),s(t,k),B(k,e[1]),s(t,_),s(t,y),s(t,g),s(t,b),m(R,A,q),m(R,D,q),m(R,F,q),m(R,W,q),m(R,j,q),m(R,S,q),s(S,C),B(C,e[2]),s(S,T),s(S,P),B(P,e[3]),m(R,M,q),m(R,N,q),m(R,U,q),m(R,J,q),s(J,Q),Q.checked=e[5],s(J,he),m(R,x,q),m(R,ne,q),m(R,Y,q),m(R,_e,q),m(R,O,q),m(R,$,q),m(R,ie,q),m(R,oe,q),m(R,Z,q),m(R,pe,q),m(R,re,q),Vt(be,R,q),ee=!0,ke||(Ae=[E(n,"change",e[9]),E(k,"input",e[10]),E(t,"submit",Xn(e[6])),E(C,"input",e[11]),E(P,"input",e[12]),E(Q,"change",e[13]),E($,"click",e[7])],ke=!0)},p(R,[q]){q&1&&zt(n,R[0]),q&2&&B(k,R[1]),q&4&&C.value!==R[2]&&B(C,R[2]),q&8&&P.value!==R[3]&&B(P,R[3]),q&32&&(Q.checked=R[5]);const We={};q&16&&(We.json=R[4]),be.$set(We)},i(R){ee||(ze(be.$$.fragment,R),ee=!0)},o(R){Re(be.$$.fragment,R),ee=!1},d(R){R&&p(t),R&&p(A),R&&p(D),R&&p(F),R&&p(W),R&&p(j),R&&p(S),R&&p(M),R&&p(N),R&&p(U),R&&p(J),R&&p(x),R&&p(ne),R&&p(Y),R&&p(_e),R&&p(O),R&&p($),R&&p(ie),R&&p(oe),R&&p(Z),R&&p(pe),R&&p(re),Gt(be,R),ke=!1,se(Ae)}}}function br(e,t,n){let i="GET",l="",{onMessage:o}=t;async function u(){const D=await Zn().catch(j=>{throw o(j),j}),W={url:"http://localhost:3003",method:i||"GET"||"GET"};l.startsWith("{")&&l.endsWith("}")||l.startsWith("[")&&l.endsWith("]")?W.body=et.json(JSON.parse(l)):l!==""&&(W.body=et.text(l)),D.request(W).then(o).catch(o)}let d="baz",c="qux",f=null,v=!0;async function k(){const D=await Zn().catch(F=>{throw o(F),F});n(4,f=await D.request({url:"http://localhost:3003",method:"POST",body:et.form({foo:d,bar:c}),headers:v?{"Content-Type":"multipart/form-data"}:void 0,responseType:Ui.Text}))}function _(){i=Ei(this),n(0,i)}function y(){l=this.value,n(1,l)}function g(){d=this.value,n(2,d)}function b(){c=this.value,n(3,c)}function A(){v=this.checked,n(5,v)}return e.$$set=D=>{"onMessage"in D&&n(8,o=D.onMessage)},[i,l,d,c,f,v,u,k,o,_,y,g,b,A]}class gr extends we{constructor(t){super(),ye(this,t,br,_r,me,{onMessage:8})}}function vr(e){let t,n,i;return{c(){t=r("button"),t.textContent="Send test notification",a(t,"class","btn"),a(t,"id","notification")},m(l,o){m(l,t,o),n||(i=E(t,"click",yr),n=!0)},p:V,i:V,o:V,d(l){l&&p(t),n=!1,i()}}}function yr(){new Notification("Notification title",{body:"This is the notification body"})}function wr(e,t,n){let{onMessage:i}=t;return e.$$set=l=>{"onMessage"in l&&n(0,i=l.onMessage)},[i]}class kr extends we{constructor(t){super(),ye(this,t,wr,vr,me,{onMessage:0})}}function xl(e,t,n){const i=e.slice();return i[67]=t[n],i}function es(e,t,n){const i=e.slice();return i[70]=t[n],i}function ts(e){let t,n,i,l,o,u,d=Object.keys(e[1]),c=[];for(let f=0;fe[39].call(i))},m(f,v){m(f,t,v),m(f,n,v),m(f,i,v),s(i,l);for(let k=0;ke[57].call(Ne)),a($e,"class","input"),a($e,"type","number"),a(Ke,"class","input"),a(Ke,"type","number"),a(Fe,"class","flex gap-2"),a(Qe,"class","input grow"),a(Qe,"id","title"),a(Ft,"class","btn"),a(Ft,"type","submit"),a(rt,"class","flex gap-1"),a(Ze,"class","input grow"),a(Ze,"id","url"),a(Nt,"class","btn"),a(Nt,"id","open-url"),a(at,"class","flex gap-1"),a(ot,"class","flex flex-col gap-1")},m(w,I){m(w,t,I),m(w,n,I),m(w,i,I),s(i,l),s(i,o),s(i,u),s(i,d),s(i,c),s(i,f),s(i,v),s(i,k),s(i,_),m(w,y,I),m(w,g,I),m(w,b,I),m(w,A,I),s(A,D),s(D,F),s(D,W),W.checked=e[3],s(A,j),s(A,S),s(S,C),s(S,T),T.checked=e[2],s(A,P),s(A,M),s(M,N),s(M,U),U.checked=e[4],s(A,J),s(A,Q),s(Q,he),s(Q,x),x.checked=e[5],s(A,ne),s(A,Y),s(Y,_e),s(Y,O),O.checked=e[6],m(w,$,I),m(w,ie,I),m(w,oe,I),m(w,Z,I),s(Z,pe),s(pe,re),s(re,be),s(re,ee),B(ee,e[13]),s(pe,ke),s(pe,Ae),s(Ae,R),s(Ae,q),B(q,e[14]),s(Z,We),s(Z,Le),s(Le,Me),s(Me,ae),s(Me,de),B(de,e[7]),s(Le,ue),s(Le,Se),s(Se,tt),s(Se,fe),B(fe,e[8]),s(Z,ce),s(Z,H),s(H,te),s(te,G),s(te,ge),B(ge,e[9]),s(H,Yt),s(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.checked=e[15],s(Rn,Tl),s(He,Al),s(He,In),s(In,At),At.checked=e[16],s(In,Ll),s(He,Sl),s(He,Hn),s(Hn,Lt),Lt.checked=e[20],s(Hn,El),m(w,ki,I),m(w,Fe,I),s(Fe,Fn),s(Fn,zl),s(Fn,Ne);for(let ve=0;ve=1,v,k,_,y=f&&ts(e),g=e[1][e[0]]&&is(e);return{c(){t=r("div"),n=r("div"),i=r("input"),l=h(),o=r("button"),o.textContent="New window",u=h(),d=r("br"),c=h(),y&&y.c(),v=h(),g&&g.c(),a(i,"class","input grow"),a(i,"type","text"),a(i,"placeholder","New Window label.."),a(o,"class","btn"),a(n,"class","flex gap-1"),a(t,"class","flex flex-col children:grow gap-2")},m(b,A){m(b,t,A),s(t,n),s(n,i),B(i,e[21]),s(n,l),s(n,o),s(t,u),s(t,d),s(t,c),y&&y.m(t,null),s(t,v),g&&g.m(t,null),k||(_=[E(i,"input",e[38]),E(o,"click",e[35])],k=!0)},p(b,A){A[0]&2097152&&i.value!==b[21]&&B(i,b[21]),A[0]&2&&(f=Object.keys(b[1]).length>=1),f?y?y.p(b,A):(y=ts(b),y.c(),y.m(t,v)):y&&(y.d(1),y=null),b[1][b[0]]?g?g.p(b,A):(g=is(b),g.c(),g.m(t,null)):g&&(g.d(1),g=null)},i:V,o:V,d(b){b&&p(t),y&&y.d(),g&&g.d(),k=!1,se(_)}}}function Cr(e,t,n){let i=je.label;const l={[je.label]:je},o=["default","crosshair","hand","arrow","move","text","wait","help","progress","notAllowed","contextMenu","cell","verticalText","alias","copy","noDrop","grab","grabbing","allScroll","zoomIn","zoomOut","eResize","nResize","neResize","nwResize","sResize","seResize","swResize","wResize","ewResize","nsResize","neswResize","nwseResize","colResize","rowResize"];let{onMessage:u}=t,d,c="https://tauri.app",f=!0,v=!1,k=!0,_=!1,y=!1,g=null,b=null,A=null,D=null,F=null,W=null,j=null,S=null,C=1,T=new xe(j,S),P=new xe(j,S),M=new dt(g,b),N=new dt(g,b),U,J,Q=!1,he=!0,x=null,ne=null,Y="default",_e=!1,O="Awesome Tauri Example!";function $(){Oi(c)}function ie(){l[i].setTitle(O)}function oe(){l[i].hide(),setTimeout(l[i].show,2e3)}function Z(){l[i].minimize(),setTimeout(l[i].unminimize,2e3)}function pe(){Ni({multiple:!1}).then(X=>{typeof X=="string"&&l[i].setIcon(X)})}function re(){if(!d)return;const X=new mt(d);n(1,l[d]=X,l),X.once("tauri://error",function(){u("Error creating new webview")})}function be(){l[i].innerSize().then(X=>{n(26,M=X),n(7,g=M.width),n(8,b=M.height)}),l[i].outerSize().then(X=>{n(27,N=X)})}function ee(){l[i].innerPosition().then(X=>{n(24,T=X)}),l[i].outerPosition().then(X=>{n(25,P=X),n(13,j=P.x),n(14,S=P.y)})}async function ke(X){!X||(U&&U(),J&&J(),J=await X.listen("tauri://move",ee),U=await X.listen("tauri://resize",be))}async function Ae(){await l[i].minimize(),await l[i].requestUserAttention(Ii.Critical),await new Promise(X=>setTimeout(X,3e3)),await l[i].requestUserAttention(null)}function R(){d=this.value,n(21,d)}function q(){i=Ei(this),n(0,i),n(1,l)}const We=()=>l[i].center();function Le(){v=this.checked,n(3,v)}function Me(){f=this.checked,n(2,f)}function ae(){k=this.checked,n(4,k)}function de(){_=this.checked,n(5,_)}function ue(){y=this.checked,n(6,y)}function Se(){j=le(this.value),n(13,j)}function tt(){S=le(this.value),n(14,S)}function fe(){g=le(this.value),n(7,g)}function ce(){b=le(this.value),n(8,b)}function H(){A=le(this.value),n(9,A)}function te(){D=le(this.value),n(10,D)}function G(){F=le(this.value),n(11,F)}function ge(){W=le(this.value),n(12,W)}function Yt(){Q=this.checked,n(15,Q)}function ht(){he=this.checked,n(16,he)}function $t(){_e=this.checked,n(20,_e)}function Oe(){Y=Ei(this),n(19,Y),n(29,o)}function Kt(){x=le(this.value),n(17,x)}function Ue(){ne=le(this.value),n(18,ne)}function _t(){O=this.value,n(28,O)}function Qt(){c=this.value,n(22,c)}return e.$$set=X=>{"onMessage"in X&&n(37,u=X.onMessage)},e.$$.update=()=>{var X,Pt,nt,Wt,De,bt,gt,vt,Ee,Ie,Pe,it,Ot,lt,Rt,st,yt,It;e.$$.dirty[0]&3&&(l[i],ee(),be()),e.$$.dirty[0]&7&&((X=l[i])==null||X.setResizable(f)),e.$$.dirty[0]&11&&(v?(Pt=l[i])==null||Pt.maximize():(nt=l[i])==null||nt.unmaximize()),e.$$.dirty[0]&19&&((Wt=l[i])==null||Wt.setDecorations(k)),e.$$.dirty[0]&35&&((De=l[i])==null||De.setAlwaysOnTop(_)),e.$$.dirty[0]&67&&((bt=l[i])==null||bt.setFullscreen(y)),e.$$.dirty[0]&387&&g&&b&&((gt=l[i])==null||gt.setSize(new dt(g,b))),e.$$.dirty[0]&1539&&(A&&D?(vt=l[i])==null||vt.setMinSize(new Qn(A,D)):(Ee=l[i])==null||Ee.setMinSize(null)),e.$$.dirty[0]&6147&&(F>800&&W>400?(Ie=l[i])==null||Ie.setMaxSize(new Qn(F,W)):(Pe=l[i])==null||Pe.setMaxSize(null)),e.$$.dirty[0]&24579&&j!==null&&S!==null&&((it=l[i])==null||it.setPosition(new xe(j,S))),e.$$.dirty[0]&3&&((Ot=l[i])==null||Ot.scaleFactor().then(wt=>n(23,C=wt))),e.$$.dirty[0]&3&&ke(l[i]),e.$$.dirty[0]&32771&&((lt=l[i])==null||lt.setCursorGrab(Q)),e.$$.dirty[0]&65539&&((Rt=l[i])==null||Rt.setCursorVisible(he)),e.$$.dirty[0]&524291&&((st=l[i])==null||st.setCursorIcon(Y)),e.$$.dirty[0]&393219&&x!==null&&ne!==null&&((yt=l[i])==null||yt.setCursorPosition(new xe(x,ne))),e.$$.dirty[0]&1048579&&((It=l[i])==null||It.setIgnoreCursorEvents(_e))},[i,l,f,v,k,_,y,g,b,A,D,F,W,j,S,Q,he,x,ne,Y,_e,d,c,C,T,P,M,N,O,o,$,ie,oe,Z,pe,re,Ae,u,R,q,We,Le,Me,ae,de,ue,Se,tt,fe,ce,H,te,G,ge,Yt,ht,$t,Oe,Kt,Ue,_t,Qt]}class Tr extends we{constructor(t){super(),ye(this,t,Cr,Mr,me,{onMessage:37},null,[-1,-1,-1])}}var Ar={};Te(Ar,{isRegistered:()=>Sr,register:()=>Ys,registerAll:()=>Lr,unregister:()=>$s,unregisterAll:()=>Ks});async function Ys(e,t){return L({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:e,handler:pt(t)}})}async function Lr(e,t){return L({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:e,handler:pt(t)}})}async function Sr(e){return L({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:e}})}async function $s(e){return L({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:e}})}async function Ks(){return L({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})}function ss(e,t,n){const i=e.slice();return i[9]=t[n],i}function os(e){let t,n=e[9]+"",i,l,o,u,d;function c(){return e[8](e[9])}return{c(){t=r("div"),i=z(n),l=h(),o=r("button"),o.textContent="Unregister",a(o,"class","btn"),a(o,"type","button"),a(t,"class","flex justify-between")},m(f,v){m(f,t,v),s(t,i),s(t,l),s(t,o),u||(d=E(o,"click",c),u=!0)},p(f,v){e=f,v&2&&n!==(n=e[9]+"")&&K(i,n)},d(f){f&&p(t),u=!1,d()}}}function rs(e){let t,n,i,l,o;return{c(){t=r("br"),n=h(),i=r("button"),i.textContent="Unregister all",a(i,"class","btn"),a(i,"type","button")},m(u,d){m(u,t,d),m(u,n,d),m(u,i,d),l||(o=E(i,"click",e[5]),l=!0)},p:V,d(u){u&&p(t),u&&p(n),u&&p(i),l=!1,o()}}}function Er(e){let t,n,i,l,o,u,d,c,f,v,k,_=e[1],y=[];for(let b=0;b<_.length;b+=1)y[b]=os(ss(e,_,b));let g=e[1].length>1&&rs(e);return{c(){t=r("div"),n=r("input"),i=h(),l=r("button"),l.textContent="Register",o=h(),u=r("br"),d=h(),c=r("div");for(let b=0;b1?g?g.p(b,A):(g=rs(b),g.c(),g.m(c,null)):g&&(g.d(1),g=null)},i:V,o:V,d(b){b&&p(t),b&&p(o),b&&p(u),b&&p(d),b&&p(c),ft(y,b),g&&g.d(),v=!1,se(k)}}}function zr(e,t,n){let i,{onMessage:l}=t;const o=ws([]);gs(e,o,_=>n(1,i=_));let u="CmdOrControl+X";function d(){const _=u;Ys(_,()=>{l(`Shortcut ${_} triggered`)}).then(()=>{o.update(y=>[...y,_]),l(`Shortcut ${_} registered successfully`)}).catch(l)}function c(_){const y=_;$s(y).then(()=>{o.update(g=>g.filter(b=>b!==y)),l(`Shortcut ${y} unregistered`)}).catch(l)}function f(){Ks().then(()=>{o.update(()=>[]),l("Unregistered all shortcuts")}).catch(l)}function v(){u=this.value,n(0,u)}const k=_=>c(_);return e.$$set=_=>{"onMessage"in _&&n(6,l=_.onMessage)},[u,i,o,d,c,f,l,v,k]}class Dr extends we{constructor(t){super(),ye(this,t,zr,Er,me,{onMessage:6})}}function as(e){let t,n,i,l,o,u,d;return{c(){t=r("br"),n=h(),i=r("input"),l=h(),o=r("button"),o.textContent="Write",a(i,"class","input"),a(i,"placeholder","write to stdin"),a(o,"class","btn")},m(c,f){m(c,t,f),m(c,n,f),m(c,i,f),B(i,e[4]),m(c,l,f),m(c,o,f),u||(d=[E(i,"input",e[14]),E(o,"click",e[8])],u=!0)},p(c,f){f&16&&i.value!==c[4]&&B(i,c[4])},d(c){c&&p(t),c&&p(n),c&&p(i),c&&p(l),c&&p(o),u=!1,se(d)}}}function Pr(e){let t,n,i,l,o,u,d,c,f,v,k,_,y,g,b,A,D,F,W,j,S,C,T,P,M=e[5]&&as(e);return{c(){t=r("div"),n=r("div"),i=z(`Script: - `),l=r("input"),o=h(),u=r("div"),d=z(`Encoding: - `),c=r("input"),f=h(),v=r("div"),k=z(`Working directory: - `),_=r("input"),y=h(),g=r("div"),b=z(`Arguments: - `),A=r("input"),D=h(),F=r("div"),W=r("button"),W.textContent="Run",j=h(),S=r("button"),S.textContent="Kill",C=h(),M&&M.c(),a(l,"class","grow input"),a(n,"class","flex items-center gap-1"),a(c,"class","grow input"),a(u,"class","flex items-center gap-1"),a(_,"class","grow input"),a(_,"placeholder","Working directory"),a(v,"class","flex items-center gap-1"),a(A,"class","grow input"),a(A,"placeholder","Environment variables"),a(g,"class","flex items-center gap-1"),a(W,"class","btn"),a(S,"class","btn"),a(F,"class","flex children:grow gap-1"),a(t,"class","flex flex-col childre:grow gap-1")},m(N,U){m(N,t,U),s(t,n),s(n,i),s(n,l),B(l,e[0]),s(t,o),s(t,u),s(u,d),s(u,c),B(c,e[3]),s(t,f),s(t,v),s(v,k),s(v,_),B(_,e[1]),s(t,y),s(t,g),s(g,b),s(g,A),B(A,e[2]),s(t,D),s(t,F),s(F,W),s(F,j),s(F,S),s(t,C),M&&M.m(t,null),T||(P=[E(l,"input",e[10]),E(c,"input",e[11]),E(_,"input",e[12]),E(A,"input",e[13]),E(W,"click",e[6]),E(S,"click",e[7])],T=!0)},p(N,[U]){U&1&&l.value!==N[0]&&B(l,N[0]),U&8&&c.value!==N[3]&&B(c,N[3]),U&2&&_.value!==N[1]&&B(_,N[1]),U&4&&A.value!==N[2]&&B(A,N[2]),N[5]?M?M.p(N,U):(M=as(N),M.c(),M.m(t,null)):M&&(M.d(1),M=null)},i:V,o:V,d(N){N&&p(t),M&&M.d(),T=!1,se(P)}}}function Wr(e,t,n){const i=navigator.userAgent.includes("Windows");let l=i?"cmd":"sh",o=i?["/C"]:["-c"],{onMessage:u}=t,d='echo "hello world"',c=null,f="SOMETHING=value ANOTHER=2",v="",k="",_;function y(){return f.split(" ").reduce((C,T)=>{let[P,M]=T.split("=");return{...C,[P]:M}},{})}function g(){n(5,_=null);const C=new Wi(l,[...o,d],{cwd:c||null,env:y(),encoding:v});C.on("close",T=>{u(`command finished with code ${T.code} and signal ${T.signal}`),n(5,_=null)}),C.on("error",T=>u(`command error: "${T}"`)),C.stdout.on("data",T=>u(`command stdout: "${T}"`)),C.stderr.on("data",T=>u(`command stderr: "${T}"`)),C.spawn().then(T=>{n(5,_=T)}).catch(u)}function b(){_.kill().then(()=>u("killed child process")).catch(u)}function A(){_.write(k).catch(u)}function D(){d=this.value,n(0,d)}function F(){v=this.value,n(3,v)}function W(){c=this.value,n(1,c)}function j(){f=this.value,n(2,f)}function S(){k=this.value,n(4,k)}return e.$$set=C=>{"onMessage"in C&&n(9,u=C.onMessage)},[d,c,f,v,k,_,g,b,A,u,D,F,W,j,S]}class Or extends we{constructor(t){super(),ye(this,t,Wr,Pr,me,{onMessage:9})}}var Rr={};Te(Rr,{checkUpdate:()=>Zs,installUpdate:()=>Qs,onUpdaterEvent:()=>qi});async function qi(e){return Xt("tauri://update-status",t=>{e(t==null?void 0:t.payload)})}async function Qs(){let e;function t(){e&&e(),e=void 0}return new Promise((n,i)=>{function l(o){if(o.error)return t(),i(o.error);if(o.status==="DONE")return t(),n()}qi(l).then(o=>{e=o}).catch(o=>{throw t(),o}),ni("tauri://update-install").catch(o=>{throw t(),o})})}async function Zs(){let e;function t(){e&&e(),e=void 0}return new Promise((n,i)=>{function l(u){return t(),n({manifest:u,shouldUpdate:!0})}function o(u){if(u.error)return t(),i(u.error);if(u.status==="UPTODATE")return t(),n({shouldUpdate:!1})}Ss("tauri://update-available",u=>{l(u==null?void 0:u.payload)}).catch(u=>{throw t(),u}),qi(o).then(u=>{e=u}).catch(u=>{throw t(),u}),ni("tauri://update").catch(u=>{throw t(),u})})}function Ir(e){let t;return{c(){t=r("button"),t.innerHTML='
',a(t,"class","btn text-accentText dark:text-darkAccentText flex items-center justify-center")},m(n,i){m(n,t,i)},p:V,d(n){n&&p(t)}}}function Hr(e){let t,n,i;return{c(){t=r("button"),t.textContent="Install update",a(t,"class","btn")},m(l,o){m(l,t,o),n||(i=E(t,"click",e[4]),n=!0)},p:V,d(l){l&&p(t),n=!1,i()}}}function Fr(e){let t,n,i;return{c(){t=r("button"),t.textContent="Check update",a(t,"class","btn")},m(l,o){m(l,t,o),n||(i=E(t,"click",e[3]),n=!0)},p:V,d(l){l&&p(t),n=!1,i()}}}function Nr(e){let t;function n(o,u){return!o[0]&&!o[2]?Fr:!o[1]&&o[2]?Hr:Ir}let i=n(e),l=i(e);return{c(){t=r("div"),l.c(),a(t,"class","flex children:grow children:h10")},m(o,u){m(o,t,u),l.m(t,null)},p(o,[u]){i===(i=n(o))&&l?l.p(o,u):(l.d(1),l=i(o),l&&(l.c(),l.m(t,null)))},i:V,o:V,d(o){o&&p(t),l.d()}}}function jr(e,t,n){let{onMessage:i}=t,l;ut(async()=>{l=await Xt("tauri://update-status",i)}),Pi(()=>{l&&l()});let o,u,d;async function c(){n(0,o=!0);try{const{shouldUpdate:v,manifest:k}=await Zs();i(`Should update: ${v}`),i(k),n(2,d=v)}catch(v){i(v)}finally{n(0,o=!1)}}async function f(){n(1,u=!0);try{await Qs(),i("Installation complete, restart required."),await Fi()}catch(v){i(v)}finally{n(1,u=!1)}}return e.$$set=v=>{"onMessage"in v&&n(5,i=v.onMessage)},[o,u,d,c,f,i]}class Ur extends we{constructor(t){super(),ye(this,t,jr,Nr,me,{onMessage:5})}}var qr={};Te(qr,{readText:()=>eo,writeText:()=>xs});async function xs(e){return L({__tauriModule:"Clipboard",message:{cmd:"writeText",data:e}})}async function eo(){return L({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})}function Br(e){let t,n,i,l,o,u,d,c;return{c(){t=r("div"),n=r("input"),i=h(),l=r("button"),l.textContent="Write",o=h(),u=r("button"),u.textContent="Read",a(n,"class","grow input"),a(n,"placeholder","Text to write to the clipboard"),a(l,"class","btn"),a(l,"type","button"),a(u,"class","btn"),a(u,"type","button"),a(t,"class","flex gap-1")},m(f,v){m(f,t,v),s(t,n),B(n,e[0]),s(t,i),s(t,l),s(t,o),s(t,u),d||(c=[E(n,"input",e[4]),E(l,"click",e[1]),E(u,"click",e[2])],d=!0)},p(f,[v]){v&1&&n.value!==f[0]&&B(n,f[0])},i:V,o:V,d(f){f&&p(t),d=!1,se(c)}}}function Vr(e,t,n){let{onMessage:i}=t,l="clipboard message";function o(){xs(l).then(()=>{i("Wrote to the clipboard")}).catch(i)}function u(){eo().then(c=>{i(`Clipboard contents: ${c}`)}).catch(i)}function d(){l=this.value,n(0,l)}return e.$$set=c=>{"onMessage"in c&&n(3,i=c.onMessage)},[l,o,u,i,d]}class Gr extends we{constructor(t){super(),ye(this,t,Vr,Br,me,{onMessage:3})}}function Jr(e){let t;return{c(){t=r("div"),t.innerHTML=`
Not available for Linux
- `,a(t,"class","flex flex-col gap-2")},m(n,i){m(n,t,i)},p:V,i:V,o:V,d(n){n&&p(t)}}}function Xr(e,t,n){let{onMessage:i}=t;const l=window.constraints={audio:!0,video:!0};function o(d){const c=document.querySelector("video"),f=d.getVideoTracks();i("Got stream with constraints:",l),i(`Using video device: ${f[0].label}`),window.stream=d,c.srcObject=d}function u(d){if(d.name==="ConstraintNotSatisfiedError"){const c=l.video;i(`The resolution ${c.width.exact}x${c.height.exact} px is not supported by your device.`)}else d.name==="PermissionDeniedError"&&i("Permissions have not been granted to use your camera and microphone, you need to allow the page access to your devices in order for the demo to work.");i(`getUserMedia error: ${d.name}`,d)}return ut(async()=>{try{const d=await navigator.mediaDevices.getUserMedia(l);o(d)}catch(d){u(d)}}),Pi(()=>{window.stream.getTracks().forEach(function(d){d.stop()})}),e.$$set=d=>{"onMessage"in d&&n(0,i=d.onMessage)},[i]}class Yr extends we{constructor(t){super(),ye(this,t,Xr,Jr,me,{onMessage:0})}}function $r(e){let t,n,i,l,o,u;return{c(){t=r("div"),n=r("button"),n.textContent="Show",i=h(),l=r("button"),l.textContent="Hide",a(n,"class","btn"),a(n,"id","show"),a(n,"title","Hides and shows the app after 2 seconds"),a(l,"class","btn"),a(l,"id","hide")},m(d,c){m(d,t,c),s(t,n),s(t,i),s(t,l),o||(u=[E(n,"click",e[0]),E(l,"click",e[1])],o=!0)},p:V,i:V,o:V,d(d){d&&p(t),o=!1,se(u)}}}function Kr(e,t,n){let{onMessage:i}=t;function l(){o().then(()=>{setTimeout(()=>{Fs().then(()=>i("Shown app")).catch(i)},2e3)}).catch(i)}function o(){return Ns().then(()=>i("Hide app")).catch(i)}return e.$$set=u=>{"onMessage"in u&&n(2,i=u.onMessage)},[l,o,i]}class Qr extends we{constructor(t){super(),ye(this,t,Kr,$r,me,{onMessage:2})}}function us(e,t,n){const i=e.slice();return i[32]=t[n],i}function cs(e,t,n){const i=e.slice();return i[35]=t[n],i}function ds(e){let t,n,i,l,o,u,d,c,f,v,k,_,y,g,b;function A(C,T){return C[3]?xr:Zr}let D=A(e),F=D(e);function W(C,T){return C[2]?ta:ea}let j=W(e),S=j(e);return{c(){t=r("div"),n=r("span"),n.textContent="Tauri API Validation",i=h(),l=r("span"),o=r("span"),F.c(),d=h(),c=r("span"),c.innerHTML='
',f=h(),v=r("span"),S.c(),_=h(),y=r("span"),y.innerHTML='
',a(n,"class","lt-sm:pl-10 text-darkPrimaryText"),a(o,"title",u=e[3]?"Switch to Light mode":"Switch to Dark mode"),a(o,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),a(c,"title","Minimize"),a(c,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),a(v,"title",k=e[2]?"Restore":"Maximize"),a(v,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),a(y,"title","Close"),a(y,"class","hover:bg-red-700 dark:hover:bg-red-700 hover:text-darkPrimaryText active:bg-red-700/90 dark:active:bg-red-700/90 active:text-darkPrimaryText "),a(l,"class","h-100% children:h-100% children:w-12 children:inline-flex children:items-center children:justify-center"),a(t,"class","w-screen select-none h-8 pl-2 flex justify-between items-center absolute text-primaryText dark:text-darkPrimaryText"),a(t,"data-tauri-drag-region","")},m(C,T){m(C,t,T),s(t,n),s(t,i),s(t,l),s(l,o),F.m(o,null),s(l,d),s(l,c),s(l,f),s(l,v),S.m(v,null),s(l,_),s(l,y),g||(b=[E(o,"click",e[12]),E(c,"click",e[9]),E(v,"click",e[10]),E(y,"click",e[11])],g=!0)},p(C,T){D!==(D=A(C))&&(F.d(1),F=D(C),F&&(F.c(),F.m(o,null))),T[0]&8&&u!==(u=C[3]?"Switch to Light mode":"Switch to Dark mode")&&a(o,"title",u),j!==(j=W(C))&&(S.d(1),S=j(C),S&&(S.c(),S.m(v,null))),T[0]&4&&k!==(k=C[2]?"Restore":"Maximize")&&a(v,"title",k)},d(C){C&&p(t),F.d(),S.d(),g=!1,se(b)}}}function Zr(e){let t;return{c(){t=r("div"),a(t,"class","i-ph-moon")},m(n,i){m(n,t,i)},d(n){n&&p(t)}}}function xr(e){let t;return{c(){t=r("div"),a(t,"class","i-ph-sun")},m(n,i){m(n,t,i)},d(n){n&&p(t)}}}function ea(e){let t;return{c(){t=r("div"),a(t,"class","i-codicon-chrome-maximize")},m(n,i){m(n,t,i)},d(n){n&&p(t)}}}function ta(e){let t;return{c(){t=r("div"),a(t,"class","i-codicon-chrome-restore")},m(n,i){m(n,t,i)},d(n){n&&p(t)}}}function na(e){let t;return{c(){t=r("span"),a(t,"class","i-codicon-menu animate-duration-300ms animate-fade-in")},m(n,i){m(n,t,i)},d(n){n&&p(t)}}}function ia(e){let t;return{c(){t=r("span"),a(t,"class","i-codicon-close animate-duration-300ms animate-fade-in")},m(n,i){m(n,t,i)},d(n){n&&p(t)}}}function fs(e){let t,n,i,l,o,u,d,c,f;function v(y,g){return y[3]?sa:la}let k=v(e),_=k(e);return{c(){t=r("a"),_.c(),n=h(),i=r("br"),l=h(),o=r("div"),u=h(),d=r("br"),a(t,"href","##"),a(t,"class","nv justify-between h-8"),a(o,"class","bg-white/5 h-2px")},m(y,g){m(y,t,g),_.m(t,null),m(y,n,g),m(y,i,g),m(y,l,g),m(y,o,g),m(y,u,g),m(y,d,g),c||(f=E(t,"click",e[12]),c=!0)},p(y,g){k!==(k=v(y))&&(_.d(1),_=k(y),_&&(_.c(),_.m(t,null)))},d(y){y&&p(t),_.d(),y&&p(n),y&&p(i),y&&p(l),y&&p(o),y&&p(u),y&&p(d),c=!1,f()}}}function la(e){let t,n;return{c(){t=z(`Switch to Dark mode - `),n=r("div"),a(n,"class","i-ph-moon")},m(i,l){m(i,t,l),m(i,n,l)},d(i){i&&p(t),i&&p(n)}}}function sa(e){let t,n;return{c(){t=z(`Switch to Light mode - `),n=r("div"),a(n,"class","i-ph-sun")},m(i,l){m(i,t,l),m(i,n,l)},d(i){i&&p(t),i&&p(n)}}}function oa(e){let t,n,i,l,o,u=e[35].label+"",d,c,f,v;function k(){return e[20](e[35])}return{c(){t=r("a"),n=r("div"),l=h(),o=r("p"),d=z(u),a(n,"class",i=e[35].icon+" mr-2"),a(t,"href","##"),a(t,"class",c="nv "+(e[1]===e[35]?"nv_selected":""))},m(_,y){m(_,t,y),s(t,n),s(t,l),s(t,o),s(o,d),f||(v=E(t,"click",k),f=!0)},p(_,y){e=_,y[0]&2&&c!==(c="nv "+(e[1]===e[35]?"nv_selected":""))&&a(t,"class",c)},d(_){_&&p(t),f=!1,v()}}}function ps(e){let t,n=e[35]&&oa(e);return{c(){n&&n.c(),t=xn()},m(i,l){n&&n.m(i,l),m(i,t,l)},p(i,l){i[35]&&n.p(i,l)},d(i){n&&n.d(i),i&&p(t)}}}function ms(e){let t,n=e[32].html+"",i;return{c(){t=new ao(!1),i=xn(),t.a=i},m(l,o){t.m(n,l,o),m(l,i,o)},p(l,o){o[0]&64&&n!==(n=l[32].html+"")&&t.p(n)},d(l){l&&p(i),l&&t.d()}}}function ra(e){let t,n,i,l,o,u,d,c,f,v,k,_,y,g,b,A,D,F,W,j,S,C,T,P,M,N,U,J=e[1].label+"",Q,he,x,ne,Y,_e,O,$,ie,oe,Z,pe,re,be,ee,ke,Ae,R,q=e[5]&&ds(e);function We(H,te){return H[0]?ia:na}let Le=We(e),Me=Le(e),ae=!e[5]&&fs(e),de=e[7],ue=[];for(let H=0;H`,k=h(),_=r("a"),_.innerHTML=`GitHub - `,y=h(),g=r("a"),g.innerHTML=`Source - `,b=h(),A=r("br"),D=h(),F=r("div"),W=h(),j=r("br"),S=h(),C=r("div");for(let H=0;H',be=h(),ee=r("div");for(let H=0;H{Gt(G,1)}),ti()}Se?(Y=new Se(tt(H)),$n(Y.$$.fragment),ze(Y.$$.fragment,1),Vt(Y,ne,null)):Y=null}if(te[0]&64){fe=H[6];let G;for(G=0;G{await confirm("Are you sure?")||O.preventDefault()}),je.onFileDropEvent(O=>{D(`File drop: ${JSON.stringify(O.payload)}`)});const l=navigator.userAgent.toLowerCase(),o=l.includes("android")||l.includes("iphone"),u=[{label:"Welcome",component:Ro,icon:"i-ph-hand-waving"},{label:"Communication",component:qo,icon:"i-codicon-radio-tower"},!o&&{label:"CLI",component:No,icon:"i-codicon-terminal"},!o&&{label:"Dialog",component:lr,icon:"i-codicon-multiple-windows"},{label:"File system",component:ar,icon:"i-codicon-files"},{label:"HTTP",component:gr,icon:"i-ph-globe-hemisphere-west"},!o&&{label:"Notifications",component:kr,icon:"i-codicon-bell-dot"},!o&&{label:"App",component:Qr,icon:"i-codicon-hubot"},!o&&{label:"Window",component:Tr,icon:"i-codicon-window"},!o&&{label:"Shortcuts",component:Dr,icon:"i-codicon-record-keys"},{label:"Shell",component:Or,icon:"i-codicon-terminal-bash"},!o&&{label:"Updater",component:Ur,icon:"i-codicon-cloud-download"},!o&&{label:"Clipboard",component:Gr,icon:"i-codicon-clippy"},{label:"WebRTC",component:Yr,icon:"i-ph-broadcast"}];let d=u[0];function c(O){n(1,d=O)}let f;ut(async()=>{const O=Ut();n(2,f=await O.isMaximized()),Xt("tauri://resize",async()=>{n(2,f=await O.isMaximized())})});function v(){Ut().minimize()}async function k(){const O=Ut();await O.isMaximized()?O.unmaximize():O.maximize()}let _=!1;async function y(){_||(_=await Bs("Are you sure that you want to close this window?",{title:"Tauri API"}),_&&Ut().close())}let g;ut(()=>{n(3,g=localStorage&&localStorage.getItem("theme")=="dark"),_s(g)});function b(){n(3,g=!g),_s(g)}let A=ws([]);gs(e,A,O=>n(6,i=O));function D(O){A.update($=>[{html:`
[${new Date().toLocaleTimeString()}]: `+(typeof O=="string"?O:JSON.stringify(O,null,1))+"
"},...$])}function F(O){A.update($=>[{html:`
[${new Date().toLocaleTimeString()}]: `+O+"
"},...$])}function W(){A.update(()=>[])}let j,S,C;function T(O){C=O.clientY;const $=window.getComputedStyle(j);S=parseInt($.height,10);const ie=Z=>{const pe=Z.clientY-C,re=S-pe;n(4,j.style.height=`${re{document.removeEventListener("mouseup",oe),document.removeEventListener("mousemove",ie)};document.addEventListener("mouseup",oe),document.addEventListener("mousemove",ie)}let P;ut(async()=>{n(5,P=await Os()==="win32")});let M=!1,N,U,J=!1,Q=0,he=0;const x=(O,$,ie)=>Math.min(Math.max($,O),ie);ut(()=>{n(18,N=document.querySelector("#sidebar")),U=document.querySelector("#sidebarToggle"),document.addEventListener("click",O=>{U.contains(O.target)?n(0,M=!M):M&&!N.contains(O.target)&&n(0,M=!1)}),document.addEventListener("touchstart",O=>{if(U.contains(O.target))return;const $=O.touches[0].clientX;(0<$&&$<20&&!M||M)&&(J=!0,Q=$)}),document.addEventListener("touchmove",O=>{if(J){const $=O.touches[0].clientX;he=$;const ie=($-Q)/10;N.style.setProperty("--translate-x",`-${x(0,M?0-ie:18.75-ie,18.75)}rem`)}}),document.addEventListener("touchend",()=>{if(J){const O=(he-Q)/10;n(0,M=M?O>-(18.75/2):O>18.75/2)}J=!1})});const ne=()=>Oi("https://tauri.app/"),Y=O=>{c(O),n(0,M=!1)};function _e(O){Yn[O?"unshift":"push"](()=>{j=O,n(4,j)})}return e.$$.update=()=>{if(e.$$.dirty[0]&1){const O=document.querySelector("#sidebar");O&&aa(O,M)}},[M,d,f,g,j,P,i,u,c,v,k,y,b,A,D,F,W,T,N,ne,Y,_e]}class ca extends we{constructor(t){super(),ye(this,t,ua,ra,me,{},null,[-1,-1])}}new ca({target:document.querySelector("#app")}); + Additionally, it has a update --background subcommand.`,n=h(),i=a("br"),l=h(),o=a("div"),o.textContent="Note that the arguments are only parsed, not implemented.",u=h(),d=a("br"),c=h(),f=a("br"),y=h(),k=a("button"),k.textContent="Get matches",r(o,"class","note"),r(k,"class","btn"),r(k,"id","cli-matches")},m(g,b){m(g,t,b),m(g,n,b),m(g,i,b),m(g,l,b),m(g,o,b),m(g,u,b),m(g,d,b),m(g,c,b),m(g,f,b),m(g,y,b),m(g,k,b),_||(v=E(k,"click",e[0]),_=!0)},p:V,i:V,o:V,d(g){g&&p(t),g&&p(n),g&&p(i),g&&p(l),g&&p(o),g&&p(u),g&&p(d),g&&p(c),g&&p(f),g&&p(y),g&&p(k),_=!1,v()}}}function Ho(e,t,n){let{onMessage:i}=t;function l(){Us().then(i).catch(i)}return e.$$set=o=>{"onMessage"in o&&n(1,i=o.onMessage)},[l,i]}class Fo extends ye{constructor(t){super(),ge(this,t,Ho,Io,he,{onMessage:1})}}function No(e){let t,n,i,l,o,u,d,c;return{c(){t=a("div"),n=a("button"),n.textContent="Call Log API",i=h(),l=a("button"),l.textContent="Call Request (async) API",o=h(),u=a("button"),u.textContent="Send event to Rust",r(n,"class","btn"),r(n,"id","log"),r(l,"class","btn"),r(l,"id","request"),r(u,"class","btn"),r(u,"id","event")},m(f,y){m(f,t,y),s(t,n),s(t,i),s(t,l),s(t,o),s(t,u),d||(c=[E(n,"click",e[0]),E(l,"click",e[1]),E(u,"click",e[2])],d=!0)},p:V,i:V,o:V,d(f){f&&p(t),d=!1,ue(c)}}}function jo(e,t,n){let{onMessage:i}=t,l;ut(async()=>{l=await Xt("rust-event",i)}),Wi(()=>{l&&l()});function o(){$n("log_operation",{event:"tauri-click",payload:"this payload is optional because we used Option in Rust"})}function u(){$n("perform_request",{endpoint:"dummy endpoint arg",body:{id:5,name:"test"}}).then(i).catch(i)}function d(){ni("js-event","this is the payload string")}return e.$$set=c=>{"onMessage"in c&&n(3,i=c.onMessage)},[o,u,d,i]}class Uo extends ye{constructor(t){super(),ge(this,t,jo,No,he,{onMessage:3})}}var qo={};we(qo,{ask:()=>Bs,confirm:()=>Vo,message:()=>Bo,open:()=>Ni,save:()=>qs});async function Ni(e={}){return typeof e=="object"&&Object.freeze(e),S({__tauriModule:"Dialog",message:{cmd:"openDialog",options:e}})}async function qs(e={}){return typeof e=="object"&&Object.freeze(e),S({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:e}})}async function Bo(e,t){var i;let n=typeof t=="string"?{title:t}:t;return S({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:e.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type:n==null?void 0:n.type}})}async function Bs(e,t){var i;let n=typeof t=="string"?{title:t}:t;return S({__tauriModule:"Dialog",message:{cmd:"askDialog",message:e.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type:n==null?void 0:n.type}})}async function Vo(e,t){var i;let n=typeof t=="string"?{title:t}:t;return S({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:e.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type:n==null?void 0:n.type}})}var Go={};we(Go,{BaseDirectory:()=>Jt,Dir:()=>Jt,copyFile:()=>$o,createDir:()=>Yo,exists:()=>xo,readBinaryFile:()=>ji,readDir:()=>Vs,readTextFile:()=>Jo,removeDir:()=>Ko,removeFile:()=>Qo,renameFile:()=>Zo,writeBinaryFile:()=>Xo,writeFile:()=>Di,writeTextFile:()=>Di});var Jt=(e=>(e[e.Audio=1]="Audio",e[e.Cache=2]="Cache",e[e.Config=3]="Config",e[e.Data=4]="Data",e[e.LocalData=5]="LocalData",e[e.Desktop=6]="Desktop",e[e.Document=7]="Document",e[e.Download=8]="Download",e[e.Executable=9]="Executable",e[e.Font=10]="Font",e[e.Home=11]="Home",e[e.Picture=12]="Picture",e[e.Public=13]="Public",e[e.Runtime=14]="Runtime",e[e.Template=15]="Template",e[e.Video=16]="Video",e[e.Resource=17]="Resource",e[e.App=18]="App",e[e.Log=19]="Log",e[e.Temp=20]="Temp",e[e.AppConfig=21]="AppConfig",e[e.AppData=22]="AppData",e[e.AppLocalData=23]="AppLocalData",e[e.AppCache=24]="AppCache",e[e.AppLog=25]="AppLog",e))(Jt||{});async function Jo(e,t={}){return S({__tauriModule:"Fs",message:{cmd:"readTextFile",path:e,options:t}})}async function ji(e,t={}){let n=await S({__tauriModule:"Fs",message:{cmd:"readFile",path:e,options:t}});return Uint8Array.from(n)}async function Di(e,t,n){typeof n=="object"&&Object.freeze(n),typeof e=="object"&&Object.freeze(e);let i={path:"",contents:""},l=n;return typeof e=="string"?i.path=e:(i.path=e.path,i.contents=e.contents),typeof t=="string"?i.contents=t!=null?t:"":l=t,S({__tauriModule:"Fs",message:{cmd:"writeFile",path:i.path,contents:Array.from(new TextEncoder().encode(i.contents)),options:l}})}async function Xo(e,t,n){typeof n=="object"&&Object.freeze(n),typeof e=="object"&&Object.freeze(e);let i={path:"",contents:[]},l=n;return typeof e=="string"?i.path=e:(i.path=e.path,i.contents=e.contents),t&&"dir"in t?l=t:typeof e=="string"&&(i.contents=t!=null?t:[]),S({__tauriModule:"Fs",message:{cmd:"writeFile",path:i.path,contents:Array.from(i.contents instanceof ArrayBuffer?new Uint8Array(i.contents):i.contents),options:l}})}async function Vs(e,t={}){return S({__tauriModule:"Fs",message:{cmd:"readDir",path:e,options:t}})}async function Yo(e,t={}){return S({__tauriModule:"Fs",message:{cmd:"createDir",path:e,options:t}})}async function Ko(e,t={}){return S({__tauriModule:"Fs",message:{cmd:"removeDir",path:e,options:t}})}async function $o(e,t,n={}){return S({__tauriModule:"Fs",message:{cmd:"copyFile",source:e,destination:t,options:n}})}async function Qo(e,t={}){return S({__tauriModule:"Fs",message:{cmd:"removeFile",path:e,options:t}})}async function Zo(e,t,n={}){return S({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:e,newPath:t,options:n}})}async function xo(e,t={}){return S({__tauriModule:"Fs",message:{cmd:"exists",path:e,options:t}})}function ea(e){let t,n,i,l,o,u,d,c,f,y,k,_,v,g,b,A,O,I,P,F,L,T,C,W;return{c(){t=a("div"),n=a("input"),i=h(),l=a("input"),o=h(),u=a("br"),d=h(),c=a("div"),f=a("input"),y=h(),k=a("label"),k.textContent="Multiple",_=h(),v=a("div"),g=a("input"),b=h(),A=a("label"),A.textContent="Directory",O=h(),I=a("br"),P=h(),F=a("button"),F.textContent="Open dialog",L=h(),T=a("button"),T.textContent="Open save dialog",r(n,"class","input"),r(n,"id","dialog-default-path"),r(n,"placeholder","Default path"),r(l,"class","input"),r(l,"id","dialog-filter"),r(l,"placeholder","Extensions filter, comma-separated"),r(t,"class","flex gap-2 children:grow"),r(f,"type","checkbox"),r(f,"id","dialog-multiple"),r(k,"for","dialog-multiple"),r(g,"type","checkbox"),r(g,"id","dialog-directory"),r(A,"for","dialog-directory"),r(F,"class","btn"),r(F,"id","open-dialog"),r(T,"class","btn"),r(T,"id","save-dialog")},m(M,j){m(M,t,j),s(t,n),q(n,e[0]),s(t,i),s(t,l),q(l,e[1]),m(M,o,j),m(M,u,j),m(M,d,j),m(M,c,j),s(c,f),f.checked=e[2],s(c,y),s(c,k),m(M,_,j),m(M,v,j),s(v,g),g.checked=e[3],s(v,b),s(v,A),m(M,O,j),m(M,I,j),m(M,P,j),m(M,F,j),m(M,L,j),m(M,T,j),C||(W=[E(n,"input",e[8]),E(l,"input",e[9]),E(f,"change",e[10]),E(g,"change",e[11]),E(F,"click",e[4]),E(T,"click",e[5])],C=!0)},p(M,[j]){j&1&&n.value!==M[0]&&q(n,M[0]),j&2&&l.value!==M[1]&&q(l,M[1]),j&4&&(f.checked=M[2]),j&8&&(g.checked=M[3])},i:V,o:V,d(M){M&&p(t),M&&p(o),M&&p(u),M&&p(d),M&&p(c),M&&p(_),M&&p(v),M&&p(O),M&&p(I),M&&p(P),M&&p(F),M&&p(L),M&&p(T),C=!1,ue(W)}}}function ta(e,t){var n=new Blob([e],{type:"application/octet-binary"}),i=new FileReader;i.onload=function(l){var o=l.target.result;t(o.substr(o.indexOf(",")+1))},i.readAsDataURL(n)}function na(e,t,n){let{onMessage:i}=t,{insecureRenderHtml:l}=t,o=null,u=null,d=!1,c=!1;function f(){Ni({title:"My wonderful open dialog",defaultPath:o,filters:u?[{name:"Tauri Example",extensions:u.split(",").map(b=>b.trim())}]:[],multiple:d,directory:c}).then(function(b){if(Array.isArray(b))i(b);else{var A=b,O=A.match(/\S+\.\S+$/g);ji(A).then(function(I){O&&(A.includes(".png")||A.includes(".jpg"))?ta(new Uint8Array(I),function(P){var F="data:image/png;base64,"+P;l('')}):i(b)}).catch(i(b))}}).catch(i)}function y(){qs({title:"My wonderful save dialog",defaultPath:o,filters:u?[{name:"Tauri Example",extensions:u.split(",").map(b=>b.trim())}]:[]}).then(i).catch(i)}function k(){o=this.value,n(0,o)}function _(){u=this.value,n(1,u)}function v(){d=this.checked,n(2,d)}function g(){c=this.checked,n(3,c)}return e.$$set=b=>{"onMessage"in b&&n(6,i=b.onMessage),"insecureRenderHtml"in b&&n(7,l=b.insecureRenderHtml)},[o,u,d,c,f,y,i,l,k,_,v,g]}class ia extends ye{constructor(t){super(),ge(this,t,na,ea,he,{onMessage:6,insecureRenderHtml:7})}}function Bl(e,t,n){const i=e.slice();return i[9]=t[n],i}function Vl(e){let t,n=e[9][0]+"",i;return{c(){t=a("option"),i=z(n),t.__value=e[9][1],t.value=t.__value},m(l,o){m(l,t,o),s(t,i)},p:V,d(l){l&&p(t)}}}function la(e){let t,n,i,l,o,u,d,c,f,y,k,_,v,g,b,A,O,I,P,F=e[2],L=[];for(let T=0;TisNaN(parseInt(_))).map(_=>[_,Jt[_]]);function c(){const _=o.match(/\S+\.\S+$/g),v={dir:Gl()};(_?ji(o,v):Vs(o,v)).then(function(b){if(_)if(o.includes(".png")||o.includes(".jpg"))sa(new Uint8Array(b),function(A){const O="data:image/png;base64,"+A;l('')});else{const A=String.fromCharCode.apply(null,b);l(''),setTimeout(()=>{const O=document.getElementById("file-response");O.value=A,document.getElementById("file-save").addEventListener("click",function(){Di(o,O.value,{dir:Gl()}).catch(i)})})}else i(b)}).catch(i)}function f(){n(1,u.src=ks(o),u)}function y(){o=this.value,n(0,o)}function k(_){Yn[_?"unshift":"push"](()=>{u=_,n(1,u)})}return e.$$set=_=>{"onMessage"in _&&n(5,i=_.onMessage),"insecureRenderHtml"in _&&n(6,l=_.insecureRenderHtml)},[o,u,d,c,f,i,l,y,k]}class aa extends ye{constructor(t){super(),ge(this,t,oa,la,he,{onMessage:5,insecureRenderHtml:6})}}var ra={};we(ra,{Body:()=>tt,Client:()=>Js,Response:()=>Gs,ResponseType:()=>Ui,fetch:()=>ua,getClient:()=>Zn});var Ui=(e=>(e[e.JSON=1]="JSON",e[e.Text=2]="Text",e[e.Binary=3]="Binary",e))(Ui||{}),tt=class{constructor(e,t){this.type=e,this.payload=t}static form(e){let t={},n=(i,l)=>{if(l!==null){let o;typeof l=="string"?o=l:l instanceof Uint8Array||Array.isArray(l)?o=Array.from(l):l instanceof File?o={file:l.name,mime:l.type,fileName:l.name}:typeof l.file=="string"?o={file:l.file,mime:l.mime,fileName:l.fileName}:o={file:Array.from(l.file),mime:l.mime,fileName:l.fileName},t[String(i)]=o}};if(e instanceof FormData)for(let[i,l]of e)n(i,l);else for(let[i,l]of Object.entries(e))n(i,l);return new tt("Form",t)}static json(e){return new tt("Json",e)}static text(e){return new tt("Text",e)}static bytes(e){return new tt("Bytes",Array.from(e instanceof ArrayBuffer?new Uint8Array(e):e))}},Gs=class{constructor(e){this.url=e.url,this.status=e.status,this.ok=this.status>=200&&this.status<300,this.headers=e.headers,this.rawHeaders=e.rawHeaders,this.data=e.data}},Js=class{constructor(e){this.id=e}async drop(){return S({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})}async request(e){let t=!e.responseType||e.responseType===1;return t&&(e.responseType=2),S({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:e}}).then(n=>{let i=new Gs(n);if(t){try{i.data=JSON.parse(i.data)}catch(l){if(i.ok&&i.data==="")i.data={};else if(i.ok)throw Error(`Failed to parse response \`${i.data}\` as JSON: ${l}; + try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`)}return i}return i})}async get(e,t){return this.request({method:"GET",url:e,...t})}async post(e,t,n){return this.request({method:"POST",url:e,body:t,...n})}async put(e,t,n){return this.request({method:"PUT",url:e,body:t,...n})}async patch(e,t){return this.request({method:"PATCH",url:e,...t})}async delete(e,t){return this.request({method:"DELETE",url:e,...t})}};async function Zn(e){return S({__tauriModule:"Http",message:{cmd:"createClient",options:e}}).then(t=>new Js(t))}var Li=null;async function ua(e,t){var n;return Li===null&&(Li=await Zn()),Li.request({url:e,method:(n=t==null?void 0:t.method)!=null?n:"GET",...t})}function Jl(e,t,n){const i=e.slice();return i[12]=t[n],i[14]=n,i}function Xl(e){let t,n,i,l,o,u,d,c,f,y,k,_,v,g,b,A,O,I=e[5],P=[];for(let C=0;CRe(P[C],1,1,()=>{P[C]=null});let L=!e[3]&&Ql(),T=!e[3]&&e[8]&&Zl();return{c(){t=a("span"),n=a("span"),i=z(e[6]),l=h(),o=a("ul");for(let C=0;C{y[g]=null}),ti(),o=y[l],o?o.p(_,v):(o=y[l]=f[l](_),o.c()),Me(o,1),o.m(t,u))},i(_){d||(Me(o),d=!0)},o(_){Re(o),d=!1},d(_){_&&p(t),c&&c.d(),y[l].d()}}}function Ql(e){let t;return{c(){t=a("span"),t.textContent=",",r(t,"class","comma svelte-gbh3pt")},m(n,i){m(n,t,i)},d(n){n&&p(t)}}}function Zl(e){let t;return{c(){t=a("span"),t.textContent=",",r(t,"class","comma svelte-gbh3pt")},m(n,i){m(n,t,i)},d(n){n&&p(t)}}}function fa(e){let t,n,i=e[5].length&&Xl(e);return{c(){i&&i.c(),t=xn()},m(l,o){i&&i.m(l,o),m(l,t,o),n=!0},p(l,[o]){l[5].length?i?(i.p(l,o),o&32&&Me(i,1)):(i=Xl(l),i.c(),Me(i,1),i.m(t.parentNode,t)):i&&(ei(),Re(i,1,1,()=>{i=null}),ti())},i(l){n||(Me(i),n=!0)},o(l){Re(i),n=!1},d(l){i&&i.d(l),l&&p(t)}}}const pa="...";function ma(e,t,n){let{json:i}=t,{depth:l=1/0}=t,{_lvl:o=0}=t,{_last:u=!0}=t;const d=b=>b===null?"null":typeof b;let c,f,y,k,_;const v=b=>{switch(d(b)){case"string":return`"${b}"`;case"function":return"f () {...}";case"symbol":return b.toString();default:return b}},g=()=>{n(8,_=!_)};return e.$$set=b=>{"json"in b&&n(0,i=b.json),"depth"in b&&n(1,l=b.depth),"_lvl"in b&&n(2,o=b._lvl),"_last"in b&&n(3,u=b._last)},e.$$.update=()=>{e.$$.dirty&17&&(n(5,c=d(i)==="object"?Object.keys(i):[]),n(4,f=Array.isArray(i)),n(6,y=f?"[":"{"),n(7,k=f?"]":"}")),e.$$.dirty&6&&n(8,_=le[9].call(n)),r(k,"class","input h-auto w-100%"),r(k,"id","request-body"),r(k,"placeholder","Request body"),r(k,"rows","5"),r(b,"class","btn"),r(b,"id","make-request"),r(T,"class","input"),r(W,"class","input"),r(L,"class","flex gap-2 children:grow"),r(ne,"type","checkbox"),r(K,"class","btn"),r(K,"type","button")},m(D,B){m(D,t,B),s(t,n),s(n,i),s(n,l),s(n,o),s(n,u),s(n,d),zt(n,e[0]),s(t,c),s(t,f),s(t,y),s(t,k),q(k,e[1]),s(t,_),s(t,v),s(t,g),s(t,b),m(D,A,B),m(D,O,B),m(D,I,B),m(D,P,B),m(D,F,B),m(D,L,B),s(L,T),q(T,e[2]),s(L,C),s(L,W),q(W,e[3]),m(D,M,B),m(D,j,B),m(D,U,B),m(D,J,B),s(J,ne),ne.checked=e[5],s(J,de),m(D,x,B),m(D,Y,B),m(D,fe,B),m(D,ee,B),m(D,H,B),m(D,K,B),m(D,te,B),m(D,pe,B),m(D,se,B),m(D,ae,B),m(D,_e,B),Vt(ce,D,B),ie=!0,Te||(Ce=[E(n,"change",e[9]),E(k,"input",e[10]),E(t,"submit",Xn(e[6])),E(T,"input",e[11]),E(W,"input",e[12]),E(ne,"change",e[13]),E(K,"click",e[7])],Te=!0)},p(D,[B]){B&1&&zt(n,D[0]),B&2&&q(k,D[1]),B&4&&T.value!==D[2]&&q(T,D[2]),B&8&&W.value!==D[3]&&q(W,D[3]),B&32&&(ne.checked=D[5]);const Ae={};B&16&&(Ae.json=D[4]),ce.$set(Ae)},i(D){ie||(Me(ce.$$.fragment,D),ie=!0)},o(D){Re(ce.$$.fragment,D),ie=!1},d(D){D&&p(t),D&&p(A),D&&p(O),D&&p(I),D&&p(P),D&&p(F),D&&p(L),D&&p(M),D&&p(j),D&&p(U),D&&p(J),D&&p(x),D&&p(Y),D&&p(fe),D&&p(ee),D&&p(H),D&&p(K),D&&p(te),D&&p(pe),D&&p(se),D&&p(ae),D&&p(_e),Gt(ce,D),Te=!1,ue(Ce)}}}function _a(e,t,n){let i="GET",l="",{onMessage:o}=t;async function u(){const O=await Zn().catch(F=>{throw o(F),F}),P={url:"http://localhost:3003",method:i||"GET"||"GET"};l.startsWith("{")&&l.endsWith("}")||l.startsWith("[")&&l.endsWith("]")?P.body=tt.json(JSON.parse(l)):l!==""&&(P.body=tt.text(l)),O.request(P).then(o).catch(o)}let d="baz",c="qux",f=null,y=!0;async function k(){const O=await Zn().catch(I=>{throw o(I),I});n(4,f=await O.request({url:"http://localhost:3003",method:"POST",body:tt.form({foo:d,bar:c}),headers:y?{"Content-Type":"multipart/form-data"}:void 0,responseType:Ui.Text}))}function _(){i=Ei(this),n(0,i)}function v(){l=this.value,n(1,l)}function g(){d=this.value,n(2,d)}function b(){c=this.value,n(3,c)}function A(){y=this.checked,n(5,y)}return e.$$set=O=>{"onMessage"in O&&n(8,o=O.onMessage)},[i,l,d,c,f,y,u,k,o,_,v,g,b,A]}class ba extends ye{constructor(t){super(),ge(this,t,_a,ha,he,{onMessage:8})}}function ga(e){let t,n,i;return{c(){t=a("button"),t.textContent="Send test notification",r(t,"class","btn"),r(t,"id","notification")},m(l,o){m(l,t,o),n||(i=E(t,"click",ya),n=!0)},p:V,i:V,o:V,d(l){l&&p(t),n=!1,i()}}}function ya(){new Notification("Notification title",{body:"This is the notification body"})}function va(e,t,n){let{onMessage:i}=t;return e.$$set=l=>{"onMessage"in l&&n(0,i=l.onMessage)},[i]}class wa extends ye{constructor(t){super(),ge(this,t,va,ga,he,{onMessage:0})}}function xl(e,t,n){const i=e.slice();return i[67]=t[n],i}function es(e,t,n){const i=e.slice();return i[70]=t[n],i}function ts(e){let t,n,i,l,o,u,d=Object.keys(e[1]),c=[];for(let f=0;fe[39].call(i))},m(f,y){m(f,t,y),m(f,n,y),m(f,i,y),s(i,l);for(let k=0;ke[57].call(je)),r($e,"class","input"),r($e,"type","number"),r(Qe,"class","input"),r(Qe,"type","number"),r(Ne,"class","flex gap-2"),r(Ze,"class","input grow"),r(Ze,"id","title"),r(Ft,"class","btn"),r(Ft,"type","submit"),r(at,"class","flex gap-1"),r(xe,"class","input grow"),r(xe,"id","url"),r(Nt,"class","btn"),r(Nt,"id","open-url"),r(rt,"class","flex gap-1"),r(ot,"class","flex flex-col gap-1")},m(w,R){m(w,t,R),m(w,n,R),m(w,i,R),s(i,l),s(i,o),s(i,u),s(i,d),s(i,c),s(i,f),s(i,y),s(i,k),s(i,_),m(w,v,R),m(w,g,R),m(w,b,R),m(w,A,R),s(A,O),s(O,I),s(O,P),P.checked=e[3],s(A,F),s(A,L),s(L,T),s(L,C),C.checked=e[2],s(A,W),s(A,M),s(M,j),s(M,U),U.checked=e[4],s(A,J),s(A,ne),s(ne,de),s(ne,x),x.checked=e[5],s(A,Y),s(A,fe),s(fe,ee),s(fe,H),H.checked=e[6],m(w,K,R),m(w,te,R),m(w,pe,R),m(w,se,R),s(se,ae),s(ae,_e),s(_e,ce),s(_e,ie),q(ie,e[13]),s(ae,Te),s(ae,Ce),s(Ce,D),s(Ce,B),q(B,e[14]),s(se,Ae),s(se,me),s(me,oe),s(oe,Le),s(oe,Q),q(Q,e[7]),s(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m(w,yi,R),m(w,vi,R),m(w,Ht,R),m(w,wi,R),m(w,Fe,R),s(Fe,Rn),s(Rn,Ct),Ct.checked=e[15],s(Rn,Cl),s(Fe,Al),s(Fe,In),s(In,At),At.checked=e[16],s(In,Sl),s(Fe,Ll),s(Fe,Hn),s(Hn,St),St.checked=e[20],s(Hn,El),m(w,ki,R),m(w,Ne,R),s(Ne,Fn),s(Fn,zl),s(Fn,je);for(let be=0;be=1,y,k,_,v=f&&ts(e),g=e[1][e[0]]&&is(e);return{c(){t=a("div"),n=a("div"),i=a("input"),l=h(),o=a("button"),o.textContent="New window",u=h(),d=a("br"),c=h(),v&&v.c(),y=h(),g&&g.c(),r(i,"class","input grow"),r(i,"type","text"),r(i,"placeholder","New Window label.."),r(o,"class","btn"),r(n,"class","flex gap-1"),r(t,"class","flex flex-col children:grow gap-2")},m(b,A){m(b,t,A),s(t,n),s(n,i),q(i,e[21]),s(n,l),s(n,o),s(t,u),s(t,d),s(t,c),v&&v.m(t,null),s(t,y),g&&g.m(t,null),k||(_=[E(i,"input",e[38]),E(o,"click",e[35])],k=!0)},p(b,A){A[0]&2097152&&i.value!==b[21]&&q(i,b[21]),A[0]&2&&(f=Object.keys(b[1]).length>=1),f?v?v.p(b,A):(v=ts(b),v.c(),v.m(t,y)):v&&(v.d(1),v=null),b[1][b[0]]?g?g.p(b,A):(g=is(b),g.c(),g.m(t,null)):g&&(g.d(1),g=null)},i:V,o:V,d(b){b&&p(t),v&&v.d(),g&&g.d(),k=!1,ue(_)}}}function Ma(e,t,n){let i=Ue.label;const l={[Ue.label]:Ue},o=["default","crosshair","hand","arrow","move","text","wait","help","progress","notAllowed","contextMenu","cell","verticalText","alias","copy","noDrop","grab","grabbing","allScroll","zoomIn","zoomOut","eResize","nResize","neResize","nwResize","sResize","seResize","swResize","wResize","ewResize","nsResize","neswResize","nwseResize","colResize","rowResize"];let{onMessage:u}=t,d,c="https://tauri.app",f=!0,y=!1,k=!0,_=!1,v=!1,g=null,b=null,A=null,O=null,I=null,P=null,F=null,L=null,T=1,C=new et(F,L),W=new et(F,L),M=new dt(g,b),j=new dt(g,b),U,J,ne=!1,de=!0,x=null,Y=null,fe="default",ee=!1,H="Awesome Tauri Example!";function K(){Pi(c)}function te(){l[i].setTitle(H)}function pe(){l[i].hide(),setTimeout(l[i].show,2e3)}function se(){l[i].minimize(),setTimeout(l[i].unminimize,2e3)}function ae(){Ni({multiple:!1}).then(X=>{typeof X=="string"&&l[i].setIcon(X)})}function _e(){if(!d)return;const X=new mt(d);n(1,l[d]=X,l),X.once("tauri://error",function(){u("Error creating new webview")})}function ce(){l[i].innerSize().then(X=>{n(26,M=X),n(7,g=M.width),n(8,b=M.height)}),l[i].outerSize().then(X=>{n(27,j=X)})}function ie(){l[i].innerPosition().then(X=>{n(24,C=X)}),l[i].outerPosition().then(X=>{n(25,W=X),n(13,F=W.x),n(14,L=W.y)})}async function Te(X){!X||(U&&U(),J&&J(),J=await X.listen("tauri://move",ie),U=await X.listen("tauri://resize",ce))}async function Ce(){await l[i].minimize(),await l[i].requestUserAttention(Ii.Critical),await new Promise(X=>setTimeout(X,3e3)),await l[i].requestUserAttention(null)}function D(){d=this.value,n(21,d)}function B(){i=Ei(this),n(0,i),n(1,l)}const Ae=()=>l[i].center();function me(){y=this.checked,n(3,y)}function oe(){f=this.checked,n(2,f)}function Le(){k=this.checked,n(4,k)}function Q(){_=this.checked,n(5,_)}function Ee(){v=this.checked,n(6,v)}function Ie(){F=re(this.value),n(13,F)}function ze(){L=re(this.value),n(14,L)}function Z(){g=re(this.value),n(7,g)}function N(){b=re(this.value),n(8,b)}function le(){A=re(this.value),n(9,A)}function G(){O=re(this.value),n(10,O)}function We(){I=re(this.value),n(11,I)}function Oe(){P=re(this.value),n(12,P)}function Yt(){ne=this.checked,n(15,ne)}function ht(){de=this.checked,n(16,de)}function Kt(){ee=this.checked,n(20,ee)}function Pe(){fe=Ei(this),n(19,fe),n(29,o)}function $t(){x=re(this.value),n(17,x)}function qe(){Y=re(this.value),n(18,Y)}function _t(){H=this.value,n(28,H)}function Qt(){c=this.value,n(22,c)}return e.$$set=X=>{"onMessage"in X&&n(37,u=X.onMessage)},e.$$.update=()=>{var X,Wt,nt,Ot,Se,bt,gt,yt,ke,He,De,it,Pt,lt,Rt,st,vt,It;e.$$.dirty[0]&3&&(l[i],ie(),ce()),e.$$.dirty[0]&7&&((X=l[i])==null||X.setResizable(f)),e.$$.dirty[0]&11&&(y?(Wt=l[i])==null||Wt.maximize():(nt=l[i])==null||nt.unmaximize()),e.$$.dirty[0]&19&&((Ot=l[i])==null||Ot.setDecorations(k)),e.$$.dirty[0]&35&&((Se=l[i])==null||Se.setAlwaysOnTop(_)),e.$$.dirty[0]&67&&((bt=l[i])==null||bt.setFullscreen(v)),e.$$.dirty[0]&387&&g&&b&&((gt=l[i])==null||gt.setSize(new dt(g,b))),e.$$.dirty[0]&1539&&(A&&O?(yt=l[i])==null||yt.setMinSize(new Qn(A,O)):(ke=l[i])==null||ke.setMinSize(null)),e.$$.dirty[0]&6147&&(I>800&&P>400?(He=l[i])==null||He.setMaxSize(new Qn(I,P)):(De=l[i])==null||De.setMaxSize(null)),e.$$.dirty[0]&24579&&F!==null&&L!==null&&((it=l[i])==null||it.setPosition(new et(F,L))),e.$$.dirty[0]&3&&((Pt=l[i])==null||Pt.scaleFactor().then(wt=>n(23,T=wt))),e.$$.dirty[0]&3&&Te(l[i]),e.$$.dirty[0]&32771&&((lt=l[i])==null||lt.setCursorGrab(ne)),e.$$.dirty[0]&65539&&((Rt=l[i])==null||Rt.setCursorVisible(de)),e.$$.dirty[0]&524291&&((st=l[i])==null||st.setCursorIcon(fe)),e.$$.dirty[0]&393219&&x!==null&&Y!==null&&((vt=l[i])==null||vt.setCursorPosition(new et(x,Y))),e.$$.dirty[0]&1048579&&((It=l[i])==null||It.setIgnoreCursorEvents(ee))},[i,l,f,y,k,_,v,g,b,A,O,I,P,F,L,ne,de,x,Y,fe,ee,d,c,T,C,W,M,j,H,o,K,te,pe,se,ae,_e,Ce,u,D,B,Ae,me,oe,Le,Q,Ee,Ie,ze,Z,N,le,G,We,Oe,Yt,ht,Kt,Pe,$t,qe,_t,Qt]}class Ta extends ye{constructor(t){super(),ge(this,t,Ma,ka,he,{onMessage:37},null,[-1,-1,-1])}}var Ca={};we(Ca,{isRegistered:()=>Sa,register:()=>Ys,registerAll:()=>Aa,unregister:()=>Ks,unregisterAll:()=>$s});async function Ys(e,t){return S({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:e,handler:pt(t)}})}async function Aa(e,t){return S({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:e,handler:pt(t)}})}async function Sa(e){return S({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:e}})}async function Ks(e){return S({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:e}})}async function $s(){return S({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})}function ss(e,t,n){const i=e.slice();return i[9]=t[n],i}function os(e){let t,n=e[9]+"",i,l,o,u,d;function c(){return e[8](e[9])}return{c(){t=a("div"),i=z(n),l=h(),o=a("button"),o.textContent="Unregister",r(o,"class","btn"),r(o,"type","button"),r(t,"class","flex justify-between")},m(f,y){m(f,t,y),s(t,i),s(t,l),s(t,o),u||(d=E(o,"click",c),u=!0)},p(f,y){e=f,y&2&&n!==(n=e[9]+"")&&$(i,n)},d(f){f&&p(t),u=!1,d()}}}function as(e){let t,n,i,l,o;return{c(){t=a("br"),n=h(),i=a("button"),i.textContent="Unregister all",r(i,"class","btn"),r(i,"type","button")},m(u,d){m(u,t,d),m(u,n,d),m(u,i,d),l||(o=E(i,"click",e[5]),l=!0)},p:V,d(u){u&&p(t),u&&p(n),u&&p(i),l=!1,o()}}}function La(e){let t,n,i,l,o,u,d,c,f,y,k,_=e[1],v=[];for(let b=0;b<_.length;b+=1)v[b]=os(ss(e,_,b));let g=e[1].length>1&&as(e);return{c(){t=a("div"),n=a("input"),i=h(),l=a("button"),l.textContent="Register",o=h(),u=a("br"),d=h(),c=a("div");for(let b=0;b1?g?g.p(b,A):(g=as(b),g.c(),g.m(c,null)):g&&(g.d(1),g=null)},i:V,o:V,d(b){b&&p(t),b&&p(o),b&&p(u),b&&p(d),b&&p(c),ft(v,b),g&&g.d(),y=!1,ue(k)}}}function Ea(e,t,n){let i,{onMessage:l}=t;const o=ws([]);gs(e,o,_=>n(1,i=_));let u="CmdOrControl+X";function d(){const _=u;Ys(_,()=>{l(`Shortcut ${_} triggered`)}).then(()=>{o.update(v=>[...v,_]),l(`Shortcut ${_} registered successfully`)}).catch(l)}function c(_){const v=_;Ks(v).then(()=>{o.update(g=>g.filter(b=>b!==v)),l(`Shortcut ${v} unregistered`)}).catch(l)}function f(){$s().then(()=>{o.update(()=>[]),l("Unregistered all shortcuts")}).catch(l)}function y(){u=this.value,n(0,u)}const k=_=>c(_);return e.$$set=_=>{"onMessage"in _&&n(6,l=_.onMessage)},[u,i,o,d,c,f,l,y,k]}class za extends ye{constructor(t){super(),ge(this,t,Ea,La,he,{onMessage:6})}}function rs(e){let t,n,i,l,o,u,d;return{c(){t=a("br"),n=h(),i=a("input"),l=h(),o=a("button"),o.textContent="Write",r(i,"class","input"),r(i,"placeholder","write to stdin"),r(o,"class","btn")},m(c,f){m(c,t,f),m(c,n,f),m(c,i,f),q(i,e[4]),m(c,l,f),m(c,o,f),u||(d=[E(i,"input",e[14]),E(o,"click",e[8])],u=!0)},p(c,f){f&16&&i.value!==c[4]&&q(i,c[4])},d(c){c&&p(t),c&&p(n),c&&p(i),c&&p(l),c&&p(o),u=!1,ue(d)}}}function Da(e){let t,n,i,l,o,u,d,c,f,y,k,_,v,g,b,A,O,I,P,F,L,T,C,W,M=e[5]&&rs(e);return{c(){t=a("div"),n=a("div"),i=z(`Script: + `),l=a("input"),o=h(),u=a("div"),d=z(`Encoding: + `),c=a("input"),f=h(),y=a("div"),k=z(`Working directory: + `),_=a("input"),v=h(),g=a("div"),b=z(`Arguments: + `),A=a("input"),O=h(),I=a("div"),P=a("button"),P.textContent="Run",F=h(),L=a("button"),L.textContent="Kill",T=h(),M&&M.c(),r(l,"class","grow input"),r(n,"class","flex items-center gap-1"),r(c,"class","grow input"),r(u,"class","flex items-center gap-1"),r(_,"class","grow input"),r(_,"placeholder","Working directory"),r(y,"class","flex items-center gap-1"),r(A,"class","grow input"),r(A,"placeholder","Environment variables"),r(g,"class","flex items-center gap-1"),r(P,"class","btn"),r(L,"class","btn"),r(I,"class","flex children:grow gap-1"),r(t,"class","flex flex-col childre:grow gap-1")},m(j,U){m(j,t,U),s(t,n),s(n,i),s(n,l),q(l,e[0]),s(t,o),s(t,u),s(u,d),s(u,c),q(c,e[3]),s(t,f),s(t,y),s(y,k),s(y,_),q(_,e[1]),s(t,v),s(t,g),s(g,b),s(g,A),q(A,e[2]),s(t,O),s(t,I),s(I,P),s(I,F),s(I,L),s(t,T),M&&M.m(t,null),C||(W=[E(l,"input",e[10]),E(c,"input",e[11]),E(_,"input",e[12]),E(A,"input",e[13]),E(P,"click",e[6]),E(L,"click",e[7])],C=!0)},p(j,[U]){U&1&&l.value!==j[0]&&q(l,j[0]),U&8&&c.value!==j[3]&&q(c,j[3]),U&2&&_.value!==j[1]&&q(_,j[1]),U&4&&A.value!==j[2]&&q(A,j[2]),j[5]?M?M.p(j,U):(M=rs(j),M.c(),M.m(t,null)):M&&(M.d(1),M=null)},i:V,o:V,d(j){j&&p(t),M&&M.d(),C=!1,ue(W)}}}function Wa(e,t,n){const i=navigator.userAgent.includes("Windows");let l=i?"cmd":"sh",o=i?["/C"]:["-c"],{onMessage:u}=t,d='echo "hello world"',c=null,f="SOMETHING=value ANOTHER=2",y="",k="",_;function v(){return f.split(" ").reduce((T,C)=>{let[W,M]=C.split("=");return{...T,[W]:M}},{})}function g(){n(5,_=null);const T=new Oi(l,[...o,d],{cwd:c||null,env:v(),encoding:y});T.on("close",C=>{u(`command finished with code ${C.code} and signal ${C.signal}`),n(5,_=null)}),T.on("error",C=>u(`command error: "${C}"`)),T.stdout.on("data",C=>u(`command stdout: "${C}"`)),T.stderr.on("data",C=>u(`command stderr: "${C}"`)),T.spawn().then(C=>{n(5,_=C)}).catch(u)}function b(){_.kill().then(()=>u("killed child process")).catch(u)}function A(){_.write(k).catch(u)}function O(){d=this.value,n(0,d)}function I(){y=this.value,n(3,y)}function P(){c=this.value,n(1,c)}function F(){f=this.value,n(2,f)}function L(){k=this.value,n(4,k)}return e.$$set=T=>{"onMessage"in T&&n(9,u=T.onMessage)},[d,c,f,y,k,_,g,b,A,u,O,I,P,F,L]}class Oa extends ye{constructor(t){super(),ge(this,t,Wa,Da,he,{onMessage:9})}}var Pa={};we(Pa,{checkUpdate:()=>Zs,installUpdate:()=>Qs,onUpdaterEvent:()=>qi});async function qi(e){return Xt("tauri://update-status",t=>{e(t==null?void 0:t.payload)})}async function Qs(){let e;function t(){e&&e(),e=void 0}return new Promise((n,i)=>{function l(o){if(o.error)return t(),i(o.error);if(o.status==="DONE")return t(),n()}qi(l).then(o=>{e=o}).catch(o=>{throw t(),o}),ni("tauri://update-install").catch(o=>{throw t(),o})})}async function Zs(){let e;function t(){e&&e(),e=void 0}return new Promise((n,i)=>{function l(u){return t(),n({manifest:u,shouldUpdate:!0})}function o(u){if(u.error)return t(),i(u.error);if(u.status==="UPTODATE")return t(),n({shouldUpdate:!1})}Ls("tauri://update-available",u=>{l(u==null?void 0:u.payload)}).catch(u=>{throw t(),u}),qi(o).then(u=>{e=u}).catch(u=>{throw t(),u}),ni("tauri://update").catch(u=>{throw t(),u})})}function Ra(e){let t;return{c(){t=a("button"),t.innerHTML='
',r(t,"class","btn text-accentText dark:text-darkAccentText flex items-center justify-center")},m(n,i){m(n,t,i)},p:V,d(n){n&&p(t)}}}function Ia(e){let t,n,i;return{c(){t=a("button"),t.textContent="Install update",r(t,"class","btn")},m(l,o){m(l,t,o),n||(i=E(t,"click",e[4]),n=!0)},p:V,d(l){l&&p(t),n=!1,i()}}}function Ha(e){let t,n,i;return{c(){t=a("button"),t.textContent="Check update",r(t,"class","btn")},m(l,o){m(l,t,o),n||(i=E(t,"click",e[3]),n=!0)},p:V,d(l){l&&p(t),n=!1,i()}}}function Fa(e){let t;function n(o,u){return!o[0]&&!o[2]?Ha:!o[1]&&o[2]?Ia:Ra}let i=n(e),l=i(e);return{c(){t=a("div"),l.c(),r(t,"class","flex children:grow children:h10")},m(o,u){m(o,t,u),l.m(t,null)},p(o,[u]){i===(i=n(o))&&l?l.p(o,u):(l.d(1),l=i(o),l&&(l.c(),l.m(t,null)))},i:V,o:V,d(o){o&&p(t),l.d()}}}function Na(e,t,n){let{onMessage:i}=t,l;ut(async()=>{l=await Xt("tauri://update-status",i)}),Wi(()=>{l&&l()});let o,u,d;async function c(){n(0,o=!0);try{const{shouldUpdate:y,manifest:k}=await Zs();i(`Should update: ${y}`),i(k),n(2,d=y)}catch(y){i(y)}finally{n(0,o=!1)}}async function f(){n(1,u=!0);try{await Qs(),i("Installation complete, restart required."),await Fi()}catch(y){i(y)}finally{n(1,u=!1)}}return e.$$set=y=>{"onMessage"in y&&n(5,i=y.onMessage)},[o,u,d,c,f,i]}class ja extends ye{constructor(t){super(),ge(this,t,Na,Fa,he,{onMessage:5})}}var Ua={};we(Ua,{readText:()=>eo,writeText:()=>xs});async function xs(e){return S({__tauriModule:"Clipboard",message:{cmd:"writeText",data:e}})}async function eo(){return S({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})}function qa(e){let t,n,i,l,o,u,d,c;return{c(){t=a("div"),n=a("input"),i=h(),l=a("button"),l.textContent="Write",o=h(),u=a("button"),u.textContent="Read",r(n,"class","grow input"),r(n,"placeholder","Text to write to the clipboard"),r(l,"class","btn"),r(l,"type","button"),r(u,"class","btn"),r(u,"type","button"),r(t,"class","flex gap-1")},m(f,y){m(f,t,y),s(t,n),q(n,e[0]),s(t,i),s(t,l),s(t,o),s(t,u),d||(c=[E(n,"input",e[4]),E(l,"click",e[1]),E(u,"click",e[2])],d=!0)},p(f,[y]){y&1&&n.value!==f[0]&&q(n,f[0])},i:V,o:V,d(f){f&&p(t),d=!1,ue(c)}}}function Ba(e,t,n){let{onMessage:i}=t,l="clipboard message";function o(){xs(l).then(()=>{i("Wrote to the clipboard")}).catch(i)}function u(){eo().then(c=>{i(`Clipboard contents: ${c}`)}).catch(i)}function d(){l=this.value,n(0,l)}return e.$$set=c=>{"onMessage"in c&&n(3,i=c.onMessage)},[l,o,u,i,d]}class Va extends ye{constructor(t){super(),ge(this,t,Ba,qa,he,{onMessage:3})}}function Ga(e){let t;return{c(){t=a("div"),t.innerHTML=`
Not available for Linux
+ `,r(t,"class","flex flex-col gap-2")},m(n,i){m(n,t,i)},p:V,i:V,o:V,d(n){n&&p(t)}}}function Ja(e,t,n){let{onMessage:i}=t;const l=window.constraints={audio:!0,video:!0};function o(d){const c=document.querySelector("video"),f=d.getVideoTracks();i("Got stream with constraints:",l),i(`Using video device: ${f[0].label}`),window.stream=d,c.srcObject=d}function u(d){if(d.name==="ConstraintNotSatisfiedError"){const c=l.video;i(`The resolution ${c.width.exact}x${c.height.exact} px is not supported by your device.`)}else d.name==="PermissionDeniedError"&&i("Permissions have not been granted to use your camera and microphone, you need to allow the page access to your devices in order for the demo to work.");i(`getUserMedia error: ${d.name}`,d)}return ut(async()=>{try{const d=await navigator.mediaDevices.getUserMedia(l);o(d)}catch(d){u(d)}}),Wi(()=>{window.stream.getTracks().forEach(function(d){d.stop()})}),e.$$set=d=>{"onMessage"in d&&n(0,i=d.onMessage)},[i]}class Xa extends ye{constructor(t){super(),ge(this,t,Ja,Ga,he,{onMessage:0})}}function Ya(e){let t,n,i,l,o,u;return{c(){t=a("div"),n=a("button"),n.textContent="Show",i=h(),l=a("button"),l.textContent="Hide",r(n,"class","btn"),r(n,"id","show"),r(n,"title","Hides and shows the app after 2 seconds"),r(l,"class","btn"),r(l,"id","hide")},m(d,c){m(d,t,c),s(t,n),s(t,i),s(t,l),o||(u=[E(n,"click",e[0]),E(l,"click",e[1])],o=!0)},p:V,i:V,o:V,d(d){d&&p(t),o=!1,ue(u)}}}function Ka(e,t,n){let{onMessage:i}=t;function l(){o().then(()=>{setTimeout(()=>{Fs().then(()=>i("Shown app")).catch(i)},2e3)}).catch(i)}function o(){return Ns().then(()=>i("Hide app")).catch(i)}return e.$$set=u=>{"onMessage"in u&&n(2,i=u.onMessage)},[l,o,i]}class $a extends ye{constructor(t){super(),ge(this,t,Ka,Ya,he,{onMessage:2})}}function us(e,t,n){const i=e.slice();return i[32]=t[n],i}function cs(e,t,n){const i=e.slice();return i[35]=t[n],i}function ds(e){let t,n,i,l,o,u,d,c,f,y,k,_,v,g,b;function A(T,C){return T[3]?Za:Qa}let O=A(e),I=O(e);function P(T,C){return T[2]?er:xa}let F=P(e),L=F(e);return{c(){t=a("div"),n=a("span"),n.textContent="Tauri API Validation",i=h(),l=a("span"),o=a("span"),I.c(),d=h(),c=a("span"),c.innerHTML='
',f=h(),y=a("span"),L.c(),_=h(),v=a("span"),v.innerHTML='
',r(n,"class","lt-sm:pl-10 text-darkPrimaryText"),r(o,"title",u=e[3]?"Switch to Light mode":"Switch to Dark mode"),r(o,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),r(c,"title","Minimize"),r(c,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),r(y,"title",k=e[2]?"Restore":"Maximize"),r(y,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),r(v,"title","Close"),r(v,"class","hover:bg-red-700 dark:hover:bg-red-700 hover:text-darkPrimaryText active:bg-red-700/90 dark:active:bg-red-700/90 active:text-darkPrimaryText "),r(l,"class","h-100% children:h-100% children:w-12 children:inline-flex children:items-center children:justify-center"),r(t,"class","w-screen select-none h-8 pl-2 flex justify-between items-center absolute text-primaryText dark:text-darkPrimaryText"),r(t,"data-tauri-drag-region","")},m(T,C){m(T,t,C),s(t,n),s(t,i),s(t,l),s(l,o),I.m(o,null),s(l,d),s(l,c),s(l,f),s(l,y),L.m(y,null),s(l,_),s(l,v),g||(b=[E(o,"click",e[12]),E(c,"click",e[9]),E(y,"click",e[10]),E(v,"click",e[11])],g=!0)},p(T,C){O!==(O=A(T))&&(I.d(1),I=O(T),I&&(I.c(),I.m(o,null))),C[0]&8&&u!==(u=T[3]?"Switch to Light mode":"Switch to Dark mode")&&r(o,"title",u),F!==(F=P(T))&&(L.d(1),L=F(T),L&&(L.c(),L.m(y,null))),C[0]&4&&k!==(k=T[2]?"Restore":"Maximize")&&r(y,"title",k)},d(T){T&&p(t),I.d(),L.d(),g=!1,ue(b)}}}function Qa(e){let t;return{c(){t=a("div"),r(t,"class","i-ph-moon")},m(n,i){m(n,t,i)},d(n){n&&p(t)}}}function Za(e){let t;return{c(){t=a("div"),r(t,"class","i-ph-sun")},m(n,i){m(n,t,i)},d(n){n&&p(t)}}}function xa(e){let t;return{c(){t=a("div"),r(t,"class","i-codicon-chrome-maximize")},m(n,i){m(n,t,i)},d(n){n&&p(t)}}}function er(e){let t;return{c(){t=a("div"),r(t,"class","i-codicon-chrome-restore")},m(n,i){m(n,t,i)},d(n){n&&p(t)}}}function tr(e){let t;return{c(){t=a("span"),r(t,"class","i-codicon-menu animate-duration-300ms animate-fade-in")},m(n,i){m(n,t,i)},d(n){n&&p(t)}}}function nr(e){let t;return{c(){t=a("span"),r(t,"class","i-codicon-close animate-duration-300ms animate-fade-in")},m(n,i){m(n,t,i)},d(n){n&&p(t)}}}function fs(e){let t,n,i,l,o,u,d,c,f;function y(v,g){return v[3]?lr:ir}let k=y(e),_=k(e);return{c(){t=a("a"),_.c(),n=h(),i=a("br"),l=h(),o=a("div"),u=h(),d=a("br"),r(t,"href","##"),r(t,"class","nv justify-between h-8"),r(o,"class","bg-white/5 h-2px")},m(v,g){m(v,t,g),_.m(t,null),m(v,n,g),m(v,i,g),m(v,l,g),m(v,o,g),m(v,u,g),m(v,d,g),c||(f=E(t,"click",e[12]),c=!0)},p(v,g){k!==(k=y(v))&&(_.d(1),_=k(v),_&&(_.c(),_.m(t,null)))},d(v){v&&p(t),_.d(),v&&p(n),v&&p(i),v&&p(l),v&&p(o),v&&p(u),v&&p(d),c=!1,f()}}}function ir(e){let t,n;return{c(){t=z(`Switch to Dark mode + `),n=a("div"),r(n,"class","i-ph-moon")},m(i,l){m(i,t,l),m(i,n,l)},d(i){i&&p(t),i&&p(n)}}}function lr(e){let t,n;return{c(){t=z(`Switch to Light mode + `),n=a("div"),r(n,"class","i-ph-sun")},m(i,l){m(i,t,l),m(i,n,l)},d(i){i&&p(t),i&&p(n)}}}function sr(e){let t,n,i,l,o=e[35].label+"",u,d,c,f;function y(){return e[20](e[35])}return{c(){t=a("a"),n=a("div"),i=h(),l=a("p"),u=z(o),r(n,"class",e[35].icon+" mr-2"),r(t,"href","##"),r(t,"class",d="nv "+(e[1]===e[35]?"nv_selected":""))},m(k,_){m(k,t,_),s(t,n),s(t,i),s(t,l),s(l,u),c||(f=E(t,"click",y),c=!0)},p(k,_){e=k,_[0]&2&&d!==(d="nv "+(e[1]===e[35]?"nv_selected":""))&&r(t,"class",d)},d(k){k&&p(t),c=!1,f()}}}function ps(e){let t,n=e[35]&&sr(e);return{c(){n&&n.c(),t=xn()},m(i,l){n&&n.m(i,l),m(i,t,l)},p(i,l){i[35]&&n.p(i,l)},d(i){n&&n.d(i),i&&p(t)}}}function ms(e){let t,n=e[32].html+"",i;return{c(){t=new ao(!1),i=xn(),t.a=i},m(l,o){t.m(n,l,o),m(l,i,o)},p(l,o){o[0]&64&&n!==(n=l[32].html+"")&&t.p(n)},d(l){l&&p(i),l&&t.d()}}}function or(e){let t,n,i,l,o,u,d,c,f,y,k,_,v,g,b,A,O,I,P,F,L,T,C,W,M,j,U=e[1].label+"",J,ne,de,x,Y,fe,ee,H,K,te,pe,se,ae,_e,ce,ie,Te,Ce,D=e[5]&&ds(e);function B(N,le){return N[0]?nr:tr}let Ae=B(e),me=Ae(e),oe=!e[5]&&fs(e),Le=e[7],Q=[];for(let N=0;N`,k=h(),_=a("a"),_.innerHTML=`GitHub + `,v=h(),g=a("a"),g.innerHTML=`Source + `,b=h(),A=a("br"),O=h(),I=a("div"),P=h(),F=a("br"),L=h(),T=a("div");for(let N=0;N',_e=h(),ce=a("div");for(let N=0;N{Gt(G,1)}),ti()}Ee?(Y=new Ee(Ie(N)),Kn(Y.$$.fragment),Me(Y.$$.fragment,1),Vt(Y,x,null)):Y=null}if(le[0]&64){ze=N[6];let G;for(G=0;G{await confirm("Are you sure?")||H.preventDefault()}),Ue.onFileDropEvent(H=>{O(`File drop: ${JSON.stringify(H.payload)}`)});const l=navigator.userAgent.toLowerCase(),o=l.includes("android")||l.includes("iphone"),u=[{label:"Welcome",component:Po,icon:"i-ph-hand-waving"},{label:"Communication",component:Uo,icon:"i-codicon-radio-tower"},!o&&{label:"CLI",component:Fo,icon:"i-codicon-terminal"},!o&&{label:"Dialog",component:ia,icon:"i-codicon-multiple-windows"},{label:"File system",component:aa,icon:"i-codicon-files"},{label:"HTTP",component:ba,icon:"i-ph-globe-hemisphere-west"},!o&&{label:"Notifications",component:wa,icon:"i-codicon-bell-dot"},!o&&{label:"App",component:$a,icon:"i-codicon-hubot"},!o&&{label:"Window",component:Ta,icon:"i-codicon-window"},!o&&{label:"Shortcuts",component:za,icon:"i-codicon-record-keys"},{label:"Shell",component:Oa,icon:"i-codicon-terminal-bash"},!o&&{label:"Updater",component:ja,icon:"i-codicon-cloud-download"},!o&&{label:"Clipboard",component:Va,icon:"i-codicon-clippy"},{label:"WebRTC",component:Xa,icon:"i-ph-broadcast"}];let d=u[0];function c(H){n(1,d=H)}let f;ut(async()=>{const H=Ut();n(2,f=await H.isMaximized()),Xt("tauri://resize",async()=>{n(2,f=await H.isMaximized())})});function y(){Ut().minimize()}async function k(){const H=Ut();await H.isMaximized()?H.unmaximize():H.maximize()}let _=!1;async function v(){_||(_=await Bs("Are you sure that you want to close this window?",{title:"Tauri API"}),_&&Ut().close())}let g;ut(()=>{n(3,g=localStorage&&localStorage.getItem("theme")=="dark"),_s(g)});function b(){n(3,g=!g),_s(g)}let A=ws([]);gs(e,A,H=>n(6,i=H));function O(H){A.update(K=>[{html:`
[${new Date().toLocaleTimeString()}]: `+(typeof H=="string"?H:JSON.stringify(H,null,1))+"
"},...K])}function I(H){A.update(K=>[{html:`
[${new Date().toLocaleTimeString()}]: `+H+"
"},...K])}function P(){A.update(()=>[])}let F,L,T;function C(H){T=H.clientY;const K=window.getComputedStyle(F);L=parseInt(K.height,10);const te=se=>{const ae=se.clientY-T,_e=L-ae;n(4,F.style.height=`${_e{document.removeEventListener("mouseup",pe),document.removeEventListener("mousemove",te)};document.addEventListener("mouseup",pe),document.addEventListener("mousemove",te)}let W;ut(async()=>{n(5,W=await Ps()==="win32")});let M=!1,j,U,J=!1,ne=0,de=0;const x=(H,K,te)=>Math.min(Math.max(K,H),te);ut(()=>{n(18,j=document.querySelector("#sidebar")),U=document.querySelector("#sidebarToggle"),document.addEventListener("click",H=>{U.contains(H.target)?n(0,M=!M):M&&!j.contains(H.target)&&n(0,M=!1)}),document.addEventListener("touchstart",H=>{if(U.contains(H.target))return;const K=H.touches[0].clientX;(0{if(J){const K=H.touches[0].clientX;de=K;const te=(K-ne)/10;j.style.setProperty("--translate-x",`-${x(0,M?0-te:18.75-te,18.75)}rem`)}}),document.addEventListener("touchend",()=>{if(J){const H=(de-ne)/10;n(0,M=M?H>-(18.75/2):H>18.75/2)}J=!1})});const Y=()=>Pi("https://tauri.app/"),fe=H=>{c(H),n(0,M=!1)};function ee(H){Yn[H?"unshift":"push"](()=>{F=H,n(4,F)})}return e.$$.update=()=>{if(e.$$.dirty[0]&1){const H=document.querySelector("#sidebar");H&&ar(H,M)}},[M,d,f,g,F,W,i,u,c,y,k,v,b,A,O,I,P,C,j,Y,fe,ee]}class ur extends ye{constructor(t){super(),ge(this,t,rr,or,he,{},null,[-1,-1])}}new ur({target:document.querySelector("#app")}); diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index 47038bde574e..593aa8b2e51c 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -45,9 +45,9 @@ dependencies = [ [[package]] name = "aho-corasick" -version = "0.7.19" +version = "0.7.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4f55bd91a0978cbfd91c457a164bab8b4001c833b7f323132c0a4e1922dd44e" +checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac" dependencies = [ "memchr", ] @@ -87,9 +87,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.66" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "216261ddc8289130e551ddcd5ce8a064710c0d064a4d2895c67151c92b5443f6" +checksum = "224afbd727c3d6e4b90103ece64b8d1b67fbb1973b1046c2281eed3f3803f800" [[package]] name = "api" @@ -103,8 +103,6 @@ dependencies = [ "tauri-plugin-log", "tauri-plugin-sample", "tiny_http", - "window-shadows", - "window-vibrancy", ] [[package]] @@ -139,9 +137,9 @@ dependencies = [ [[package]] name = "attohttpc" -version = "0.24.0" +version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b85f766c20e6ae766956f7a2fcc4e0931e79a7e1f48b29132b5d647021114914" +checksum = "8d9a9bf8b79a749ee0b911b91b671cc2b6c670bdbc7e3dfd537576ddc94bb2a2" dependencies = [ "flate2", "http", @@ -160,7 +158,7 @@ version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" dependencies = [ - "hermit-abi", + "hermit-abi 0.1.19", "libc", "winapi", ] @@ -177,6 +175,12 @@ version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" +[[package]] +name = "base64" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4a4ddaa51a5bc52a6948f74c06d20aaaddb71924eab79b8c97a8c556e942d6a" + [[package]] name = "bitflags" version = "1.3.2" @@ -211,9 +215,9 @@ dependencies = [ [[package]] name = "brotli-decompressor" -version = "2.3.2" +version = "2.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59ad2d4653bf5ca36ae797b1f4bb4dbddb60ce49ca4aed8a2ce4829f60425b80" +checksum = "4b6561fd3f895a11e8f72af2cb7d22e08366bebc2b6b57f7744c4bda27034744" dependencies = [ "alloc-no-stdlib", "alloc-stdlib", @@ -221,18 +225,19 @@ dependencies = [ [[package]] name = "bstr" -version = "0.2.17" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba3569f383e8f1598449f1a423e72e99569137b47740b1da11ef19af3d5c3223" +checksum = "b7f0778972c64420fdedc63f09919c8a88bda7b25135357fd25a5d9f3257e832" dependencies = [ "memchr", + "serde", ] [[package]] name = "bumpalo" -version = "3.11.1" +version = "3.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "572f695136211188308f16ad2ca5c851a712c464060ae6974944458eb83880ba" +checksum = "0d261e256854913907f67ed06efbc3338dfe6179796deefc1ff763fc1aee5535" [[package]] name = "byte-unit" @@ -246,9 +251,9 @@ dependencies = [ [[package]] name = "bytemuck" -version = "1.12.3" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aaa3a8d9a1ca92e282c96a32d6511b695d7d994d1d102ba85d279f9b2756947f" +checksum = "c041d3eab048880cb0b86b256447da3f18859a163c3b8d8893f4e6368abe6393" [[package]] name = "byteorder" @@ -258,9 +263,9 @@ checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" [[package]] name = "bytes" -version = "1.2.1" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec8a7b6a70fde80372154c65702f00a0f56f3e1c36abbc6c440484be248856db" +checksum = "89b2fd2a0dcf38d7971e2194b6b6eebab45ae01067456a7fd93d5547a61b70be" dependencies = [ "serde", ] @@ -292,9 +297,9 @@ dependencies = [ [[package]] name = "cargo_toml" -version = "0.13.0" +version = "0.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa0e3586af56b3bfa51fca452bd56e8dbbbd5d8d81cbf0b7e4e35b695b537eb8" +checksum = "497049e9477329f8f6a559972ee42e117487d01d1e8c2cc9f836ea6fa23a9e1a" dependencies = [ "serde", "toml", @@ -302,9 +307,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.74" +version = "1.0.79" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "581f5dba903aac52ea3feb5ec4810848460ee833876f1f9b0fdeab1f19091574" +checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f" [[package]] name = "cesu8" @@ -330,7 +335,7 @@ checksum = "d38f2da7a0a2c4ccf0065be06397cc26a81f4e528be095826eee9d4adbb8c60f" dependencies = [ "byteorder", "fnv", - "uuid 1.2.1", + "uuid 1.3.0", ] [[package]] @@ -350,9 +355,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "chunked_transfer" -version = "1.4.0" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fff857943da45f546682664a79488be82e69e43c1a7a2307679ab9afb3a66d2e" +checksum = "cca491388666e04d7248af3f60f0c40cfb0991c72205595d7c396e3510207d1a" [[package]] name = "cipher" @@ -511,9 +516,9 @@ dependencies = [ [[package]] name = "crossbeam-utils" -version = "0.8.12" +version = "0.8.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edbafec5fa1f196ca66527c1b12c2ec4745ca14b50f1ad8f9f6f720b55d11fac" +checksum = "4fb766fa798726286dbbb842f174001dab8abc7b627a1dd86e0b7222a95d929f" dependencies = [ "cfg-if", ] @@ -630,9 +635,9 @@ dependencies = [ [[package]] name = "dbus" -version = "0.9.6" +version = "0.9.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f8bcdd56d2e5c4ed26a529c5a9029f5db8290d433497506f958eae3be148eb6" +checksum = "1bb21987b9fb1613058ba3843121dd18b163b254d8a6e797e144cbac14d96d1b" dependencies = [ "libc", "libdbus-sys", @@ -654,9 +659,9 @@ dependencies = [ [[package]] name = "digest" -version = "0.10.5" +version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adfbc57365a37acbd2ebf2b64d7e69bb766e2fea813521ed536f5d0520dcf86c" +checksum = "8168378f4e5023e7218c89c891c0fd8ecdb5e5e4f18cb78f38cf245dd021e76f" dependencies = [ "block-buffer", "crypto-common", @@ -718,9 +723,9 @@ checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7" [[package]] name = "encoding_rs" -version = "0.8.31" +version = "0.8.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9852635589dc9f9ea1b6fe9f05b50ef208c85c834a562f0c6abb1c475736ec2b" +checksum = "071a31f4ee85403370b58aca746f01041ede6f0da2730960ad001edc2b71b394" dependencies = [ "cfg-if", ] @@ -765,9 +770,9 @@ dependencies = [ [[package]] name = "filetime" -version = "0.2.18" +version = "0.2.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b9663d381d07ae25dc88dbdf27df458faa83a9b25336bcac83d5e452b5fc9d3" +checksum = "4e884668cd0c7480504233e951174ddc3b382f7c2666e3b7310b5c4e7b0c37f9" dependencies = [ "cfg-if", "libc", @@ -777,12 +782,12 @@ dependencies = [ [[package]] name = "flate2" -version = "1.0.24" +version = "1.0.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f82b0f4c27ad9f8bfd1f3208d882da2b09c301bc1c828fd3a00d0216d2fbbff6" +checksum = "a8a2db397cb1c8772f31494cb8917e48cd1e64f0fa7efac59fbd741a0a8ce841" dependencies = [ "crc32fast", - "miniz_oxide 0.5.4", + "miniz_oxide", ] [[package]] @@ -827,24 +832,24 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52ba265a92256105f45b719605a571ffe2d1f0fea3807304b522c1d778f79eed" +checksum = "2e5317663a9089767a1ec00a487df42e0ca174b61b4483213ac24448e4664df5" dependencies = [ "futures-core", ] [[package]] name = "futures-core" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04909a7a7e4633ae6c4a9ab280aeb86da1236243a77b694a49eacd659a4bd3ac" +checksum = "ec90ff4d0fe1f57d600049061dc6bb68ed03c7d2fbd697274c41805dcb3f8608" [[package]] name = "futures-executor" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7acc85df6714c176ab5edf386123fafe217be88c0840ec11f199441134a074e2" +checksum = "e8de0a35a6ab97ec8869e32a2473f4b1324459e14c29275d14b10cb1fd19b50e" dependencies = [ "futures-core", "futures-task", @@ -853,15 +858,15 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00f5fb52a06bdcadeb54e8d3671f8888a39697dcb0b81b23b55174030427f4eb" +checksum = "bfb8371b6fb2aeb2d280374607aeabfc99d95c72edfe51692e42d3d7f0d08531" [[package]] name = "futures-macro" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bdfb8ce053d86b91919aad980c220b1fb8401a9394410e1c289ed7e66b61835d" +checksum = "95a73af87da33b5acf53acfebdc339fe592ecf5357ac7c0a7734ab9d8c876a70" dependencies = [ "proc-macro2", "quote", @@ -870,25 +875,28 @@ dependencies = [ [[package]] name = "futures-sink" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39c15cf1a4aa79df40f1bb462fb39676d0ad9e366c2a33b590d7c66f4f81fcf9" +checksum = "f310820bb3e8cfd46c80db4d7fb8353e15dfff853a127158425f31e0be6c8364" [[package]] name = "futures-task" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ffb393ac5d9a6eaa9d3fdf37ae2776656b706e200c8e16b1bdb227f5198e6ea" +checksum = "dcf79a1bf610b10f42aea489289c5a2c478a786509693b80cd39c44ccd936366" [[package]] name = "futures-util" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "197676987abd2f9cadff84926f410af1c183608d36641465df73ae8211dc65d6" +checksum = "9c1d6de3acfef38d2be4b1f543f553131788603495be83da675e180c8d6b7bd1" dependencies = [ "futures-core", + "futures-io", "futures-macro", + "futures-sink", "futures-task", + "memchr", "pin-project-lite", "pin-utils", "slab", @@ -962,6 +970,20 @@ dependencies = [ "system-deps", ] +[[package]] +name = "gdkwayland-sys" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4511710212ed3020b61a8622a37aa6f0dd2a84516575da92e9b96928dcbe83ba" +dependencies = [ + "gdk-sys", + "glib-sys", + "gobject-sys", + "libc", + "pkg-config", + "system-deps", +] + [[package]] name = "gdkx11-sys" version = "0.16.0" @@ -977,15 +999,15 @@ dependencies = [ [[package]] name = "generator" -version = "0.7.1" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc184cace1cea8335047a471cc1da80f18acf8a76f3bab2028d499e328948ec7" +checksum = "d266041a359dfa931b370ef684cceb84b166beb14f7f0421f4a6a3d0c446d12e" dependencies = [ "cc", "libc", "log", "rustversion", - "windows 0.32.0", + "windows 0.39.0", ] [[package]] @@ -1092,7 +1114,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e084807350b01348b6d9dbabb724d1a0bb987f47a2c85de200e98e12e30733bf" dependencies = [ "anyhow", - "heck 0.4.0", + "heck 0.4.1", "proc-macro-crate", "proc-macro-error", "proc-macro2", @@ -1112,15 +1134,15 @@ dependencies = [ [[package]] name = "glob" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574" +checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" [[package]] name = "globset" -version = "0.4.9" +version = "0.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a1e17342619edbc21a964c2afbeb6c820c6a2560032872f397bb97ea127bd0a" +checksum = "029d74589adefde59de1a0c4f4732695c32805624aec7b68d91503d4dba79afc" dependencies = [ "aho-corasick", "bstr", @@ -1231,9 +1253,9 @@ dependencies = [ [[package]] name = "heck" -version = "0.4.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9" +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" [[package]] name = "hermit-abi" @@ -1244,6 +1266,15 @@ dependencies = [ "libc", ] +[[package]] +name = "hermit-abi" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7" +dependencies = [ + "libc", +] + [[package]] name = "html5ever" version = "0.25.2" @@ -1266,7 +1297,7 @@ checksum = "75f43d41e26995c17e71ee126451dd3941010b0514a81a9d11f3b341debc2399" dependencies = [ "bytes", "fnv", - "itoa 1.0.4", + "itoa 1.0.5", ] [[package]] @@ -1300,9 +1331,9 @@ checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421" [[package]] name = "hyper" -version = "0.14.23" +version = "0.14.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "034711faac9d2166cb1baf1a2fb0b60b1f277f8492fd72176c17f3515e1abd3c" +checksum = "5e011372fa0b68db8350aa7a248930ecc7839bf46d8485577d69f117a75f164c" dependencies = [ "bytes", "futures-channel", @@ -1313,7 +1344,7 @@ dependencies = [ "http-body", "httparse", "httpdate", - "itoa 1.0.4", + "itoa 1.0.5", "pin-project-lite", "socket2", "tokio", @@ -1368,9 +1399,9 @@ dependencies = [ [[package]] name = "image" -version = "0.24.4" +version = "0.24.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd8e4fb07cf672b1642304e731ef8a6a4c7891d67bb4fd4f5ce58cd6ed86803c" +checksum = "69b7ea949b537b0fd0af141fff8c77690f2ce96f4f41f042ccb6c69c6c965945" dependencies = [ "bytemuck", "byteorder", @@ -1381,9 +1412,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "1.9.1" +version = "1.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e" +checksum = "1885e79c1fc4b10f0e172c475f458b7f7b93061064d98c3293e98c5ba0c8b399" dependencies = [ "autocfg", "hashbrown", @@ -1418,9 +1449,9 @@ dependencies = [ [[package]] name = "ipnet" -version = "2.5.1" +version = "2.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f88c5561171189e69df9d98bcf18fd5f9558300f7ea7b801eb8a0fd748bd8745" +checksum = "30e22bd8629359895450b59ea7a776c850561b96a3b1d31321c1949d9e6c9146" [[package]] name = "itoa" @@ -1430,9 +1461,9 @@ checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" [[package]] name = "itoa" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4217ad341ebadf8d8e724e264f13e593e0648f5b3e94b3896a5df283be015ecc" +checksum = "fad582f4b9e86b6caa621cabeb0963332d92eea04729ab12892c2533951e6440" [[package]] name = "javascriptcore-rs" @@ -1479,18 +1510,18 @@ checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" [[package]] name = "js-sys" -version = "0.3.60" +version = "0.3.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49409df3e3bf0856b916e2ceaca09ee28e6871cf7d9ce97a692cacfdb2a25a47" +checksum = "445dde2150c55e483f3d8416706b97ec8e8237c307e5b7b4b8dd15e6af2a0730" dependencies = [ "wasm-bindgen", ] [[package]] name = "json-patch" -version = "0.2.6" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f995a3c8f2bc3dd52a18a583e90f9ec109c047fa1603a853e46bcda14d2e279d" +checksum = "eb3fa5a61630976fc4c353c70297f2e93f1930e3ccee574d59d618ccbd5154ce" dependencies = [ "serde", "serde_json", @@ -1541,15 +1572,15 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.137" +version = "0.2.139" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc7fcc620a3bff7cdd7a365be3376c97191aeaccc2a603e600951e452615bf89" +checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" [[package]] name = "libdbus-sys" -version = "0.2.2" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c185b5b7ad900923ef3a8ff594083d4d9b5aea80bb4f32b8342363138c0d456b" +checksum = "9f8d7ae751e1cb825c840ae5e682f59b098cdfd213c350ac268b61449a5f58a0" dependencies = [ "pkg-config", ] @@ -1661,9 +1692,9 @@ dependencies = [ [[package]] name = "matches" -version = "0.1.9" +version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f" +checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5" [[package]] name = "memchr" @@ -1702,15 +1733,6 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "933dca44d65cdd53b355d0b73d380a2ff5da71f87f036053188bf1eab6a19881" -[[package]] -name = "miniz_oxide" -version = "0.5.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96590ba8f175222643a85693f33d26e9c8a015f599c216509b1a6894af675d34" -dependencies = [ - "adler", -] - [[package]] name = "miniz_oxide" version = "0.6.2" @@ -1785,11 +1807,20 @@ version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb" +[[package]] +name = "nom8" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae01545c9c7fc4486ab7debaf2aad7003ac19431791868fb2e8066df97fad2f8" +dependencies = [ + "memchr", +] + [[package]] name = "notify-rust" -version = "4.5.10" +version = "4.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "368e89ea58df747ce88be669ae44e79783c1d30bfd540ad0fc520b3f41f0b3b0" +checksum = "3ce656bb6d22a93ae276a23de52d1aec5ba4db3ece3c0eb79dfd5add7384db6a" dependencies = [ "dbus", "mac-notification-sys", @@ -1838,28 +1869,28 @@ dependencies = [ [[package]] name = "num_cpus" -version = "1.14.0" +version = "1.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6058e64324c71e02bc2b150e4f3bc8286db6c83092132ffa3f6b1eab0f9def5" +checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" dependencies = [ - "hermit-abi", + "hermit-abi 0.2.6", "libc", ] [[package]] name = "num_enum" -version = "0.5.7" +version = "0.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf5395665662ef45796a4ff5486c5d41d29e0c09640af4c5f17fd94ee2c119c9" +checksum = "8d829733185c1ca374f17e52b762f24f535ec625d2cc1f070e34c8a9068f341b" dependencies = [ "num_enum_derive", ] [[package]] name = "num_enum_derive" -version = "0.5.7" +version = "0.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b0498641e53dd6ac1a4f22547548caa6864cc4933784319cd1775271c5a46ce" +checksum = "2be1598bf1c313dcdd12092e3f1920f463462525a21b7b4e11b4168353d0123e" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -1908,9 +1939,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.16.0" +version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86f0b0d4bf799edbc74508c1e8bf170ff5f41238e5f8225603ca7caaae2b7860" +checksum = "6f61fba1741ea2b3d6a1e3178721804bb716a68a6aeba1149b5d52e3d464ea66" [[package]] name = "opaque-debug" @@ -1920,19 +1951,19 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" [[package]] name = "open" -version = "3.0.3" +version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4a3100141f1733ea40b53381b0ae3117330735ef22309a190ac57b9576ea716" +checksum = "2078c0039e6a54a0c42c28faa984e115fb4c2d5bf2208f77d1961002df8576f8" dependencies = [ "pathdiff", - "windows-sys 0.36.1", + "windows-sys 0.42.0", ] [[package]] name = "os_info" -version = "3.5.1" +version = "3.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4750134fb6a5d49afc80777394ad5d95b04bc12068c6abb92fae8f43817270f" +checksum = "5c424bc68d15e0778838ac013b5b3449544d8133633d8016319e7e05a820b8c0" dependencies = [ "log", "serde", @@ -1941,19 +1972,19 @@ dependencies = [ [[package]] name = "os_pipe" -version = "1.1.1" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0dceb7e43f59c35ee1548045b2c72945a5a3bb6ce6d6f07cdc13dc8f6bc4930a" +checksum = "a53dbb20faf34b16087a931834cba2d7a73cc74af2b7ef345a4c8324e2409a12" dependencies = [ "libc", - "winapi", + "windows-sys 0.45.0", ] [[package]] name = "os_str_bytes" -version = "6.3.1" +version = "6.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3baf96e39c5359d2eb0dd6ccb42c62b91d9678aa68160d261b9e0ccbf9e9dea9" +checksum = "9b7820b9daea5457c9f21c69448905d723fbd21136ccf521748f23fd49e723ee" [[package]] name = "oslog" @@ -2010,22 +2041,22 @@ dependencies = [ [[package]] name = "parking_lot_core" -version = "0.9.4" +version = "0.9.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4dc9e0dc2adc1c69d09143aff38d3d30c5c3f0df0dad82e6d25547af174ebec0" +checksum = "9069cbb9f99e3a5083476ccb29ceb1de18b9118cafa53e90c9551235de2b9521" dependencies = [ "cfg-if", "libc", "redox_syscall", "smallvec", - "windows-sys 0.42.0", + "windows-sys 0.45.0", ] [[package]] name = "paste" -version = "1.0.9" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1de2e551fb905ac83f73f7aedf2f0cb4a0da7e35efa24a202a936269f1f18e1" +checksum = "d01a5bd0424d00070b0098dd17ebca6f961a959dead1dbcbbbc1d1cd8d3deeba" [[package]] name = "pathdiff" @@ -2041,9 +2072,9 @@ checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e" [[package]] name = "pest" -version = "2.4.1" +version = "2.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a528564cc62c19a7acac4d81e01f39e53e25e17b934878f4c6d25cc2836e62f8" +checksum = "4ab62d2fa33726dbe6321cc97ef96d8cde531e3eeaf858a058de53a8a6d40d8f" dependencies = [ "thiserror", "ucd-trie", @@ -2167,16 +2198,16 @@ checksum = "6ac9a59f73473f1b8d852421e59e64809f025994837ef743615c6d0c5b305160" [[package]] name = "plist" -version = "1.3.1" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd39bc6cdc9355ad1dc5eeedefee696bb35c34caf21768741e81826c0bbd7225" +checksum = "5329b8f106a176ab0dce4aae5da86bfcb139bb74fb00882859e03745011f3635" dependencies = [ - "base64", + "base64 0.13.1", "indexmap", "line-wrap", + "quick-xml 0.26.0", "serde", "time", - "xml-rs", ] [[package]] @@ -2188,7 +2219,7 @@ dependencies = [ "bitflags", "crc32fast", "flate2", - "miniz_oxide 0.6.2", + "miniz_oxide", ] [[package]] @@ -2217,13 +2248,12 @@ checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" [[package]] name = "proc-macro-crate" -version = "1.2.1" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eda0fc3b0fb7c975631757e14d9049da17374063edb6ebbcbc54d880d4fe94e9" +checksum = "66618389e4ec1c7afe67d51a9bf34ff9236480f8d51e7489b7d5ab0303c13f34" dependencies = [ "once_cell", - "thiserror", - "toml", + "toml_edit", ] [[package]] @@ -2252,15 +2282,15 @@ dependencies = [ [[package]] name = "proc-macro-hack" -version = "0.5.19" +version = "0.5.20+deprecated" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5" +checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068" [[package]] name = "proc-macro2" -version = "1.0.47" +version = "1.0.51" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ea3d908b0e36316caf9e9e2c4625cdde190a7e6f440d794667ed17a1855e725" +checksum = "5d727cae5b39d21da60fa540906919ad737832fe0b1c165da3a34d6548c849d6" dependencies = [ "unicode-ident", ] @@ -2274,11 +2304,20 @@ dependencies = [ "memchr", ] +[[package]] +name = "quick-xml" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f50b1c63b38611e7d4d7f68b82d3ad0cc71a2ad2e7f61fc10f1328d917c93cd" +dependencies = [ + "memchr", +] + [[package]] name = "quote" -version = "1.0.21" +version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179" +checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b" dependencies = [ "proc-macro2", ] @@ -2395,9 +2434,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.7.0" +version = "1.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e076559ef8e241f2ae3479e36f97bd5741c0330689e217ad51ce2c76808b868a" +checksum = "48aaa5748ba571fb95cd2c85c09f629215d3a6ece942baa100950af03a34f733" dependencies = [ "aho-corasick", "memchr", @@ -2430,11 +2469,11 @@ dependencies = [ [[package]] name = "reqwest" -version = "0.11.12" +version = "0.11.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "431949c384f4e2ae07605ccaa56d1d9d2ecdb5cadd4f9577ccfab29f2e5149fc" +checksum = "21eed90ec8570952d53b772ecf8f206aa1ec9a3d76b2521c56c42973f2d91ee9" dependencies = [ - "base64", + "base64 0.21.0", "bytes", "encoding_rs", "futures-core", @@ -2460,6 +2499,7 @@ dependencies = [ "url", "wasm-bindgen", "wasm-bindgen-futures", + "wasm-streams", "web-sys", "winreg", ] @@ -2502,20 +2542,20 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" dependencies = [ - "semver 1.0.14", + "semver 1.0.16", ] [[package]] name = "rustversion" -version = "1.0.9" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97477e48b4cf8603ad5f7aaf897467cf42ab4218a38ef76fb14c2d6773a6d6a8" +checksum = "5583e89e108996506031660fe09baa5011b9dd0341b89029313006d1fb508d70" [[package]] name = "ryu" -version = "1.0.11" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4501abdff3ae82a1c1b477a17252eb69cee9e66eb915c1abaa4f44d873df9f09" +checksum = "7b4b9743ed687d4b4bcedf9ff5eaa7398495ae14e61cba0a295704edbc7decde" [[package]] name = "safemem" @@ -2575,9 +2615,9 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.14" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e25dfac463d778e353db5be2449d1cce89bd6fd23c9f1ea21310ce6e5a1b29c4" +checksum = "58bc9567378fc7690d6b2addae4e60ac2eeea07becb2c64b9f218b53865cba2a" dependencies = [ "serde", ] @@ -2593,18 +2633,18 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.147" +version = "1.0.152" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d193d69bae983fc11a79df82342761dfbf28a99fc8d203dca4c3c1b590948965" +checksum = "bb7d1f0d3021d347a83e556fc4683dea2ea09d87bccdf88ff5c12545d89d5efb" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.147" +version = "1.0.152" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f1d362ca8fc9c3e3a7484440752472d68a6caa98f1ab81d99b5dfe517cec852" +checksum = "af487d118eecd09402d70a5d72551860e788df87b464af30e5ea6a38c75c541e" dependencies = [ "proc-macro2", "quote", @@ -2613,20 +2653,20 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.87" +version = "1.0.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ce777b7b150d76b9cf60d28b55f5847135a003f7d7350c6be7a773508ce7d45" +checksum = "7434af0dc1cbd59268aa98b4c22c131c0584d2232f6fb166efb993e2832e896a" dependencies = [ - "itoa 1.0.4", + "itoa 1.0.5", "ryu", "serde", ] [[package]] name = "serde_repr" -version = "0.1.9" +version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fe39d9fbb0ebf5eb2c7cb7e2a47e4f462fad1379f1166b8ae49ad9eae89a7ca" +checksum = "9a5ec9fa74a20ebbe5d9ac23dac1fc96ba0ecfe9f50f2843b52e537b10fbcb4e" dependencies = [ "proc-macro2", "quote", @@ -2640,7 +2680,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" dependencies = [ "form_urlencoded", - "itoa 1.0.4", + "itoa 1.0.5", "ryu", "serde", ] @@ -2864,9 +2904,9 @@ checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" [[package]] name = "syn" -version = "1.0.103" +version = "1.0.107" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a864042229133ada95abf3b54fdc62ef5ccabe9515b64717bcb9a1919e59445d" +checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5" dependencies = [ "proc-macro2", "quote", @@ -2880,7 +2920,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2955b1fe31e1fa2fbd1976b71cc69a606d7d4da16f6de3333d0c92d51419aeff" dependencies = [ "cfg-expr", - "heck 0.4.0", + "heck 0.4.1", "pkg-config", "toml", "version-compare", @@ -2889,8 +2929,7 @@ dependencies = [ [[package]] name = "tao" version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d021218bcb43d4bf42112b1da5f7d8454502ffb188489ba0089fe4e3e34a8f6" +source = "git+https://github.com/tauri-apps/tao?branch=dev#8971d731b02ec61a1665351c9bae11f5e4058dc4" dependencies = [ "bitflags", "cairo-rs", @@ -2904,6 +2943,7 @@ dependencies = [ "gdk", "gdk-pixbuf", "gdk-sys", + "gdkwayland-sys", "gdkx11-sys", "gio", "glib", @@ -2928,8 +2968,8 @@ dependencies = [ "serde", "tao-macros", "unicode-segmentation", - "uuid 1.2.1", - "windows 0.39.0", + "uuid 1.3.0", + "windows 0.44.0", "windows-implement", "x11-dl", ] @@ -2937,8 +2977,7 @@ dependencies = [ [[package]] name = "tao-macros" version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b6fcd8245d45a39ffc8715183d92ae242750eb57b285eb3bcd63dfd512afd09" +source = "git+https://github.com/tauri-apps/tao?branch=dev#8971d731b02ec61a1665351c9bae11f5e4058dc4" dependencies = [ "proc-macro2", "quote", @@ -2962,7 +3001,7 @@ version = "2.0.0-alpha.3" dependencies = [ "anyhow", "attohttpc", - "base64", + "base64 0.13.1", "bytes", "clap", "cocoa", @@ -2974,7 +3013,7 @@ dependencies = [ "glib", "glob", "gtk", - "heck 0.4.0", + "heck 0.4.1", "http", "ico", "ignore", @@ -2997,7 +3036,7 @@ dependencies = [ "regex", "reqwest", "rfd", - "semver 1.0.14", + "semver 1.0.16", "serde", "serde_json", "serde_repr", @@ -3014,11 +3053,11 @@ dependencies = [ "time", "tokio", "url", - "uuid 1.2.1", + "uuid 1.3.0", "webkit2gtk", "webview2-com", "win7-notifications", - "windows 0.39.0", + "windows 0.44.0", "zip", ] @@ -3028,10 +3067,10 @@ version = "2.0.0-alpha.1" dependencies = [ "anyhow", "cargo_toml", - "heck 0.4.0", + "heck 0.4.1", "json-patch", "quote", - "semver 1.0.14", + "semver 1.0.16", "serde_json", "tauri-codegen", "tauri-utils", @@ -3043,7 +3082,7 @@ dependencies = [ name = "tauri-codegen" version = "2.0.0-alpha.1" dependencies = [ - "base64", + "base64 0.13.1", "brotli", "ico", "json-patch", @@ -3052,7 +3091,7 @@ dependencies = [ "proc-macro2", "quote", "regex", - "semver 1.0.14", + "semver 1.0.16", "serde", "serde_json", "sha2", @@ -3060,7 +3099,7 @@ dependencies = [ "thiserror", "time", "url", - "uuid 1.2.1", + "uuid 1.3.0", "walkdir", ] @@ -3068,7 +3107,7 @@ dependencies = [ name = "tauri-macros" version = "2.0.0-alpha.1" dependencies = [ - "heck 0.4.0", + "heck 0.4.1", "proc-macro2", "quote", "syn", @@ -3079,7 +3118,7 @@ dependencies = [ [[package]] name = "tauri-plugin-log" version = "0.1.0" -source = "git+https://github.com/tauri-apps/plugins-workspace?branch=next#37e0511020bd7d06cd29a293779efb1e2b96ba38" +source = "git+https://github.com/tauri-apps/plugins-workspace?branch=next#e151ffcf61cf2445d4a9e6cac3e44a3ff24d77d4" dependencies = [ "android_logger", "byte-unit", @@ -3115,9 +3154,9 @@ dependencies = [ "serde_json", "tauri-utils", "thiserror", - "uuid 1.2.1", + "uuid 1.3.0", "webview2-com", - "windows 0.39.0", + "windows 0.44.0", ] [[package]] @@ -3132,10 +3171,10 @@ dependencies = [ "raw-window-handle", "tauri-runtime", "tauri-utils", - "uuid 1.2.1", + "uuid 1.3.0", "webkit2gtk", "webview2-com", - "windows 0.39.0", + "windows 0.44.0", "wry", ] @@ -3148,7 +3187,7 @@ dependencies = [ "ctor", "getrandom 0.2.8", "glob", - "heck 0.4.0", + "heck 0.4.1", "html5ever", "infer 0.7.0", "json-patch", @@ -3157,7 +3196,7 @@ dependencies = [ "phf 0.10.1", "proc-macro2", "quote", - "semver 1.0.14", + "semver 1.0.16", "serde", "serde_json", "serde_with", @@ -3165,7 +3204,7 @@ dependencies = [ "thiserror", "url", "walkdir", - "windows 0.39.0", + "windows 0.44.0", ] [[package]] @@ -3174,7 +3213,7 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c58de036c4d2e20717024de2a3c4bf56c301f07b21bc8ef9b57189fce06f1f3b" dependencies = [ - "quick-xml", + "quick-xml 0.23.1", "strum", "windows 0.39.0", ] @@ -3206,9 +3245,9 @@ dependencies = [ [[package]] name = "termcolor" -version = "1.1.3" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755" +checksum = "be55cf8942feac5c765c2c993422806843c9a9a45d4d5c407ad6dd2ea95eb9b6" dependencies = [ "winapi-util", ] @@ -3227,18 +3266,18 @@ checksum = "8eaa81235c7058867fa8c0e7314f33dcce9c215f535d1913822a2b3f5e289f3c" [[package]] name = "thiserror" -version = "1.0.37" +version = "1.0.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10deb33631e3c9018b9baf9dcbbc4f737320d2b576bac10f6aefa048fa407e3e" +checksum = "6a9cd18aa97d5c45c6603caea1da6628790b37f7a34b6ca89522331c5180fed0" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.37" +version = "1.0.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "982d17546b47146b28f7c22e3d08465f6b8903d0ea13c1660d9d84a6e7adcdbb" +checksum = "1fb327af4685e4d03fa8cbcf1716380da910eeb2bb8be417e7f9fd3fb164f36f" dependencies = [ "proc-macro2", "quote", @@ -3260,7 +3299,7 @@ version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a561bf4617eebd33bca6434b988f39ed798e527f51a1e797d0ee4f61c0a38376" dependencies = [ - "itoa 1.0.4", + "itoa 1.0.5", "serde", "time-core", "time-macros", @@ -3305,15 +3344,15 @@ dependencies = [ [[package]] name = "tinyvec_macros" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.21.2" +version = "1.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9e03c497dc955702ba729190dc4aac6f2a0ce97f913e5b1b5912fc5039d9099" +checksum = "c8e00990ebabbe4c14c08aca901caed183ecd5c09562a12c824bb53d3c3fd3af" dependencies = [ "autocfg", "bytes", @@ -3323,7 +3362,7 @@ dependencies = [ "num_cpus", "pin-project-lite", "socket2", - "winapi", + "windows-sys 0.42.0", ] [[package]] @@ -3342,13 +3381,30 @@ dependencies = [ [[package]] name = "toml" -version = "0.5.9" +version = "0.5.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d82e1a7758622a465f8cee077614c73484dac5b836c02ff6a40d5d1010324d7" +checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" dependencies = [ "serde", ] +[[package]] +name = "toml_datetime" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4553f467ac8e3d374bc9a177a26801e5d0f9b211aa1673fb137a403afd1c9cf5" + +[[package]] +name = "toml_edit" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56c59d8dd7d0dcbc6428bf7aa2f0e823e26e43b3c9aca15bbc9475d23e5fa12b" +dependencies = [ + "indexmap", + "nom8", + "toml_datetime", +] + [[package]] name = "tower-service" version = "0.3.2" @@ -3428,15 +3484,15 @@ dependencies = [ [[package]] name = "try-lock" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" +checksum = "3528ecfd12c466c6f163363caf2d02a71161dd5e1cc6ae7b34207ea2d42d81ed" [[package]] name = "typenum" -version = "1.15.0" +version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987" +checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba" [[package]] name = "ucd-trie" @@ -3455,15 +3511,15 @@ dependencies = [ [[package]] name = "unicode-bidi" -version = "0.3.8" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992" +checksum = "d54675592c1dbefd78cbd98db9bacd89886e1ca50692a0692baefffdeb92dd58" [[package]] name = "unicode-ident" -version = "1.0.5" +version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ceab39d59e4c9499d4e5a8ee0e2735b891bb7308ac83dfb4e80cad195c9f6f3" +checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" [[package]] name = "unicode-normalization" @@ -3476,9 +3532,9 @@ dependencies = [ [[package]] name = "unicode-segmentation" -version = "1.10.0" +version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fdbf052a0783de01e944a6ce7a8cb939e295b1e7be835a1112c3b9a7f047a5a" +checksum = "1dd624098567895118886609431a7c3b8f516e41d30e0643f03d94592a147e36" [[package]] name = "universal-hash" @@ -3522,9 +3578,9 @@ checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7" [[package]] name = "uuid" -version = "1.2.1" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "feb41e78f93363bb2df8b0e86a2ca30eed7806ea16ea0c790d757cf93f79be83" +checksum = "1674845326ee10d37ca60470760d4288a6f80f304007d92e5c53bab78c9cfd79" dependencies = [ "getrandom 0.2.8", ] @@ -3547,9 +3603,9 @@ dependencies = [ [[package]] name = "version-compare" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe88247b92c1df6b6de80ddc290f3976dbdf2f5f5d3fd049a9fb598c6dd5ca73" +checksum = "579a42fc0b8e0c63b76519a339be31bed574929511fa53c1a3acae26eb258f29" [[package]] name = "version_check" @@ -3592,9 +3648,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.83" +version = "0.2.84" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eaf9f5aceeec8be17c128b2e93e031fb8a4d469bb9c4ae2d7dc1888b26887268" +checksum = "31f8dcbc21f30d9b8f2ea926ecb58f6b91192c17e9d33594b3df58b2007ca53b" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -3602,9 +3658,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.83" +version = "0.2.84" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c8ffb332579b0557b52d268b91feab8df3615f265d5270fec2a8c95b17c1142" +checksum = "95ce90fd5bcc06af55a641a86428ee4229e44e07033963a2290a8e241607ccb9" dependencies = [ "bumpalo", "log", @@ -3617,9 +3673,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.33" +version = "0.4.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23639446165ca5a5de86ae1d8896b737ae80319560fbaa4c2887b7da6e7ebd7d" +checksum = "f219e0d211ba40266969f6dbdd90636da12f75bee4fc9d6c23d1260dadb51454" dependencies = [ "cfg-if", "js-sys", @@ -3629,9 +3685,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.83" +version = "0.2.84" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "052be0f94026e6cbc75cdefc9bae13fd6052cdcaf532fa6c45e7ae33a1e6c810" +checksum = "4c21f77c0bedc37fd5dc21f897894a5ca01e7bb159884559461862ae90c0b4c5" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -3639,9 +3695,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.83" +version = "0.2.84" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07bc0c051dc5f23e307b13285f9d75df86bfdf816c5721e573dec1f9b8aa193c" +checksum = "2aff81306fcac3c7515ad4e177f521b5c9a15f2b08f4e32d823066102f35a5f6" dependencies = [ "proc-macro2", "quote", @@ -3652,15 +3708,28 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.83" +version = "0.2.84" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c38c045535d93ec4f0b4defec448e4291638ee608530863b1e2ba115d4fff7f" +checksum = "0046fef7e28c3804e5e38bfa31ea2a0f73905319b677e57ebe37e49358989b5d" + +[[package]] +name = "wasm-streams" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6bbae3363c08332cadccd13b67db371814cd214c2524020932f0804b8cf7c078" +dependencies = [ + "futures-util", + "js-sys", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] [[package]] name = "web-sys" -version = "0.3.60" +version = "0.3.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bcda906d8be16e728fd5adc5b729afad4e444e106ab28cd1c7256e54fa61510f" +checksum = "e33b99f4b23ba3eec1a53ac264e35a755f00e966e0065077d6027c0f575b0b97" dependencies = [ "js-sys", "wasm-bindgen", @@ -3712,13 +3781,13 @@ dependencies = [ [[package]] name = "webview2-com" -version = "0.19.1" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4a769c9f1a64a8734bde70caafac2b96cada12cd4aefa49196b3a386b8b4178" +checksum = "03411e89ec447e29c08b3c086edeb88c5f8fd782cbdd4d6d316bea439be7a244" dependencies = [ "webview2-com-macros", "webview2-com-sys", - "windows 0.39.0", + "windows 0.44.0", "windows-implement", ] @@ -3735,15 +3804,15 @@ dependencies = [ [[package]] name = "webview2-com-sys" -version = "0.19.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aac48ef20ddf657755fdcda8dfed2a7b4fc7e4581acce6fe9b88c3d64f29dee7" +checksum = "1c0f5ce43e9611c5b2983a33156d6abe31abf39185bad84a6766c80ba1dbf1ab" dependencies = [ "regex", "serde", "serde_json", "thiserror", - "windows 0.39.0", + "windows 0.44.0", "windows-bindgen", "windows-metadata", ] @@ -3789,50 +3858,12 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" -[[package]] -name = "window-shadows" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c69eb48aac2da0199ea148c6f2c2610db8a0572b32a3dc857dec40ca22f1cec" -dependencies = [ - "cocoa", - "objc", - "raw-window-handle", - "windows-sys 0.36.1", -] - -[[package]] -name = "window-vibrancy" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe43438c9c09f934c647db9a396fc17b047b011bc7a006f0d0712f7cdf516ffa" -dependencies = [ - "cocoa", - "objc", - "raw-window-handle", - "windows-sys 0.36.1", -] - -[[package]] -name = "windows" -version = "0.32.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbedf6db9096bc2364adce0ae0aa636dcd89f3c3f2cd67947062aaf0ca2a10ec" -dependencies = [ - "windows_aarch64_msvc 0.32.0", - "windows_i686_gnu 0.32.0", - "windows_i686_msvc 0.32.0", - "windows_x86_64_gnu 0.32.0", - "windows_x86_64_msvc 0.32.0", -] - [[package]] name = "windows" version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1c4bd0a50ac6020f65184721f758dba47bb9fbc2133df715ec74a237b26794a" dependencies = [ - "windows-implement", "windows_aarch64_msvc 0.39.0", "windows_i686_gnu 0.39.0", "windows_i686_msvc 0.39.0", @@ -3846,14 +3877,16 @@ version = "0.44.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e745dab35a0c4c77aa3ce42d595e13d2003d6902d6b08c9ef5fc326d08da12b" dependencies = [ + "windows-implement", + "windows-interface", "windows-targets", ] [[package]] name = "windows-bindgen" -version = "0.39.0" +version = "0.44.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68003dbd0e38abc0fb85b939240f4bce37c43a5981d3df37ccbaaa981b47cb41" +checksum = "222204ecf46521382a4d88b4a1bbefca9f8855697b4ab7d20803901425e061a3" dependencies = [ "windows-metadata", "windows-tokens", @@ -3861,19 +3894,31 @@ dependencies = [ [[package]] name = "windows-implement" -version = "0.39.0" +version = "0.44.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba01f98f509cb5dc05f4e5fc95e535f78260f15fea8fe1a8abdd08f774f1cee7" +checksum = "6ce87ca8e3417b02dc2a8a22769306658670ec92d78f1bd420d6310a67c245c6" dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "windows-interface" +version = "0.44.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "853f69a591ecd4f810d29f17e902d40e349fb05b0b11fff63b08b826bfe39c7f" +dependencies = [ + "proc-macro2", + "quote", "syn", - "windows-tokens", ] [[package]] name = "windows-metadata" -version = "0.39.0" +version = "0.44.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ee5e275231f07c6e240d14f34e1b635bf1faa1c76c57cfd59a5cdb9848e4278" +checksum = "ee78911e3f4ce32c1ad9d3c7b0bd95389662ad8d8f1a3155688fed70bd96e2b6" [[package]] name = "windows-sys" @@ -3903,6 +3948,15 @@ dependencies = [ "windows_x86_64_msvc 0.42.1", ] +[[package]] +name = "windows-sys" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +dependencies = [ + "windows-targets", +] + [[package]] name = "windows-targets" version = "0.42.1" @@ -3920,9 +3974,9 @@ dependencies = [ [[package]] name = "windows-tokens" -version = "0.39.0" +version = "0.44.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f838de2fe15fe6bac988e74b798f26499a8b21a9d97edec321e79b28d1d7f597" +checksum = "fa4251900975a0d10841c5d4bde79c56681543367ef811f3fabb8d1803b0959b" [[package]] name = "windows_aarch64_gnullvm" @@ -3930,12 +3984,6 @@ version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8c9864e83243fdec7fc9c5444389dcbbfd258f745e7853198f365e3c4968a608" -[[package]] -name = "windows_aarch64_msvc" -version = "0.32.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8e92753b1c443191654ec532f14c199742964a061be25d77d7a96f09db20bf5" - [[package]] name = "windows_aarch64_msvc" version = "0.36.1" @@ -3954,12 +4002,6 @@ version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c8b1b673ffc16c47a9ff48570a9d85e25d265735c503681332589af6253c6c7" -[[package]] -name = "windows_i686_gnu" -version = "0.32.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a711c68811799e017b6038e0922cb27a5e2f43a2ddb609fe0b6f3eeda9de615" - [[package]] name = "windows_i686_gnu" version = "0.36.1" @@ -3978,12 +4020,6 @@ version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "de3887528ad530ba7bdbb1faa8275ec7a1155a45ffa57c37993960277145d640" -[[package]] -name = "windows_i686_msvc" -version = "0.32.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "146c11bb1a02615db74680b32a68e2d61f553cc24c4eb5b4ca10311740e44172" - [[package]] name = "windows_i686_msvc" version = "0.36.1" @@ -4002,12 +4038,6 @@ version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bf4d1122317eddd6ff351aa852118a2418ad4214e6613a50e0191f7004372605" -[[package]] -name = "windows_x86_64_gnu" -version = "0.32.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c912b12f7454c6620635bbff3450962753834be2a594819bd5e945af18ec64bc" - [[package]] name = "windows_x86_64_gnu" version = "0.36.1" @@ -4032,12 +4062,6 @@ version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "628bfdf232daa22b0d64fdb62b09fcc36bb01f05a3939e20ab73aaf9470d0463" -[[package]] -name = "windows_x86_64_msvc" -version = "0.32.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "504a2476202769977a040c6364301a3f65d0cc9e3fb08600b2bda150a0488316" - [[package]] name = "windows_x86_64_msvc" version = "0.36.1" @@ -4077,9 +4101,9 @@ dependencies = [ [[package]] name = "wry" version = "0.26.0" -source = "git+https://github.com/tauri-apps/wry?branch=dev#a9e186cab4456d7ac2c265e61e71b345f7d269c4" +source = "git+https://github.com/tauri-apps/wry?branch=dev#9613a08312645bbad80de6b91c5ba33656cf6a5e" dependencies = [ - "base64", + "base64 0.13.1", "block", "cocoa", "core-graphics", @@ -4107,15 +4131,15 @@ dependencies = [ "webkit2gtk", "webkit2gtk-sys", "webview2-com", - "windows 0.39.0", + "windows 0.44.0", "windows-implement", ] [[package]] name = "x11" -version = "2.20.0" +version = "2.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7ae97874a928d821b061fce3d1fc52f08071dd53c89a6102bc06efcac3b2908" +checksum = "502da5464ccd04011667b11c435cb992822c2c0dbde1770c988480d312a0db2e" dependencies = [ "libc", "pkg-config", @@ -4123,12 +4147,12 @@ dependencies = [ [[package]] name = "x11-dl" -version = "2.20.0" +version = "2.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c83627bc137605acc00bb399c7b908ef460b621fc37c953db2b09f88c449ea6" +checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f" dependencies = [ - "lazy_static", "libc", + "once_cell", "pkg-config", ] @@ -4141,17 +4165,11 @@ dependencies = [ "libc", ] -[[package]] -name = "xml-rs" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2d7d3948613f75c98fd9328cfdcc45acc4d360655289d0a7d4ec931392200a3" - [[package]] name = "zip" -version = "0.6.3" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "537ce7411d25e54e8ae21a7ce0b15840e7bfcff15b51d697ec3266cc76bdf080" +checksum = "0445d0fbc924bb93539b4316c11afb121ea39296f99a3c4c9edad09e3658cdef" dependencies = [ "byteorder", "crc32fast", diff --git a/examples/api/src-tauri/Cargo.toml b/examples/api/src-tauri/Cargo.toml index 768b4e1433ed..5d503e8b3b17 100644 --- a/examples/api/src-tauri/Cargo.toml +++ b/examples/api/src-tauri/Cargo.toml @@ -40,10 +40,6 @@ features = [ "updater" ] -[target."cfg(target_os = \"windows\")".dependencies] -window-vibrancy = "0.2" -window-shadows= "0.2" - [features] default = [ "custom-protocol" ] custom-protocol = [ "tauri/custom-protocol" ] diff --git a/examples/api/src-tauri/src/lib.rs b/examples/api/src-tauri/src/lib.rs index 173b37cf0f3e..2a3391e1ec80 100644 --- a/examples/api/src-tauri/src/lib.rs +++ b/examples/api/src-tauri/src/lib.rs @@ -83,18 +83,14 @@ impl AppBuilder { #[cfg(target_os = "windows")] { - window_builder = window_builder.transparent(true); - window_builder = window_builder.decorations(false); + window_builder = window_builder + .transparent(true) + .shadow(true) + .decorations(false); } let window = window_builder.build().unwrap(); - #[cfg(target_os = "windows")] - { - let _ = window_shadows::set_shadow(&window, true); - let _ = window_vibrancy::apply_blur(&window, Some((0, 0, 0, 0))); - } - #[cfg(debug_assertions)] window.open_devtools(); diff --git a/examples/api/src/App.svelte b/examples/api/src/App.svelte index 423833fc27f7..ae4298a2a07d 100644 --- a/examples/api/src/App.svelte +++ b/examples/api/src/App.svelte @@ -368,9 +368,7 @@