flutter 壳子项目 用于web_view 使用
Go to file
Max 97be25b332 chore: 中文化日志注释 + 测试覆盖率 25→54 + iOS 清理 + 代码优化
- 全面中文化 debugPrint 日志(bridge_protocol, media_service, navigation_service, shell_page)
- Java 异常处理注释中文化(CoreShellActivity)
- 新增 29 个测试用例覆盖边界场景(URL/序列化/兼容性/错误映射/Accept类型/boolValue/MIME)
- 提取 _buildAndroidWidgetParams 方法,优化 summary getter 可读性
- 删除 iOS 相关文件(仅支持 Android 平板)
- 测试中使用 cascade notation 改进风格
2026-03-19 19:54:29 +08:00
apps/quanxue chore: 中文化日志注释 + 测试覆盖率 25→54 + iOS 清理 + 代码优化 2026-03-19 19:54:29 +08:00
doc Refactor: split core_app.dart (2100 lines) into 15 modular files across 5 directories 2026-03-19 17:24:57 +08:00
flavors Refactor: migrate to Monorepo N-brand architecture with automated scaffolding 2026-03-19 16:58:03 +08:00
packages chore: 中文化日志注释 + 测试覆盖率 25→54 + iOS 清理 + 代码优化 2026-03-19 19:54:29 +08:00
tool chore: 中文化日志注释 + 测试覆盖率 25→54 + iOS 清理 + 代码优化 2026-03-19 19:54:29 +08:00
.gitignore Initial commit: Flutter web android shell project 2026-03-19 16:00:05 +08:00
README.md chore: 中文化日志注释 + 测试覆盖率 25→54 + iOS 清理 + 代码优化 2026-03-19 19:54:29 +08:00
analysis_options.yaml chore: 中文化日志注释 + 测试覆盖率 25→54 + iOS 清理 + 代码优化 2026-03-19 19:54:29 +08:00
pubspec.lock Refactor: migrate to Monorepo N-brand architecture with automated scaffolding 2026-03-19 16:58:03 +08:00
pubspec.yaml Refactor: migrate to Monorepo N-brand architecture with automated scaffolding 2026-03-19 16:58:03 +08:00

README.md

web_android_shell

Android 平板专用 H5 壳项目。

调试说明

这个项目在部分设备上,如果直接用 Ctrl+C 结束 flutter run,设备里的上一次 App 进程可能还留在后台,下一次运行时会影响内嵌 WebView 启动。

更稳的做法:

  • 调试结束时优先在 flutter run 里按 q
  • 或者使用项目自带脚本,先自动杀掉旧进程再启动
.\tool\flutter_run_fresh.ps1

如果要指定设备,也可以继续透传给 flutter run

.\tool\flutter_run_fresh.ps1 -d F136A

脚本会自动:

  • 读取 android/local.properties 中的 sdk.dir
  • 调用 adb shell am force-stop com.yuanxuan.webshell.web_android_shell
  • 然后执行 flutter run