react-native-insider 7.1.0-nh → 7.1.0
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.3.0
|
|
45
|
+
implementation 'com.useinsider:insider:15.3.0'
|
|
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
|
}
|
|
@@ -862,6 +862,10 @@ public class RNInsiderModule extends ReactContextBaseJavaModule {
|
|
|
862
862
|
}
|
|
863
863
|
String provider = Insider.Instance.getCurrentProvider(reactContext);
|
|
864
864
|
switch (provider) {
|
|
865
|
+
case "huawei":
|
|
866
|
+
com.huawei.hms.push.RemoteMessage hmsRemoteMessage = new com.huawei.hms.push.RemoteMessage.Builder("insider").setData(remoteMessageStringMap).build();
|
|
867
|
+
Insider.Instance.handleHMSNotification(reactContext, hmsRemoteMessage);
|
|
868
|
+
break;
|
|
865
869
|
case "other":
|
|
866
870
|
case "google":
|
|
867
871
|
RemoteMessage fcmRemoteMessage = new RemoteMessage.Builder("insider").setData(remoteMessageStringMap).build();
|