
CodexandClaude Opus 4.7
57eacb3219
underlying_operations 第二轮拆分(2582 → 2434,再瘦身 148 行)
新增 3 个子模块 + 1 个函数搬到已有子模块:
- adb_helpers (38) 新增 _adb_args(构造 adb -s 命令行)
- reward_pic (新, 73) save_reward_pic(中奖截图保存)
- swipe_sendevent (新, 47) _swipe_with_sendevent_improved(sendevent 滑动)
- clipboard (新, 75) set_clipboard_text(设备剪贴板设置)
策略:4 个方法的 self.X 引用都是 self._adb_path / self._adb_args 这种
"无状态工具方法",可以替换为 module-level 函数调用。类内方法保留为
1 行 forwarding 调用 _impl_X。
外部调用全部不需修改:
- save_reward_pic 4 处外部 self.save_reward_pic 仍工作
- _adb_args / _swipe_with_sendevent_improved / set_clipboard_text 0 外部引用
回归:
- 5 个新/改文件 compileall 通过
- pytest 353 passed / 1 skipped
- 类的 _adb_args / save_reward_pic / set_clipboard_text /
_swipe_with_sendevent_improved 4 个 forwarding 全部正确
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-21 20:07:23 +08:00
..
2026-05-21 20:07:23 +08:00
2026-05-21 20:07:23 +08:00
2026-05-21 19:54:22 +08:00
2026-05-21 20:07:23 +08:00
2026-05-21 19:54:22 +08:00
2026-05-21 19:54:22 +08:00
2026-05-21 19:54:22 +08:00
2026-05-21 20:07:23 +08:00
2026-05-21 20:07:23 +08:00