fix: android build

This commit is contained in:
Kingtous 2023-01-31 11:10:14 +08:00
parent 60925057f0
commit 038d660e60
2 changed files with 7 additions and 1 deletions

View File

@ -149,6 +149,12 @@ pub fn get_default_sound_input() -> Option<String> {
}
}
#[inline]
#[cfg(any(target_os = "android", target_os = "ios"))]
pub fn get_default_sound_input() -> Option<String> {
None
}
#[cfg(not(any(target_os = "android", target_os = "ios")))]
pub fn update_clipboard(clipboard: Clipboard, old: Option<&Arc<Mutex<String>>>) {
let content = if clipboard.compress {

View File

@ -541,7 +541,7 @@ pub fn main_get_default_sound_input() -> Option<String> {
#[cfg(not(any(target_os = "android", target_os = "ios")))]
return get_default_sound_input();
#[cfg(any(target_os = "android", target_os = "ios"))]
String::from("")
None
}
pub fn main_get_hostname() -> SyncReturn<String> {