(path: String)
| 79 | /// No-op on iOS (sandbox paths are determined automatically). |
| 80 | #[uniffi::export] |
| 81 | pub fn set_cache_dir(path: String) { |
| 82 | #[cfg(target_os = "android")] |
| 83 | { |
| 84 | log_mobile(&format!("[cake-mobile] set_cache_dir: {}", path)); |
| 85 | if let Ok(mut d) = ANDROID_CACHE_DIR.lock() { |
| 86 | *d = path; |
| 87 | } |
| 88 | } |
| 89 | #[cfg(not(target_os = "android"))] |
| 90 | { |
| 91 | let _ = path; |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | fn get_cache_dir() -> std::path::PathBuf { |
| 96 | #[cfg(target_os = "android")] |
no test coverage detected