react-native-repro 3.19.0 → 3.20.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.
@@ -58,7 +58,7 @@ public class ReproReactBridgeModule extends ReactContextBaseJavaModule {
58
58
 
59
59
  private final ReactApplicationContext reactContext;
60
60
 
61
- private static final String REPRO_REACT_NATIVE_BRIDGE_VERSION = "3.19.0";
61
+ private static final String REPRO_REACT_NATIVE_BRIDGE_VERSION = "3.20.0";
62
62
 
63
63
  public ReproReactBridgeModule(ReactApplicationContext reactContext) {
64
64
  super(reactContext);
@@ -257,6 +257,11 @@ public class ReproReactBridgeModule extends ReactContextBaseJavaModule {
257
257
  Repro.setPushRegistrationID(pushRegId);
258
258
  }
259
259
 
260
+ @ReactMethod
261
+ public void setPushToken(final String token) {
262
+ Repro.setPushRegistrationID(token);
263
+ }
264
+
260
265
  @ReactMethod
261
266
  public void enablePushNotification() {
262
267
  Repro.enablePushNotification();
@@ -264,7 +269,11 @@ public class ReproReactBridgeModule extends ReactContextBaseJavaModule {
264
269
 
265
270
  @ReactMethod
266
271
  public void track(final String name, final ReadableMap properties) {
267
- Repro.track(name, properties.toHashMap());
272
+ if (properties == null) {
273
+ Repro.track(name);
274
+ } else {
275
+ Repro.track(name, properties.toHashMap());
276
+ }
268
277
  }
269
278
 
270
279
  @ReactMethod
@@ -44,7 +44,7 @@
44
44
  #endif
45
45
 
46
46
 
47
- #define REPRO_REACT_NATIVE_BRIDGE_VERSION "3.19.0"
47
+ #define REPRO_REACT_NATIVE_BRIDGE_VERSION "3.20.0"
48
48
 
49
49
 
50
50
 
@@ -635,6 +635,11 @@ RCT_EXPORT_METHOD(setPushDeviceTokenString:(NSString *)deviceTokenHexString)
635
635
  [Repro setPushDeviceTokenString:deviceTokenHexString];
636
636
  }
637
637
 
638
+ RCT_EXPORT_METHOD(setPushToken:(NSString *)deviceTokenHexString)
639
+ {
640
+ [Repro setPushDeviceTokenString:deviceTokenHexString];
641
+ }
642
+
638
643
  // NOTE: Should better be called native from AppDelegate::didFinishLaunchingWithOptions
639
644
  RCT_EXPORT_METHOD(setup:(NSString *)token)
640
645
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-repro",
3
- "version": "3.19.0",
3
+ "version": "3.20.0",
4
4
  "description": "Repro is a mobile analytics tool that lets you have much deeper understanding of mobile app users.",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "ios-sdk": "5.17.0",
3
3
  "android-sdk": "5.16.0",
4
- "bridge": "3.19.0"
4
+ "bridge": "3.20.0"
5
5
  }
@@ -7,6 +7,6 @@
7
7
  <versions>
8
8
  <version>5.16.0</version>
9
9
  </versions>
10
- <lastUpdated>20240711140658</lastUpdated>
10
+ <lastUpdated>20240829152933</lastUpdated>
11
11
  </versioning>
12
12
  </metadata>
@@ -1 +1 @@
1
- c5af956aeae9cb84f60e41098ec4f438
1
+ e2ffa23fbc96feaecbb93308021efd30
@@ -1 +1 @@
1
- 20aa50be2c50d0640c9898d065e0dd136b4cac74
1
+ 6b4c8d105741d5056667c2d0c5d6e03909ac7b57