@purchasely/cordova-plugin-purchasely 5.5.1 → 5.6.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.
@@ -1,7 +1,7 @@
1
1
  #!/bin/bash
2
2
 
3
3
  cordova plugin remove @purchasely/cordova-plugin-purchasely
4
- cordova plugin remove @purchasely/cordova-plugin-puchasely-google
4
+ cordova plugin remove @purchasely/cordova-plugin-purchasely-google
5
5
  cordova platform remove android
6
6
  cordova platform add android@14.0.1
7
7
  cordova plugin add ../ --link
package/example/ios.sh CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  cordova plugin remove @purchasely/cordova-plugin-purchasely
4
4
  cordova platform remove ios
5
- cordova platform add ios@7.1.1
5
+ cordova platform add ios@latest
6
6
  cordova plugin add ../ --link
7
7
 
8
8
  if [[ $1 = true ]]
@@ -9,17 +9,17 @@
9
9
  "version": "1.0.0",
10
10
  "license": "Apache-2.0",
11
11
  "devDependencies": {
12
- "@purchasely/cordova-plugin-puchasely-google": "file:../../purchasely-google",
13
12
  "@purchasely/cordova-plugin-purchasely": "file:..",
13
+ "@purchasely/cordova-plugin-purchasely-google": "file:../../purchasely-google",
14
14
  "cordova-android": "^14.0.1",
15
- "cordova-ios": "^7.1.1",
16
- "cordova-plugin-puchasely-google": "file:../../purchasely-google",
17
- "cordova-plugin-purchasely": "file:.."
15
+ "cordova-ios": "^8.0.0",
16
+ "cordova-plugin-purchasely": "file:..",
17
+ "cordova-plugin-purchasely-google": "file:../../purchasely-google"
18
18
  }
19
19
  },
20
20
  "..": {
21
21
  "name": "@purchasely/cordova-plugin-purchasely",
22
- "version": "5.5.1",
22
+ "version": "5.6.1",
23
23
  "dev": true,
24
24
  "license": "ISC",
25
25
  "engines": {
@@ -32,8 +32,8 @@
32
32
  }
33
33
  },
34
34
  "../../purchasely-google": {
35
- "name": "@purchasely/cordova-plugin-puchasely-google",
36
- "version": "5.5.1",
35
+ "name": "@purchasely/cordova-plugin-purchasely-google",
36
+ "version": "5.6.1",
37
37
  "dev": true,
38
38
  "license": "ISC"
39
39
  },
@@ -87,14 +87,14 @@
87
87
  "node": ">= 8"
88
88
  }
89
89
  },
90
- "node_modules/@purchasely/cordova-plugin-puchasely-google": {
91
- "resolved": "../../purchasely-google",
92
- "link": true
93
- },
94
90
  "node_modules/@purchasely/cordova-plugin-purchasely": {
95
91
  "resolved": "..",
96
92
  "link": true
97
93
  },
94
+ "node_modules/@purchasely/cordova-plugin-purchasely-google": {
95
+ "resolved": "../../purchasely-google",
96
+ "link": true
97
+ },
98
98
  "node_modules/@xmldom/xmldom": {
99
99
  "version": "0.8.11",
100
100
  "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.11.tgz",
@@ -142,13 +142,6 @@
142
142
  "node": ">=0.8"
143
143
  }
144
144
  },
145
- "node_modules/balanced-match": {
146
- "version": "1.0.2",
147
- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
148
- "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
149
- "dev": true,
150
- "license": "MIT"
151
- },
152
145
  "node_modules/base64-js": {
153
146
  "version": "1.5.1",
154
147
  "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
@@ -203,17 +196,6 @@
203
196
  "node": ">= 5.10.0"
204
197
  }
205
198
  },
206
- "node_modules/brace-expansion": {
207
- "version": "1.1.12",
208
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",
209
- "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",
210
- "dev": true,
211
- "license": "MIT",
212
- "dependencies": {
213
- "balanced-match": "^1.0.0",
214
- "concat-map": "0.0.1"
215
- }
216
- },
217
199
  "node_modules/braces": {
218
200
  "version": "3.0.3",
219
201
  "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
@@ -227,13 +209,6 @@
227
209
  "node": ">=8"
228
210
  }
229
211
  },
230
- "node_modules/concat-map": {
231
- "version": "0.0.1",
232
- "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
233
- "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
234
- "dev": true,
235
- "license": "MIT"
236
- },
237
212
  "node_modules/cordova-android": {
238
213
  "version": "14.0.1",
239
214
  "resolved": "https://registry.npmjs.org/cordova-android/-/cordova-android-14.0.1.tgz",
@@ -283,30 +258,76 @@
283
258
  }
284
259
  },
