feat(mobile): add plugin config to the Plugin class (#6763)

This commit is contained in:
Lucas Fernandes Nogueira
2023-04-23 05:15:13 -07:00
committed by GitHub
parent 41f49aeae6
commit dfa407ffcb
16 changed files with 84 additions and 37 deletions

View File

@@ -15,6 +15,6 @@ class ExamplePlugin: Plugin {
}
@_cdecl("init_plugin_sample")
func initPlugin(name: SRString, webview: WKWebView?) {
Tauri.registerPlugin(webview: webview, name: name.toString(), plugin: ExamplePlugin())
func initPlugin() -> Plugin {
return ExamplePlugin()
}