feat(ohos): emit/Channel event bridge, webview drag-drop, bridge facade migration, and cross-platform gating - #75
Open
ljy9812 wants to merge 1 commit into
Open
Conversation
…de migration, and cross-platform gating - Plugin emit/Channel event bridge: ArkTS Plugin.emit(channelId, payload) -> NAPI tauri_send_channel_data -> Rust CHANNELS -> Channel.send -> JS callback, used by geolocation watchPosition streaming and notification action dispatch - geolocation requestPermissions four-path settle fallback (onForeground / selfPermissionStateChange event / 60s timeout / promise) plus polled permission read (selfPermissionStateChange fires before ATM commit; requestPermissionsFromUser promise can hang on map-preview dialog) - webview file drag-drop (cfg hygiene, wire-format spec), window ignore-cursor-events, print and https-scheme fixes - account/updater plugin registration and bridge facade migration with 3-round audit fixes; plugin template relocation + unified HAR discovery - unblock mobile cross-compile and Windows native build for the api example - cross-platform cfg isolation remediation, skills docs, openspec archives - test suites: ohos-gap / ohos-init / ohos-mobile-plugins + manual cases Verified end-to-end on HUAWEI MateBook Pro (desktop form, API 23). Co-Authored-By: Claude <noreply@anthropic.com>
Package Changes Through 812db8dThere are 11 changes which include tauri with minor, @tauri-apps/api with minor, tauri-build with minor, tauri-macos-sign with patch, tauri-bundler with minor, @tauri-apps/cli with minor, tauri-cli with minor, tauri-runtime with minor, tauri-runtime-wry with minor, tauri-utils with minor, tauri-plugin 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Plugin.emit(channelId, payload)-> NAPItauri_send_channel_data-> RustCHANNELS->Channel.send-> JS callback; used by geolocationwatchPositionstreaming and notification action dispatchrequestPermissionsfour-path settle fallback (onForeground / selfPermissionStateChange event / 60s timeout / promise) plus polled permission read —requestPermissionsFromUserpromise can hang on the map-preview dialog, andselfPermissionStateChangefires before ATM commitohos-plugins.jsongated toopenHarmony, deep-link permissions kept in the cross-platform capability)PluginManager.notifyForeground(), PRINT permission reason/usedSceneImpact
Event::NewEvents(StartCause::Poll)no longer emitsRunEvent::Resumed; it is now emitted onEvent::Resumed(matches upstream tauri semantics; tao OHOS emitsEvent::Resumedatplatform_impl/ohos/mod.rs:556)cfg(target_env = "ohos")Testing
Verified end-to-end on HUAWEI MateBook Pro (desktop form, API 23):
doc/manual_tests.md)cargo checkclean for both OHOS mobile target and Windows native targetRelated