@purchasely/cordova-plugin-purchasely 2.0.1 → 2.2.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.
- package/VERSIONS.md +3 -0
- package/example/package-lock.json +210 -83
- package/example/package.json +1 -4
- package/example/www/js/index.js +4 -6
- package/package.json +1 -1
- package/plugin.xml +3 -3
- package/src/android/PLYProductActivity.java +4 -1
- package/src/android/PurchaselyPlugin.java +58 -19
- package/src/ios/CDVPurchasely.h +1 -0
- package/src/ios/CDVPurchasely.m +194 -157
- package/src/ios/Hybrid/PLYPlan+Hybrid.m +5 -0
- package/www/Purchasely.js +13 -2
package/VERSIONS.md
CHANGED
|
@@ -9,16 +9,14 @@
|
|
|
9
9
|
"version": "1.0.0",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@purchasely/cordova-plugin-purchasely": "file:..",
|
|
13
12
|
"cordova-android": "^10.1.0",
|
|
14
13
|
"cordova-ios": "^6.2.0",
|
|
15
|
-
"cordova-plugin-purchasely": "file:.."
|
|
16
|
-
"cordova-plugin-whitelist": "^1.3.5"
|
|
14
|
+
"cordova-plugin-purchasely": "file:.."
|
|
17
15
|
}
|
|
18
16
|
},
|
|
19
17
|
"..": {
|
|
20
18
|
"name": "cordova-plugin-purchasely",
|
|
21
|
-
"version": "2.
|
|
19
|
+
"version": "2.2.0",
|
|
22
20
|
"dev": true,
|
|
23
21
|
"license": "ISC"
|
|
24
22
|
},
|
|
@@ -68,10 +66,6 @@
|
|
|
68
66
|
"node": ">= 8"
|
|
69
67
|
}
|
|
70
68
|
},
|
|
71
|
-
"node_modules/@purchasely/cordova-plugin-purchasely": {
|
|
72
|
-
"resolved": "..",
|
|
73
|
-
"link": true
|
|
74
|
-
},
|
|
75
69
|
"node_modules/abbrev": {
|
|
76
70
|
"version": "1.1.1",
|
|
77
71
|
"resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
|
|
@@ -227,9 +221,9 @@
|
|
|
227
221
|
}
|
|
228
222
|
},
|
|
229
223
|
"node_modules/cordova-android/node_modules/fs-extra": {
|
|
230
|
-
"version": "10.0.
|
|
231
|
-
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.
|
|
232
|
-
"integrity": "sha512-
|
|
224
|
+
"version": "10.0.1",
|
|
225
|
+
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.1.tgz",
|
|
226
|
+
"integrity": "sha512-NbdoVMZso2Lsrn/QwLXOy6rm0ufY2zEOKCDzJR/0kBsb0E6qed0P3iYK+Ath3BfvXEeu4JhEtXLgILx5psUfag==",
|
|
233
227
|
"dev": true,
|
|
234
228
|
"dependencies": {
|
|
235
229
|
"graceful-fs": "^4.2.0",
|
|
@@ -290,22 +284,6 @@
|
|
|
290
284
|
"resolved": "..",
|
|
291
285
|
"link": true
|
|
292
286
|
},
|
|
293
|
-
"node_modules/cordova-plugin-whitelist": {
|
|
294
|
-
"version": "1.3.5",
|
|
295
|
-
"resolved": "https://registry.npmjs.org/cordova-plugin-whitelist/-/cordova-plugin-whitelist-1.3.5.tgz",
|
|
296
|
-
"integrity": "sha512-+v/VzCYBdGsIxJTP2m+RWaq7l/NLu7b976w6XGJUFiN2TVOeaGrytaR4jRy0w9akRai8uKFeBmuGHmlS/sOeCA==",
|
|
297
|
-
"dev": true,
|
|
298
|
-
"engines": {
|
|
299
|
-
"cordovaDependencies": {
|
|
300
|
-
"0.0.0": {
|
|
301
|
-
"cordova-android": ">=4.0.0"
|
|
302
|
-
},
|
|
303
|
-
"1.3.5": {
|
|
304
|
-
"cordova-android": ">=4.0.0 <10.0.0"
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
287
|
"node_modules/cross-spawn": {
|
|
310
288
|
"version": "7.0.3",
|
|
311
289
|
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
|
|
@@ -445,6 +423,12 @@
|
|
|
445
423
|
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
|
|
446
424
|
"dev": true
|
|
447
425
|
},
|
|
426
|
+
"node_modules/function-bind": {
|
|
427
|
+
"version": "1.1.1",
|
|
428
|
+
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
|
|
429
|
+
"integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",
|
|
430
|
+
"dev": true
|
|
431
|
+
},
|
|
448
432
|
"node_modules/get-stream": {
|
|
449
433
|
"version": "6.0.1",
|
|
450
434
|
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",
|
|
@@ -495,6 +479,18 @@
|
|
|
495
479
|
"integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==",
|
|
496
480
|
"dev": true
|
|
497
481
|
},
|
|
482
|
+
"node_modules/has": {
|
|
483
|
+
"version": "1.0.3",
|
|
484
|
+
"resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
|
|
485
|
+
"integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
|
|
486
|
+
"dev": true,
|
|
487
|
+
"dependencies": {
|
|
488
|
+
"function-bind": "^1.1.1"
|
|
489
|
+
},
|
|
490
|
+
"engines": {
|
|
491
|
+
"node": ">= 0.4.0"
|
|
492
|
+
}
|
|
493
|
+
},
|
|
498
494
|
"node_modules/human-signals": {
|
|
499
495
|
"version": "2.1.0",
|
|
500
496
|
"resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",
|
|
@@ -520,6 +516,15 @@
|
|
|
520
516
|
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
|
521
517
|
"dev": true
|
|
522
518
|
},
|
|
519
|
+
"node_modules/interpret": {
|
|
520
|
+
"version": "1.4.0",
|
|
521
|
+
"resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz",
|
|
522
|
+
"integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==",
|
|
523
|
+
"dev": true,
|
|
524
|
+
"engines": {
|
|
525
|
+
"node": ">= 0.10"
|
|
526
|
+
}
|
|
527
|
+
},
|
|
523
528
|
"node_modules/ios-sim": {
|
|
524
529
|
"version": "8.0.2",
|
|
525
530
|
"resolved": "https://registry.npmjs.org/ios-sim/-/ios-sim-8.0.2.tgz",
|
|
@@ -559,6 +564,18 @@
|
|
|
559
564
|
"node": "*"
|
|
560
565
|
}
|
|
561
566
|
},
|
|
567
|
+
"node_modules/is-core-module": {
|
|
568
|
+
"version": "2.8.1",
|
|
569
|
+
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.1.tgz",
|
|
570
|
+
"integrity": "sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA==",
|
|
571
|
+
"dev": true,
|
|
572
|
+
"dependencies": {
|
|
573
|
+
"has": "^1.0.3"
|
|
574
|
+
},
|
|
575
|
+
"funding": {
|
|
576
|
+
"url": "https://github.com/sponsors/ljharb"
|
|
577
|
+
}
|
|
578
|
+
},
|
|
562
579
|
"node_modules/is-extglob": {
|
|
563
580
|
"version": "2.1.1",
|
|
564
581
|
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
|
|
@@ -788,6 +805,12 @@
|
|
|
788
805
|
"node": ">=8"
|
|
789
806
|
}
|
|
790
807
|
},
|
|
808
|
+
"node_modules/path-parse": {
|
|
809
|
+
"version": "1.0.7",
|
|
810
|
+
"resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
|
|
811
|
+
"integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
|
|
812
|
+
"dev": true
|
|
813
|
+
},
|
|
791
814
|
"node_modules/picomatch": {
|
|
792
815
|
"version": "2.3.0",
|
|
793
816
|
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz",
|
|
@@ -810,9 +833,9 @@
|
|
|
810
833
|
}
|
|
811
834
|
},
|
|
812
835
|
"node_modules/plist": {
|
|
813
|
-
"version": "3.0.
|
|
814
|
-
"resolved": "https://registry.npmjs.org/plist/-/plist-3.0.
|
|
815
|
-
"integrity": "sha512-
|
|
836
|
+
"version": "3.0.5",
|
|
837
|
+
"resolved": "https://registry.npmjs.org/plist/-/plist-3.0.5.tgz",
|
|
838
|
+
"integrity": "sha512-83vX4eYdQp3vP9SxuYgEM/G/pJQqLUz/V/xzPrzruLs7fz7jxGQ1msZ/mg1nwZxUSuOp4sb+/bEIbRrbzZRxDA==",
|
|
816
839
|
"dev": true,
|
|
817
840
|
"dependencies": {
|
|
818
841
|
"base64-js": "^1.5.1",
|
|
@@ -877,6 +900,35 @@
|
|
|
877
900
|
"node": ">=6"
|
|
878
901
|
}
|
|
879
902
|
},
|
|
903
|
+
"node_modules/rechoir": {
|
|
904
|
+
"version": "0.6.2",
|
|
905
|
+
"resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz",
|
|
906
|
+
"integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=",
|
|
907
|
+
"dev": true,
|
|
908
|
+
"dependencies": {
|
|
909
|
+
"resolve": "^1.1.6"
|
|
910
|
+
},
|
|
911
|
+
"engines": {
|
|
912
|
+
"node": ">= 0.10"
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
"node_modules/resolve": {
|
|
916
|
+
"version": "1.22.0",
|
|
917
|
+
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz",
|
|
918
|
+
"integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==",
|
|
919
|
+
"dev": true,
|
|
920
|
+
"dependencies": {
|
|
921
|
+
"is-core-module": "^2.8.1",
|
|
922
|
+
"path-parse": "^1.0.7",
|
|
923
|
+
"supports-preserve-symlinks-flag": "^1.0.0"
|
|
924
|
+
},
|
|
925
|
+
"bin": {
|
|
926
|
+
"resolve": "bin/resolve"
|
|
927
|
+
},
|
|
928
|
+
"funding": {
|
|
929
|
+
"url": "https://github.com/sponsors/ljharb"
|
|
930
|
+
}
|
|
931
|
+
},
|
|
880
932
|
"node_modules/reusify": {
|
|
881
933
|
"version": "1.0.4",
|
|
882
934
|
"resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz",
|
|
@@ -953,48 +1005,53 @@
|
|
|
953
1005
|
}
|
|
954
1006
|
},
|
|
955
1007
|
"node_modules/shelljs": {
|
|
956
|
-
"version": "0.
|
|
957
|
-
"resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.
|
|
958
|
-
"integrity": "
|
|
1008
|
+
"version": "0.8.5",
|
|
1009
|
+
"resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz",
|
|
1010
|
+
"integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==",
|
|
959
1011
|
"dev": true,
|
|
1012
|
+
"dependencies": {
|
|
1013
|
+
"glob": "^7.0.0",
|
|
1014
|
+
"interpret": "^1.0.0",
|
|
1015
|
+
"rechoir": "^0.6.2"
|
|
1016
|
+
},
|
|
960
1017
|
"bin": {
|
|
961
1018
|
"shjs": "bin/shjs"
|
|
962
1019
|
},
|
|
963
1020
|
"engines": {
|
|
964
|
-
"node": ">=
|
|
1021
|
+
"node": ">=4"
|
|
965
1022
|
}
|
|
966
1023
|
},
|
|
967
1024
|
"node_modules/signal-exit": {
|
|
968
|
-
"version": "3.0.
|
|
969
|
-
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.
|
|
970
|
-
"integrity": "sha512-
|
|
1025
|
+
"version": "3.0.7",
|
|
1026
|
+
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
|
|
1027
|
+
"integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
|
|
971
1028
|
"dev": true
|
|
972
1029
|
},
|
|
973
1030
|
"node_modules/simctl": {
|
|
974
|
-
"version": "2.0.
|
|
975
|
-
"resolved": "https://registry.npmjs.org/simctl/-/simctl-2.0.
|
|
976
|
-
"integrity": "sha512-
|
|
1031
|
+
"version": "2.0.3",
|
|
1032
|
+
"resolved": "https://registry.npmjs.org/simctl/-/simctl-2.0.3.tgz",
|
|
1033
|
+
"integrity": "sha512-kKCak0yszxHae5eVWcmrjV3ouUGac3sjlhjdLWpyPu4eiQcWoHsCrqS34kkgzHN8Ystqkh/LFjzrldk/g3BYJg==",
|
|
977
1034
|
"dev": true,
|
|
978
1035
|
"dependencies": {
|
|
979
|
-
"shelljs": "^0.
|
|
1036
|
+
"shelljs": "^0.8.5",
|
|
980
1037
|
"tail": "^0.4.0"
|
|
981
1038
|
}
|
|
982
1039
|
},
|
|
983
1040
|
"node_modules/simple-plist": {
|
|
984
|
-
"version": "1.3.
|
|
985
|
-
"resolved": "https://registry.npmjs.org/simple-plist/-/simple-plist-1.3.
|
|
986
|
-
"integrity": "sha512-
|
|
1041
|
+
"version": "1.3.1",
|
|
1042
|
+
"resolved": "https://registry.npmjs.org/simple-plist/-/simple-plist-1.3.1.tgz",
|
|
1043
|
+
"integrity": "sha512-iMSw5i0XseMnrhtIzRb7XpQEXepa9xhWxGUojHBL43SIpQuDQkh3Wpy67ZbDzZVr6EKxvwVChnVpdl8hEVLDiw==",
|
|
987
1044
|
"dev": true,
|
|
988
1045
|
"dependencies": {
|
|
989
1046
|
"bplist-creator": "0.1.0",
|
|
990
|
-
"bplist-parser": "0.3.
|
|
991
|
-
"plist": "^3.0.
|
|
1047
|
+
"bplist-parser": "0.3.1",
|
|
1048
|
+
"plist": "^3.0.5"
|
|
992
1049
|
}
|
|
993
1050
|
},
|
|
994
1051
|
"node_modules/simple-plist/node_modules/bplist-parser": {
|
|
995
|
-
"version": "0.3.
|
|
996
|
-
"resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.3.
|
|
997
|
-
"integrity": "sha512-
|
|
1052
|
+
"version": "0.3.1",
|
|
1053
|
+
"resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.3.1.tgz",
|
|
1054
|
+
"integrity": "sha512-PyJxiNtA5T2PlLIeBot4lbp7rj4OadzjnMZD/G5zuBNt8ei/yCU7+wW0h2bag9vr8c+/WuRWmSxbqAl9hL1rBA==",
|
|
998
1055
|
"dev": true,
|
|
999
1056
|
"dependencies": {
|
|
1000
1057
|
"big-integer": "1.6.x"
|
|
@@ -1036,6 +1093,18 @@
|
|
|
1036
1093
|
"node": ">=6"
|
|
1037
1094
|
}
|
|
1038
1095
|
},
|
|
1096
|
+
"node_modules/supports-preserve-symlinks-flag": {
|
|
1097
|
+
"version": "1.0.0",
|
|
1098
|
+
"resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
|
|
1099
|
+
"integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
|
|
1100
|
+
"dev": true,
|
|
1101
|
+
"engines": {
|
|
1102
|
+
"node": ">= 0.4"
|
|
1103
|
+
},
|
|
1104
|
+
"funding": {
|
|
1105
|
+
"url": "https://github.com/sponsors/ljharb"
|
|
1106
|
+
}
|
|
1107
|
+
},
|
|
1039
1108
|
"node_modules/tail": {
|
|
1040
1109
|
"version": "0.4.0",
|
|
1041
1110
|
"resolved": "https://registry.npmjs.org/tail/-/tail-0.4.0.tgz",
|
|
@@ -1207,9 +1276,6 @@
|
|
|
1207
1276
|
"fastq": "^1.6.0"
|
|
1208
1277
|
}
|
|
1209
1278
|
},
|
|
1210
|
-
"@purchasely/cordova-plugin-purchasely": {
|
|
1211
|
-
"version": "file:.."
|
|
1212
|
-
},
|
|
1213
1279
|
"abbrev": {
|
|
1214
1280
|
"version": "1.1.1",
|
|
1215
1281
|
"resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
|
|
@@ -1332,9 +1398,9 @@
|
|
|
1332
1398
|
},
|
|
1333
1399
|
"dependencies": {
|
|
1334
1400
|
"fs-extra": {
|
|
1335
|
-
"version": "10.0.
|
|
1336
|
-
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.
|
|
1337
|
-
"integrity": "sha512-
|
|
1401
|
+
"version": "10.0.1",
|
|
1402
|
+
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.1.tgz",
|
|
1403
|
+
"integrity": "sha512-NbdoVMZso2Lsrn/QwLXOy6rm0ufY2zEOKCDzJR/0kBsb0E6qed0P3iYK+Ath3BfvXEeu4JhEtXLgILx5psUfag==",
|
|
1338
1404
|
"dev": true,
|
|
1339
1405
|
"requires": {
|
|
1340
1406
|
"graceful-fs": "^4.2.0",
|
|
@@ -1387,12 +1453,6 @@
|
|
|
1387
1453
|
"cordova-plugin-purchasely": {
|
|
1388
1454
|
"version": "file:.."
|
|
1389
1455
|
},
|
|
1390
|
-
"cordova-plugin-whitelist": {
|
|
1391
|
-
"version": "1.3.5",
|
|
1392
|
-
"resolved": "https://registry.npmjs.org/cordova-plugin-whitelist/-/cordova-plugin-whitelist-1.3.5.tgz",
|
|
1393
|
-
"integrity": "sha512-+v/VzCYBdGsIxJTP2m+RWaq7l/NLu7b976w6XGJUFiN2TVOeaGrytaR4jRy0w9akRai8uKFeBmuGHmlS/sOeCA==",
|
|
1394
|
-
"dev": true
|
|
1395
|
-
},
|
|
1396
1456
|
"cross-spawn": {
|
|
1397
1457
|
"version": "7.0.3",
|
|
1398
1458
|
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
|
|
@@ -1508,6 +1568,12 @@
|
|
|
1508
1568
|
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
|
|
1509
1569
|
"dev": true
|
|
1510
1570
|
},
|
|
1571
|
+
"function-bind": {
|
|
1572
|
+
"version": "1.1.1",
|
|
1573
|
+
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
|
|
1574
|
+
"integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",
|
|
1575
|
+
"dev": true
|
|
1576
|
+
},
|
|
1511
1577
|
"get-stream": {
|
|
1512
1578
|
"version": "6.0.1",
|
|
1513
1579
|
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",
|
|
@@ -1543,6 +1609,15 @@
|
|
|
1543
1609
|
"integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==",
|
|
1544
1610
|
"dev": true
|
|
1545
1611
|
},
|
|
1612
|
+
"has": {
|
|
1613
|
+
"version": "1.0.3",
|
|
1614
|
+
"resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
|
|
1615
|
+
"integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
|
|
1616
|
+
"dev": true,
|
|
1617
|
+
"requires": {
|
|
1618
|
+
"function-bind": "^1.1.1"
|
|
1619
|
+
}
|
|
1620
|
+
},
|
|
1546
1621
|
"human-signals": {
|
|
1547
1622
|
"version": "2.1.0",
|
|
1548
1623
|
"resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",
|
|
@@ -1565,6 +1640,12 @@
|
|
|
1565
1640
|
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
|
1566
1641
|
"dev": true
|
|
1567
1642
|
},
|
|
1643
|
+
"interpret": {
|
|
1644
|
+
"version": "1.4.0",
|
|
1645
|
+
"resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz",
|
|
1646
|
+
"integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==",
|
|
1647
|
+
"dev": true
|
|
1648
|
+
},
|
|
1568
1649
|
"ios-sim": {
|
|
1569
1650
|
"version": "8.0.2",
|
|
1570
1651
|
"resolved": "https://registry.npmjs.org/ios-sim/-/ios-sim-8.0.2.tgz",
|
|
@@ -1594,6 +1675,15 @@
|
|
|
1594
1675
|
}
|
|
1595
1676
|
}
|
|
1596
1677
|
},
|
|
1678
|
+
"is-core-module": {
|
|
1679
|
+
"version": "2.8.1",
|
|
1680
|
+
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.1.tgz",
|
|
1681
|
+
"integrity": "sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA==",
|
|
1682
|
+
"dev": true,
|
|
1683
|
+
"requires": {
|
|
1684
|
+
"has": "^1.0.3"
|
|
1685
|
+
}
|
|
1686
|
+
},
|
|
1597
1687
|
"is-extglob": {
|
|
1598
1688
|
"version": "2.1.1",
|
|
1599
1689
|
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
|
|
@@ -1761,6 +1851,12 @@
|
|
|
1761
1851
|
"integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
|
|
1762
1852
|
"dev": true
|
|
1763
1853
|
},
|
|
1854
|
+
"path-parse": {
|
|
1855
|
+
"version": "1.0.7",
|
|
1856
|
+
"resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
|
|
1857
|
+
"integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
|
|
1858
|
+
"dev": true
|
|
1859
|
+
},
|
|
1764
1860
|
"picomatch": {
|
|
1765
1861
|
"version": "2.3.0",
|
|
1766
1862
|
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz",
|
|
@@ -1774,9 +1870,9 @@
|
|
|
1774
1870
|
"dev": true
|
|
1775
1871
|
},
|
|
1776
1872
|
"plist": {
|
|
1777
|
-
"version": "3.0.
|
|
1778
|
-
"resolved": "https://registry.npmjs.org/plist/-/plist-3.0.
|
|
1779
|
-
"integrity": "sha512-
|
|
1873
|
+
"version": "3.0.5",
|
|
1874
|
+
"resolved": "https://registry.npmjs.org/plist/-/plist-3.0.5.tgz",
|
|
1875
|
+
"integrity": "sha512-83vX4eYdQp3vP9SxuYgEM/G/pJQqLUz/V/xzPrzruLs7fz7jxGQ1msZ/mg1nwZxUSuOp4sb+/bEIbRrbzZRxDA==",
|
|
1780
1876
|
"dev": true,
|
|
1781
1877
|
"requires": {
|
|
1782
1878
|
"base64-js": "^1.5.1",
|
|
@@ -1814,6 +1910,26 @@
|
|
|
1814
1910
|
"with-open-file": "^0.1.6"
|
|
1815
1911
|
}
|
|
1816
1912
|
},
|
|
1913
|
+
"rechoir": {
|
|
1914
|
+
"version": "0.6.2",
|
|
1915
|
+
"resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz",
|
|
1916
|
+
"integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=",
|
|
1917
|
+
"dev": true,
|
|
1918
|
+
"requires": {
|
|
1919
|
+
"resolve": "^1.1.6"
|
|
1920
|
+
}
|
|
1921
|
+
},
|
|
1922
|
+
"resolve": {
|
|
1923
|
+
"version": "1.22.0",
|
|
1924
|
+
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz",
|
|
1925
|
+
"integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==",
|
|
1926
|
+
"dev": true,
|
|
1927
|
+
"requires": {
|
|
1928
|
+
"is-core-module": "^2.8.1",
|
|
1929
|
+
"path-parse": "^1.0.7",
|
|
1930
|
+
"supports-preserve-symlinks-flag": "^1.0.0"
|
|
1931
|
+
}
|
|
1932
|
+
},
|
|
1817
1933
|
"reusify": {
|
|
1818
1934
|
"version": "1.0.4",
|
|
1819
1935
|
"resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz",
|
|
@@ -1860,42 +1976,47 @@
|
|
|
1860
1976
|
"dev": true
|
|
1861
1977
|
},
|
|
1862
1978
|
"shelljs": {
|
|
1863
|
-
"version": "0.
|
|
1864
|
-
"resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.
|
|
1865
|
-
"integrity": "
|
|
1866
|
-
"dev": true
|
|
1979
|
+
"version": "0.8.5",
|
|
1980
|
+
"resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz",
|
|
1981
|
+
"integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==",
|
|
1982
|
+
"dev": true,
|
|
1983
|
+
"requires": {
|
|
1984
|
+
"glob": "^7.0.0",
|
|
1985
|
+
"interpret": "^1.0.0",
|
|
1986
|
+
"rechoir": "^0.6.2"
|
|
1987
|
+
}
|
|
1867
1988
|
},
|
|
1868
1989
|
"signal-exit": {
|
|
1869
|
-
"version": "3.0.
|
|
1870
|
-
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.
|
|
1871
|
-
"integrity": "sha512-
|
|
1990
|
+
"version": "3.0.7",
|
|
1991
|
+
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
|
|
1992
|
+
"integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
|
|
1872
1993
|
"dev": true
|
|
1873
1994
|
},
|
|
1874
1995
|
"simctl": {
|
|
1875
|
-
"version": "2.0.
|
|
1876
|
-
"resolved": "https://registry.npmjs.org/simctl/-/simctl-2.0.
|
|
1877
|
-
"integrity": "sha512-
|
|
1996
|
+
"version": "2.0.3",
|
|
1997
|
+
"resolved": "https://registry.npmjs.org/simctl/-/simctl-2.0.3.tgz",
|
|
1998
|
+
"integrity": "sha512-kKCak0yszxHae5eVWcmrjV3ouUGac3sjlhjdLWpyPu4eiQcWoHsCrqS34kkgzHN8Ystqkh/LFjzrldk/g3BYJg==",
|
|
1878
1999
|
"dev": true,
|
|
1879
2000
|
"requires": {
|
|
1880
|
-
"shelljs": "^0.
|
|
2001
|
+
"shelljs": "^0.8.5",
|
|
1881
2002
|
"tail": "^0.4.0"
|
|
1882
2003
|
}
|
|
1883
2004
|
},
|
|
1884
2005
|
"simple-plist": {
|
|
1885
|
-
"version": "1.3.
|
|
1886
|
-
"resolved": "https://registry.npmjs.org/simple-plist/-/simple-plist-1.3.
|
|
1887
|
-
"integrity": "sha512-
|
|
2006
|
+
"version": "1.3.1",
|
|
2007
|
+
"resolved": "https://registry.npmjs.org/simple-plist/-/simple-plist-1.3.1.tgz",
|
|
2008
|
+
"integrity": "sha512-iMSw5i0XseMnrhtIzRb7XpQEXepa9xhWxGUojHBL43SIpQuDQkh3Wpy67ZbDzZVr6EKxvwVChnVpdl8hEVLDiw==",
|
|
1888
2009
|
"dev": true,
|
|
1889
2010
|
"requires": {
|
|
1890
2011
|
"bplist-creator": "0.1.0",
|
|
1891
|
-
"bplist-parser": "0.3.
|
|
1892
|
-
"plist": "^3.0.
|
|
2012
|
+
"bplist-parser": "0.3.1",
|
|
2013
|
+
"plist": "^3.0.5"
|
|
1893
2014
|
},
|
|
1894
2015
|
"dependencies": {
|
|
1895
2016
|
"bplist-parser": {
|
|
1896
|
-
"version": "0.3.
|
|
1897
|
-
"resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.3.
|
|
1898
|
-
"integrity": "sha512-
|
|
2017
|
+
"version": "0.3.1",
|
|
2018
|
+
"resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.3.1.tgz",
|
|
2019
|
+
"integrity": "sha512-PyJxiNtA5T2PlLIeBot4lbp7rj4OadzjnMZD/G5zuBNt8ei/yCU7+wW0h2bag9vr8c+/WuRWmSxbqAl9hL1rBA==",
|
|
1899
2020
|
"dev": true,
|
|
1900
2021
|
"requires": {
|
|
1901
2022
|
"big-integer": "1.6.x"
|
|
@@ -1927,6 +2048,12 @@
|
|
|
1927
2048
|
"integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",
|
|
1928
2049
|
"dev": true
|
|
1929
2050
|
},
|
|
2051
|
+
"supports-preserve-symlinks-flag": {
|
|
2052
|
+
"version": "1.0.0",
|
|
2053
|
+
"resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
|
|
2054
|
+
"integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
|
|
2055
|
+
"dev": true
|
|
2056
|
+
},
|
|
1930
2057
|
"tail": {
|
|
1931
2058
|
"version": "0.4.0",
|
|
1932
2059
|
"resolved": "https://registry.npmjs.org/tail/-/tail-0.4.0.tgz",
|
package/example/package.json
CHANGED
|
@@ -13,15 +13,12 @@
|
|
|
13
13
|
"author": "Apache Cordova Team",
|
|
14
14
|
"license": "Apache-2.0",
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@purchasely/cordova-plugin-purchasely": "file:..",
|
|
17
16
|
"cordova-android": "^10.1.0",
|
|
18
17
|
"cordova-ios": "^6.2.0",
|
|
19
|
-
"cordova-plugin-purchasely": "file:.."
|
|
20
|
-
"cordova-plugin-whitelist": "^1.3.5"
|
|
18
|
+
"cordova-plugin-purchasely": "file:.."
|
|
21
19
|
},
|
|
22
20
|
"cordova": {
|
|
23
21
|
"plugins": {
|
|
24
|
-
"cordova-plugin-whitelist": {},
|
|
25
22
|
"cordova-plugin-purchasely": {}
|
|
26
23
|
},
|
|
27
24
|
"platforms": [
|
package/example/www/js/index.js
CHANGED
|
@@ -27,8 +27,6 @@ function onDeviceReady() {
|
|
|
27
27
|
console.log('Running cordova-' + cordova.platformId + '@' + cordova.version);
|
|
28
28
|
document.getElementById('deviceready').classList.add('ready');
|
|
29
29
|
|
|
30
|
-
console.log("Hi");
|
|
31
|
-
|
|
32
30
|
Purchasely.setLanguage('en')
|
|
33
31
|
|
|
34
32
|
Purchasely.startWithAPIKey(
|
|
@@ -158,10 +156,10 @@ function onPuchaselySdkReady() {
|
|
|
158
156
|
}
|
|
159
157
|
|
|
160
158
|
function openPresentation() {
|
|
161
|
-
Purchasely.
|
|
162
|
-
|
|
163
|
-
null,
|
|
164
|
-
true,
|
|
159
|
+
Purchasely.presentPresentationForPlacement(
|
|
160
|
+
'onboarding', //placementId
|
|
161
|
+
null, //contentId
|
|
162
|
+
true, //fullscreen
|
|
165
163
|
(callback) => {
|
|
166
164
|
console.log(callback);
|
|
167
165
|
if(callback.result == Purchasely.PurchaseResult.CANCELLED) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@purchasely/cordova-plugin-purchasely",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.2.0",
|
|
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="2.0
|
|
2
|
+
<plugin id="@purchasely/cordova-plugin-purchasely" version="2.2.0" 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" />
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<source url="https://github.com/CocoaPods/Specs.git"/>
|
|
29
29
|
</config>
|
|
30
30
|
<pods use-frameworks="true">
|
|
31
|
-
<pod name="Purchasely" spec="3.
|
|
31
|
+
<pod name="Purchasely" spec="3.2.0"/>
|
|
32
32
|
</pods>
|
|
33
33
|
</podspec>
|
|
34
34
|
</platform>
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
android:theme="@style/Theme.AppCompat.Light.NoActionBar">
|
|
52
52
|
</activity>
|
|
53
53
|
</config-file>
|
|
54
|
-
<framework src="io.purchasely:core:3.0
|
|
54
|
+
<framework src="io.purchasely:core:3.2.0" />
|
|
55
55
|
<source-file src="src/android/PurchaselyPlugin.java" target-dir="src/cordova/plugin/purchasely" />
|
|
56
56
|
<source-file src="src/android/PLYProductActivity.java" target-dir="src/cordova/plugin/purchasely" />
|
|
57
57
|
<source-file src="src/android/PLYSubscriptionsActivity.java" target-dir="src/cordova/plugin/purchasely" />
|
|
@@ -33,12 +33,15 @@ public class PLYProductActivity extends AppCompatActivity {
|
|
|
33
33
|
);
|
|
34
34
|
|
|
35
35
|
String presentationId = getIntent().getExtras().getString("presentationId");
|
|
36
|
+
String placementId = getIntent().getExtras().getString("placementId");
|
|
36
37
|
String productId = getIntent().getExtras().getString("productId");
|
|
37
38
|
String planId = getIntent().getExtras().getString("planId");
|
|
38
39
|
String contentId = getIntent().getExtras().getString("contentId");
|
|
39
40
|
|
|
40
41
|
Fragment fragment;
|
|
41
|
-
if(
|
|
42
|
+
if(placementId != null && !placementId.isEmpty()) {
|
|
43
|
+
fragment = Purchasely.presentationFragmentForPlacement(placementId, contentId, null, listener);
|
|
44
|
+
} else if(planId != null && !planId.isEmpty()) {
|
|
42
45
|
fragment = Purchasely.planFragment(planId, presentationId, contentId, null, listener);
|
|
43
46
|
} else if(productId != null && !productId.isEmpty()) {
|
|
44
47
|
fragment = Purchasely.productFragment(productId, presentationId, contentId, null, listener);
|