Skip to content

feat(ohos): Add AppGallery update check - #91

Merged
SWangHash merged 6 commits into
mainfrom
hly_branch
Jul 16, 2026
Merged

SWangHash merged 6 commits into
mainfrom
hly_branch

Conversation

@hanlinyu1030

Copy link
Copy Markdown
Collaborator

No description provided.

@hanlinyu1030
hanlinyu1030 force-pushed the hly_branch branch 3 times, most recently from b5a8386 to df57c21 Compare July 15, 2026 08:50
SWangHash and others added 5 commits July 16, 2026 09:42
- 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)
@SWangHash
SWangHash merged commit 464de96 into main Jul 16, 2026
1 of 2 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