#[cfg(not(any(target_os = "android", target_os = "ios", target_arch = "wasm32")))]
mod desktop;
#[cfg(not(any(target_os = "android", target_os = "ios", target_arch = "wasm32")))]
pub(crate) use desktop::{
check_permission, open_read, open_write, pick_open_multi, pick_open_single, pick_save,
};
#[cfg(target_os = "android")]
mod android;
#[cfg(target_os = "android")]
pub(crate) use android::{
check_permission, open_read, open_write, pick_open_multi, pick_open_single, pick_save,
};
#[cfg(target_os = "ios")]
mod ios;
#[cfg(target_os = "ios")]
pub(crate) use ios::{
check_permission, open_read, open_write, pick_open_multi, pick_open_single, pick_save,
};
#[cfg(target_arch = "wasm32")]
mod wasm;
#[cfg(target_arch = "wasm32")]
pub(crate) use wasm::{
check_permission, open_read, open_write, pick_open_multi, pick_open_single, pick_save,
};
#[cfg(not(any(
target_os = "android",
target_os = "ios",
target_arch = "wasm32",
target_os = "windows",
target_os = "macos",
target_os = "linux",
target_os = "freebsd",
target_os = "openbsd",
target_os = "netbsd",
target_os = "dragonfly",
)))]
compile_error!(
"loki-file-access: unsupported target platform. \
Supported: Windows, macOS, Linux, BSD, Android, iOS, WASM."
);