Files
FruitServer/docs/plans/INBOX.md
T

60 lines
2.6 KiB
Markdown
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.
# INBOX
## [已处理] K67-A 删除无引用代码与无用资源
### 扫描结论
按「文件是否被 import/part/export 引用」做了全量可达性分析(含 `test/`),以下是彻底无引用的文件。
### 要删除的 Dart 文件(10 个)
- `lib/core/widgets/library_drama_tile.dart`
- `lib/pages/auth/auth_binding.dart`
- `lib/pages/discover/category_dramas_page.dart`
- `lib/pages/discover/widgets/category_grid.dart`
- `lib/pages/discover/widgets/ranking_section.dart`
- `lib/pages/home/home_browse_view.dart`
- `lib/pages/home/home_browse_logic.dart`
- `lib/pages/home/widgets/home_browse_header.dart`
- `lib/pages/home/widgets/home_menu_sheet.dart`
- `lib/pages/mine/widgets/continue_watching_card.dart`
说明:`auth_form_widgets.dart`、`auth_widgets.dart`、`player_view_actions.dart`、
`home_feed_overlay_parts.dart`、`player_overlay_parts.dart` 是 `part` 文件,**不要删**。
### 要删除的安卓资源
- `android/app/src/main/res/drawable-{mdpi,hdpi,xhdpi,xxhdpi,xxxhdpi}/splash_icon.png`
(K60 遗留,已无任何 xml 引用)
- `android/app/src/main/res/values/colors.xml` 里的
`<color name="ic_launcher_background">#FFF1E5</color>`(自适应图标已改用
`@mipmap/ic_launcher_background`,无引用)
### 要删除的本机无用资源(未纳入 git)
- `assets/media/`(21 个 mp4,约 315MB)
- `assets/images/`(4 张旧海报,约 3.7MB)
这两个目录已被 `.gitignore` 忽略、pubspec 也未声明,删除只清理本机磁盘,不产生提交内容。
### 不要动
- `assets/fonts/`(Outfit / PlusJakartaSans):虽然当前 pubspec 未声明,
但代码里仍在用这两个 family,删除/启用另行决策,本批保持原样。
- `assets/icon/fruitshorts.png`:图标设计源图,保留。
- `android/app/src/main/res/drawable*/splash.png`、`background.png`、`android12splash.png`、
`ic_launcher_foreground.png`、`mipmap-*` 全部保留(仍被引用)。
### 任务
1. 删除上述文件与资源;删除后全局搜索确认无残留引用。
2. 门禁:`dart analyze lib test` 零告警、`flutter test` 全过、`flutter build apk --debug` 成功。
3. 从 `develop` 拉 `chore/cleanup-unused`,只提交 Dart 与安卓资源删除,**禁止 `git add -A`**。
4. 提交:`chore(cleanup): 删除无引用代码与无用资源`,作者 `Zhou Weidong <502333560@qq.com>`。
5. `--no-ff` 合回 `develop` 并 push;`FruitServer/docs/plans/PROGRESS.md` 追加 K67-A 留痕
(列出删除清单、释放体积、门禁输出)。
### 约束
- 全程中文;不改任何业务行为;完成后停住等待验收。