react-native-repro 3.23.0 → 3.24.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 +7 -1
- package/index.js +5 -0
- package/ios/RPRReproReactBridge.h +1 -1
- package/ios/RPRReproReactBridge.m +8 -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.24.0";
|
|
62
62
|
|
|
63
63
|
public ReproReactBridgeModule(ReactApplicationContext reactContext) {
|
|
64
64
|
super(reactContext);
|
|
@@ -277,6 +277,12 @@ public class ReproReactBridgeModule extends ReactContextBaseJavaModule {
|
|
|
277
277
|
Repro.unlinkLineID(lineUserId, lineChannelId);
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
+
@ReactMethod
|
|
281
|
+
public void _handleWebViewUrl(String requestUrl) {
|
|
282
|
+
// NOTE: use bool return value when changing to new react native arch
|
|
283
|
+
Repro._webviewJavaScriptOpenUrlHandler(requestUrl);
|
|
284
|
+
}
|
|
285
|
+
|
|
280
286
|
@ReactMethod
|
|
281
287
|
public void track(final String name, final ReadableMap properties) {
|
|
282
288
|
if (properties == null) {
|
package/index.js
CHANGED
|
@@ -239,6 +239,11 @@ const Repro = {
|
|
|
239
239
|
...{ remoteConfig: RemoteConfigModule },
|
|
240
240
|
|
|
241
241
|
setOpenUrlCallback: EventEmitterOpenUrl.setCallback,
|
|
242
|
+
|
|
243
|
+
handleWebViewUrl: (url) => {
|
|
244
|
+
NativeModules.Repro._handleWebViewUrl(url);
|
|
245
|
+
return url.startsWith('repro://');
|
|
246
|
+
}
|
|
242
247
|
}
|
|
243
248
|
|
|
244
249
|
|
|
@@ -265,6 +265,7 @@ RCT_EXPORT_METHOD(forceReset)
|
|
|
265
265
|
|
|
266
266
|
@interface Repro (NonPublicApi)
|
|
267
267
|
+ (void)_passRuntimeValues:(nonnull NSDictionary<NSString *, NSString *> *)values;
|
|
268
|
+
+ (BOOL)_webviewJavaScriptOpenUrlHandler:(NSString *)url;
|
|
268
269
|
@end
|
|
269
270
|
|
|
270
271
|
|
|
@@ -626,6 +627,13 @@ RCT_EXPORT_METHOD(trackCompleteRegistration:(NSDictionary *)props)
|
|
|
626
627
|
|
|
627
628
|
// Other
|
|
628
629
|
|
|
630
|
+
|
|
631
|
+
RCT_EXPORT_METHOD(_handleWebViewUrl:(NSString *)webViewRequestUrl)
|
|
632
|
+
{
|
|
633
|
+
// NOTE: use bool return value when changing to new react native arch
|
|
634
|
+
[Repro _webviewJavaScriptOpenUrlHandler:webViewRequestUrl];
|
|
635
|
+
}
|
|
636
|
+
|
|
629
637
|
RCT_EXPORT_METHOD(setLogLevel:(RPRLogLevel)level)
|
|
630
638
|
{
|
|
631
639
|
[Repro setLogLevel:level];
|
package/package.json
CHANGED
package/repro-version.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
bd2a48c06c7bc61a99946456fca90a08
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
53f908569aa3579ecd5e0bb9c501604f050528b5
|