@purchasely/cordova-plugin-purchasely 5.7.2 → 6.0.0-rc.1

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 (33) hide show
  1. package/README.md +12 -8
  2. package/__tests__/Purchasely.test.js +307 -92
  3. package/example/config.xml +0 -10
  4. package/example/e2e/README.md +44 -0
  5. package/example/e2e/helpers/driver.js +70 -0
  6. package/example/e2e/package.json +19 -0
  7. package/example/e2e/specs/bridge.e2e.js +51 -0
  8. package/example/e2e/specs/dismiss.e2e.js +37 -0
  9. package/example/e2e/tools/ci_run_e2e.sh +49 -0
  10. package/example/e2e/tools/ci_run_e2e_ios.sh +46 -0
  11. package/example/e2e/wdio.android.conf.js +21 -0
  12. package/example/e2e/wdio.ios.conf.js +19 -0
  13. package/example/e2e/wdio.shared.conf.js +28 -0
  14. package/example/package-lock.json +66 -209
  15. package/example/package.json +9 -5
  16. package/example/www/index.html +1 -7
  17. package/example/www/js/index.js +113 -92
  18. package/package.json +1 -1
  19. package/plugin.xml +3 -22
  20. package/src/android/PurchaselyPlugin.kt +529 -440
  21. package/src/ios/CDVPurchasely+Events.h +1 -1
  22. package/src/ios/CDVPurchasely+UserAttributes.h +1 -1
  23. package/src/ios/CDVPurchasely+UserAttributes.m +2 -0
  24. package/src/ios/CDVPurchasely.h +21 -16
  25. package/src/ios/CDVPurchasely.m +493 -257
  26. package/www/Purchasely.js +208 -40
  27. package/src/android/PLYProductActivity.kt +0 -168
  28. package/src/android/PLYSubscriptionsActivity.java +0 -37
  29. package/src/android/activity_ply_product_activity.xml +0 -6
  30. package/src/android/activity_ply_subscriptions_activity.xml +0 -6
  31. package/src/android/theme_purchasely_fullscreen.xml +0 -6
  32. package/src/android/theme_purchasely_fullscreen_v23.xml +0 -6
  33. package/src/android/theme_purchasely_fullscreen_v23_light_status_bar.xml +0 -7
@@ -11,15 +11,15 @@
11
11
  "devDependencies": {
12
12
  "@purchasely/cordova-plugin-purchasely": "file:..",
13
13
  "@purchasely/cordova-plugin-purchasely-google": "file:../../purchasely-google",
14
- "cordova-android": "^14.0.1",
15
- "cordova-ios": "^8.0.0",
14
+ "cordova-android": "^15.0.0",
15
+ "cordova-ios": "^8.1.0",
16
16
  "cordova-plugin-purchasely": "file:..",
17
17
  "cordova-plugin-purchasely-google": "file:../../purchasely-google"
18
18
  }
19
19
  },
