react-native-insider 8.0.0-nh → 8.0.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.
@@ -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:16.0.1-nh'
45
+ implementation 'com.useinsider:insider:16.0.1'
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
  }
@@ -895,6 +895,10 @@ public class RNInsiderModule extends ReactContextBaseJavaModule {
895
895
  }
896
896
  String provider = Insider.Instance.getCurrentProvider(reactContext);
897
897
  switch (provider) {
898
+ case "huawei":
899
+ com.huawei.hms.push.RemoteMessage hmsRemoteMessage = new com.huawei.hms.push.RemoteMessage.Builder("insider").setData(remoteMessageStringMap).build();
900
+ Insider.Instance.handleHMSNotification(reactContext, hmsRemoteMessage);
901
+ break;
898
902
  case "other":
899
903
  case "google":
900
904
  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": "8.0.0-nh",
3
+ "version": "8.0.0",
4
4
  "description": "React Native Insider SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",