chore(watch): automate SentrySPM integration via post-prebuild script
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user