20
20
  "..": {
21
21
  "name": "@purchasely/cordova-plugin-purchasely",
22
- "version": "5.6.2",
22
+ "version": "6.0.0-rc.1",
23
23
  "dev": true,
24
24
  "license": "ISC",
25
25
  "devDependencies": {
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "../../purchasely-google": {
38
38
  "name": "@purchasely/cordova-plugin-purchasely-google",
39
- "version": "5.6.2",
39
+ "version": "6.0.0-rc.1",
40
40
  "dev": true,
41
41
  "license": "ISC"
42
42
  },
@@ -91,27 +91,29 @@
91
91
  "link": true
92
92
  },
93
93
  "node_modules/@xmldom/xmldom": {
94
- "version": "0.8.11",
94
+ "version": "0.9.10",
95
+ "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.9.10.tgz",
96
+ "integrity": "sha512-A9gOqLdi6cV4ibazAjcQufGj0B1y/vDqYrcuP6d/6x8P27gRS8643Dj9o1dEKtB6O7fwxb2FgBmJS2mX7gpvdw==",
95
97
  "dev": true,
96
98
  "license": "MIT",
97
99
  "engines": {
98
- "node": ">=10.0.0"
100
+ "node": ">=14.6"
99
101
  }
100
102
  },
101
103
  "node_modules/abbrev": {
102
- "version": "3.0.1",
103
- "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-3.0.1.tgz",
104
- "integrity": "sha512-AO2ac6pjRB3SJmGJo+v5/aK6Omggp6fsLrs6wN9bd35ulu4cCwaAU9+7ZhXjeqHVkaHThLuzH0nZr0YpCDhygg==",
104
+ "version": "4.0.0",
105
+ "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-4.0.0.tgz",
106
+ "integrity": "sha512-a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA==",
105
107
  "dev": true,
106
108
  "license": "ISC",
107
109
  "engines": {
108
- "node": "^18.17.0 || >=20.5.0"
110
+ "node": "^20.17.0 || >=22.9.0"
109
111
  }
110
112
  },
111
113
  "node_modules/android-versions": {
112
- "version": "2.1.0",
113
- "resolved": "https://registry.npmjs.org/android-versions/-/android-versions-2.1.0.tgz",
114
- "integrity": "sha512-oCBvVs2uaL8ohQtesGs78/X7QvFDLbKgTosBRiOIBCss1a/yiakQm/ADuoG2k/AUaI0FfrsFeMl/a+GtEtjEeA==",
114
+ "version": "2.1.2",
115
+ "resolved": "https://registry.npmjs.org/android-versions/-/android-versions-2.1.2.tgz",
116
+ "integrity": "sha512-JmyCaE2AWe/1ENDv70Bx1hBiVvkUV/JJYnAH6vFGENXDb2DdmCDMO9icoCvGR9TAsRJ/AuszEcIpyHM6qim3SA==",
115
117
  "dev": true,
116
118
  "license": "MIT",
117
119
  "dependencies": {
@@ -191,57 +193,52 @@
191
193
  }
192
194
  },
193
195
  "node_modules/cordova-android": {
194
- "version": "14.0.1",
195
- "resolved": "https://registry.npmjs.org/cordova-android/-/cordova-android-14.0.1.tgz",
196
- "integrity": "sha512-HMBMdGu/JlSQtmBuDEpKWf/pE75SpF3FksxZ+mqYuL3qSIN8lN/QsNurwYaPAP7zWXN2DNpvwlpOJItS5VhdLg==",
196
+ "version": "15.0.0",
197
+ "resolved": "https://registry.npmjs.org/cordova-android/-/cordova-android-15.0.0.tgz",
198
+ "integrity": "sha512-EpFSKUtBLJ7bTpuVD7NeC6toAooi5PI6VIR2jd8Ut5PJu7HSR5tPRwS87Q1DS03RSyDTlroB64JPUWC0pmAhnw==",
197
199
  "dev": true,
198
200
  "license": "Apache-2.0",
199
201
  "dependencies": {
200
- "android-versions": "^2.1.0",
201
- "cordova-common": "^5.0.1",
202
- "dedent": "^1.5.3",
202
+ "android-versions": "^2.1.1",
203
+ "cordova-common": "^6.0.0",
204
+ "dedent": "^1.7.1",
203
205
  "execa": "^5.1.1",
204
206
  "fast-glob": "^3.3.3",
205
207
  "is-path-inside": "^3.0.3",
206
- "nopt": "^8.1.0",
208
+ "nopt": "^9.0.0",
207
209
  "properties-parser": "^0.6.0",
208
- "semver": "^7.7.1",
209
- "string-argv": "^0.3.1",
210
+ "semver": "^7.7.4",
211
+ "string-argv": "^0.3.2",
210
212
  "untildify": "^4.0.0",
211
- "which": "^5.0.0"
213
+ "which": "^6.0.1"
212
214
  },
213
215
  "engines": {
214
- "node": ">=20.5.0"
216
+ "node": ">=20.17.0 || >=22.9.0"
215
217
  }
216
218
  },
217
219
  "node_modules/cordova-common": {
218
- "version": "5.0.1",
219
- "resolved": "https://registry.npmjs.org/cordova-common/-/cordova-common-5.0.1.tgz",
220
- "integrity": "sha512-OA2NQ6wvhNz4GytPYwTdlA9xfG7Yf7ufkj4u97m3rUfoL/AECwwj0GVT2CYpk/0Fk6HyuHA3QYCxfDPYsKzI1A==",
220
+ "version": "6.0.0",
221
+ "resolved": "https://registry.npmjs.org/cordova-common/-/cordova-common-6.0.0.tgz",
222
+ "integrity": "sha512-16WPC1DuxVdshV3RoQUXqhcJVdhxWGwiFysA4TkYuboqoev6mgt0JuIJFxmQbzR/DuyuONaVe0L0O0Hf1C08Mg==",
221
223
  "dev": true,
222
224
  "license": "Apache-2.0",
223
225
  "dependencies": {
224
226
  "@netflix/nerror": "^1.1.3",
225
227
  "ansi": "^0.3.1",
226
228
  "bplist-parser": "^0.3.2",
227
- "cross-spawn": "^7.0.6",
228
229
  "elementtree": "^0.1.7",
229
230
  "endent": "^2.1.0",
230
231
  "fast-glob": "^3.3.3",
231
- "lodash.zip": "^4.2.0",
232
- "plist": "^3.1.0",
233
- "q": "^1.5.1",
234
- "read-chunk": "^3.2.0",
235
- "strip-bom": "^4.0.0"
232
+ "plist": "^3.1.0"
236
233
  },
237
234
  "engines": {
238
- "node": ">=16.0.0"
235
+ "node": ">=20.9.0"
239
236
  }
240
237
  },
241
238
  "node_modules/cordova-ios": {
242
- "version": "8.0.0",
243
- "resolved": "https://registry.npmjs.org/cordova-ios/-/cordova-ios-8.0.0.tgz",
244
- "integrity": "sha512-QsynOV8rnRIhDC3qwM1KdRr1gy5RaqzVCzdOaB+DSBPeR5wVEUGpyyJO0FzlCACzY5X25iDc5O3kbn/F06dJ5Q==",
239
+ "version": "8.1.0",
240
+ "resolved": "https://registry.npmjs.org/cordova-ios/-/cordova-ios-8.1.0.tgz",
241
+ "integrity": "sha512-IgVtJIQJBJi+QqqrGjx/moY+M9DqO+RQLeIpHGsZD1Xy+mGflDrp7lunmFYqVchV31b8O/aqE4y4AsDUZip04w==",
245
242
  "dev": true,
246
243
  "license": "Apache-2.0",
247
244
  "dependencies": {
@@ -260,67 +257,6 @@
260
257
  "node": "^20.17.0 || >=22.9.0"
261
258
  }
262
259
  },
263
- "node_modules/cordova-ios/node_modules/abbrev": {
264
- "version": "4.0.0",
265
- "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-4.0.0.tgz",
266
- "integrity": "sha512-a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA==",
267
- "dev": true,
268
- "license": "ISC",
269
- "engines": {
270
- "node": "^20.17.0 || >=22.9.0"
271
- }
272
- },
273
- "node_modules/cordova-ios/node_modules/cordova-common": {
274
- "version": "6.0.0",
275
- "resolved": "https://registry.npmjs.org/cordova-common/-/cordova-common-6.0.0.tgz",
276
- "integrity": "sha512-16WPC1DuxVdshV3RoQUXqhcJVdhxWGwiFysA4TkYuboqoev6mgt0JuIJFxmQbzR/DuyuONaVe0L0O0Hf1C08Mg==",
277
- "dev": true,
278
- "license": "Apache-2.0",
279
- "dependencies": {
280
- "@netflix/nerror": "^1.1.3",
281
- "ansi": "^0.3.1",
282
- "bplist-parser": "^0.3.2",
283
- "elementtree": "^0.1.7",
284
- "endent": "^2.1.0",
285
- "fast-glob": "^3.3.3",
286
- "plist": "^3.1.0"
287
- },
288
- "engines": {
289
- "node": ">=20.9.0"
290
- }
291
- },
292
- "node_modules/cordova-ios/node_modules/nopt": {
293
- "version": "9.0.0",
294
- "resolved": "https://registry.npmjs.org/nopt/-/nopt-9.0.0.tgz",
295
- "integrity": "sha512-Zhq3a+yFKrYwSBluL4H9XP3m3y5uvQkB/09CwDruCiRmR/UJYnn9W4R48ry0uGC70aeTPKLynBtscP9efFFcPw==",
296
- "dev": true,
297
- "license": "ISC",
298
- "dependencies": {
299
- "abbrev": "^4.0.0"
300
- },
301
- "bin": {
302
- "nopt": "bin/nopt.js"
303
- },
304
- "engines": {
305
- "node": "^20.17.0 || >=22.9.0"
306
- }
307
- },
308
- "node_modules/cordova-ios/node_modules/which": {
309
- "version": "6.0.0",
310
- "resolved": "https://registry.npmjs.org/which/-/which-6.0.0.tgz",
311
- "integrity": "sha512-f+gEpIKMR9faW/JgAgPK1D7mekkFoqbmiwvNzuhsHetni20QSgzg9Vhn0g2JSJkkfehQnqdUAx7/e15qS1lPxg==",
312
- "dev": true,
313
- "license": "ISC",
314
- "dependencies": {
315
- "isexe": "^3.1.1"
316
- },
317
- "bin": {
318
- "node-which": "bin/which.js"
319
- },
320
- "engines": {
321
- "node": "^20.17.0 || >=22.9.0"
322
- }
323
- },
324
260
  "node_modules/cordova-plugin-purchasely": {
325
261
  "resolved": "..",
326
262
  "link": true
@@ -362,9 +298,9 @@
362
298
  }
363
299
  },
