Browse Source

fix(cli): fix code output of `tauri plugin android init` (#8810)

* Fix: code output of tauri plugin android init
double quotes `"` wasn't matching in plugin android init command

* change file
Priyadarshan Giri 1 year ago
parent
commit
aa06a0534c
2 changed files with 7 additions and 1 deletions
  1. 6 0
      .changes/cli-plugin-android-init.md
  2. 1 1
      tooling/cli/src/plugin/android.rs

+ 6 - 0
.changes/cli-plugin-android-init.md

@@ -0,0 +1,6 @@
+---
+"tauri-cli": patch:bug
+"@tauri-apps/cli": patch:bug
+---
+
+Fix `tauri plugin android init` printing invalid code that has a missing closing `"`.

+ 1 - 1
tooling/cli/src/plugin/android.rs

@@ -114,7 +114,7 @@ pub fn init<R: Runtime>() -> TauriPlugin<R> {{
   Builder::new("{name}")
   Builder::new("{name}")
     .setup(|app, api| {{
     .setup(|app, api| {{
       #[cfg(target_os = "android")]
       #[cfg(target_os = "android")]
-      let handle = api.register_android_plugin("{identifier}, "ExamplePlugin")?;
+      let handle = api.register_android_plugin("{identifier}", "ExamplePlugin")?;
       Ok(())
       Ok(())
     }})
     }})
     .build()
     .build()