ios get data dir

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2022-12-01 21:48:19 +08:00
parent 60d0b9209b
commit 387a7f2df4
7 changed files with 34 additions and 40 deletions

View File

@@ -57,6 +57,10 @@ lazy_static::lazy_static! {
lazy_static::lazy_static! {
pub static ref APP_DIR: Arc<RwLock<String>> = Default::default();
}
#[cfg(any(target_os = "android", target_os = "ios"))]
lazy_static::lazy_static! {
pub static ref APP_HOME_DIR: Arc<RwLock<String>> = Default::default();
}