@customerglu/react-native-customerglu 2.0.4 → 2.0.5
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 +1 -1
- package/android/build.gradle +0 -1
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/android/src/main/java/com/reactnativerncustomerglu/RncustomergluModule.java +14 -8
- package/ios/Rncustomerglu.swift +1 -1
- package/package.json +2 -2
- package/android/.gradle/6.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/6.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/6.9/gc.properties +0 -0
- package/android/.gradle/8.3/checksums/checksums.lock +0 -0
- package/android/.gradle/8.3/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.3/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.3/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/8.3/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.3/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.3/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.3/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/configuration-cache/gc.properties +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/compiler.xml +0 -6
- package/android/.idea/gradle.xml +0 -18
- package/android/.idea/jarRepositories.xml +0 -40
- package/android/.idea/misc.xml +0 -10
- package/android/.idea/vcs.xml +0 -6
- package/android/local.properties +0 -8
- package/ios/Rncustomerglu.xcodeproj/project.xcworkspace/xcuserdata/himanshutrehan.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/Rncustomerglu.xcodeproj/xcuserdata/himanshutrehan.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
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.
|
|
19
|
+
"@customerglu/react-native-customerglu": "^2.0.5"
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
### Option 2
|
package/android/build.gradle
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
distributionBase=GRADLE_USER_HOME
|
|
2
2
|
distributionPath=wrapper/dists
|
|
3
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.
|
|
3
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
|
|
4
4
|
zipStoreBase=GRADLE_USER_HOME
|
|
5
5
|
zipStorePath=wrapper/dists
|
|
@@ -3,7 +3,6 @@ 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;
|
|
7
6
|
import android.content.BroadcastReceiver;
|
|
8
7
|
import android.content.Context;
|
|
9
8
|
import android.content.Intent;
|
|
@@ -11,12 +10,12 @@ import android.content.IntentFilter;
|
|
|
11
10
|
import android.content.pm.ApplicationInfo;
|
|
12
11
|
import android.content.pm.PackageManager;
|
|
13
12
|
import android.net.Uri;
|
|
13
|
+
import android.os.Build;
|
|
14
14
|
import android.os.Bundle;
|
|
15
15
|
import android.util.Log;
|
|
16
16
|
import android.widget.Toast;
|
|
17
17
|
|
|
18
18
|
import androidx.annotation.NonNull;
|
|
19
|
-
import androidx.core.content.ContextCompat;
|
|
20
19
|
|
|
21
20
|
import com.customerglu.sdk.Interface.CGDeepLinkListener;
|
|
22
21
|
import com.customerglu.sdk.Interface.CampaignStatusListener;
|
|
@@ -92,7 +91,7 @@ public class RncustomergluModule extends ReactContextBaseJavaModule implements L
|
|
|
92
91
|
private void setPlatformAndSdkVersion() {
|
|
93
92
|
if (CustomerGlu.getInstance() != null) {
|
|
94
93
|
|
|
95
|
-
CustomerGlu.cg_sdk_version = "2.0.
|
|
94
|
+
CustomerGlu.cg_sdk_version = "2.0.5";
|
|
96
95
|
CustomerGlu.cg_app_platform = "REACT_NATIVE";
|
|
97
96
|
}
|
|
98
97
|
}
|
|
@@ -155,15 +154,22 @@ public class RncustomergluModule extends ReactContextBaseJavaModule implements L
|
|
|
155
154
|
|
|
156
155
|
};
|
|
157
156
|
|
|
158
|
-
@SuppressLint("WrongConstant")
|
|
159
157
|
private void registerBroadcastReceiver() {
|
|
160
158
|
try {
|
|
159
|
+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
|
160
|
+
mContext.registerReceiver(mMessageReceiver, new IntentFilter("CUSTOMERGLU_ANALYTICS_EVENT"), Context.RECEIVER_EXPORTED);
|
|
161
161
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
162
|
+
mContext.registerReceiver(mMessageReceiver, new IntentFilter("CUSTOMERGLU_DEEPLINK_EVENT"), Context.RECEIVER_EXPORTED);
|
|
163
|
+
mContext.registerReceiver(mMessageReceiver, new IntentFilter("CUSTOMERGLU_BANNER_LOADED"), Context.RECEIVER_EXPORTED);
|
|
164
|
+
mContext.registerReceiver(mMessageReceiver, new IntentFilter("CG_INVALID_CAMPAIGN_ID"), Context.RECEIVER_EXPORTED);
|
|
165
|
+
}else {
|
|
166
166
|
|
|
167
|
+
mContext.registerReceiver(mMessageReceiver, new IntentFilter("CUSTOMERGLU_ANALYTICS_EVENT"));
|
|
168
|
+
mContext.registerReceiver(mMessageReceiver, new IntentFilter("CUSTOMERGLU_DEEPLINK_EVENT"));
|
|
169
|
+
mContext.registerReceiver(mMessageReceiver, new IntentFilter("CUSTOMERGLU_BANNER_LOADED"));
|
|
170
|
+
mContext.registerReceiver(mMessageReceiver, new IntentFilter("CG_INVALID_CAMPAIGN_ID"));
|
|
171
|
+
|
|
172
|
+
}
|
|
167
173
|
}catch (Exception e){
|
|
168
174
|
printDebugLogs(""+e);
|
|
169
175
|
}
|
package/ios/Rncustomerglu.swift
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@customerglu/react-native-customerglu",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "CustomerGlu React Native plugin",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -154,4 +154,4 @@
|
|
|
154
154
|
"example": "example",
|
|
155
155
|
"lib": "lib"
|
|
156
156
|
}
|
|
157
|
-
}
|
|
157
|
+
}
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
package/android/.idea/gradle.xml
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="GradleMigrationSettings" migrationVersion="1" />
|
|
4
|
-
<component name="GradleSettings">
|
|
5
|
-
<option name="linkedExternalProjectsSettings">
|
|
6
|
-
<GradleProjectSettings>
|
|
7
|
-
<option name="testRunner" value="GRADLE" />
|
|
8
|
-
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
|
9
|
-
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
|
10
|
-
<option name="modules">
|
|
11
|
-
<set>
|
|
12
|
-
<option value="$PROJECT_DIR$" />
|
|
13
|
-
</set>
|
|
14
|
-
</option>
|
|
15
|
-
</GradleProjectSettings>
|
|
16
|
-
</option>
|
|
17
|
-
</component>
|
|
18
|
-
</project>
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="RemoteRepositoriesConfiguration">
|
|
4
|
-
<remote-repository>
|
|
5
|
-
<option name="id" value="central" />
|
|
6
|
-
<option name="name" value="Maven Central repository" />
|
|
7
|
-
<option name="url" value="https://repo1.maven.org/maven2" />
|
|
8
|
-
</remote-repository>
|
|
9
|
-
<remote-repository>
|
|
10
|
-
<option name="id" value="jboss.community" />
|
|
11
|
-
<option name="name" value="JBoss Community repository" />
|
|
12
|
-
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
|
13
|
-
</remote-repository>
|
|
14
|
-
<remote-repository>
|
|
15
|
-
<option name="id" value="MavenRepo" />
|
|
16
|
-
<option name="name" value="MavenRepo" />
|
|
17
|
-
<option name="url" value="https://repo.maven.apache.org/maven2/" />
|
|
18
|
-
</remote-repository>
|
|
19
|
-
<remote-repository>
|
|
20
|
-
<option name="id" value="MavenLocal" />
|
|
21
|
-
<option name="name" value="MavenLocal" />
|
|
22
|
-
<option name="url" value="file:$USER_HOME$/.m2/repository/" />
|
|
23
|
-
</remote-repository>
|
|
24
|
-
<remote-repository>
|
|
25
|
-
<option name="id" value="maven" />
|
|
26
|
-
<option name="name" value="maven" />
|
|
27
|
-
<option name="url" value="file:$PROJECT_DIR$/../node_modules/react-native/android/" />
|
|
28
|
-
</remote-repository>
|
|
29
|
-
<remote-repository>
|
|
30
|
-
<option name="id" value="Google" />
|
|
31
|
-
<option name="name" value="Google" />
|
|
32
|
-
<option name="url" value="https://dl.google.com/dl/android/maven2/" />
|
|
33
|
-
</remote-repository>
|
|
34
|
-
<remote-repository>
|
|
35
|
-
<option name="id" value="maven2" />
|
|
36
|
-
<option name="name" value="maven2" />
|
|
37
|
-
<option name="url" value="https://jitpack.io" />
|
|
38
|
-
</remote-repository>
|
|
39
|
-
</component>
|
|
40
|
-
</project>
|
package/android/.idea/misc.xml
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
|
4
|
-
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="Android Studio default JDK" project-jdk-type="JavaSDK">
|
|
5
|
-
<output url="file://$PROJECT_DIR$/build/classes" />
|
|
6
|
-
</component>
|
|
7
|
-
<component name="ProjectType">
|
|
8
|
-
<option name="id" value="Android" />
|
|
9
|
-
</component>
|
|
10
|
-
</project>
|
package/android/.idea/vcs.xml
DELETED
package/android/local.properties
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
## This file must *NOT* be checked into Version Control Systems,
|
|
2
|
-
# as it contains information specific to your local configuration.
|
|
3
|
-
#
|
|
4
|
-
# Location of the SDK. This is only used by Gradle.
|
|
5
|
-
# For customization when using a Version Control System, please read the
|
|
6
|
-
# header note.
|
|
7
|
-
#Mon Dec 27 16:52:23 IST 2021
|
|
8
|
-
sdk.dir=/Users/himanshutrehan/Library/Android/sdk
|
|
Binary file
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>SchemeUserState</key>
|
|
6
|
-
<dict>
|
|
7
|
-
<key>Rncustomerglu.xcscheme_^#shared#^_</key>
|
|
8
|
-
<dict>
|
|
9
|
-
<key>orderHint</key>
|
|
10
|
-
<integer>0</integer>
|
|
11
|
-
</dict>
|
|
12
|
-
</dict>
|
|
13
|
-
</dict>
|
|
14
|
-
</plist>
|