Skip to content

Commit abf79ae

Browse files
committed
refactor mobile screen orchestration
Extract server/session and monitoring workflows into focused hooks so DictationScreen no longer owns every network and notification path. Add a dedicated mobile typecheck config so TypeScript checks pass without breaking Expo export resolution.
1 parent 922633e commit abf79ae

8 files changed

Lines changed: 1357 additions & 1109 deletions

File tree

packages/mobile-voice/AGENTS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,15 @@ Run all commands from `packages/mobile-voice`.
2424
- iOS run: `bun run ios`
2525
- Android run: `bun run android`
2626
- Lint: `bun run lint`
27+
- Typecheck: `bun run typecheck`
2728
- Expo doctor: `bunx expo-doctor`
2829
- Dependency compatibility check: `bunx expo install --check`
2930
- Export bundle smoke test: `bunx expo export --platform ios --clear`
3031

3132
## Build / Verification Expectations
3233

3334
- For JS-only changes: run `bun run lint` and verify app behavior via dev client.
35+
- For TS-heavy refactors: run `bun run typecheck` in addition to lint.
3436
- For native dependency/config/plugin changes: rebuild dev client via EAS before validation.
3537
- If notifications, camera, microphone, or audio-session behavior changes, verify on a physical iOS device.
3638
- Do not claim a fix unless you validated in Metro logs and app runtime behavior.
@@ -40,6 +42,7 @@ Run all commands from `packages/mobile-voice`.
4042
- This package currently has no dedicated unit test script.
4143
- Use targeted validation commands instead:
4244
- `bun run lint`
45+
- `bun run typecheck`
4346
- `bunx expo export --platform ios --clear`
4447
- manual runtime test in dev client
4548

packages/mobile-voice/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"android": "expo run:android",
1111
"ios": "expo run:ios",
1212
"web": "expo start --web",
13-
"lint": "expo lint"
13+
"lint": "expo lint",
14+
"typecheck": "tsc -p tsconfig.typecheck.json --noEmit"
1415
},
1516
"dependencies": {
1617
"@fugood/react-native-audio-pcm-stream": "1.1.4",

0 commit comments

Comments
 (0)