docs: add CLAUDE.md with app installation rules

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Misaka_Company
2026-05-12 17:33:41 +08:00
parent 1417c8baf9
commit 62583510b2

17
CLAUDE.md Normal file
View File

@@ -0,0 +1,17 @@
# pad_scanner CLAUDE.md
## App Installation Rules
**Always use `adb install -r` to install the app. Never use `flutter install`.**
`flutter install` uninstalls the old version first, which wipes app configuration (API URL, sound file paths, etc.). `adb install -r` performs an in-place upgrade that preserves all app data.
### Installation Steps
```bash
# 1. Build
flutter build apk --release
# 2. Install (in-place upgrade, preserves config)
adb install -r build/app/outputs/flutter-apk/app-release.apk
```