react-native-insider 7.0.8-nh → 7.0.8
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
CHANGED
|
@@ -2,6 +2,7 @@ buildscript {
|
|
|
2
2
|
repositories {
|
|
3
3
|
google()
|
|
4
4
|
mavenCentral()
|
|
5
|
+
maven { url "https://developer.huawei.com/repo/"}
|
|
5
6
|
}
|
|
6
7
|
|
|
7
8
|
dependencies {
|
|
@@ -34,13 +35,14 @@ android {
|
|
|
34
35
|
repositories {
|
|
35
36
|
google()
|
|
36
37
|
mavenCentral()
|
|
38
|
+
maven { url "https://developer.huawei.com/repo/"}
|
|
37
39
|
maven { url "https://mobilesdk.useinsider.com/android" }
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
|
|
41
43
|
dependencies {
|
|
42
44
|
implementation "com.facebook.react:react-native:${getVersionFromPartner('reactNativeVersion', '+')}"
|
|
43
|
-
implementation 'com.useinsider:insider:15.2.4
|
|
45
|
+
implementation 'com.useinsider:insider:15.2.4'
|
|
44
46
|
implementation 'com.useinsider:insiderhybrid:1.3.4'
|
|
45
47
|
|
|
46
48
|
implementation 'androidx.security:security-crypto:1.1.0-alpha06'
|
|
@@ -51,4 +53,8 @@ dependencies {
|
|
|
51
53
|
implementation 'com.google.firebase:firebase-messaging:24.0.0'
|
|
52
54
|
implementation 'com.google.android.gms:play-services-location:21.3.0'
|
|
53
55
|
implementation 'com.google.android.play:review:2.0.1'
|
|
56
|
+
|
|
57
|
+
implementation 'com.huawei.hms:push:6.13.0.300'
|
|
58
|
+
implementation 'com.huawei.hms:ads-identifier:3.4.62.300'
|
|
59
|
+
implementation 'com.huawei.hms:location:6.16.0.302'
|
|
54
60
|
}
|
|
@@ -787,6 +787,10 @@ public class RNInsiderModule extends ReactContextBaseJavaModule {
|
|
|
787
787
|
}
|
|
788
788
|
String provider = Insider.Instance.getCurrentProvider(reactContext);
|
|
789
789
|
switch (provider) {
|
|
790
|
+
case "huawei":
|
|
791
|
+
com.huawei.hms.push.RemoteMessage hmsRemoteMessage = new com.huawei.hms.push.RemoteMessage.Builder("insider").setData(remoteMessageStringMap).build();
|
|
792
|
+
Insider.Instance.handleHMSNotification(reactContext, hmsRemoteMessage);
|
|
793
|
+
break;
|
|
790
794
|
case "other":
|
|
791
795
|
case "google":
|
|
792
796
|
RemoteMessage fcmRemoteMessage = new RemoteMessage.Builder("insider").setData(remoteMessageStringMap).build();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-insider",
|
|
3
|
-
"version": "7.0.8
|
|
3
|
+
"version": "7.0.8",
|
|
4
4
|
"description": "React Native Insider SDK",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -16,4 +16,4 @@
|
|
|
16
16
|
],
|
|
17
17
|
"author": "insidermobile",
|
|
18
18
|
"homepage": "https://github.com/useinsider/react-native-insider"
|
|
19
|
-
}
|
|
19
|
+
}
|
|
Binary file
|