@mpgd/capacitor-play-billing 0.2.0 → 0.2.2
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.
- package/README.md +7 -3
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -132,9 +132,13 @@ into an `accountBinding` resolver returning `{ kind: 'obfuscated-account-id',
|
|
|
132
132
|
value }`, rename `id`/`storeId`/`type` to `logicalId`/`storeSku`/`kind`
|
|
133
133
|
(`non_consumable` becomes `durable`) and `offerToken` to `offerId`, and stop
|
|
134
134
|
calling `recoverOwnedPlayPurchases`: it is deprecated in favour of the single
|
|
135
|
-
reconciler
|
|
136
|
-
`
|
|
137
|
-
|
|
135
|
+
reconciler in `@mpgd/game-services` (`createCommerceReconciler`, behind
|
|
136
|
+
`createGameServicesClient` and `monetizationRecovery.reconcile()` whenever
|
|
137
|
+
`gateway.commerceV2` exists), which reads `getAvailablePurchases` and
|
|
138
|
+
`purchaseUpdated` from the provider and verifies each purchase under the same
|
|
139
|
+
`play-token-sha256` key. The backend contract is unchanged, since the
|
|
140
|
+
evidence payload is the same; `src/commerce-reconciler-play-smoke.test.ts`
|
|
141
|
+
shows both paths reaching the same outcomes over the fake plugin.
|
|
138
142
|
|
|
139
143
|
## v1 provider
|
|
140
144
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpgd/capacitor-play-billing",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Opt-in Android Google Play Billing purchase collector for mpgd Capacitor games.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
],
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@capacitor/core": "^8.5.1",
|
|
41
|
-
"@mpgd/adapter-capacitor": "^0.9.
|
|
42
|
-
"@mpgd/bridge": "^0.12.
|
|
43
|
-
"@mpgd/platform": "^0.
|
|
41
|
+
"@mpgd/adapter-capacitor": "^0.9.2",
|
|
42
|
+
"@mpgd/bridge": "^0.12.3",
|
|
43
|
+
"@mpgd/platform": "^0.22.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@capacitor/core": "8.5.2",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"ttsc": "0.30.4",
|
|
49
49
|
"typescript": "7.0.2",
|
|
50
50
|
"vitest": "^4.0.0",
|
|
51
|
-
"@mpgd/adapter-capacitor": "0.9.
|
|
52
|
-
"@mpgd/bridge": "0.12.
|
|
53
|
-
"@mpgd/game-services": "0.
|
|
54
|
-
"@mpgd/platform": "0.
|
|
51
|
+
"@mpgd/adapter-capacitor": "0.9.2",
|
|
52
|
+
"@mpgd/bridge": "0.12.3",
|
|
53
|
+
"@mpgd/game-services": "0.22.0",
|
|
54
|
+
"@mpgd/platform": "0.22.0"
|
|
55
55
|
},
|
|
56
56
|
"main": "./dist/index.js",
|
|
57
57
|
"types": "./dist/index.d.ts",
|
|
@@ -61,6 +61,6 @@
|
|
|
61
61
|
"scripts": {
|
|
62
62
|
"check": "ttsc --noEmit",
|
|
63
63
|
"lint": "ttsc --noEmit",
|
|
64
|
-
"test": "vitest run && cd ../.. && node tools/run-ttsx.mjs native-plugins/capacitor-play-billing/src/provider.test.ts"
|
|
64
|
+
"test": "vitest run && cd ../.. && node tools/run-ttsx.mjs --project native-plugins/capacitor-play-billing/tsconfig.json native-plugins/capacitor-play-billing/src/provider.test.ts"
|
|
65
65
|
}
|
|
66
66
|
}
|