@purchasely/cordova-plugin-purchasely 5.7.3 → 6.0.0-rc.3

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 +1 -11
  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 +59 -205
  15. package/example/package.json +7 -6
  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 +4 -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 +497 -261
  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.7.3",
22
+ "version": "6.0.0-rc.3",
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.7.3",
39
+ "version": "6.0.0-rc.3",
40
40
  "dev": true,
41
41
  "license": "ISC"
42
42
  },
@@ -101,19 +101,19 @@
101
101
  }
102
102
  },
103
103
  "node_modules/abbrev": {
104
- "version": "3.0.1",
105
- "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-3.0.1.tgz",
106
- "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==",
107
107
  "dev": true,
108
108
  "license": "ISC",
109
109
  "engines": {
110
- "node": "^18.17.0 || >=20.5.0"
110
+ "node": "^20.17.0 || >=22.9.0"
111
111
  }
112
112
  },
113
113
  "node_modules/android-versions": {
114
- "version": "2.1.0",
115
- "resolved": "https://registry.npmjs.org/android-versions/-/android-versions-2.1.0.tgz",
116
- "integrity": "sha512-oCBvVs2uaL8ohQtesGs78/X7QvFDLbKgTosBRiOIBCss1a/yiakQm/ADuoG2k/AUaI0FfrsFeMl/a+GtEtjEeA==",
114
+ "version": "2.2.0",
115
+ "resolved": "https://registry.npmjs.org/android-versions/-/android-versions-2.2.0.tgz",
116
+ "integrity": "sha512-lrad0HHmy9406sSmBHYIetx4n3WMnVVD+HMv7C+YJrByLFGPYWvlM1WcYrYL+e2s1GErvRF85nWsRY7RpwIGLw==",
117
117
  "dev": true,
118
118
  "license": "MIT",
119
119
  "dependencies": {
@@ -193,57 +193,52 @@
193
193
  }
194
194
  },
195
195
  "node_modules/cordova-android": {
196
- "version": "14.0.1",
197
- "resolved": "https://registry.npmjs.org/cordova-android/-/cordova-android-14.0.1.tgz",
198
- "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==",
199
199
  "dev": true,
200
200
  "license": "Apache-2.0",
201
201
  "dependencies": {
202
- "android-versions": "^2.1.0",
203
- "cordova-common": "^5.0.1",
204
- "dedent": "^1.5.3",
202
+ "android-versions": "^2.1.1",
203
+ "cordova-common": "^6.0.0",
204
+ "dedent": "^1.7.1",
205
205
  "execa": "^5.1.1",
206
206
  "fast-glob": "^3.3.3",
207
207
  "is-path-inside": "^3.0.3",
208
- "nopt": "^8.1.0",
208
+ "nopt": "^9.0.0",
209
209
  "properties-parser": "^0.6.0",
210
- "semver": "^7.7.1",
211
- "string-argv": "^0.3.1",
210
+ "semver": "^7.7.4",
211
+ "string-argv": "^0.3.2",
212
212
  "untildify": "^4.0.0",
213
- "which": "^5.0.0"
213
+ "which": "^6.0.1"
214
214
  },
215
215
  "engines": {
216
- "node": ">=20.5.0"
216
+ "node": ">=20.17.0 || >=22.9.0"
217
217
  }
218
218
  },
219
219
  "node_modules/cordova-common": {
220
- "version": "5.0.1",
221
- "resolved": "https://registry.npmjs.org/cordova-common/-/cordova-common-5.0.1.tgz",
222
- "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==",
223
223
  "dev": true,
224
224
  "license": "Apache-2.0",
225
225
  "dependencies": {
226
226
  "@netflix/nerror": "^1.1.3",
227
227
  "ansi": "^0.3.1",
228
228
  "bplist-parser": "^0.3.2",
229
- "cross-spawn": "^7.0.6",
230
229
  "elementtree": "^0.1.7",
231
230
  "endent": "^2.1.0",
232
231
  "fast-glob": "^3.3.3",
233
- "lodash.zip": "^4.2.0",
234
- "plist": "^3.1.0",
235
- "q": "^1.5.1",
236
- "read-chunk": "^3.2.0",
237
- "strip-bom": "^4.0.0"
232
+ "plist": "^3.1.0"
238
233
  },
239
234
  "engines": {
240
- "node": ">=16.0.0"
235
+ "node": ">=20.9.0"
241
236
  }
242
237
  },
