From cfffbbd18b988d0fa5c5425032473064088c9b1d Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Fri, 19 May 2023 11:59:39 -0300 Subject: [PATCH] fix global-shortcut --- plugins/global-shortcut/Cargo.toml | 2 ++ plugins/global-shortcut/src/lib.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/plugins/global-shortcut/Cargo.toml b/plugins/global-shortcut/Cargo.toml index bf685739..927c4337 100644 --- a/plugins/global-shortcut/Cargo.toml +++ b/plugins/global-shortcut/Cargo.toml @@ -11,4 +11,6 @@ serde_json = { workspace = true } tauri = { workspace = true } log = { workspace = true } thiserror = { workspace = true } + +[target."cfg(not(any(target_os = \"android\", target_os = \"ios\")))".dependencies] global-hotkey = "0.2.1" diff --git a/plugins/global-shortcut/src/lib.rs b/plugins/global-shortcut/src/lib.rs index 7c34fc21..4266de21 100644 --- a/plugins/global-shortcut/src/lib.rs +++ b/plugins/global-shortcut/src/lib.rs @@ -1,3 +1,5 @@ +#![cfg(not(any(target_os = "android", target_os = "ios")))] + use std::{ collections::HashMap, str::FromStr,