This commit is contained in:
Krzysztof Andrelczyk 2024-08-08 14:55:49 +02:00
parent 02a9a7b7dc
commit d8837195ce
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
target/
node_modules
.tauri/

View file

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