@choochmeque/tauri-plugin-iap-api 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +21 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -26,13 +26,33 @@ A Tauri plugin for In-App Purchases (IAP) with support for subscriptions on both
26
26
 
27
27
  ## Installation
28
28
 
29
- Add the plugin to your Tauri project:
29
+ Install the JavaScript package:
30
+
31
+ ```bash
32
+ npm install @choochmeque/tauri-plugin-iap-api
33
+ # or
34
+ yarn add @choochmeque/tauri-plugin-iap-api
35
+ # or
36
+ pnpm add @choochmeque/tauri-plugin-iap-api
37
+ ```
38
+
39
+ Add the plugin to your Tauri project's `Cargo.toml`:
30
40
 
31
41
  ```toml
32
42
  [dependencies]
33
43
  tauri-plugin-iap = "0.1"
34
44
  ```
35
45
 
46
+ Configure the plugin permissions in your `capabilities/default.json`:
47
+
48
+ ```json
49
+ {
50
+ "permissions": [
51
+ "iap:default"
52
+ ]
53
+ }
54
+ ```
55
+
36
56
  Register the plugin in your Tauri app:
37
57
 
38
58
  ```rust
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@choochmeque/tauri-plugin-iap-api",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "author": "You",
5
5
  "description": "A Tauri v2 plugin that enables In-App Purchases (IAP)",
6
6
  "type": "module",