Brings ~55 mod-exclusive files to the upstream-based mod/master-resync branch: Activities (migrated to new ActivityManager pattern): - Clock/Time: SetTimeActivity, SetTimezoneOffsetActivity, NtpSyncActivity - Dictionary: DictionaryDefinitionActivity, DictionarySuggestionsActivity, DictionaryWordSelectActivity, LookedUpWordsActivity - Bookmark: EpubReaderBookmarkSelectionActivity - Book management: BookManageMenuActivity, EndOfBookMenuActivity - OPDS: OpdsServerListActivity, OpdsSettingsActivity - Utility: DirectoryPickerActivity, NumericStepperActivity Utilities (unchanged): - BookManager, BookSettings, BookmarkStore, BootNtpSync - Dictionary, LookupHistory, TimeSync, OpdsServerStore Libraries: PlaceholderCover, TableData, ChapterXPathIndexer Scripts: inject_mod_version, generate_book_icon, preview_placeholder_cover Docs: KOReader sync XPath mapping Migration changes: - ActivityWithSubactivity -> Activity base class - Callback constructors -> finish()/setResult() pattern - enterNewActivity() -> startActivityForResult() - Activity::RenderLock&& -> RenderLock&& These files won't compile yet - they reference mod settings and I18n strings that will be added in subsequent phases. Made-with: Cursor
1.5 KiB
1.5 KiB
Merge Assessment & Cherry-pick: master -> mod/master
Task
Assess and merge new commits from master into mod/master.
Analysis
- 19 commits on
masternot onmod/master, but 16 were already cherry-picked or manually ported (different hashes, same content) - A full
git merge masterproduced 30+ conflicts due to duplicate cherry-picks with different patch IDs - Identified 3 genuinely new commits
Changes Made
1. Cherry-pick 97c3314 (#932) - f21720d
- perf: Skip constructing unnecessary
std::stringin TextBlock.cpp - 1-line change, applied cleanly
2. Cherry-pick 2a32d8a (#926) - 424e332
- chore: Improve Russian language support
- Renamed
russia.yaml->russian.yaml, updatedi18n.md, fixed translation strings - Applied cleanly
3. Cherry-pick 0bc6747 (#827) - 61fb11c
- feat: Add PNG cover image support for EPUB books
- Added
PngToBmpConverterlibrary (new files, 858 lines) - Resolved 2 conflicts:
Epub.cpp: Discarded incoming JPG/PNG block (used old variable names), added PNG thumbnail support to mod's existing structure usingeffectiveCoverImageHrefwith case-insensitive checks. FixedgenerateCoverBmp()PNG block to also useeffectiveCoverImageHref. Added.pngtogetCoverCandidates().ImageToFramebufferDecoder.cpp: Took upstreamLOG_ERRversion over mod'sSerial.printf
Follow-up Items
- Build and test PNG cover rendering on device
mod/masteris now fully caught up withmaster