Files
photo-live/apps/mobile/pubspec.yaml
T
浅念 fb3c278e50 test(mobile): integration suite against real backend on mumu
P3 Task 11 (WRITE & COMPILE phase; device run pending MuMu availability).

- integration_test/p3_flow_test.dart: login -> album (zh+en) -> category
  -> invite -> enqueue 3 real JPEGs -> queue completed -> server history
  (sourceDeviceId) -> ov public API sees 3 -> hide via API + UI sync ->
  DIO fault-gate offline (waitingNetwork -> retry -> 4 completed) ->
  password change (session kept) -> relogin -> in-app locale smoke.
- integration_test/p3_background_test.dart: IT_PHASE=prepare/verify spec
  for HOME-background continuation and force-stop kill-restart recovery
  (2 x ~14MB noise JPEGs give a deterministic mid-flight window).
- helpers: dart-define config, fault-injecting DIO adapter, app harness
  (picker/notification/locale provider overrides), UI step library with
  live-binding polling (no pumpAndSettle).
- scripts/run-mobile-it.sh: device detect (exit 2), backend ensure
  (compose + api/ov/worker/sync, exit 3), idempotent per-run user seed
  (no DB reset), APK build/install + adb push of testdata, phase 1 /
  --background phase 2 orchestration with server-side confirmed-count
  truth via curl.
- services/api seed:it script (create-if-absent staff accounts).
- debug-only network security config: cleartext HTTP permitted to
  10.0.2.2/127.0.0.1/localhost only (release unaffected).
- testdata: 3 x ~120KB + 2 x ~14MB generated JPEGs.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-09-19 05:35:16 +08:00

53 lines
1.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: photo_live
description: 工作人员现场影像上传 App(P3,Android 优先 / iOS 待 G3 编译)。
publish_to: 'none'
version: 1.0.0+1
environment:
sdk: ^3.12.2
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
# 状态管理
flutter_riverpod: ^3.4.3
# 网络
dio: ^5.11.1
# 本地任务库(Task 5 建 schema)
drift: ^2.35.0
sqlite3_flutter_libs: ^0.6.0+eol
# 会话与凭证存储
flutter_secure_storage: ^11.2.0
# 设备标识持久(sourceDeviceId,非机密——shared_preferences 足够)
shared_preferences: ^2.5.3
# 选图 / 连拍
image_picker: ^1.2.3
camera: ^0.12.1
# 分享二维码
qr_flutter: ^4.1.0
# 路径
path_provider: ^2.1.6
path: ^1.9.1
# l10n(与 flutter_localizations 来自 SDK 的约束保持一致)
intl: 0.20.2
timezone: ^0.11.1
dev_dependencies:
flutter_test:
sdk: flutter
# 集成测试(P3 Task 11:MuMu + 真实 cn-api/MinIO/ov 全链路)
integration_test:
sdk: flutter
flutter_lints: ^6.0.0
build_runner: ^2.15.1
drift_dev: ^2.35.0
flutter:
# l10n 代码生成(arb 见 lib/l10n/,配置见 l10n.yaml)
generate: true
uses-material-design: true