@customerglu/react-native-customerglu 2.0.1 → 2.0.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": "^2.0.1"
19
+ "@customerglu/react-native-customerglu": "^2.0.3"
20
20
  ```
21
21
 
22
22
  ### Option 2
File without changes
File without changes
@@ -1,2 +1,2 @@
1
- #Wed Oct 19 13:43:49 IST 2022
2
- gradle.version=6.7.1
1
+ #Wed Jul 31 20:06:24 IST 2024
2
+ gradle.version=8.3
@@ -23,10 +23,10 @@ def safeExtGet(prop, fallback) {
23
23
  }
24
24
 
25
25
  android {
26
- compileSdkVersion safeExtGet('Rncustomerglu_compileSdkVersion', 33)
26
+ compileSdkVersion safeExtGet('Rncustomerglu_compileSdkVersion', 34)
27
27
  defaultConfig {
28
28
  minSdkVersion safeExtGet('Rncustomerglu_minSdkVersion', 21)
29
- targetSdkVersion safeExtGet('Rncustomerglu_targetSdkVersion', 33)
29
+ targetSdkVersion safeExtGet('Rncustomerglu_targetSdkVersion', 34)
30
30
  versionCode 1
31
31
  versionName "1.0"
32
32
 
@@ -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.customerglu:CustomerGluLibrary:3.0.1'
64
+ implementation 'com.customerglu:CustomerGluLibrary:3.0.2'
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'
@@ -1,5 +1,5 @@
1
1
  distributionBase=GRADLE_USER_HOME
2
2
  distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
3
+ distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip
4
4
  zipStoreBase=GRADLE_USER_HOME
5
5
  zipStorePath=wrapper/dists
@@ -15,6 +15,7 @@ import android.util.Log;
15
15
  import android.widget.Toast;
16
16
 
17
17
  import androidx.annotation.NonNull;
18
+ import androidx.core.content.ContextCompat;
18
19
 
19
20
  import com.customerglu.sdk.Interface.CGDeepLinkListener;
20
21
  import com.customerglu.sdk.Interface.CampaignStatusListener;
@@ -90,7 +91,7 @@ public class RncustomergluModule extends ReactContextBaseJavaModule implements L
90
91
  private void setPlatformAndSdkVersion() {
91
92
  if (CustomerGlu.getInstance() != null) {
92
93
 
93
- CustomerGlu.cg_sdk_version = "2.0.1";
94
+ CustomerGlu.cg_sdk_version = "2.0.3";
94
95
  CustomerGlu.cg_app_platform = "REACT_NATIVE";
95
96
  }
96
97
  }
@@ -155,6 +156,7 @@ public class RncustomergluModule extends ReactContextBaseJavaModule implements L
155
156
 
156
157
  private void registerBroadcastReceiver() {
157
158
  try {
159
+
158
160
  mContext.registerReceiver(mMessageReceiver, new IntentFilter("CUSTOMERGLU_ANALYTICS_EVENT"));
159
161
  mContext.registerReceiver(mMessageReceiver, new IntentFilter("CUSTOMERGLU_DEEPLINK_EVENT"));
160
162
  mContext.registerReceiver(mMessageReceiver, new IntentFilter("CUSTOMERGLU_BANNER_LOADED"));
@@ -90,7 +90,7 @@ class Rncustomerglu: RCTEventEmitter{
90
90
  func setPlatformAndSdkVersion(){
91
91
 
92
92
  CustomerGlu.app_platform="REACT_NATIVE"
93
- CustomerGlu.sdk_version="2.0.1"
93
+ CustomerGlu.sdk_version="2.0.3"
94
94
  }
95
95
 
96
96
  override func startObserving() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@customerglu/react-native-customerglu",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "CustomerGlu React Native plugin",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -64,8 +64,8 @@
64
64
  "jest": "^26.0.1",
65
65
  "pod-install": "^0.1.0",
66
66
  "prettier": "^2.0.5",
67
- "react": "16.13.1",
68
- "react-native": "^0.69.7",
67
+ "react": "18.2.0",
68
+ "react-native": "0.73.6",
69
69
  "react-native-builder-bob": "^0.18.0",
70
70
  "release-it": "^15.2.0",
71
71
  "typescript": "^4.1.3"
@@ -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 "CustomerGlu", "3.0.1"
18
+ s.dependency "CustomerGlu", "3.0.3"
19
19
  s.platform = :ios, '13.0'
20
20
  s.swift_version = '5.0'
21
21