yayacal/scripts/AGENTS.md
xfy dd072730f1 fix: 年视图 pageYear 使用 settledPage 计算,修复滑动切换时年份闪烁
pageYear = yearViewYear + (page - settledPage) 代替 currentPage,
因为 yearViewYear 由 settledPage 驱动,两者始终同步。
用 currentPage 会在滑动过半时出现不匹配,导致小月份
短暂显示错误年份数据。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-22 16:09:42 +08:00

38 lines
916 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- Parent: ../AGENTS.md -->
<!-- Generated: 2026-05-22 | Updated: 2026-05-22 -->
# scripts
## Purpose
开发辅助脚本目录,包含性能追踪工具。使用 Perfetto 在设备上抓取应用 trace并生成结构化报告。
## Key Files
| File | Description |
|------|-------------|
| `profile.sh` | Perfetto 性能追踪脚本:抓取 trace、帧统计、内存快照生成 Markdown 报告 |
## Subdirectories
## For AI Agents
### Working In This Directory
- 修改脚本后确保 `adb` 可用性检查和设备连接检测逻辑保持完整
- 脚本输出到 `logs/` 目录trace、framestats、meminfo、report
### Testing Requirements
- 需要已安装 `adb` 和连接的设备
- 应用需已安装:`./gradlew :app:installDebug`
## Dependencies
### Internal
- `logs/` — 脚本输出目录
### External
- Android SDK `adb`
- 设备上的 `perfetto` 工具
<!-- MANUAL: -->