285
260
  "node_modules/cordova-ios": {
286
- "version": "7.1.1",
287
- "resolved": "https://registry.npmjs.org/cordova-ios/-/cordova-ios-7.1.1.tgz",
288
- "integrity": "sha512-JwTyPxWcAZlbIOR5QO6TaJzkoSzfrp7jrlX01bWZ7Sxp0PYXejAJbA6J0W4u11M+atrQRNimNltZDyAlSBW2tw==",
261
+ "version": "8.0.0",
262
+ "resolved": "https://registry.npmjs.org/cordova-ios/-/cordova-ios-8.0.0.tgz",
263
+ "integrity": "sha512-QsynOV8rnRIhDC3qwM1KdRr1gy5RaqzVCzdOaB+DSBPeR5wVEUGpyyJO0FzlCACzY5X25iDc5O3kbn/F06dJ5Q==",
289
264
  "dev": true,
290
265
  "license": "Apache-2.0",
291
266
  "dependencies": {
292
- "cordova-common": "^5.0.0",
267
+ "bplist-parser": "^0.3.2",
268
+ "cordova-common": "^6.0.0",
293
269
  "elementtree": "^0.1.7",
294
270
  "execa": "^5.1.1",
295
- "ios-sim": "^8.0.2",
296
- "plist": "^3.0.6",
297
- "semver": "^7.4.0",
298
- "which": "^4.0.0",
299
- "xcode": "^3.0.1",
300
- "xml-escape": "^1.1.0"
271
+ "nopt": "^9.0.0",
272
+ "plist": "^3.1.0",
273
+ "semver": "^7.7.3",
274
+ "simctl": "^3.0.0",
275
+ "which": "^6.0.0",
276
+ "xcode": "^3.0.1"
301
277
  },
302
278
  "engines": {
303
- "node": ">=16.13.0"
279
+ "node": "^20.17.0 || >=22.9.0"
304
280
  }
305
281
  },
306
- "node_modules/cordova-ios/node_modules/which": {
282
+ "node_modules/cordova-ios/node_modules/abbrev": {
307
283
  "version": "4.0.0",
308
- "resolved": "https://registry.npmjs.org/which/-/which-4.0.0.tgz",
309
- "integrity": "sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==",
284
+ "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-4.0.0.tgz",
285
+ "integrity": "sha512-a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA==",
286
+ "dev": true,
287
+ "license": "ISC",
288
+ "engines": {
289
+ "node": "^20.17.0 || >=22.9.0"
290
+ }
291
+ },
292
+ "node_modules/cordova-ios/node_modules/cordova-common": {
293
+ "version": "6.0.0",
294
+ "resolved": "https://registry.npmjs.org/cordova-common/-/cordova-common-6.0.0.tgz",
295
+ "integrity": "sha512-16WPC1DuxVdshV3RoQUXqhcJVdhxWGwiFysA4TkYuboqoev6mgt0JuIJFxmQbzR/DuyuONaVe0L0O0Hf1C08Mg==",
296
+ "dev": true,
297
+ "license": "Apache-2.0",
298
+ "dependencies": {
299
+ "@netflix/nerror": "^1.1.3",
300
+ "ansi": "^0.3.1",
301
+ "bplist-parser": "^0.3.2",
302
+ "elementtree": "^0.1.7",
303
+ "endent": "^2.1.0",
304
+ "fast-glob": "^3.3.3",
305
+ "plist": "^3.1.0"
306
+ },
307
+ "engines": {
308
+ "node": ">=20.9.0"
309
+ }
310
+ },
311
+ "node_modules/cordova-ios/node_modules/nopt": {
312
+ "version": "9.0.0",
313
+ "resolved": "https://registry.npmjs.org/nopt/-/nopt-9.0.0.tgz",
314
+ "integrity": "sha512-Zhq3a+yFKrYwSBluL4H9XP3m3y5uvQkB/09CwDruCiRmR/UJYnn9W4R48ry0uGC70aeTPKLynBtscP9efFFcPw==",
315
+ "dev": true,
316
+ "license": "ISC",
317
+ "dependencies": {
318
+ "abbrev": "^4.0.0"
319
+ },
320
+ "bin": {
321
+ "nopt": "bin/nopt.js"
322
+ },
323
+ "engines": {
324
+ "node": "^20.17.0 || >=22.9.0"
325
+ }
326
+ },
327
+ "node_modules/cordova-ios/node_modules/which": {
328
+ "version": "6.0.0",
329
+ "resolved": "https://registry.npmjs.org/which/-/which-6.0.0.tgz",
330
+ "integrity": "sha512-f+gEpIKMR9faW/JgAgPK1D7mekkFoqbmiwvNzuhsHetni20QSgzg9Vhn0g2JSJkkfehQnqdUAx7/e15qS1lPxg==",
310
331
  "dev": true,
311
332
  "license": "ISC",
312
333
  "dependencies": {
@@ -316,17 +337,17 @@
316
337
  "node-which": "bin/which.js"
317
338
  },
318
339
  "engines": {
319
- "node": "^16.13.0 || >=18.0.0"
340
+ "node": "^20.17.0 || >=22.9.0"
320
341
  }
321
342
  },
322
- "node_modules/cordova-plugin-puchasely-google": {
323
- "resolved": "../../purchasely-google",
324
- "link": true
325
- },
326
343
  "node_modules/cordova-plugin-purchasely": {
327
344
  "resolved": "..",
328
345
  "link": true
329
346
  },
347
+ "node_modules/cordova-plugin-purchasely-google": {
348
+ "resolved": "../../purchasely-google",
349
+ "link": true
350
+ },
330
351
  "node_modules/cross-spawn": {
331
352
  "version": "7.0.6",
332
353
  "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
@@ -493,23 +514,6 @@
493
514
  "node": ">=8"
494
515
  }
495
516
  },
