mirror of
https://gitlab.com/cristofa/tauri-plugin-keep-screen-on.git
synced 2025-12-23 09:19:49 +00:00
fix ios
This commit is contained in:
parent
02a9a7b7dc
commit
d8837195ce
2 changed files with 3 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
|||
target/
|
||||
node_modules
|
||||
.tauri/
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ use tauri::{
|
|||
const PLUGIN_IDENTIFIER: &str = "net.curiana.keepScreenOn";
|
||||
|
||||
#[cfg(target_os = "ios")]
|
||||
tauri::ios_plugin_binding!(init_plugin_keep-screen-on);
|
||||
tauri::ios_plugin_binding!(init_plugin_keep_screen_on);
|
||||
|
||||
// initializes the Kotlin or Swift plugin classes
|
||||
pub fn init<R: Runtime, C: DeserializeOwned>(
|
||||
|
|
@ -18,7 +18,7 @@ pub fn init<R: Runtime, C: DeserializeOwned>(
|
|||
#[cfg(target_os = "android")]
|
||||
let handle = api.register_android_plugin(PLUGIN_IDENTIFIER, "KeepScreenOnPlugin")?;
|
||||
#[cfg(target_os = "ios")]
|
||||
let handle = api.register_ios_plugin(init_plugin_keep-screen-on)?;
|
||||
let handle = api.register_ios_plugin(init_plugin_keep_screen_on)?;
|
||||
Ok(KeepScreenOn(handle))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue