chore(watch): automate SentrySPM integration via post-prebuild script

This commit is contained in:
2026-08-08 23:21:55 +02:00
parent d6543cd8ca
commit 284fd22c13
4 changed files with 220 additions and 68 deletions
+4 -2
View File
@@ -8,13 +8,14 @@ Swimming workout tracker with Apple Watch and WearOS companion apps. Expo 57 + R
npx expo start # Dev server
npx expo run:ios # Build & run on iOS
npx expo prebuild -p ios # Regenerate ios/ dir (safe — targets/ persists)
npx expo prebuild -p ios && node scripts/add-sentry-watch.js # Prebuild + add SentrySPM to watch target
npx drizzle-kit generate # Regenerate SQL migrations after schema changes
```
**WearOS:**
```bash
./scripts/build-wearos.sh debug # Build debug APK
./scripts/build-wearos.sh release # Build release APK
./scripts/build-wearos.sh debug # Build debug APK (reads version from app.json)
./scripts/build-wearos.sh release # Build release APK (reads version from app.json)
./scripts/generate-wearos-icon.sh assets/icon.png # Generate launcher icons
```
@@ -58,6 +59,7 @@ targets/wearos/ # WearOS app (Kotlin/Compose) — survives prebuil
- WCSession for real-time messaging, `transferUserInfo` for reliable offline sync
- HealthKit for swim workout tracking (indoor swimming)
- Swift types `StoredWorkout`, `StoredSet`, `CompletedLap` in `WorkoutManager.swift`
- SentrySPM: `@bacons/apple-targets` doesn't support `swiftPackages` yet. Run `node scripts/add-sentry-watch.js` after `expo prebuild` to add it automatically. For EAS builds, this runs automatically via the `eas-build-post-install` hook in package.json.
## WearOS Target