496
- "node_modules/fs.realpath": {
497
- "version": "1.0.0",
498
- "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
499
- "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
500
- "dev": true,
501
- "license": "ISC"
502
- },
503
- "node_modules/function-bind": {
504
- "version": "1.1.2",
505
- "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
506
- "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
507
- "dev": true,
508
- "license": "MIT",
509
- "funding": {
510
- "url": "https://github.com/sponsors/ljharb"
511
- }
512
- },
513
517
  "node_modules/get-stream": {
514
518
  "version": "6.0.1",
515
519
  "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",
@@ -523,28 +527,6 @@
523
527
  "url": "https://github.com/sponsors/sindresorhus"
524
528
  }
525
529
  },
526
- "node_modules/glob": {
527
- "version": "7.2.3",
528
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
529
- "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
530
- "deprecated": "Glob versions prior to v9 are no longer supported",
531
- "dev": true,
532
- "license": "ISC",
533
- "dependencies": {
534
- "fs.realpath": "^1.0.0",
535
- "inflight": "^1.0.4",
536
- "inherits": "2",
537
- "minimatch": "^3.1.1",
538
- "once": "^1.3.0",
539
- "path-is-absolute": "^1.0.0"
540
- },
541
- "engines": {
542
- "node": "*"
543
- },
544
- "funding": {
545
- "url": "https://github.com/sponsors/isaacs"
546
- }
547
- },
548
530
  "node_modules/glob-parent": {
549
531
  "version": "5.1.2",
550
532
  "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
@@ -558,19 +540,6 @@
558
540
  "node": ">= 6"
559
541
  }
560
542
  },
561
- "node_modules/hasown": {
562
- "version": "2.0.2",
563
- "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
564
- "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
565
- "dev": true,
566
- "license": "MIT",
567
- "dependencies": {
568
- "function-bind": "^1.1.2"
569
- },
570
- "engines": {
571
- "node": ">= 0.4"
572
- }
573
- },
574
543
  "node_modules/human-signals": {
575
544
  "version": "2.1.0",
576
545
  "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",
@@ -581,100 +550,6 @@
581
550
  "node": ">=10.17.0"
582
551
  }
583
552
  },
584
- "node_modules/inflight": {
585
- "version": "1.0.6",
586
- "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
587
- "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
588
- "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.",
589
- "dev": true,
590
- "license": "ISC",
591
- "dependencies": {
592
- "once": "^1.3.0",
593
- "wrappy": "1"
594
- }
595
- },
596
- "node_modules/inherits": {
597
- "version": "2.0.4",
598
- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
599
- "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
600
- "dev": true,
601
- "license": "ISC"
602
- },
603
- "node_modules/interpret": {
604
- "version": "1.4.0",
605
- "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz",
606
- "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==",
607
- "dev": true,
608
- "license": "MIT",
609
- "engines": {
610
- "node": ">= 0.10"
611
- }
612
- },
613
- "node_modules/ios-sim": {
614
- "version": "8.0.2",
615
- "resolved": "https://registry.npmjs.org/ios-sim/-/ios-sim-8.0.2.tgz",
616
- "integrity": "sha512-P7nEG771bfd+JoMRjnis1gpZOkjTUUxu+4Ek1Z+eoaEEoT9byllU9pxfQ8Df7hL3gSkIQxNwTSLhos2I8tWUQA==",
617
- "dev": true,
618
- "license": "MIT",
619
- "dependencies": {
620
- "bplist-parser": "^0.0.6",
621
- "nopt": "1.0.9",
622
- "plist": "^3.0.1",
623
- "simctl": "^2"
624
- },
625
- "bin": {
626
- "ios-sim": "bin/ios-sim"
627
- },
628
- "engines": {
629
- "node": ">=6"
630
- }
631
- },
632
- "node_modules/ios-sim/node_modules/abbrev": {
633
- "version": "1.1.1",
634
- "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
635
- "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
636
- "dev": true,
637
- "license": "ISC"
638
- },
639
- "node_modules/ios-sim/node_modules/bplist-parser": {
640
- "version": "0.0.6",
641
- "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.0.6.tgz",
642
- "integrity": "sha512-fGeghPEH4Eytvf+Mi446aKcDqvkA/+eh6r7QGiZWMQG6TzqrnsToLP379XFfqRSZ41+676hhGIm++maNST1Apw==",
643
- "dev": true,
644
- "license": "MIT"
645
- },
646
- "node_modules/ios-sim/node_modules/nopt": {
647
- "version": "1.0.9",
648
- "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.9.tgz",
649
- "integrity": "sha512-CmUZ3rzN0/4kRHum5pGRiGkhmBMzgtEDxrZVHqRJDSv8qK6s+wzaig/xeyB22Due5aZQeTiEZg/nrmMH2tapDQ==",
650
- "dev": true,
651
- "license": "MIT",
652
- "dependencies": {
653
- "abbrev": "1"
654
- },
655
- "bin": {
656
- "nopt": "bin/nopt.js"
657
- },
658
- "engines": {
659
- "node": "*"
660
- }
661
- },
662
- "node_modules/is-core-module": {
663
- "version": "2.16.1",
664
- "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz",
665
- "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==",
666
- "dev": true,
667
- "license": "MIT",
668
- "dependencies": {
669
- "hasown": "^2.0.2"
670
- },
671
- "engines": {
672
- "node": ">= 0.4"
673
- },
674
- "funding": {
675
- "url": "https://github.com/sponsors/ljharb"
676
- }
677
- },
678
553
  "node_modules/is-extglob": {
679
554
  "version": "2.1.1",
680
555
  "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
@@ -796,19 +671,6 @@
796
671
  "node": ">=6"
797
672
  }
