@mpgd/adapter-capacitor 0.13.0 → 0.14.0
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.
|
@@ -286,7 +286,10 @@ export function createStoreCommerceProvider(input) {
|
|
|
286
286
|
const includePending = request.includePending ?? false;
|
|
287
287
|
let reported;
|
|
288
288
|
try {
|
|
289
|
-
reported = await sdk.getAvailablePurchases({
|
|
289
|
+
reported = await sdk.getAvailablePurchases({
|
|
290
|
+
includePending,
|
|
291
|
+
...(request.restore === true ? { restore: true } : {}),
|
|
292
|
+
});
|
|
290
293
|
}
|
|
291
294
|
catch (error) {
|
|
292
295
|
throw normalize(error);
|
package/dist/store-sdk.d.ts
CHANGED
|
@@ -67,6 +67,13 @@ export type StoreSdkRequestPurchaseResult = {
|
|
|
67
67
|
};
|
|
68
68
|
export interface StoreSdkGetAvailablePurchasesInput {
|
|
69
69
|
readonly includePending?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* The player's explicit Restore Purchases read
|
|
72
|
+
* (`GetAvailablePurchasesInput.restore`): also list owned non-consumables
|
|
73
|
+
* the recovery list hides (Play: already acknowledged; StoreKit: bound to
|
|
74
|
+
* another or no app account token). Consumables stay unfinished-only.
|
|
75
|
+
*/
|
|
76
|
+
readonly restore?: boolean;
|
|
70
77
|
}
|
|
71
78
|
export interface StoreSdkPurchase {
|
|
72
79
|
readonly sku: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpgd/adapter-capacitor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Capacitor platform adapter for mpgd Android and iOS shells.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@capacitor/app": "8.1.1",
|
|
46
|
-
"@mpgd/bridge": "0.16.
|
|
47
|
-
"@mpgd/capacitor-game-services": "0.9.
|
|
48
|
-
"@mpgd/game-services": "0.
|
|
49
|
-
"@mpgd/
|
|
50
|
-
"@mpgd/
|
|
46
|
+
"@mpgd/bridge": "0.16.2",
|
|
47
|
+
"@mpgd/capacitor-game-services": "0.9.1",
|
|
48
|
+
"@mpgd/game-services": "0.30.0",
|
|
49
|
+
"@mpgd/target-config": "0.23.10",
|
|
50
|
+
"@mpgd/platform": "0.30.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@capacitor-community/admob": "^8.1.0",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"ttsc": "0.32.1",
|
|
75
75
|
"typescript": "7.0.2",
|
|
76
76
|
"vitest": "^4.0.0",
|
|
77
|
-
"@mpgd/game-runtime": "0.8.
|
|
77
|
+
"@mpgd/game-runtime": "0.8.4"
|
|
78
78
|
},
|
|
79
79
|
"main": "./dist/index.js",
|
|
80
80
|
"types": "./dist/index.d.ts",
|