Commit Graph
6 Commits
Author SHA1 Message Date
chaoszhu 46420670bc feat: mobile构建升级 2026-06-02 22:36:50 +08:00
chaos-zhu 01074b73bf feat: 版本号展示&Android端构建配置 2026-05-24 22:31:38 +08:00
chaos-zhu c90e869d63 feat: 完善设置功能 2026-05-24 14:40:27 +08:00
chaos-zhu fbbbbd66be feat: 优化UI&UE 2026-05-20 21:56:10 +08:00
chaos-zhu e17250dfcd feat(mobile): 添加核心工具与 device id 模块
- core/utils/validators.dart: normalizeServerAddress 与 isHttpAddress;
  HTTP 风险检测仅用于登录页风险提示。
- core/utils/jwt_expiry.dart: 与 web 端兼容的 LoginExpiry 映射,输出
  字符串与时间戳,匹配 server/app/controller/user.js 中
  jwt.sign({ expiresIn }) 支持的形式。
- core/storage/device_id.dart: DeviceIdStore 抽象 + SecureDeviceIdStore,
  loadOrCreateDeviceId 首次生成 UUID v4 并持久化到 secure storage。
- 配套单测全部通过 (flutter test test/core)。
2026-05-16 16:58:39 +08:00
chaos-zhu 1f118b289e chore(mobile): 添加移动端依赖与平台网络策略
- pubspec.yaml: 引入 dio/cookie_jar/dio_cookie_manager/flutter_secure_storage/
  shared_preferences/pointycastle/basic_utils/dartssh2/xterm/uuid。
- AndroidManifest.xml: 添加 INTERNET 权限,开启 cleartextTraffic 并指向
  network_security_config,允许用户自托管 HTTP EasyNode 服务端连接。
- network_security_config.xml: base-config 允许明文传输,信任系统与用户证书。
- iOS Info.plist: 添加 NSAppTransportSecurity NSAllowsArbitraryLoads,
  让 iOS 端可访问用户自托管的 HTTP 实例(与 README 说明的局域网/历史
  部署兼容场景一致)。
2026-05-16 16:55:50 +08:00