From 0e05f5305cc44d17707433e618c12aa6eda6ced3 Mon Sep 17 00:00:00 2001 From: fufesou Date: Wed, 29 Nov 2023 22:13:38 +0800 Subject: [PATCH] fix build, android Signed-off-by: fufesou --- src/flutter_ffi.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/flutter_ffi.rs b/src/flutter_ffi.rs index 293c24502..d25923de5 100644 --- a/src/flutter_ffi.rs +++ b/src/flutter_ffi.rs @@ -471,6 +471,7 @@ pub fn session_handle_flutter_key_event( // As rust is multi-thread, it is possible that enter() is called before leave(). // This will cause the keyboard input to take no effect. pub fn session_enter_or_leave(_session_id: SessionID, _enter: bool) -> SyncReturn<()> { + #[cfg(not(any(target_os = "android", target_os = "ios")))] if let Some(session) = sessions::get_session_by_session_id(&_session_id) { let keyboard_mode = session.get_keyboard_mode(); if _enter {