同步
This commit is contained in:
70
CHANGELOG.md
70
CHANGELOG.md
@@ -4,6 +4,76 @@
|
||||
|
||||
***
|
||||
|
||||
## [v6.10.0] - 2026-06-02
|
||||
|
||||
### 🏗️ 架构优化 + 灵动岛增强 + Lint规则 + 应用图标
|
||||
|
||||
**1. MacosPlatformService 统一 🏗️:**
|
||||
- 🔄 分散在多文件的 MethodChannel 统一为 `MacosPlatformService`
|
||||
- 🔄 通道名 `com.xianyan.theme` → `com.xianyan.macos`
|
||||
- 🔄 `MacosTitleBarService` 标记 @Deprecated,桥接到新服务
|
||||
- ✅ Swift 端扩展为 10 个方法处理器(主题/窗口/标题栏/全屏/触觉等)
|
||||
|
||||
**2. 二维码 WebSocket 长连接推送 🌐:**
|
||||
- ✅ 新增 `QrcodeWsService` — WebSocket 推送服务(心跳25秒/指数退避重连)
|
||||
- ✅ `QrcodeLoginProvider` 重构为双通道架构(WS优先 + HTTP轮询降级)
|
||||
- ✅ 新增 `qrcode_ws_relay.dart` — shelf_web_socket 中继服务器
|
||||
- ✅ PHP 后端 `_notifyWsRelay()` — cURL 通知 WS 中继
|
||||
|
||||
**3. RSS 全文阅读增强 📖:**
|
||||
- ✅ `RssService.fetchFullText()` — 简易 Readability 算法
|
||||
- ✅ `RssReaderPage` 阅读模式 — 全文内容 + 图片画廊
|
||||
- ✅ `RssFullTextResult` 数据类
|
||||
|
||||
**4. 灵动岛增强 — 倒计时聚焦模式 ⏰:**
|
||||
- ✅ `LiveActivityService` — 新增 `startCountdownActivity/updateCountdownActivity/endCountdownActivity`
|
||||
- ✅ `CountdownNotifier` — 集成灵动岛聚焦模式(focusEvent/unfocusEvent)
|
||||
- ✅ `LiveActivityProvider` — 补充 `updateCountdownActivity/endCountdownActivity`
|
||||
- ✅ `CountdownPage` UI — 灵动岛聚焦横幅 + 卡片铃铛按钮 + 操作菜单
|
||||
- ✅ `_activeType` 跟踪 — 类型切换时自动结束旧活动
|
||||
|
||||
**5. 自定义 Lint 规则 📏:**
|
||||
- ✅ 新增 `tools/xianyan_lint/` 自定义 lint 包
|
||||
- ✅ `double_angle_brackets` — 检测双书名号《《
|
||||
- ✅ `hardcoded_color` — 检测非主题系统硬编码颜色
|
||||
- ✅ `hardcoded_chinese` — 检测UI层硬编码中文(默认关闭)
|
||||
- ✅ `analysis_options.yaml` — 新增 custom_lint 规则配置
|
||||
|
||||
**6. 应用图标和名称 🎨:**
|
||||
- ✅ iOS/macOS 应用名称改为中文「闲言」
|
||||
- ✅ iOS `CFBundleDisplayName` → 闲言
|
||||
- ✅ macOS 新增 `CFBundleDisplayName` → 闲言
|
||||
- ✅ 全平台图标更新(从 `assets/templates/resized/` 复制)
|
||||
- ✅ iOS 小组件图标补全
|
||||
- ✅ Web 图标更新
|
||||
|
||||
**修改文件**
|
||||
- `lib/core/services/device/macos_platform_service.dart` — 新建统一服务
|
||||
- `lib/core/services/ui/macos_title_bar_service.dart` — @Deprecated桥接
|
||||
- `macos/Runner/MainFlutterWindow.swift` — 统一通道+10方法
|
||||
- `lib/app/app.dart` — 引用新服务
|
||||
- `lib/features/auth/services/qrcode_ws_service.dart` — 新建WS服务
|
||||
- `lib/features/auth/providers/qrcode_login_provider.dart` — 双通道重构
|
||||
- `docs/toolsapi/scripts/qrcode_ws_relay.dart` — 新建WS中继
|
||||
- `docs/toolsapi/application/api/controller/UserSecurity.php` — WS通知
|
||||
- `lib/features/discover/services/rss_service.dart` — 全文提取
|
||||
- `lib/features/discover/presentation/pages/tool/rss_reader_page.dart` — 阅读模式
|
||||
- `lib/core/services/device/live_activity_service.dart` — 倒计时活动
|
||||
- `lib/core/services/device/live_activity_provider.dart` — 补充方法
|
||||
- `lib/features/countdown/providers/countdown_provider.dart` — 灵动岛集成
|
||||
- `lib/features/countdown/presentation/countdown_page.dart` — 灵动岛UI
|
||||
- `tools/xianyan_lint/` — 新建自定义lint包
|
||||
- `analysis_options.yaml` — lint规则配置
|
||||
- `pubspec.yaml` — 新增xianyan_lint依赖
|
||||
- `ios/Runner/Info.plist` — 中文名称
|
||||
- `macos/Runner/Info.plist` — 中文名称+CFBundleDisplayName
|
||||
- `ios/Runner/Assets.xcassets/AppIcon.appiconset/` — 图标更新
|
||||
- `macos/Runner/Assets.xcassets/AppIcon.appiconset/` — 图标更新
|
||||
- `ios/XianyanWidget/Assets.xcassets/AppIcon.appiconset/` — 小组件图标
|
||||
- `web/icons/` — Web图标更新
|
||||
|
||||
***
|
||||
|
||||
## [v6.9.51] - 2026-06-01
|
||||
|
||||
### 🔧 修复 MacBook Pro 端 iOS/macOS 构建报错
|
||||
|
||||
Reference in New Issue
Block a user