fix android build errors and warnings

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2022-11-13 18:11:13 +08:00
parent a9eb285425
commit 6b3c2f3beb
11 changed files with 65 additions and 45 deletions

View File

@@ -26,7 +26,7 @@ use hbb_common::{
#[cfg(feature = "flutter")]
use crate::hbbs_http::account;
use crate::{common::SOFTWARE_UPDATE_URL, ipc, platform};
use crate::{common::SOFTWARE_UPDATE_URL, ipc};
#[cfg(any(target_os = "android", target_os = "ios", feature = "flutter"))]
type Message = RendezvousMessage;
@@ -253,6 +253,7 @@ pub fn test_if_valid_server(host: String) -> String {
#[inline]
#[cfg(feature = "flutter")]
#[cfg(not(any(target_os = "android", target_os = "ios")))]
pub fn get_sound_inputs() -> Vec<String> {
let mut a = Vec::new();
#[cfg(not(target_os = "linux"))]
@@ -782,7 +783,7 @@ pub fn default_video_save_directory() -> String {
}
#[cfg(not(any(target_os = "android", target_os = "ios")))]
if let Some(home) = platform::get_active_user_home() {
if let Some(home) = crate::platform::get_active_user_home() {
let name = if cfg!(target_os = "macos") {
"Movies"
} else {