243
238
  "node_modules/cordova-ios": {
244
- "version": "8.0.0",
245
- "resolved": "https://registry.npmjs.org/cordova-ios/-/cordova-ios-8.0.0.tgz",
246
- "integrity": "sha512-QsynOV8rnRIhDC3qwM1KdRr1gy5RaqzVCzdOaB+DSBPeR5wVEUGpyyJO0FzlCACzY5X25iDc5O3kbn/F06dJ5Q==",
239
+ "version": "8.1.1",
240
+ "resolved": "https://registry.npmjs.org/cordova-ios/-/cordova-ios-8.1.1.tgz",
241
+ "integrity": "sha512-fiowa8HeuVd45ZI2fb2az1qDAqlm3H9ruVcXBDUJ3FneMoMmwKKrsrg2tc5L4C8z2ZTZ3d7+NDl/XqJ2M9Ydyw==",
247
242
  "dev": true,
248
243
  "license": "Apache-2.0",
249
244
  "dependencies": {
@@ -262,67 +257,6 @@
262
257
  "node": "^20.17.0 || >=22.9.0"
263
258
  }
264
259
  },
265
- "node_modules/cordova-ios/node_modules/abbrev": {
266
- "version": "4.0.0",
267
- "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-4.0.0.tgz",
268
- "integrity": "sha512-a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA==",
269
- "dev": true,
270
- "license": "ISC",
271
- "engines": {
272
- "node": "^20.17.0 || >=22.9.0"
273
- }
274
- },
275
- "node_modules/cordova-ios/node_modules/cordova-common": {
276
- "version": "6.0.0",
277
- "resolved": "https://registry.npmjs.org/cordova-common/-/cordova-common-6.0.0.tgz",
278
- "integrity": "sha512-16WPC1DuxVdshV3RoQUXqhcJVdhxWGwiFysA4TkYuboqoev6mgt0JuIJFxmQbzR/DuyuONaVe0L0O0Hf1C08Mg==",
279
- "dev": true,
280
- "license": "Apache-2.0",
281
- "dependencies": {
282
- "@netflix/nerror": "^1.1.3",
283
- "ansi": "^0.3.1",
284
- "bplist-parser": "^0.3.2",
285
- "elementtree": "^0.1.7",
286
- "endent": "^2.1.0",
287
- "fast-glob": "^3.3.3",
288
- "plist": "^3.1.0"
289
- },
290
- "engines": {
291
- "node": ">=20.9.0"
292
- }
293
- },
294
- "node_modules/cordova-ios/node_modules/nopt": {
295
- "version": "9.0.0",
296
- "resolved": "https://registry.npmjs.org/nopt/-/nopt-9.0.0.tgz",
297
- "integrity": "sha512-Zhq3a+yFKrYwSBluL4H9XP3m3y5uvQkB/09CwDruCiRmR/UJYnn9W4R48ry0uGC70aeTPKLynBtscP9efFFcPw==",
298
- "dev": true,
299
- "license": "ISC",
300
- "dependencies": {
301
- "abbrev": "^4.0.0"
302
- },
303
- "bin": {
304
- "nopt": "bin/nopt.js"
305
- },
306
- "engines": {
307
- "node": "^20.17.0 || >=22.9.0"
308
- }
309
- },
310
- "node_modules/cordova-ios/node_modules/which": {
311
- "version": "6.0.0",
312
- "resolved": "https://registry.npmjs.org/which/-/which-6.0.0.tgz",
313
- "integrity": "sha512-f+gEpIKMR9faW/JgAgPK1D7mekkFoqbmiwvNzuhsHetni20QSgzg9Vhn0g2JSJkkfehQnqdUAx7/e15qS1lPxg==",
314
- "dev": true,
315
- "license": "ISC",
316
- "dependencies": {
317
- "isexe": "^3.1.1"
318
- },
319
- "bin": {
320
- "node-which": "bin/which.js"
321
- },
322
- "engines": {
323
- "node": "^20.17.0 || >=22.9.0"
324
- }
325
- },
326
260
  "node_modules/cordova-plugin-purchasely": {
327
261
  "resolved": "..",
328
262
  "link": true
@@ -364,9 +298,9 @@
364
298
  }
365
299
  },
366
300
  "node_modules/dedent": {
367
- "version": "1.7.0",
368
- "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.7.0.tgz",
369
- "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==",
370
304
  "dev": true,
371
305
  "license": "MIT",
372
306
  "peerDependencies": {
@@ -552,11 +486,13 @@
552
486
  }
553
487
  },
