Skip to content

Conversation

@amirghm
Copy link
Contributor

@amirghm amirghm commented Aug 10, 2025

No description provided.

amirghm added 5 commits May 27, 2025 15:42
Refactor: Improve Desktop WebView loading and stability
…dd-asset-loader

Feature/improve zoom support and add asset loader
…evice

Bugfix/fix load file in ios real device
This commit updates the WasmJs WebView implementation to use the `webViewJsBridge.jsBridgeName` property instead of the hardcoded "kmpJsBridge" string when identifying and processing messages from the JavaScript bridge. This allows for customization of the bridge name.

**WasmJs:**
- In `WasmJsWebView.kt` and `WebView.wasmJs.kt`, message handling logic now checks for `webViewJsBridge.jsBridgeName` in the incoming `dataString`.
- In `WebViewJsBridge.kt`, the injected JavaScript code for `postMessage` and the event listener now uses the dynamic `jsBridgeName` property for the `type` field in messages.

**Build:**
- Incremented `VERSION_NAME` to `2.0.3`.
@amirghm amirghm closed this Aug 10, 2025
@amirghm amirghm deleted the bugfix/fix-wasmjs-custom-jsbridge-name branch August 10, 2025 11:44
@amirghm amirghm restored the bugfix/fix-wasmjs-custom-jsbridge-name branch August 10, 2025 11:45
@amirghm amirghm reopened this Aug 10, 2025
@KevinnZou KevinnZou merged commit 6d22b5f into KevinnZou:main Aug 11, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants