feat(store): Add android & iOS support (#1011)

* update cli

* init android module

* upgdate gitignore

* add desktop and mobile

* android

* ios

* lib

* remove comment

* cargo fmt

* skip empty file creation

* android comments

* apple path

* Discard changes to plugins/store/ios/README.md

* stop auto directories creation

* Update README.md
This commit is contained in:
Ahmed Elkhoudiry
2024-03-04 21:02:17 +02:00
committed by GitHub
parent 8a5e05cd83
commit 22f5acf240
17 changed files with 583 additions and 66 deletions
+9
View File
@@ -5,10 +5,19 @@
use serde::{Serialize, Serializer};
use std::path::PathBuf;
pub type Result<T> = std::result::Result<T, Error>;
/// The error types.
#[derive(thiserror::Error, Debug)]
#[non_exhaustive]
pub enum Error {
#[cfg(mobile)]
#[error(transparent)]
PluginInvoke(#[from] tauri::plugin::mobile::PluginInvokeError),
/// Mobile plugin handled is not initialized, Probably [`StoreBuilder::mobile_plugin_handle`] was not called.
#[cfg(mobile)]
#[error("Mobile plugin handled is not initialized, Perhaps you forgot to call StoreBuilder::mobile_plugin_handle")]
MobilePluginHandleUnInitialized,
#[error("Failed to serialize store. {0}")]
Serialize(Box<dyn std::error::Error + Send + Sync>),
#[error("Failed to deserialize store. {0}")]