Skip to content

Commit

Permalink
core: add plugin only on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
wtto00 committed Jun 6, 2024
1 parent 3ec701d commit 31351eb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ A plugin of In App Purchase for Tauri on MacOS.
```rs
fn main() {
tauri::Builder::default()
.plugin(tauri_plugin_iap::init()) // Add this line
.setup(move |app| {
// Add this line
#[cfg(target_os="macos")]
app.app_handle().plugin(plugins::refister_iap())?;

Ok(())
})
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
Expand Down

0 comments on commit 31351eb

Please sign in to comment.