364
300
  "node_modules/dedent": {
365
- "version": "1.7.0",
366
- "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.7.0.tgz",
367
- "integrity": "sha512-HGFtf8yhuhGhqO07SV79tRp+br4MnbdjeVxotpn1QBl30pcLLCQjX5b2295ll0fv8RKDKsmWYrl05usHM9CewQ==",
301
+ "version": "1.7.2",
302
+ "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.7.2.tgz",
303
+ "integrity": "sha512-WzMx3mW98SN+zn3hgemf4OzdmyNhhhKz5Ay0pUfQiMQ3e1g+xmTJWp/pKdwKVXhdSkAEGIIzqeuWrL3mV/AXbA==",
368
304
  "dev": true,
369
305
  "license": "MIT",
370
306
  "peerDependencies": {
@@ -550,24 +486,19 @@
550
486
  }
551
487
  },
552
488
  "node_modules/isexe": {
553
- "version": "3.1.1",
489
+ "version": "4.0.0",
490
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-4.0.0.tgz",
491
+ "integrity": "sha512-FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw==",
554
492
  "dev": true,
555
- "license": "ISC",
493
+ "license": "BlueOak-1.0.0",
556
494
  "engines": {
557
- "node": ">=16"
495
+ "node": ">=20"
558
496
  }
559
497
  },
