实现应用更新清单与关于页 - #297
Conversation
PR AI Review / PR AI 语义预检中文
新增统一应用更新系统和关于页面。引入 UpdateManifestService(支持 SHA256 完整性校验和多端点降级)、AppUpdateRouter(多 provider 路由:GitHub APK、Google Play、App Store、Android 商店重定向)和 AppInfoService(构建信息和安装来源查询)。新增 About Memex 设置页面展示版本/渠道/安装来源/更新诊断。替换原有 Early-only 更新卡片,扩展为全渠道统一更新。测试覆盖充分,包含 7 个新测试文件。 影响范围
黄金链路
风险项
测试缺口
English
Adds a unified app update system and About page. Introduces UpdateManifestService (SHA256 integrity verification with multi-endpoint fallback), AppUpdateRouter (multi-provider routing: GitHub APK, Google Play, App Store, Android store redirect), and AppInfoService (build info and installer source). Adds About Memex settings page showing version/channel/installer/update diagnostics. Replaces the old Early-only update card with a unified cross-channel update system. Test coverage is thorough with 7 new test files. Affected Areas
Golden Path
Findings
Test Gaps
|
PR Preflight Summary / PR 预检汇总中文
English
PR Policy Preflight / PR 规则预检PR Policy Preflight / PR 规则预检中文
未发现确定性规则问题。 English
No deterministic policy findings. PR Flutter Quality / Flutter 质量预检PR Flutter Quality / Flutter 质量预检中文
English
Flutter Analyzer Baseline
No new analyzer issues introduced by this PR. Flutter Test Baseline
No new Flutter test failures introduced by this PR. |
关联 issue
Closes #296
变更
测试
flutter test --no-pub test/data/services/update_manifest_service_test.dart test/data/services/app_update_service_test.dart test/data/services/app_update_router_test.dart test/ui/settings/widgets/about_memex_page_test.dartflutter build apk --debug --flavor globalDev --no-pubgit diff --checkMedium_Phone_API_35:进入 Personal Center → Settings → About Memex,确认版本/build/flavor/channel/installer/package 可见;Copy Diagnostics 只包含 app/package/version/platform/flavor/region/channel/installer/updateChannel;Check now 在无 manifest/404 场景会结束为可见错误,不会无限 spinner。