react-native-insider 5.5.4-nh → 5.5.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.
@@ -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:13.8.5-nh')
38
+ implementation ('com.useinsider:insider:13.8.5')
39
39
  implementation ('com.useinsider:insiderhybrid:1.1.5')
40
40
 
41
41
  implementation "androidx.security:security-crypto:1.0.0"
@@ -45,4 +45,8 @@ dependencies {
45
45
  implementation 'com.google.android.gms:play-services-location:20.0.0'
46
46
  implementation 'com.google.android.play:core-ktx:1.8.1'
47
47
  implementation 'com.google.firebase:firebase-messaging:23.0.5'
48
+
49
+ implementation 'com.huawei.hms:push:6.5.0.300'
50
+ implementation 'com.huawei.hms:ads-identifier:3.4.39.302'
51
+ implementation 'com.huawei.hms:location:6.4.0.300'
48
52
  }
@@ -621,6 +621,10 @@ public class RNInsiderModule extends ReactContextBaseJavaModule {
621
621
  }
622
622
  String provider = Insider.Instance.getCurrentProvider(reactContext);
623
623
  switch (provider) {
624
+ case "huawei":
625
+ com.huawei.hms.push.RemoteMessage hmsRemoteMessage = new com.huawei.hms.push.RemoteMessage.Builder("insider").setData(remoteMessageStringMap).build();
626
+ Insider.Instance.handleHMSNotification(reactContext, hmsRemoteMessage);
627
+ break;
624
628
  case "other":
625
629
  case "google":
626
630
  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": "5.5.4-nh",
3
+ "version": "5.5.4",
4
4
  "description": "React Native Insider SDK",
5
5
  "main": "index.js",
6
6
  "keywords": [