554
488
  "node_modules/isexe": {
555
- "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==",
556
492
  "dev": true,
557
- "license": "ISC",
493
+ "license": "BlueOak-1.0.0",
558
494
  "engines": {
559
- "node": ">=16"
495
+ "node": ">=20"
560
496
  }
561
497
  },
562
498
  "node_modules/lodash": {
@@ -566,13 +502,6 @@
566
502
  "dev": true,
567
503
  "license": "MIT"
568
504
  },
569
- "node_modules/lodash.zip": {
570
- "version": "4.2.0",
571
- "resolved": "https://registry.npmjs.org/lodash.zip/-/lodash.zip-4.2.0.tgz",
572
- "integrity": "sha512-C7IOaBBK/0gMORRBd8OETNx3kmOkgIWIPvyDpZSCTwUrpYmgZwJkjZeOD8ww4xbOUOs4/attY+pciKvadNfFbg==",
573
- "dev": true,
574
- "license": "MIT"
575
- },
576
505
  "node_modules/merge-stream": {
577
506
  "version": "2.0.0",
578
507
  "dev": true,
@@ -607,19 +536,19 @@
607
536
  }
608
537
  },
609
538
  "node_modules/nopt": {
610
- "version": "8.1.0",
611
- "resolved": "https://registry.npmjs.org/nopt/-/nopt-8.1.0.tgz",
612
- "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==",
613
542
  "dev": true,
614
543
  "license": "ISC",
615
544
  "dependencies": {
616
- "abbrev": "^3.0.0"
545
+ "abbrev": "^4.0.0"
617
546
  },
618
547
  "bin": {
619
548
  "nopt": "bin/nopt.js"
620
549
  },
621
550
  "engines": {
622
- "node": "^18.17.0 || >=20.5.0"
551
+ "node": "^20.17.0 || >=22.9.0"
623
552
  }
624
553
  },
625
554
  "node_modules/npm-run-path": {
@@ -652,26 +581,6 @@
652
581
  "url": "https://github.com/sponsors/sindresorhus"
653
582
  }
654
583
  },
655
- "node_modules/p-finally": {
656
- "version": "1.0.0",
657
- "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz",
658
- "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==",
659
- "dev": true,
660
- "license": "MIT",
661
- "engines": {
662
- "node": ">=4"
663
- }
664
- },
665
- "node_modules/p-try": {
666
- "version": "2.2.0",
667
- "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
668
- "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
669
- "dev": true,
670
- "license": "MIT",
671
- "engines": {
672
- "node": ">=6"
673
- }
674
- },
675
584
  "node_modules/path-key": {
676
585
  "version": "3.1.1",
677
586
  "dev": true,
@@ -693,16 +602,6 @@
693
602
  "url": "https://github.com/sponsors/jonschlinkert"
694
603
  }
695
604
  },
696
- "node_modules/pify": {
697
- "version": "4.0.1",
698
- "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz",
699
- "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==",
700
- "dev": true,
701
- "license": "MIT",
702
- "engines": {
703
- "node": ">=6"
704
- }
705
- },
706
605
  "node_modules/plist": {
707
606
  "version": "3.1.1",
708
607
  "resolved": "https://registry.npmjs.org/plist/-/plist-3.1.1.tgz",
@@ -728,18 +627,6 @@
728
627
  "node": ">= 0.3.1"
729
628
  }
730
629
  },
731
- "node_modules/q": {
732
- "version": "1.5.1",
733
- "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz",
734
- "integrity": "sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==",
735
- "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)",
736
- "dev": true,
737
- "license": "MIT",
738
- "engines": {
739
- "node": ">=0.6.0",
740
- "teleport": ">=0.2.0"
741
- }
742
- },
743
630
  "node_modules/queue-microtask": {
744
631
  "version": "1.2.3",
745
632
  "dev": true,
@@ -759,20 +646,6 @@
759
646
  ],
760
647
  "license": "MIT"
761
648
  },
762
- "node_modules/read-chunk": {
763
- "version": "3.2.0",
764
- "resolved": "https://registry.npmjs.org/read-chunk/-/read-chunk-3.2.0.tgz",
765
- "integrity": "sha512-CEjy9LCzhmD7nUpJ1oVOE6s/hBkejlcJEgLQHVnQznOSilOPb+kpKktlLfFDK3/WP43+F80xkUTM2VOkYoSYvQ==",
766
- "dev": true,
767
- "license": "MIT",
768
- "dependencies": {
769
- "pify": "^4.0.1",
770
- "with-open-file": "^0.1.6"
771
- },
772
- "engines": {
773
- "node": ">=6"
774
- }
775
- },
776
649
  "node_modules/reusify": {
777
650
  "version": "1.1.0",
778
651
  "dev": true,
@@ -810,7 +683,9 @@
810
683
  "license": "ISC"
811
684
  },
