@purchasely/cordova-plugin-purchasely 2.2.0 → 2.2.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.
package/VERSIONS.md CHANGED
@@ -18,4 +18,5 @@ This file provides the underlying native SDK versions that the Cordova SDK relie
18
18
  | 2.0.1 | 3.0.0 | 3.0.1 |
19
19
  | 2.1.0 | 3.1.0 | 3.1.0 |
20
20
  | 2.1.1 | 3.1.0 | 3.1.0 |
21
- | 2.2.0 | 3.2.0 | 3.2.0 |
21
+ | 2.2.0 | 3.2.0 | 3.2.0 |
22
+ | 2.2.1 | 3.2.1 | 3.2.1 |
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "..": {
18
18
  "name": "cordova-plugin-purchasely",
19
- "version": "2.2.0",
19
+ "version": "2.2.1",
20
20
  "dev": true,
21
21
  "license": "ISC"
22
22
  },
@@ -565,9 +565,9 @@
565
565
  }
566
566
  },
567
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==",
568
+ "version": "2.9.0",
569
+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz",
570
+ "integrity": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==",
571
571
  "dev": true,
572
572
  "dependencies": {
573
573
  "has": "^1.0.3"
@@ -1676,9 +1676,9 @@
1676
1676
  }
1677
1677
  },
1678
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==",
1679
+ "version": "2.9.0",
1680
+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz",
1681
+ "integrity": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==",
1682
1682
  "dev": true,
1683
1683
  "requires": {
1684
1684
  "has": "^1.0.3"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purchasely/cordova-plugin-purchasely",
3
- "version": "2.2.0",
3
+ "version": "2.2.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="2.2.0" 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="2.2.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" />
@@ -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.2.0"/>
31
+ <pod name="Purchasely" spec="3.2.1"/>
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.2.0" />
54
+ <framework src="io.purchasely:core:3.2.1" />
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" />
@@ -16,8 +16,10 @@
16
16
  NSString *userId = [command argumentAtIndex:2];
17
17
  NSInteger logLevel = [[command argumentAtIndex:3] intValue];
18
18
  NSInteger runningMode = [[command argumentAtIndex:4] intValue];
19
- NSString *sdkBridgeVersion = [command argumentAtIndex:5];
19
+ NSString *purchaselySdkVersion = [command argumentAtIndex:5];
20
20
 
21
+ [Purchasely setSdkBridgeVersion:purchaselySdkVersion];
22
+
21
23
  [Purchasely setAppTechnology:PLYAppTechnologyCordova];
22
24
  [Purchasely startWithAPIKey:apiKey appUserId:userId runningMode:runningMode eventDelegate:nil uiDelegate:nil paywallActionsInterceptor:nil logLevel:logLevel initialized:^(BOOL initialized, NSError * _Nullable error) {
23
25
  if (error != nil) {
package/www/Purchasely.js CHANGED
@@ -137,10 +137,12 @@ exports.Attribute = {
137
137
  AMPLITUDE_SESSION_ID: 0,
138
138
  FIREBASE_APP_INSTANCE_ID: 1,
139
139
  AIRSHIP_CHANNEL_ID: 2,
140
- BATCH_INSTALLATION_ID: 3,
141
- ADJUST_ID: 4,
142
- APPSFLYER_ID: 5,
143
- ONESIGNAL_PLAYER_ID: 6
140
+ BATCH_INSTALLATION_ID: 3,
141
+ ADJUST_ID: 4,
142
+ APPSFLYER_ID: 5,
143
+ ONESIGNAL_PLAYER_ID: 6,
144
+ MIXPANEL_DISTINCT_ID: 7,
145
+ CLEVER_TAP_ID: 8
144
146
  }
145
147
 
146
148
  exports.PurchaseResult = {