Repository navigation
feat(ohos): Add AppGallery update check - #91
Merged
Merged
Conversation
hanlinyu1030
force-pushed
the
hly_branch
branch
3 times, most recently
from
July 15, 2026 08:50
b5a8386 to
df57c21
Compare
- Add UpdateStrategy interface with DialogUpdateStrategy (dialog + store redirect) and SilentUpdateStrategy (silent download + restart prompt, TODO) - Add AppUpdater to delegate update check to current strategy - Simplify EntryAbility to a single appUpdater.check() call
…kTS bridge - Register check_app_update_ohos ArkTS function using @kit.AppGalleryKit - Add Rust ohos/update.rs bridge following open_browser pattern - Add check_for_updates_ohos Tauri command (double-gated by target_env) - Add checkForUpdatesOhos() in SystemAPI.ts (try OHOS first, fallback to Tauri) - Fix isTauriRuntime import to use @/infrastructure/runtime for correct OHOS detection - Remove unused AboutPage.ets
…sheet - Add AboutDialogLinks.scss with .bitfun-about-dialog__links/__link/__link-sep rules lost during the 861deb9 merge - Import new stylesheet from AboutDialog.tsx so footer buttons render as link text instead of default button chrome - Isolate footer link styles from AboutDialog.scss to prevent future merges from silently dropping them
- Add sync #[napi] get_app_config_bool(path) -> bool in system_api.rs, driven via a cached current-thread tokio runtime over get_global_config_service + ConfigService::get_config::<bool>; defaults to false on missing/unavailable (napi-derive-ohos 1.1 has no async-fn support)
- Declare getAppConfigBool(path): boolean in libbitfun_desktop_lib Index.d.ts
- Call RustModule.getAppConfigBool('app.auto_update') before appUpdater.check in EntryAbility.onWindowStageCreate so the startup update check respects the BasicsConfig toggle
…ted stylesheet - Add AboutDialogOpenSource.scss with sub-content/sub-desc/sub-category*/sub-footnote layout (lost in the 861deb9 merge) and the redesigned dependencies-grid/dependency-* rules (gradient cards, hover lift, dependency-name button reset) so the open-source dialog no longer falls back to default chrome - Import new stylesheet from AboutDialog.tsx after the main scss so its rules override the stale legacy dependency-* definitions via source order - Isolate open-source sub-page styles from AboutDialog.scss to prevent future merges from silently dropping them, mirroring the AboutDialogLinks.scss approach
- Guard the browser footer button with SHOW_BROWSER_ENTRY flag (false) so the incomplete browser feature is no longer reachable from the UI - Keep handleOpenBrowser, isBrowserActive, BrowserScene/BrowserPanel, and the scene registry entry intact for later re-enable (flip the flag to true)
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.
No description provided.