Skip to content

ReWeibo 1.0.1

Choose a tag to compare

@zhongjitianqianguai zhongjitianqianguai released this 15 Jul 08:52
· 15 commits to main since this release

ReWeibo 1.0.1

本版本修复微博轻享版缓存设置、缓存持久化和上次阅读位置在刷新及重启后的可靠性问题。

This release fixes Weibo Lite cache settings, cache persistence, and last-read continuity across refreshes and restarts.

模块元数据

  • 模块包名:com.tianqianguai.reweibo
  • 版本:1.0.1
  • VersionCode:2
  • Release tag:2-1.0.1
  • 默认推荐 scope:com.weico.international

Module Metadata

  • Module package: com.tianqianguai.reweibo
  • Version: 1.0.1
  • Version code: 2
  • Release tag: 2-1.0.1
  • Default recommended scope: com.weico.international

修复与优化

  • 修复缓存天数在冷启动时被默认 3 天覆盖的问题;轻享版内的深色设置弹窗现在同步保存并读取 1-30 天。
  • 旧模块设置页不再写入另一份互相矛盾的数字配置,仅在首次使用时迁移旧值。
  • 稳定拦截“我的”页 ReWeibo 入口,同时不覆盖其他原生抽屉项的点击行为。
  • 按 status id 合并实时、原生与 shadow cache,在设置确认前不裁剪或误判补齐完成。
  • 使用微博轻享版自身的 Gson 流式写入完整缓存,fsync 后通过同目录原子替换提交,成功后才更新 shadow cache。
  • 保存有限的上次阅读历史及回退锚点,使“上次读到这里”在缓存恢复和断层回补期间仍可用。
  • 扩展补齐页数和条目安全上限以支持最多 30 天缓存,并新增缓存合并、完成条件与反射路径回归测试。

Fixed And Improved

  • Prevents the cache window from falling back to three days during a cold start; the dark in-app dialog now synchronously persists and reads 1-30 days.
  • Stops the legacy module page from writing a conflicting numeric value while retaining one-time migration of the old setting.
  • Reliably intercepts the ReWeibo profile entry without replacing click behavior on native drawer items.
  • Merges live, native, and shadow caches by status id and avoids trimming or declaring completion before settings are confirmed.
  • Streams the full cache through Weibo Lite's own Gson, calls fsync, atomically replaces the native file in the same directory, and updates the shadow only after success.
  • Keeps bounded last-read history and fallback anchors so the “上次读到这里” marker remains available during restoration and gap repair.
  • Expands preload page and item safety limits for up to 30 days and adds regression coverage for merging, completion gates, and reflection paths.

验证

  • testDebugUnitTestlintDebugassembleRelease 全部通过。
  • Android 16 设备 192.168.6.17:5555 上完成 29 → 30 天保存、冷启动读取、3546 条缓存恢复、JSON 解析和上次阅读标记验证。
  • 发布 APK 使用与 1.0 相同的 release 证书签名。

Verification

  • testDebugUnitTest, lintDebug, and assembleRelease all pass.
  • Verified 29 → 30 day persistence, cold-start loading, restoration of 3546 cached statuses, JSON parsing, and the last-read marker on Android 16 device 192.168.6.17:5555.
  • The release APK is signed with the same release certificate as 1.0.

已知限制

  • 上游断层游标当前会返回空数据,因此尚未完成真实 30 天完整规模的长期内存压力测试。

Known Limit

  • The upstream gap cursor currently returns empty data, so a full 30-day long-duration memory soak has not yet been completed.