798
673
  },
799
- "node_modules/minimatch": {
800
- "version": "3.1.2",
801
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
802
- "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
803
- "dev": true,
804
- "license": "ISC",
805
- "dependencies": {
806
- "brace-expansion": "^1.1.7"
807
- },
808
- "engines": {
809
- "node": "*"
810
- }
811
- },
812
674
  "node_modules/nopt": {
813
675
  "version": "8.1.0",
814
676
  "resolved": "https://registry.npmjs.org/nopt/-/nopt-8.1.0.tgz",
@@ -845,16 +707,6 @@
845
707
  "dev": true,
846
708
  "license": "ISC"
847
709
  },
848
- "node_modules/once": {
849
- "version": "1.4.0",
850
- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
851
- "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
852
- "dev": true,
853
- "license": "ISC",
854
- "dependencies": {
855
- "wrappy": "1"
856
- }
857
- },
858
710
  "node_modules/onetime": {
859
711
  "version": "5.1.2",
860
712
  "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
@@ -891,16 +743,6 @@
891
743
  "node": ">=6"
892
744
  }
893
745
  },
894
- "node_modules/path-is-absolute": {
895
- "version": "1.0.1",
896
- "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
897
- "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
898
- "dev": true,
899
- "license": "MIT",
900
- "engines": {
901
- "node": ">=0.10.0"
902
- }
903
- },
904
746
  "node_modules/path-key": {
905
747
  "version": "3.1.1",
906
748
  "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
@@ -911,13 +753,6 @@
911
753
  "node": ">=8"
912
754
  }
913
755
  },
914
- "node_modules/path-parse": {
915
- "version": "1.0.7",
916
- "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
917
- "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
918
- "dev": true,
919
- "license": "MIT"
920
- },
921
756
  "node_modules/picomatch": {
922
757
  "version": "2.3.1",
923
758
  "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
@@ -1013,39 +848,6 @@
1013
848
  "node": ">=6"
1014
849
  }
1015
850
  },
1016
- "node_modules/rechoir": {
1017
- "version": "0.6.2",
1018
- "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz",
1019
- "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==",
1020
- "dev": true,
1021
- "dependencies": {
1022
- "resolve": "^1.1.6"
1023
- },
1024
- "engines": {
1025
- "node": ">= 0.10"
1026
- }
1027
- },
1028
- "node_modules/resolve": {
1029
- "version": "1.22.11",
1030
- "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz",
1031
- "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==",
1032
- "dev": true,
1033
- "license": "MIT",
1034
- "dependencies": {
1035
- "is-core-module": "^2.16.1",
1036
- "path-parse": "^1.0.7",
1037
- "supports-preserve-symlinks-flag": "^1.0.0"
1038
- },
1039
- "bin": {
1040
- "resolve": "bin/resolve"
1041
- },
1042
- "engines": {
1043
- "node": ">= 0.4"
1044
- },
1045
- "funding": {
1046
- "url": "https://github.com/sponsors/ljharb"
1047
- }
1048
- },
1049
851
  "node_modules/reusify": {
1050
852
  "version": "1.1.0",
1051
853
  "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",
@@ -1124,24 +926,6 @@
1124
926
  "node": ">=8"
1125
927
  }
1126
928
  },
