mirror of
https://github.com/readest/readest.git
synced 2026-04-30 04:20:53 +00:00
chore: add stub android plugin for safari-auth (#443)
This commit is contained in:
parent
36e09582bc
commit
f8ea7fc463
11 changed files with 187 additions and 2 deletions
|
|
@ -14,8 +14,11 @@ pub fn init<R: Runtime, C: DeserializeOwned>(
|
|||
_app: &AppHandle<R>,
|
||||
api: PluginApi<R, C>,
|
||||
) -> crate::Result<SafariAuth<R>> {
|
||||
#[cfg(target_os = "android")]
|
||||
let handle = api.register_android_plugin("com.bilingify.safari_auth", "ExamplePlugin")?;
|
||||
#[cfg(target_os = "ios")]
|
||||
let handle = api.register_ios_plugin(init_plugin_safari_auth)?;
|
||||
|
||||
Ok(SafariAuth(handle))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue