diff --git a/src/client.rs b/src/client.rs index c880c2dbe..44d3e0201 100644 --- a/src/client.rs +++ b/src/client.rs @@ -24,6 +24,7 @@ use sha2::{Digest, Sha256}; use uuid::Uuid; pub use file_trait::FileManager; +#[cfg(not(feature = "flutter"))] #[cfg(not(any(target_os = "android", target_os = "ios")))] use hbb_common::tokio::sync::mpsc::UnboundedSender; use hbb_common::{ @@ -58,10 +59,10 @@ use crate::{ }; #[cfg(not(any(target_os = "android", target_os = "ios")))] -use crate::{ - common::{check_clipboard, ClipboardContext, CLIPBOARD_INTERVAL}, - ui_session_interface::SessionPermissionConfig, -}; +use crate::common::{check_clipboard, ClipboardContext, CLIPBOARD_INTERVAL}; +#[cfg(not(feature = "flutter"))] +#[cfg(not(any(target_os = "android", target_os = "ios")))] +use crate::ui_session_interface::SessionPermissionConfig; pub use super::lang::*; diff --git a/src/client/io_loop.rs b/src/client/io_loop.rs index 735a35e3a..d5143c0a8 100644 --- a/src/client/io_loop.rs +++ b/src/client/io_loop.rs @@ -1,7 +1,5 @@ use std::collections::HashMap; use std::num::NonZeroI64; -#[cfg(not(any(target_os = "android", target_os = "ios")))] -use std::sync::Mutex; use std::sync::{ atomic::{AtomicUsize, Ordering}, Arc,