@customerglu/react-native-customerglu 2.0.3 → 2.0.4
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/android/build.gradle +2 -1
- package/android/src/main/java/com/reactnativerncustomerglu/RncustomergluModule.java +7 -4
- package/package.json +1 -1
- package/react-native-customerglu.podspec +1 -1
- package/android/.gradle/6.7.1/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/6.7.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/6.7.1/fileChanges/last-build.bin +0 -0
- package/android/.gradle/6.7.1/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/6.7.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/6.7.1/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/6.7.1/gc.properties +0 -0
- package/android/.gradle/6.7.1/javaCompile/classAnalysis.bin +0 -0
- package/android/.gradle/6.7.1/javaCompile/jarAnalysis.bin +0 -0
- package/android/.gradle/6.7.1/javaCompile/javaCompile.lock +0 -0
- package/android/.gradle/6.7.1/javaCompile/taskHistory.bin +0 -0
package/android/build.gradle
CHANGED
|
@@ -23,6 +23,7 @@ def safeExtGet(prop, fallback) {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
android {
|
|
26
|
+
namespace 'com.reactnativerncustomerglu'
|
|
26
27
|
compileSdkVersion safeExtGet('Rncustomerglu_compileSdkVersion', 34)
|
|
27
28
|
defaultConfig {
|
|
28
29
|
minSdkVersion safeExtGet('Rncustomerglu_minSdkVersion', 21)
|
|
@@ -61,7 +62,7 @@ repositories {
|
|
|
61
62
|
dependencies {
|
|
62
63
|
//noinspection GradleDynamicVersion
|
|
63
64
|
implementation "com.facebook.react:react-native:+" // From node_modules
|
|
64
|
-
implementation 'com.customerglu:CustomerGluLibrary:3.0.
|
|
65
|
+
implementation 'com.customerglu:CustomerGluLibrary:3.0.4'
|
|
65
66
|
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
|
|
66
67
|
implementation 'com.google.code.gson:gson:2.8.6'
|
|
67
68
|
implementation 'androidx.cardview:cardview:1.0.0'
|
|
@@ -3,6 +3,7 @@ package com.reactnativerncustomerglu;
|
|
|
3
3
|
import static com.customerglu.sdk.Utils.Comman.printDebugLogs;
|
|
4
4
|
import static com.facebook.react.bridge.UiThreadUtil.runOnUiThread;
|
|
5
5
|
|
|
6
|
+
import android.annotation.SuppressLint;
|
|
6
7
|
import android.content.BroadcastReceiver;
|
|
7
8
|
import android.content.Context;
|
|
8
9
|
import android.content.Intent;
|
|
@@ -154,13 +155,15 @@ public class RncustomergluModule extends ReactContextBaseJavaModule implements L
|
|
|
154
155
|
|
|
155
156
|
};
|
|
156
157
|
|
|
158
|
+
@SuppressLint("WrongConstant")
|
|
157
159
|
private void registerBroadcastReceiver() {
|
|
158
160
|
try {
|
|
159
161
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
ContextCompat.registerReceiver(mContext, mMessageReceiver, new IntentFilter("CUSTOMERGLU_DEEPLINK_EVENT"), ContextCompat.RECEIVER_EXPORTED);
|
|
163
|
+
ContextCompat.registerReceiver(mContext, mMessageReceiver, new IntentFilter("CUSTOMERGLU_ANALYTICS_EVENT"), ContextCompat.RECEIVER_EXPORTED);
|
|
164
|
+
ContextCompat.registerReceiver(mContext, mMessageReceiver, new IntentFilter("CUSTOMERGLU_BANNER_LOADED"), ContextCompat.RECEIVER_EXPORTED);
|
|
165
|
+
ContextCompat.registerReceiver(mContext, mMessageReceiver, new IntentFilter("CG_INVALID_CAMPAIGN_ID"), ContextCompat.RECEIVER_EXPORTED);
|
|
166
|
+
|
|
164
167
|
}catch (Exception e){
|
|
165
168
|
printDebugLogs(""+e);
|
|
166
169
|
}
|
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 "CustomerGlu", "3.0.
|
|
18
|
+
s.dependency "CustomerGlu", "3.0.4"
|
|
19
19
|
s.platform = :ios, '13.0'
|
|
20
20
|
s.swift_version = '5.0'
|
|
21
21
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|