Files
inp2p/docs/android-kickoff-checklist.md

42 lines
1.2 KiB
Markdown
Raw Permalink 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.
# 安卓端开工准备清单(可执行)
## A. 仓库与目录
- [ ] 新建仓库:`inp2p-android`(或 `inp2p/mobile/android` 子目录)
- [ ] 分支策略:`main` + `dev` + `feature/*`
## B. 工程初始化
- [ ] Android Studio 最新稳定版
- [ ] minSdk 26 / targetSdk 35
- [ ] Kotlin DSL + Compose 模板
- [ ] 引入依赖:Retrofit / OkHttp / Moshi(or kotlinx-serialization) / Room / WorkManager
## C. 安全与配置
- [ ] 本地存储 token 使用 EncryptedSharedPreferences
- [ ] Base URL 支持调试/生产切换
- [ ] 调试日志默认脱敏(禁止打印 Bearer token)
## D. 页面骨架(MVP)
- [ ] Login
- [ ] Dashboard(nodes/stats)
- [ ] Node 控制(apps/kick/connect)
- [ ] SDWAN
- [ ] Admin(settings/audit)
## E. 网络层
- [ ] 统一 ApiResult 封装(Success/Error)
- [ ] 401 统一拦截处理(回登录)
- [ ] 403/404/502 统一文案
## F. 权限与可见性
- [ ] 根据 `role + tenant_id` 做 UI 可见性
- [ ] 高风险动作二次确认弹窗
## G. 测试
- [ ] Mock API 单元测试
- [ ] 至少 1 条真实环境冒烟链路(login -> nodes -> connect)
## H. 文档
- [ ] 在项目 README 中链接:
- `docs/android-mvp-plan.md`
- `docs/android-api-contract.md`