812
685
  "node_modules/semver": {
813
- "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==",
814
689
  "dev": true,
815
690
  "license": "ISC",
816
691
  "bin": {
@@ -899,16 +774,6 @@
899
774
  "node": ">=0.6.19"
900
775
  }
901
776
  },
902
- "node_modules/strip-bom": {
903
- "version": "4.0.0",
904
- "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz",
905
- "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==",
906
- "dev": true,
907
- "license": "MIT",
908
- "engines": {
909
- "node": ">=8"
910
- }
911
- },
912
777
  "node_modules/strip-final-newline": {
913
778
  "version": "2.0.0",
914
779
  "dev": true,
@@ -939,44 +804,33 @@
939
804
  }
940
805
  },
941
806
  "node_modules/uuid": {
942
- "version": "7.0.3",
943
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-7.0.3.tgz",
944
- "integrity": "sha512-DPSke0pXhTZgoF/d+WSt2QaKMCFSfx7QegxEWT+JOuHF5aWrKEn0G+ztjuJg/gG8/ItK+rbPCD/yNv8yyih6Cg==",
807
+ "version": "11.1.1",
808
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.1.tgz",
809
+ "integrity": "sha512-vIYxrBCC/N/K+Js3qSN88go7kIfNPssr/hHCesKCQNAjmgvYS2oqr69kIufEG+O4+PfezOH4EbIeHCfFov8ZgQ==",
945
810
  "dev": true,
811
+ "funding": [
812
+ "https://github.com/sponsors/broofa",
813
+ "https://github.com/sponsors/ctavan"
814
+ ],
946
815
  "license": "MIT",
947
816
  "bin": {
948
- "uuid": "dist/bin/uuid"
817
+ "uuid": "dist/esm/bin/uuid"
949
818
  }
950
819
  },
951
820
  "node_modules/which": {
952
- "version": "5.0.0",
953
- "resolved": "https://registry.npmjs.org/which/-/which-5.0.0.tgz",
954
- "integrity": "sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==",
821
+ "version": "6.0.1",
822
+ "resolved": "https://registry.npmjs.org/which/-/which-6.0.1.tgz",
823
+ "integrity": "sha512-oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg==",
955
824
  "dev": true,
956
825
  "license": "ISC",
957
826
  "dependencies": {
958
- "isexe": "^3.1.1"
827
+ "isexe": "^4.0.0"
959
828
  },
960
829
  "bin": {
961
830
  "node-which": "bin/which.js"
962
831
  },
963
832
  "engines": {
964
- "node": "^18.17.0 || >=20.5.0"
965
- }
966
- },
967
- "node_modules/with-open-file": {
968
- "version": "0.1.7",
969
- "resolved": "https://registry.npmjs.org/with-open-file/-/with-open-file-0.1.7.tgz",
970
- "integrity": "sha512-ecJS2/oHtESJ1t3ZfMI3B7KIDKyfN0O16miWxdn30zdh66Yd3LsRFebXZXq6GU4xfxLf6nVxp9kIqElb5fqczA==",
971
- "dev": true,
972
- "license": "MIT",
973
- "dependencies": {
974
- "p-finally": "^1.0.0",
975
- "p-try": "^2.1.0",
976
- "pify": "^4.0.1"
977
- },
978
- "engines": {
979
- "node": ">=6"
833
+ "node": "^20.17.0 || >=22.9.0"
980
834
  }
981
835
  },
982
836
  "node_modules/xcode": {
@@ -15,22 +15,23 @@
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
23
  "overrides": {
24
24
  "@xmldom/xmldom": "^0.9.8",
25
- "plist": "^3.1.1"
25
+ "plist": "^3.1.1",
26
+ "uuid": "^11.1.1"
26
27
  },
27
28
  "cordova": {
28
29
  "plugins": {
29
30
  "@purchasely/cordova-plugin-purchasely-google": {}
30
31
  },
31
32
  "platforms": [
32
- "android",
33
- "ios"
33
+ "ios",
34
+ "android"
34
35
  ]
35
36
  }
36
- }
37
+ }
@@ -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>