#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg(target_os = "android")]
#[cfg(feature = "compio-compat")]
mod compat;
#[cfg(feature = "compio-compat")]
pub use compat::*;
mod convert;
pub(crate) use convert::*;
mod runtime;
pub use runtime::*;
mod widgets;
pub use widgets::*;
mod dialogs;
pub use dialogs::*;
mod platform;
pub use platform::*;
mod java;
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("JNI error: {0}")]
Jni(#[from] jni::errors::Error),
#[error("IO error: {0}")]
Io(#[from] std::io::Error),
#[error("No application available")]
NoApp,
#[error("Feature not supported")]
NotSupported,
}
pub type Result<T> = std::result::Result<T, Error>;