flutter 壳子项目 用于web_view 使用
Go to file
Max a4a714f037 Refactor: migrate to Monorepo N-brand architecture with automated scaffolding 2026-03-19 16:58:03 +08:00
apps/quanxue Refactor: migrate to Monorepo N-brand architecture with automated scaffolding 2026-03-19 16:58:03 +08:00
flavors Refactor: migrate to Monorepo N-brand architecture with automated scaffolding 2026-03-19 16:58:03 +08:00
packages/web_shell_core Refactor: migrate to Monorepo N-brand architecture with automated scaffolding 2026-03-19 16:58:03 +08:00
tool Refactor: migrate to Monorepo N-brand architecture with automated scaffolding 2026-03-19 16:58:03 +08:00
.gitignore Initial commit: Flutter web android shell project 2026-03-19 16:00:05 +08:00
README.md Initial commit: Flutter web android shell project 2026-03-19 16:00:05 +08:00
analysis_options.yaml Initial commit: Flutter web android shell project 2026-03-19 16:00:05 +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

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