560
498
  "node_modules/lodash": {
561
- "version": "4.17.23",
562
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.23.tgz",
563
- "integrity": "sha512-LgVTMpQtIopCi79SJeDiP0TfWi5CNEc/L/aRdTh3yIvmZXTnheWpKjSZhnvMl8iXbC1tFg9gdHHDMLoV7CnG+w==",
564
- "dev": true,
565
- "license": "MIT"
566
- },
567
- "node_modules/lodash.zip": {
568
- "version": "4.2.0",
569
- "resolved": "https://registry.npmjs.org/lodash.zip/-/lodash.zip-4.2.0.tgz",
570
- "integrity": "sha512-C7IOaBBK/0gMORRBd8OETNx3kmOkgIWIPvyDpZSCTwUrpYmgZwJkjZeOD8ww4xbOUOs4/attY+pciKvadNfFbg==",
499
+ "version": "4.18.1",
500
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz",
501
+ "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==",
571
502
  "dev": true,
572
503
  "license": "MIT"
573
504
  },
@@ -605,19 +536,19 @@
605
536
  }
606
537
  },
607
538
  "node_modules/nopt": {
608
- "version": "8.1.0",
609
- "resolved": "https://registry.npmjs.org/nopt/-/nopt-8.1.0.tgz",
610
- "integrity": "sha512-ieGu42u/Qsa4TFktmaKEwM6MQH0pOWnaB3htzh0JRtx84+Mebc0cbZYN5bC+6WTZ4+77xrL9Pn5m7CV6VIkV7A==",
539
+ "version": "9.0.0",
540
+ "resolved": "https://registry.npmjs.org/nopt/-/nopt-9.0.0.tgz",
541
+ "integrity": "sha512-Zhq3a+yFKrYwSBluL4H9XP3m3y5uvQkB/09CwDruCiRmR/UJYnn9W4R48ry0uGC70aeTPKLynBtscP9efFFcPw==",
611
542
  "dev": true,
612
543
  "license": "ISC",
613
544
  "dependencies": {
614
- "abbrev": "^3.0.0"
545
+ "abbrev": "^4.0.0"
615
546
  },
616
547
  "bin": {
617
548
  "nopt": "bin/nopt.js"
618
549
  },
619
550
  "engines": {
620
- "node": "^18.17.0 || >=20.5.0"
551
+ "node": "^20.17.0 || >=22.9.0"
621
552
  }
622
553
  },
623
554
  "node_modules/npm-run-path": {
@@ -650,26 +581,6 @@
650
581
  "url": "https://github.com/sponsors/sindresorhus"
651
582
  }
