feat: add Flutter web build support

This commit is contained in:
2026-08-02 01:30:07 +08:00
parent 98bf7ed6a9
commit f0b8af0bc8
24 changed files with 708 additions and 329 deletions

View File

@@ -1,6 +1,6 @@
# 瓶安芯服务工作台
配送员、安装维修员和安检员共用的 Android/iOS Flutter 客户端。首期一账号一角色,统一访问 `/heqi/client/v1/staff`
配送员、安装维修员和安检员共用的 Android/iOS/Web Flutter 客户端。首期一账号一角色,统一访问 `/heqi/client/v1/staff`
## 本地运行
@@ -20,4 +20,7 @@ flutter analyze
flutter test
flutter build apk --debug
flutter build ios --simulator --no-codesign
flutter build web --release --dart-define=API_BASE_URL=https://api.example.com
```
仓库根目录可使用 `API_BASE_URL=https://api.example.com ./scripts/build-apps.sh service_app all` 同时生成 Android 和 Web 产物。Web 端支持登录、任务处理、按浏览器授权采集位置和相机取证,但不支持 Android/iOS 的后台定位保障;生产环境必须使用 HTTPS API 地址。