diff --git a/.gitignore b/.gitignore index 71ee748..9f9a81e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ target/ node_modules +.tauri/ diff --git a/src/mobile.rs b/src/mobile.rs index 788a30a..590a4ec 100644 --- a/src/mobile.rs +++ b/src/mobile.rs @@ -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( @@ -18,7 +18,7 @@ pub fn init( #[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)) }