652
583
  },
653
- "node_modules/p-finally": {
654
- "version": "1.0.0",
655
- "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz",
656
- "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==",
657
- "dev": true,
658
- "license": "MIT",
659
- "engines": {
660
- "node": ">=4"
661
- }
662
- },
663
- "node_modules/p-try": {
664
- "version": "2.2.0",
665
- "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
666
- "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
667
- "dev": true,
668
- "license": "MIT",
669
- "engines": {
670
- "node": ">=6"
671
- }
672
- },
673
584
  "node_modules/path-key": {
674
585
  "version": "3.1.1",
675
586
  "dev": true,
@@ -679,7 +590,9 @@
679
590
  }
680
591
  },
681
592
  "node_modules/picomatch": {
682
- "version": "2.3.1",
593
+ "version": "2.3.2",
594
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",
595
+ "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",
683
596
  "dev": true,
684
597
  "license": "MIT",
685
598
  "engines": {
@@ -689,22 +602,14 @@
689
602
  "url": "https://github.com/sponsors/jonschlinkert"
690
603
  }
691
604
  },
692
- "node_modules/pify": {
693
- "version": "4.0.1",
694
- "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz",
695
- "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==",
696
- "dev": true,
697
- "license": "MIT",
698
- "engines": {
699
- "node": ">=6"
700
- }
701
- },
702
605
  "node_modules/plist": {
703
- "version": "3.1.0",
606
+ "version": "3.1.1",
607
+ "resolved": "https://registry.npmjs.org/plist/-/plist-3.1.1.tgz",
608
+ "integrity": "sha512-ZIfcLJC+7E7FBFnDxm9MPmt7D+DidyQ26lewieO75AdhA2ayMtsJSES0iWzqJQbcVRSrTufQoy0DR94xHue0oA==",
704
609
  "dev": true,
705
610
  "license": "MIT",
706
611
  "dependencies": {
707
- "@xmldom/xmldom": "^0.8.8",
612
+ "@xmldom/xmldom": "^0.9.10",
708
613
  "base64-js": "^1.5.1",
709
614
  "xmlbuilder": "^15.1.1"
710
615
  },
@@ -722,18 +627,6 @@
722
627
  "node": ">= 0.3.1"
723
628
  }
724
629
  },
725
- "node_modules/q": {
726
- "version": "1.5.1",
727
- "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz",
728
- "integrity": "sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==",
729
- "deprecated": "You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other.\n\n(For a CapTP with native promises, see @endo/eventual-send and @endo/captp)",
730
- "dev": true,
731
- "license": "MIT",
732
- "engines": {
733
- "node": ">=0.6.0",
734
- "teleport": ">=0.2.0"
735
- }
736
- },
737
630
  "node_modules/queue-microtask": {
738
631
  "version": "1.2.3",
739
632
  "dev": true,
@@ -753,20 +646,6 @@
753
646
  ],
754
647
  "license": "MIT"
755
648
  },
756
- "node_modules/read-chunk": {
757
- "version": "3.2.0",
758
- "resolved": "https://registry.npmjs.org/read-chunk/-/read-chunk-3.2.0.tgz",
759
- "integrity": "sha512-CEjy9LCzhmD7nUpJ1oVOE6s/hBkejlcJEgLQHVnQznOSilOPb+kpKktlLfFDK3/WP43+F80xkUTM2VOkYoSYvQ==",
760
- "dev": true,
761
- "license": "MIT",
762
- "dependencies": {
763
- "pify": "^4.0.1",
764
- "with-open-file": "^0.1.6"
765
- },
766
- "engines": {
767
- "node": ">=6"
768
- }
769
- },
770
649
  "node_modules/reusify": {
771
650
  "version": "1.1.0",
772
651
  "dev": true,
@@ -804,7 +683,9 @@
804
683
  "license": "ISC"
805
684
  },
806
685
  "node_modules/semver": {
807
- "version": "7.7.3",
686
+ "version": "7.8.5",
687
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
688
+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
808
689
  "dev": true,
809
690
  "license": "ISC",
810
691
  "bin": {
@@ -893,16 +774,6 @@
893
774
  "node": ">=0.6.19"
894
775
  }
895
776
  },
