feat: support openharmony platform#1607
Conversation
|
this is working really well! see the cargo-mobile2 integration and the tauri branch can we call https://docs.openharmony.cn/pages/v5.0/en/application-dev/reference/apis-arkweb/js-apis-webview.md#setwebdebuggingaccess when |
Could you try those changes in your local code which is in If it works, i will publish a new version for |
|
|
are the javaScriptOnDocumentStart scripts executed out of order? i'm seeing some weird behavior, is it running in reverse order? |
I need to check it. May i tell you later.. |
|
also can't we really register the custom protocols at runtime? currently we need to provide the names beforehand on the derive macro right? |
yeah,we need to register the custom protocols in a very early stage. When we need to register them at runtime, i can try to find some ways to support it |
|
is the custom protocol triggered on fetch() calls? tauri uses that for the IPC for instance this is what i get: await fetch('tauri://localhost')
VM174:1 Fetch API cannot load tauri://localhost/. URL scheme "tauri" is not supported.even though the page loaded is |
cool that's fine, thanks |
this lets the custom protocol to return its response on a separate thread or async task, rather than relying on the return value of the callback needed by tauri-apps/wry#1607
this lets the custom protocol to return its response on a separate thread or async task, rather than relying on the return value of the callback needed by tauri-apps/wry#1607
Fixed. |
|
you rock!! |
It run with |
In what scenarios will we register at runtime? From the documentation, it is clear that the protocol can only be registered before the web is initialized. There is no any other method to register :( |
Package Changes Through 4eddbb0There are 1 changes which include wry with minor Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
|
Hi @lucasfernog dear friend, if we want to continue this work, what we should do. Hope your reply thanks :) |
|
Just so you're not surprised, Lucas is on vacation (or at least out of office) for another week or so. |
|
Copy that, hope you have a good time. :) |
- Add OpenHarmony section to MOBILE.md with setup instructions - Add aarch64-unknown-linux-ohos to CI/CD test matrix - Add unit tests for OpenHarmony module (version, counter, color, errors) - Create examples/ohos_simple.rs demonstrating OHOS WebView usage - Update build.yml to skip runtime tests on OHOS target Related: tauri-apps#1607
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Rebased dev branch. cc @frankplus @lucasfernog @FabianLars |
#1595