1127
- "node_modules/shelljs": {
1128
- "version": "0.8.5",
1129
- "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz",
1130
- "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==",
1131
- "dev": true,
1132
- "license": "BSD-3-Clause",
1133
- "dependencies": {
1134
- "glob": "^7.0.0",
1135
- "interpret": "^1.0.0",
1136
- "rechoir": "^0.6.2"
1137
- },
1138
- "bin": {
1139
- "shjs": "bin/shjs"
1140
- },
1141
- "engines": {
1142
- "node": ">=4"
1143
- }
1144
- },
1145
929
  "node_modules/signal-exit": {
1146
930
  "version": "3.0.7",
1147
931
  "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
@@ -1150,14 +934,13 @@
1150
934
  "license": "ISC"
1151
935
  },
1152
936
  "node_modules/simctl": {
1153
- "version": "2.0.3",
1154
- "resolved": "https://registry.npmjs.org/simctl/-/simctl-2.0.3.tgz",
1155
- "integrity": "sha512-kKCak0yszxHae5eVWcmrjV3ouUGac3sjlhjdLWpyPu4eiQcWoHsCrqS34kkgzHN8Ystqkh/LFjzrldk/g3BYJg==",
937
+ "version": "3.0.0",
938
+ "resolved": "https://registry.npmjs.org/simctl/-/simctl-3.0.0.tgz",
939
+ "integrity": "sha512-AoScwFvWCLU7lx9AlqmooHlxQDQDjGdSGAdyLySDeR2IP6ji5L4Z6DdHxmBLAQM61ftaHylXfnF1KWCR56P58w==",
1156
940
  "dev": true,
1157
941
  "license": "MIT",
1158
- "dependencies": {
1159
- "shelljs": "^0.8.5",
1160
- "tail": "^0.4.0"
942
+ "engines": {
943
+ "node": ">= 14.17.0"
1161
944
  }
1162
945
  },
1163
946
  "node_modules/simple-plist": {
@@ -1225,28 +1008,6 @@
1225
1008
  "node": ">=6"
1226
1009
  }
1227
1010
  },
1228
- "node_modules/supports-preserve-symlinks-flag": {
1229
- "version": "1.0.0",
1230
- "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
1231
- "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
1232
- "dev": true,
1233
- "license": "MIT",
1234
- "engines": {
1235
- "node": ">= 0.4"
1236
- },
1237
- "funding": {
1238
- "url": "https://github.com/sponsors/ljharb"
1239
- }
1240
- },
1241
- "node_modules/tail": {
1242
- "version": "0.4.0",
1243
- "resolved": "https://registry.npmjs.org/tail/-/tail-0.4.0.tgz",
1244
- "integrity": "sha512-i5rOhX0PwkFSbjID14mmuoqrLUIqpJeBwg0esugSbb+6Y+dzgN/O3YZXzzPL7dnQJGbQLs8cwM8Zsak5kFJGcA==",
1245
- "dev": true,
1246
- "engines": {
1247
- "node": ">= 0.4.0"
1248
- }
1249
- },
1250
1011
  "node_modules/to-regex-range": {
1251
1012
  "version": "5.0.1",
1252
1013
  "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
@@ -1311,13 +1072,6 @@
1311
1072
  "node": ">=6"
1312
1073
  }
1313
1074
  },
1314
- "node_modules/wrappy": {
1315
- "version": "1.0.2",
1316
- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
1317
- "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
1318
- "dev": true,
1319
- "license": "ISC"
1320
- },
1321
1075
  "node_modules/xcode": {
1322
1076
  "version": "3.0.1",
1323
1077
  "resolved": "https://registry.npmjs.org/xcode/-/xcode-3.0.1.tgz",
@@ -1332,13 +1086,6 @@
1332
1086
  "node": ">=10.0.0"
1333
1087
  }
1334
1088
  },
1335
- "node_modules/xml-escape": {
1336
- "version": "1.1.0",
1337
- "resolved": "https://registry.npmjs.org/xml-escape/-/xml-escape-1.1.0.tgz",
1338
- "integrity": "sha512-B/T4sDK8Z6aUh/qNr7mjKAwwncIljFuUP+DO/D5hloYFj+90O88z8Wf7oSucZTHxBAsC1/CTP4rtx/x1Uf72Mg==",
1339
- "dev": true,
1340
- "license": "MIT License"
1341
- },
1342
1089
  "node_modules/xmlbuilder": {
1343
1090
  "version": "15.1.1",
1344
1091
  "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz",
@@ -13,21 +13,20 @@
13
13
  "author": "Apache Cordova Team",
14
14
  "license": "Apache-2.0",
15
15
  "devDependencies": {
16
- "@purchasely/cordova-plugin-puchasely-google": "file:../../purchasely-google",
17
16
  "@purchasely/cordova-plugin-purchasely": "file:..",
17
+ "@purchasely/cordova-plugin-purchasely-google": "file:../../purchasely-google",
18
18
  "cordova-android": "^14.0.1",
19
- "cordova-ios": "^7.1.1",
20
- "cordova-plugin-puchasely-google": "file:../../purchasely-google",
21
- "cordova-plugin-purchasely": "file:.."
19
+ "cordova-ios": "^8.0.0",
20
+ "cordova-plugin-purchasely": "file:..",
21
+ "cordova-plugin-purchasely-google": "file:../../purchasely-google"
22
22
  },
23
23
  "cordova": {
24
24
  "plugins": {
25
- "@purchasely/cordova-plugin-puchasely-google": {},
26
- "@purchasely/cordova-plugin-purchasely": {}
25
+ "@purchasely/cordova-plugin-purchasely-google": {}
27
26
  },
28
27
  "platforms": [
29
28
  "android",
30
29
  "ios"
31
30
  ]
32
31
  }
33
- }
32
+ }
@@ -48,12 +48,14 @@ function onDeviceReady() {
48
48
  Purchasely.LogLevel.DEBUG,
49
49
  Purchasely.RunningMode.full,
50
50
  (isConfigured) => {
51
- if(isConfigured) onPuchaselySdkReady();
51
+ if(isConfigured) onPurchaselySdkReady();
52
52
  },
53
53
  (error) => {
54
54
  console.log(error);
55
55
  });
