From ad138aa85568d3ef357515b68a3f0cbdb13b4a23 Mon Sep 17 00:00:00 2001 From: wtto00 Date: Wed, 19 Jun 2024 15:13:47 +0800 Subject: [PATCH] Repair the documentation for plugin initialization. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b613a68..4c62a8c 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ A plugin of In App Purchase for Tauri on MacOS. ```yaml [target.'cfg(target_os = "macos")'.dependencies] - tauri-plugin-iap = { git = "https://github.com/wtto00/tauri-plugin-iap" } + tauri-plugin-iap = { git = "https://github.com/wtto00/tauri-plugin-iap", tag = "v0.0.1" } ``` - Add dependencies of front-end: @@ -27,7 +27,7 @@ A plugin of In App Purchase for Tauri on MacOS. .setup(move |app| { // Add this line #[cfg(target_os="macos")] - app.app_handle().plugin(plugins::refister_iap())?; + app.app_handle().plugin(tauri_plugin_iap::init())?; Ok(()) })