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.
- package/android/src/main/java/io/repro/android/reactbridge/ReproReactBridgeModule.java +11 -2
- package/ios/RPRReproReactBridge.h +1 -1
- package/ios/RPRReproReactBridge.m +5 -0
- package/package.json +1 -1
- package/repro-version.json +1 -1
- package/sdk-android/io/repro/repro-android-sdk/maven-metadata.xml +1 -1
- package/sdk-android/io/repro/repro-android-sdk/maven-metadata.xml.md5 +1 -1
- package/sdk-android/io/repro/repro-android-sdk/maven-metadata.xml.sha1 +1 -1
|
@@ -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.
|
|
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
|
-
|
|
272
|
+
if (properties == null) {
|
|
273
|
+
Repro.track(name);
|
|
274
|
+
} else {
|
|
275
|
+
Repro.track(name, properties.toHashMap());
|
|
276
|
+
}
|
|
268
277
|
}
|
|
269
278
|
|
|
270
279
|
@ReactMethod
|
|
@@ -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
package/repro-version.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
e2ffa23fbc96feaecbb93308021efd30
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
6b4c8d105741d5056667c2d0c5d6e03909ac7b57
|