also looking at this
fix(android): hand the launch link to the page that subscribes for it
#232
17 files
+776
-136
| @@ -250,7 +250,7 @@ object CraftNative { | ||
| 250 | 250 | private external fun nativeResetDeepLinks(): Boolean |
| 251 | 251 | private external fun nativeSetInitialURL(url: String?): Boolean |
| 252 | 252 | private external fun nativeGetInitialURL(): Boolean |
| 253 | private external fun nativeDispatchDeepLink(url: String): Boolean | |
| 253 | private external fun nativeDispatchDeepLink(url: String, initial: Boolean): Boolean | |
| 254 | 254 | private external fun nativeScreenshotReady(bytes: ByteArray) |
| 255 | 255 | private external fun nativeScreenshotError(message: String) |
| 256 | 256 | private external fun nativeTakeScreenshot(activity: Activity, webView: WebView): Boolean |
| @@ -716,9 +716,9 @@ object CraftNative { | ||
| 716 | 716 | return try { nativeGetInitialURL() } catch (e: UnsatisfiedLinkError) { false } |
| 717 | 717 | } |
| 718 | 718 | |
| 719 | fun dispatchDeepLink(url: String): Boolean { | |
| 719 | fun dispatchDeepLink(url: String, initial: Boolean): Boolean { | |
| 720 | 720 | if (!isAvailable) return false |
| 721 | return try { nativeDispatchDeepLink(url) } catch (e: UnsatisfiedLinkError) { false } | |
| 721 | return try { nativeDispatchDeepLink(url, initial) } catch (e: UnsatisfiedLinkError) { false } | |
| 722 | 722 | } |
| 723 | 723 | |
| 724 | 724 | @JvmStatic |