react-native-insider 6.7.0-nh → 6.7.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
|
@@ -35,7 +35,7 @@ repositories {
|
|
|
35
35
|
|
|
36
36
|
dependencies {
|
|
37
37
|
implementation "com.facebook.react:react-native:${getVersionFromPartner('reactNativeVersion', '+')}"
|
|
38
|
-
implementation ('com.useinsider:insider:14.7.0
|
|
38
|
+
implementation ('com.useinsider:insider:14.7.0')
|
|
39
39
|
implementation ('com.useinsider:insiderhybrid:1.1.5')
|
|
40
40
|
|
|
41
41
|
implementation 'androidx.security:security-crypto:1.1.0-alpha06'
|
|
@@ -45,4 +45,8 @@ dependencies {
|
|
|
45
45
|
implementation 'com.google.firebase:firebase-messaging:24.0.0'
|
|
46
46
|
implementation 'com.google.android.gms:play-services-location:21.3.0'
|
|
47
47
|
implementation 'com.google.android.play:review:2.0.1'
|
|
48
|
+
|
|
49
|
+
implementation 'com.huawei.hms:push:6.12.0.300'
|
|
50
|
+
implementation 'com.huawei.hms:ads-identifier:3.4.62.300'
|
|
51
|
+
implementation 'com.huawei.hms:location:6.11.0.301'
|
|
48
52
|
}
|
|
@@ -665,6 +665,10 @@ public class RNInsiderModule extends ReactContextBaseJavaModule {
|
|
|
665
665
|
}
|
|
666
666
|
String provider = Insider.Instance.getCurrentProvider(reactContext);
|
|
667
667
|
switch (provider) {
|
|
668
|
+
case "huawei":
|
|
669
|
+
com.huawei.hms.push.RemoteMessage hmsRemoteMessage = new com.huawei.hms.push.RemoteMessage.Builder("insider").setData(remoteMessageStringMap).build();
|
|
670
|
+
Insider.Instance.handleHMSNotification(reactContext, hmsRemoteMessage);
|
|
671
|
+
break;
|
|
668
672
|
case "other":
|
|
669
673
|
case "google":
|
|
670
674
|
RemoteMessage fcmRemoteMessage = new RemoteMessage.Builder("insider").setData(remoteMessageStringMap).build();
|