Add expo-store-review (SDK 54-matched via `expo install`) and wire a one-time in-app rating prompt into the SSE busy->idle "session completed" transition in stores/events.ts — the same signal that already drives the "Task completed" notification, so it only fires on genuine success, never on session.error. State (success count, one-time "asked" flag) persists in expo-secure-store, mirroring the consent pattern in telemetry.ts. The threshold check is split into store-review-policy.ts, free of expo imports, so it's unit-testable with plain `node --test` (same split as buildAuth in auth.ts). F-Droid/Play-Services-absent safety comes from the library itself: StoreReview.isAvailableAsync() resolves false there, so requestReview() is never called and there's no store-URL fallback configured in app.json.
60 lines
1.6 KiB
JSON
60 lines
1.6 KiB
JSON
{
|
|
"name": "@opencode-ai/mobile",
|
|
"version": "0.4.7",
|
|
"private": true,
|
|
"main": "expo-router/entry",
|
|
"scripts": {
|
|
"start": "expo start",
|
|
"start:clear": "expo start --clear",
|
|
"ios": "expo run:ios",
|
|
"android": "expo run:android",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "node --test 'src/**/*.test.ts'"
|
|
},
|
|
"dependencies": {
|
|
"@expo/vector-icons": "^15.0.3",
|
|
"@gorhom/bottom-sheet": "5.2.8",
|
|
"@react-navigation/native": "^7.0.14",
|
|
"@sentry/react-native": "~6.14.0",
|
|
"@tanstack/react-query": "^5.62.0",
|
|
"expo": "^54.0.0",
|
|
"expo-clipboard": "8.0.8",
|
|
"expo-crypto": "~15.0.9",
|
|
"expo-device": "~8.0.10",
|
|
"expo-image-manipulator": "~14.0.8",
|
|
"expo-image-picker": "17.0.10",
|
|
"expo-linking": "~8.0.11",
|
|
"expo-local-authentication": "~17.0.8",
|
|
"expo-notifications": "~0.32.16",
|
|
"expo-router": "~6.0.22",
|
|
"expo-secure-store": "~15.0.8",
|
|
"expo-speech-recognition": "3.0.1",
|
|
"expo-status-bar": "~3.0.9",
|
|
"expo-store-review": "~9.0.9",
|
|
"react": "19.1.0",
|
|
"react-native": "0.81.5",
|
|
"react-native-gesture-handler": "~2.28.0",
|
|
"react-native-marked": "8.0.0",
|
|
"react-native-reanimated": "~4.1.1",
|
|
"react-native-safe-area-context": "~5.6.0",
|
|
"react-native-screens": "~4.16.0",
|
|
"react-native-svg": "15.15.1",
|
|
"react-native-worklets": "0.5.1",
|
|
"zustand": "^5.0.2"
|
|
},
|
|
"devDependencies": {
|
|
"@types/react": "~19.1.10",
|
|
"typescript": "~5.9.2"
|
|
},
|
|
"expo": {
|
|
"install": {
|
|
"exclude": []
|
|
},
|
|
"autolinking": {
|
|
"buildFromSource": [
|
|
".*"
|
|
]
|
|
}
|
|
}
|
|
}
|