chore: add stub android plugin for safari-auth (#443)

This commit is contained in:
Huang Xin 2025-02-24 11:41:26 +01:00 committed by GitHub
parent 36e09582bc
commit f8ea7fc463
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 187 additions and 2 deletions

View file

@ -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))
}