reactnative-plugin-appice 1.7.19 → 1.7.20

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.
@@ -113,7 +113,7 @@ dependencies {
113
113
  annotationProcessor "androidx.lifecycle:lifecycle-compiler:2.3.1"
114
114
 
115
115
  //appice
116
- implementation 'appice.io.android:sdk:2.5.84'
116
+ implementation 'appice.io.android:sdk:2.5.85'
117
117
 
118
118
  //glide
119
119
  implementation "com.github.bumptech.glide:glide:4.11.0"
@@ -43,7 +43,6 @@ import org.json.JSONException;
43
43
  import org.json.JSONObject;
44
44
 
45
45
  import semusi.nativedisplay.Campaign;
46
- import semusi.nativedisplay.NativeDisplayDataProvider;
47
46
 
48
47
  public class AppIceReactPluginModule extends ReactContextBaseJavaModule {
49
48
  private static ReactApplicationContext context = null;
package/campaign.js ADDED
@@ -0,0 +1,26 @@
1
+
2
+ export default class Campaign {
3
+ constructor(campId, actionUrl, actionType, customData) {
4
+ this._campId = campId;
5
+ this._actionUrl = actionUrl;
6
+ this._actionType = actionType;
7
+ this._customData = customData;
8
+ }
9
+
10
+ // Getter methods for campaign properties
11
+ getCampaignId() {
12
+ return this._campId;
13
+ }
14
+
15
+ getActionUrl() {
16
+ return this._actionUrl;
17
+ }
18
+
19
+ getActionType() {
20
+ return this._actionType;
21
+ }
22
+
23
+ getCustomData() {
24
+ return this._customData;
25
+ }
26
+ }
@@ -17,7 +17,7 @@
17
17
  "install": "^0.13.0",
18
18
  "react": "18.0.0",
19
19
  "react-native": "0.69.4",
20
- "reactnative-plugin-appice": "1.7.19",
20
+ "reactnative-plugin-appice": "1.7.20",
21
21
  "react-native-mmkv": "2.12.2"
22
22
  },
23
23
  "devDependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reactnative-plugin-appice",
3
- "version": "1.7.19",
3
+ "version": "1.7.20",
4
4
  "description": "appICE React Native SDK",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -8,6 +8,7 @@
8
8
  "example",
9
9
  "android",
10
10
  "index.js",
11
+ "campaign.js",
11
12
  "ios",
12
13
  "reactnative-plugin-appice.podspec"
13
14
  ],