@customerglu/react-native-customerglu 1.3.2 → 1.3.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.
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ Supports API 21 and above. Please ensure the minSDKVersion in the app's build.gr
|
|
|
16
16
|
### Option 1
|
|
17
17
|
Add the CustomerGlu React Native plugin in package.json file
|
|
18
18
|
```
|
|
19
|
-
"@customerglu/react-native-customerglu": "^1.3.
|
|
19
|
+
"@customerglu/react-native-customerglu": "^1.3.3"
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
### Option 2
|
package/android/build.gradle
CHANGED
|
@@ -61,7 +61,7 @@ repositories {
|
|
|
61
61
|
dependencies {
|
|
62
62
|
//noinspection GradleDynamicVersion
|
|
63
63
|
implementation "com.facebook.react:react-native:+" // From node_modules
|
|
64
|
-
implementation 'com.github.customerglu:CG-SDK-Android:v2.3.
|
|
64
|
+
implementation 'com.github.customerglu:CG-SDK-Android:v2.3.10'
|
|
65
65
|
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
|
|
66
66
|
implementation 'com.google.code.gson:gson:2.8.6'
|
|
67
67
|
implementation 'androidx.cardview:cardview:1.0.0'
|
|
@@ -86,7 +86,7 @@ public class RncustomergluModule extends ReactContextBaseJavaModule implements L
|
|
|
86
86
|
private void setPlatformAndSdkVersion() {
|
|
87
87
|
if (CustomerGlu.getInstance() != null) {
|
|
88
88
|
|
|
89
|
-
CustomerGlu.cg_sdk_version = "1.3.
|
|
89
|
+
CustomerGlu.cg_sdk_version = "1.3.3";
|
|
90
90
|
CustomerGlu.cg_app_platform = "REACT_NATIVE";
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -715,25 +715,6 @@ public class RncustomergluModule extends ReactContextBaseJavaModule implements L
|
|
|
715
715
|
promise.resolve(referID);
|
|
716
716
|
}
|
|
717
717
|
|
|
718
|
-
@ReactMethod
|
|
719
|
-
public void LoadAllCampagins() {
|
|
720
|
-
CustomerGlu.getInstance().loadAllCampaigns(getReactApplicationContext());
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
@ReactMethod
|
|
724
|
-
public void LoadCampaginsByFilter(ReadableMap readableMap) {
|
|
725
|
-
try {
|
|
726
|
-
JSONObject obj = convertMapToJson(readableMap);
|
|
727
|
-
HashMap<String, Object> campaignData = new HashMap<>();
|
|
728
|
-
campaignData.put("campaignId", obj.get("campaignId"));
|
|
729
|
-
campaignData.put("status", obj.get("status"));
|
|
730
|
-
campaignData.put("type", obj.get("type"));
|
|
731
|
-
CustomerGlu.getInstance().loadCampaignsByFilter(getReactApplicationContext(), campaignData);
|
|
732
|
-
} catch (JSONException e) {
|
|
733
|
-
e.printStackTrace();
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
|
|
737
718
|
@ReactMethod
|
|
738
719
|
public void SetCurrentClassName(String classname) {
|
|
739
720
|
this.Myclassname = classname;
|
package/ios/Rncustomerglu.swift
CHANGED
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@ DESC
|
|
|
15
15
|
s.source = { :git => "https://github.com/customerglu/CG-SDK-React-Native.git", :tag => "#{s.version}" }
|
|
16
16
|
s.source_files = "ios/**/*"
|
|
17
17
|
s.dependency "React-Core"
|
|
18
|
-
s.dependency "CustomerGluRN", "1.2.
|
|
18
|
+
s.dependency "CustomerGluRN", "1.2.4"
|
|
19
19
|
s.platform = :ios, '11.0'
|
|
20
20
|
s.swift_version = '5.0'
|
|
21
21
|
|