896
- "node_modules/strip-bom": {
897
- "version": "4.0.0",
898
- "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz",
899
- "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==",
900
- "dev": true,
901
- "license": "MIT",
902
- "engines": {
903
- "node": ">=8"
904
- }
905
- },
906
777
  "node_modules/strip-final-newline": {
907
778
  "version": "2.0.0",
908
779
  "dev": true,
@@ -936,6 +807,7 @@
936
807
  "version": "7.0.3",
937
808
  "resolved": "https://registry.npmjs.org/uuid/-/uuid-7.0.3.tgz",
938
809
  "integrity": "sha512-DPSke0pXhTZgoF/d+WSt2QaKMCFSfx7QegxEWT+JOuHF5aWrKEn0G+ztjuJg/gG8/ItK+rbPCD/yNv8yyih6Cg==",
810
+ "deprecated": "uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).",
939
811
  "dev": true,
940
812
  "license": "MIT",
941
813
  "bin": {
@@ -943,34 +815,19 @@
943
815
  }
944
816
  },
945
817
  "node_modules/which": {
946
- "version": "5.0.0",
947
- "resolved": "https://registry.npmjs.org/which/-/which-5.0.0.tgz",
948
- "integrity": "sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==",
818
+ "version": "6.0.1",
819
+ "resolved": "https://registry.npmjs.org/which/-/which-6.0.1.tgz",
820
+ "integrity": "sha512-oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg==",
949
821
  "dev": true,
950
822
  "license": "ISC",
951
823
  "dependencies": {
952
- "isexe": "^3.1.1"
824
+ "isexe": "^4.0.0"
953
825
  },
954
826
  "bin": {
955
827
  "node-which": "bin/which.js"
956
828
  },
957
829
  "engines": {
958
- "node": "^18.17.0 || >=20.5.0"
959
- }
960
- },
961
- "node_modules/with-open-file": {
962
- "version": "0.1.7",
963
- "resolved": "https://registry.npmjs.org/with-open-file/-/with-open-file-0.1.7.tgz",
964
- "integrity": "sha512-ecJS2/oHtESJ1t3ZfMI3B7KIDKyfN0O16miWxdn30zdh66Yd3LsRFebXZXq6GU4xfxLf6nVxp9kIqElb5fqczA==",
965
- "dev": true,
966
- "license": "MIT",
967
- "dependencies": {
968
- "p-finally": "^1.0.0",
969
- "p-try": "^2.1.0",
970
- "pify": "^4.0.1"
971
- },
972
- "engines": {
973
- "node": ">=6"
830
+ "node": "^20.17.0 || >=22.9.0"
974
831
  }
975
832
  },
976
833
  "node_modules/xcode": {
@@ -15,18 +15,22 @@
15
15
  "devDependencies": {
16
16
  "@purchasely/cordova-plugin-purchasely": "file:..",
17
17
  "@purchasely/cordova-plugin-purchasely-google": "file:../../purchasely-google",
18
- "cordova-android": "^14.0.1",
19
- "cordova-ios": "^8.0.0",
18
+ "cordova-android": "^15.0.0",
19
+ "cordova-ios": "^8.1.0",
20
20
  "cordova-plugin-purchasely": "file:..",
21
21
  "cordova-plugin-purchasely-google": "file:../../purchasely-google"
22
22
  },
23
+ "overrides": {
24
+ "@xmldom/xmldom": "^0.9.8",
25
+ "plist": "^3.1.1"
26
+ },
23
27
  "cordova": {
24
28
  "plugins": {
25
29
  "@purchasely/cordova-plugin-purchasely-google": {}
26
30
  },
27
31
  "platforms": [
28
- "android",
29
- "ios"
32
+ "ios",
33
+ "android"
30
34
  ]
31
35
  }
32
- }
36
+ }
@@ -54,17 +54,11 @@
54
54
  <button id="processToPayment">Continue payment</button>
55
55
  </div>
56
56
  <div style="margin-top: 20px;">
57
- <button id="showPresentation">Show hidden presentation</button>
58
- </div>
59
- <div style="margin-top: 20px;">
60
- <button id="hidePresentation">Hide presentation</button>
57
+ <button id="backPresentation">Back presentation</button>
61
58
  </div>
62
59
  <div style="margin-top: 20px;">
63
60
  <button id="closePresentation">Close presentation</button>
64
61
  </div>
65
- <div style="margin-top: 20px;">
66
- <button id="presentSubscriptions">Open Subscriptions</button>
67
- </div>
68
62
  <div style="margin-top: 20px;">
69
63
  <button id="purchaseWithPlanVendorId">Purchase</button>
70
64
  </div>