Go to file
shen 7de661eb54 feat: 架构整改 — Context拆分、Runtime拆分、异步章节加载、UI测试覆盖
Phase 1: Context 拆分
- 新增 RDEPUBReaderState/RDEPUBReaderEnvironment/RDEPUBReaderServices
- RDEPUBReaderContext 改为过渡门面,代理到 State/Environment/Services

Phase 2: Runtime 拆分
- 新增 RDEPUBPresentationRuntime 处理分页状态管理
- 新增 RDEPUBChapterWarmupOrchestrator 处理章节预热与加载编排
- RDEPUBReaderRuntime 从 1277 行收缩,公共 API 转发到新 facade

Phase 0.5: 性能优化
- prepareOnDemandChapter 支持异步模式(allowSynchronousLoad: false)
- extendPartialBookPageMapIfNeeded 改为 DispatchGroup 并发加载
- RDEPUBChapterOffsetMap.cfiMap 加 NSLock 保护数据竞争
- CFI Map 构建延迟到后台队列(scheduleDeferredCFIMapBuildIfNeeded)
- RDEPUBTextPageRenderView 引入静态位图缓存
- RDEPUBTextContentView 新增 loadingSpinner 占位页

Phase 3: 状态机
- 新增 RDEPUBNavigationStateMachine(含 DEBUG 合法转换校验)
- 新增 RDEPUBPaginationState 记录分页来源

Review 修复
- makeSummary 重复方法合并
- ensureNavigationTargetAvailable 同步路径加注释标记

UI 测试
- 新增 AsyncChapterLoadingTests(20 个测试,覆盖全部架构整改场景)
- 跨章节翻页、延迟 CFI、状态机、内存警告、预加载、位置恢复等
2026-06-23 08:17:08 +08:00
_ssoft-output/implementation-artifacts feat: EPUB阅读器搜索、注释、CFI模块及大书远距跳转优化 2026-06-22 20:26:34 +08:00
.claude/skills Epub阅读器0.0.1 2026-05-21 19:40:51 +08:00
.xcodebuildmcp feat(wxread): align pagination, rendering, and docs 2026-05-24 15:36:01 +08:00
Doc feat: 架构整改 — Context拆分、Runtime拆分、异步章节加载、UI测试覆盖 2026-06-23 08:17:08 +08:00
ReadViewDemo feat: 架构整改 — Context拆分、Runtime拆分、异步章节加载、UI测试覆盖 2026-06-23 08:17:08 +08:00
scripts feat: EPUB 阅读器搜索、选中注释、书签 chrome 状态及大量重构优化 2026-06-13 22:48:56 +08:00
Sources/RDReaderView feat: 架构整改 — Context拆分、Runtime拆分、异步章节加载、UI测试覆盖 2026-06-23 08:17:08 +08:00
.gitignore chore: add .artifacts/ to .gitignore 2026-06-15 08:38:09 +08:00
AGENTS.md feat(wxread): align pagination, rendering, and docs 2026-05-24 15:36:01 +08:00
CONTEXT.md Reorganize docs and update reader search flows 2026-06-10 08:22:07 +08:00
Podfile chore: checkpoint current milestone work 2026-05-22 13:28:53 +08:00
RDReaderView.podspec refactor: 添加中文注释 + 优化模块结构 2026-05-25 10:19:14 +08:00