56
56
 
57
+ Purchasely.setDebugMode(true);
58
+
57
59
  Purchasely.setLanguage('en');
58
60
 
59
61
  document.getElementById("openPresentation").addEventListener("click", openPresentation);
@@ -69,7 +71,7 @@ function onDeviceReady() {
69
71
 
70
72
  }
71
73
 
72
- function onPuchaselySdkReady() {
74
+ function onPurchaselySdkReady() {
73
75
  Purchasely.allProducts( products => {
74
76
  console.log("Products " + products.length);
75
77
  console.log("First product name: " + products[0].name);
@@ -172,7 +174,7 @@ function onPuchaselySdkReady() {
172
174
  Purchasely.setUserAttributeWithInt("key_int", 7, Purchasely.DataProcessingLegalBasis.essential);
173
175
  Purchasely.setUserAttributeWithDouble("key_double", 4.5, Purchasely.DataProcessingLegalBasis.essential);
174
176
  Purchasely.setUserAttributeWithDate("key_date", new Date().toISOString(), Purchasely.DataProcessingLegalBasis.essential);
175
-
177
+
176
178
  Purchasely.clearUserAttributes();
177
179
 
178
180
  Purchasely.setUserAttributeWithString("key_string", "value_string");
@@ -289,8 +291,8 @@ function onPuchaselySdkReady() {
289
291
  }
290
292
 
291
293
  function openPresentation() {
292
- Purchasely.presentPresentationWithIdentifier(
293
- 'step_1', //placementId
294
+ Purchasely.presentPresentationForPlacement(
295
+ 'ONBOARDING', //placementId
294
296
  null, //contentId
295
297
  true, //fullscreen
296
298
  (callback) => {
@@ -309,7 +311,7 @@ function openPresentation() {
309
311
 
310
312
  function fetchPresentation() {
311
313
  Purchasely.fetchPresentationForPlacement(
312
- 'onboarding', //placementId
314
+ 'flow_demo', //placementId
313
315
  null, //contentId
314
316
  (presentation) => {
315
317
  console.log(safeStringify(presentation));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purchasely/cordova-plugin-purchasely",
3
- "version": "5.5.1",
3
+ "version": "5.6.1",
4
4
  "description": "Purchasely is a solution to ease the integration and boost your In-App Purchases & Subscriptions on the App Store, Google Play Store, Amazon Appstore and Huawei App Gallery.",
5
5
  "cordova": {
6
6
  "id": "@purchasely/cordova-plugin-purchasely",
package/plugin.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version='1.0' encoding='utf-8'?>
2
- <plugin id="@purchasely/cordova-plugin-purchasely" version="5.5.1" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
2
+ <plugin id="@purchasely/cordova-plugin-purchasely" version="5.6.1" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
3
3
  <name>Purchasely</name>
4
4
  <js-module name="Purchasely" src="www/Purchasely.js">
5
5
  <clobbers target="Purchasely" />
@@ -38,7 +38,7 @@
38
38
  <source url="https://github.com/CocoaPods/Specs.git"/>
39
39
  </config>
40
40
  <pods use-frameworks="true">
41
- <pod name="Purchasely" spec="5.5.0"/>
41
+ <pod name="Purchasely" spec="5.6.2"/>
42
42
  </pods>
43
43
  </podspec>
44
44
  </platform>
@@ -63,7 +63,7 @@
63
63
  android:theme="@style/Theme.AppCompat.Light.NoActionBar">
64
64
  </activity>
65
65
  </config-file>
66
- <framework src="io.purchasely:core:5.5.1" />
66
+ <framework src="io.purchasely:core:5.6.0" />
67
67
  <source-file src="src/android/PurchaselyPlugin.kt" target-dir="java/cordova/plugin/purchasely" />
68
68
  <source-file src="src/android/PLYProductActivity.kt" target-dir="java/cordova/plugin/purchasely" />
69
69
  <source-file src="src/android/PLYSubscriptionsActivity.java" target-dir="src/cordova/plugin/purchasely" />
@@ -188,6 +188,7 @@ class PurchaselyPlugin : CordovaPlugin() {
188
188
  "isEligibleForIntroOffer" -> isEligibleForIntroOffer(getStringFromJson(args.getString(0)), callbackContext)
189
189
  "signPromotionalOffer" -> signPromotionalOffer(getStringFromJson(args.getString(0)), getStringFromJson(args.getString(1)), callbackContext)
190
190
  "revokeDataProcessingConsent" -> revokeDataProcessingConsent(args.getJSONArray(0))
191
+ "setDebugMode" -> setDebugMode(args.getBoolean(0))
191
192
  else -> return false
192
193
  }
193
194
  } catch (e: JSONException) {
@@ -1069,6 +1070,9 @@ class PurchaselyPlugin : CordovaPlugin() {
1069
1070
  Purchasely.revokeDataProcessingConsent(mappedPurposes)
1070
1071
  }
1071
1072
 
1073
+ fun setDebugMode(enabled: Boolean) {
1074
+ Purchasely.debugMode = enabled
1075
+ }
1072
1076
 
1073
1077
  class ProductActivity {
1074
1078
  var presentationId: String? = null
@@ -625,7 +625,7 @@
625
625
  }
626
626
  [actionInterceptorResult setObject:paramsResult forKey:@"parameters"];
627
627
  }
628
-
628
+
629
629
  return actionInterceptorResult;
630
630
  }
631
631
 
@@ -699,9 +699,9 @@ static NSString * PLYWebCheckoutProviderToString(PLYWebCheckoutProvider provider
699
699
  NSString *key = [command argumentAtIndex:0];
700
700
  NSArray<NSString *> *array = [command argumentAtIndex:1];
701
701
  NSString *processingLegalBasisBasisArg = [command argumentAtIndex:2];
702
-
702
+
703
703
  NSInteger processingLegalBasis = PLYDataProcessingLegalBasisOptional;
704
-
704
+
705
705
  if ([processingLegalBasisBasisArg isEqualToString:@"ESSENTIAL"]) {
706
706
  processingLegalBasis = PLYDataProcessingLegalBasisEssential;
707
707
  }
@@ -718,9 +718,9 @@ static NSString * PLYWebCheckoutProviderToString(PLYWebCheckoutProvider provider
718
718
  for (id value in values) {
719
719
  [boolArray addObject:@([value boolValue])];
720
720
  }
721
-
721
+
722
722
  NSInteger processingLegalBasis = PLYDataProcessingLegalBasisOptional;
723
-
723
+
724
724
  if ([processingLegalBasisBasisArg isEqualToString:@"ESSENTIAL"]) {
725
725
  processingLegalBasis = PLYDataProcessingLegalBasisEssential;
726
726
  }
@@ -737,9 +737,9 @@ static NSString * PLYWebCheckoutProviderToString(PLYWebCheckoutProvider provider
737
737
  for (id val in values) {
738
738
  [intArray addObject:@([val intValue])];
739
739
  }
740
-
740
+
741
741
  NSInteger processingLegalBasis = PLYDataProcessingLegalBasisOptional;
742
-
742
+
743
743
  if ([processingLegalBasisBasisArg isEqualToString:@"ESSENTIAL"]) {
744
744
  processingLegalBasis = PLYDataProcessingLegalBasisEssential;
745
745
  }
@@ -756,9 +756,9 @@ static NSString * PLYWebCheckoutProviderToString(PLYWebCheckoutProvider provider
756
756
  for (id val in values) {
757
757
  [doubleArray addObject:@([val doubleValue])];
758
758
  }
759
-
759
+
760
760
  NSInteger processingLegalBasis = PLYDataProcessingLegalBasisOptional;
761
-
761
+
762
762
  if ([processingLegalBasisBasisArg isEqualToString:@"ESSENTIAL"]) {
763
763
  processingLegalBasis = PLYDataProcessingLegalBasisEssential;
764
764
  }
@@ -770,9 +770,9 @@ static NSString * PLYWebCheckoutProviderToString(PLYWebCheckoutProvider provider
770
770
  NSString *key = [command argumentAtIndex:0];
771
771
  NSString *value = [command argumentAtIndex:1];
772
772
  NSString *processingLegalBasisBasisArg = [command argumentAtIndex:2];
773
-
773
+
774
774
  NSInteger processingLegalBasis = PLYDataProcessingLegalBasisOptional;
775
-
775
+
776
776
  if ([processingLegalBasisBasisArg isEqualToString:@"ESSENTIAL"]) {
777
777
  processingLegalBasis = PLYDataProcessingLegalBasisEssential;
778
778
  }
@@ -784,9 +784,9 @@ static NSString * PLYWebCheckoutProviderToString(PLYWebCheckoutProvider provider
784
784
  NSString *key = [command argumentAtIndex:0];
785
785
  BOOL value = [[command argumentAtIndex:1] boolValue];
786
786
  NSString *processingLegalBasisBasisArg = [command argumentAtIndex:2];
787
-
787
+
788
788
  NSInteger processingLegalBasis = PLYDataProcessingLegalBasisOptional;
789
-
789
+
790
790
  if ([processingLegalBasisBasisArg isEqualToString:@"ESSENTIAL"]) {
791
791
  processingLegalBasis = PLYDataProcessingLegalBasisEssential;
792
792
  }
@@ -798,9 +798,9 @@ static NSString * PLYWebCheckoutProviderToString(PLYWebCheckoutProvider provider
798
798
  NSString *key = [command argumentAtIndex:0];
799
799
  NSInteger value = [[command argumentAtIndex:1] intValue];
800
800
  NSString *processingLegalBasisBasisArg = [command argumentAtIndex:2];
801
-
801
+
802
802
  NSInteger processingLegalBasis = PLYDataProcessingLegalBasisOptional;
803
-
803
+
804
804
  if ([processingLegalBasisBasisArg isEqualToString:@"ESSENTIAL"]) {
805
805
  processingLegalBasis = PLYDataProcessingLegalBasisEssential;
806
806
  }
@@ -812,9 +812,9 @@ static NSString * PLYWebCheckoutProviderToString(PLYWebCheckoutProvider provider
812
812
  NSString *key = [command argumentAtIndex:0];
813
813
  double value = [[command argumentAtIndex:1] doubleValue];
814
814
  NSString *processingLegalBasisBasisArg = [command argumentAtIndex:2];
815
-
815
+
816
816
  NSInteger processingLegalBasis = PLYDataProcessingLegalBasisOptional;
817
-
817
+
818
818
  if ([processingLegalBasisBasisArg isEqualToString:@"ESSENTIAL"]) {
819
819
  processingLegalBasis = PLYDataProcessingLegalBasisEssential;
820
820
  }
@@ -831,9 +831,9 @@ static NSString * PLYWebCheckoutProviderToString(PLYWebCheckoutProvider provider
831
831
  dateFormatter.timeZone = [NSTimeZone timeZoneWithName:@"GMT"];
832
832
  [dateFormatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"];
833
833
  NSDate *date = [dateFormatter dateFromString:value];
834
-
834
+
835
835
  NSInteger processingLegalBasis = PLYDataProcessingLegalBasisOptional;
836
-
836
+
837
837
  if ([processingLegalBasisBasisArg isEqualToString:@"ESSENTIAL"]) {
838
838
  processingLegalBasis = PLYDataProcessingLegalBasisEssential;
839
839
  }
@@ -991,6 +991,11 @@ static NSString * PLYWebCheckoutProviderToString(PLYWebCheckoutProvider provider
991
991
  [Purchasely revokeDataProcessingConsentFor: purposesSet];
992
992
  }
993
993
 
994
+ - (void)setDebugMode:(CDVInvokedUrlCommand*)command {
995
+ BOOL enabled = [[command argumentAtIndex:0] boolValue];
996
+ [Purchasely setDebugModeWithEnabled: enabled];
997
+ }
998
+
994
999
  - (PLYPresentation *) findPresentationLoadedFor:(NSString * _Nullable) presentationId {
995
1000
  for (PLYPresentation *presentationLoaded in self.presentationsLoaded) {
996
1001
  if ([presentationLoaded.id isEqualToString: presentationId]) {
@@ -5,7 +5,7 @@
5
5
  // Created by Jean-François GRANG on 13/01/2021.
6
6
  //
7
7
 
8
- #import <Foundation/Foundation.h>
8
+ #import <UIKit/UIKit.h>
9
9
 
10
10
  @implementation UIViewController (Hybrid)
11
11
 
@@ -14,3 +14,4 @@
14
14
  }
15
15
 
16
16
  @end
17
+
package/www/Purchasely.js CHANGED
@@ -5,7 +5,7 @@ var defaultError = (e) => { console.log(e); }
5
5
  exports.start = function (apiKey, stores, storekit1, userId, logLevel, runningMode, success, error) {
6
6
  var cordovaSdkVersion = cordova.define.moduleMap['cordova/plugin_list'].exports['metadata']['cordova-plugin-purchasely']
7
7
  if(!cordovaSdkVersion) {
8
- cordovaSdkVersion = "5.5.1";
8
+ cordovaSdkVersion = "5.6.1";
9
9
  }
10
10
  exec(success, error, 'Purchasely', 'start', [apiKey, stores, storekit1, userId, logLevel, runningMode, cordovaSdkVersion]);
11
11
  };
@@ -226,6 +226,10 @@ exports.revokeDataProcessingConsent = function (purposes) {
226
226
  exec(() => {}, defaultError, 'Purchasely', 'revokeDataProcessingConsent', [purposes]);
227
227
  }
228
228
 
229
+ exports.setDebugMode = function (enabled) {
230
+ exec(() => {}, defaultError, 'Purchasely', 'setDebugMode', [enabled]);
231
+ }
232
+
229
233
  exports.LogLevel = {
230
234
  DEBUG: 0,
231
235
  INFO: 1,