react-native-insider 9.0.0-nh → 9.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 {
@@ -49,13 +50,14 @@ android {
49
50
  repositories {
50
51
  google()
51
52
  mavenCentral()
53
+ maven { url "https://developer.huawei.com/repo/"}
52
54
  maven { url "https://mobilesdk.useinsider.com/android" }
53
55
  }
54
56
 
55
57
 
56
58
  dependencies {
57
59
  implementation "com.facebook.react:react-native:${getVersionFromPartner('reactNativeVersion', '+')}"
58
- implementation 'com.useinsider:insider:17.3.1-nh'
60
+ implementation 'com.useinsider:insider:17.3.1'
59
61
  implementation 'com.useinsider:insiderhybrid:1.4.0'
60
62
 
61
63
  implementation 'androidx.security:security-crypto:1.1.0-alpha06'
@@ -71,6 +73,9 @@ dependencies {
71
73
  implementation 'com.google.android.gms:play-services-location:21.3.0'
72
74
  implementation 'com.google.android.play:review:2.0.1'
73
75
 
76
+ implementation 'com.huawei.hms:push:6.13.0.300'
77
+ implementation 'com.huawei.hms:ads-identifier:3.4.62.300'
78
+ implementation 'com.huawei.hms:location:6.16.0.302'
74
79
 
75
80
  testImplementation 'junit:junit:4.13.2'
76
81
  testImplementation 'org.mockito:mockito-core:5.12.0'
@@ -861,6 +861,10 @@ public class RNInsiderModule extends ReactContextBaseJavaModule {
861
861
  }
862
862
  String provider = Insider.Instance.getCurrentProvider(reactContext);
863
863
  switch (provider) {
864
+ case "huawei":
865
+ com.huawei.hms.push.RemoteMessage hmsRemoteMessage = new com.huawei.hms.push.RemoteMessage.Builder("insider").setData(remoteMessageStringMap).build();
866
+ Insider.Instance.handleHMSNotification(reactContext, hmsRemoteMessage);
867
+ break;
864
868
  case "other":
865
869
  case "google":
866
870
  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": "9.0.0-nh",
3
+ "version": "9.0.0",
4
4
  "description": "React Native Insider SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",