@mpgd/capacitor-storekit 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 +13 -8
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -111,14 +111,19 @@ default) so the gateway serves the `commerce.v2.*` and v1 `commerce.*`
|
|
|
111
111
|
bridge methods from it and exposes it as `gateway.commerceV2`.
|
|
112
112
|
|
|
113
113
|
Finishing never grants. The v2 SDK finishes any transaction it is given a
|
|
114
|
-
`ledgerEntryId` for: the commerce v2 reconciler
|
|
115
|
-
`
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
114
|
+
`ledgerEntryId` for: the commerce v2 reconciler
|
|
115
|
+
(`createCommerceReconciler` in `@mpgd/game-services`) is the gate, and it
|
|
116
|
+
calls `finishTransaction` only for a journal record in `granted` or
|
|
117
|
+
`finishing` that holds the ledger entry id the backend grant wrote
|
|
118
|
+
(`assertCommerceFinishAllowed`). The v1 `finishGrantedTransaction`
|
|
119
|
+
allow-list guard is not reproduced in the SDK: the journal revision the grant
|
|
120
|
+
wrote is the pairing, and the real control stays server-side, in the verifier
|
|
121
|
+
that checks the JWS before the ledger grant, and in the native plugin never
|
|
122
|
+
granting anything on finish. The v1 recovery helpers
|
|
123
|
+
(`recoverStoreKitPurchases`, `getRecoverableTransactions`,
|
|
124
|
+
`finishGrantedTransaction`) are deprecated in favor of that reconciler (RFC
|
|
125
|
+
C1) and are removed in C4; `src/commerce-reconciler-storekit-smoke.test.ts`
|
|
126
|
+
shows both paths reaching the same outcomes over the fake plugin.
|
|
122
127
|
|
|
123
128
|
The conformance test runs every store vector whose profile the App Store
|
|
124
129
|
supports against a fake plugin, directly and through the gateway bridge path,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpgd/capacitor-storekit",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Opt-in StoreKit 2 one-time purchase collector and commerce v2 provider for mpgd Capacitor games.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,18 +38,18 @@
|
|
|
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",
|
|
47
47
|
"ttsc": "0.30.4",
|
|
48
48
|
"typescript": "7.0.2",
|
|
49
|
-
"@mpgd/
|
|
50
|
-
"@mpgd/
|
|
51
|
-
"@mpgd/
|
|
52
|
-
"@mpgd/
|
|
49
|
+
"@mpgd/adapter-capacitor": "0.9.2",
|
|
50
|
+
"@mpgd/bridge": "0.12.3",
|
|
51
|
+
"@mpgd/platform": "0.22.0",
|
|
52
|
+
"@mpgd/game-services": "0.22.0"
|
|
53
53
|
},
|
|
54
54
|
"main": "./dist/index.js",
|
|
55
55
|
"types": "./dist/index.d.ts",
|
|
@@ -59,6 +59,6 @@
|
|
|
59
59
|
"scripts": {
|
|
60
60
|
"check": "ttsc --noEmit",
|
|
61
61
|
"lint": "ttsc --noEmit",
|
|
62
|
-
"test": "cd ../.. && node tools/run-ttsx.mjs native-plugins/capacitor-storekit/src/provider.test.ts && node tools/run-ttsx.mjs native-plugins/capacitor-storekit/src/store-sdk.test.ts && node tools/run-ttsx.mjs native-plugins/capacitor-storekit/src/commerce-provider.test.ts && node tools/run-ttsx.mjs native-plugins/capacitor-storekit/src/commerce-provider.conformance.test.ts"
|
|
62
|
+
"test": "cd ../.. && node tools/run-ttsx.mjs --project native-plugins/capacitor-storekit/tsconfig.json native-plugins/capacitor-storekit/src/provider.test.ts && node tools/run-ttsx.mjs --project native-plugins/capacitor-storekit/tsconfig.json native-plugins/capacitor-storekit/src/store-sdk.test.ts && node tools/run-ttsx.mjs --project native-plugins/capacitor-storekit/tsconfig.json native-plugins/capacitor-storekit/src/commerce-provider.test.ts && node tools/run-ttsx.mjs --project native-plugins/capacitor-storekit/tsconfig.json native-plugins/capacitor-storekit/src/commerce-provider.conformance.test.ts && node tools/run-ttsx.mjs --project native-plugins/capacitor-storekit/tsconfig.json native-plugins/capacitor-storekit/src/commerce-reconciler-storekit-smoke.test.ts"
|
|
63
63
|
}
|
|
64
64
|
}
|