mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-07-14 18:15:56 -04:00
- Add `ContinueWatching` (systemSmall) and `Upcoming` (systemSmall) SwiftUI widgets via `expo-widgets`, registered in `app.json` under the `group.com.jakejarvis.sofa` app group - Add `widget-images` local Expo module with a Swift `WidgetImagesModule` that downloads and resizes remote poster images into the shared app group container for use by widgets; also copies bundled assets (sofa icon fallback) - Add `src/lib/widgets.ts` to fetch dashboard data, cache poster images, and write a JSON timeline to the shared container via `expo-widgets` - Add `ContinueWatching` and `Upcoming` SwiftUI widget views in `src/widgets/` - Add `useWidgetRefresh` hook that refreshes widgets on foreground (throttled to once per minute) and on session ready - Debounce widget refresh in `invalidateTitleQueries` so rapid mutations (e.g. marking multiple episodes watched) batch into a single refresh - Expose `titles.upcoming` from the dashboard procedure and add `upcomingTitles` field to the dashboard schema - Bump iOS deployment target to 16.2 (required by WidgetKit timeline APIs)
150 lines
4.1 KiB
JSON
150 lines
4.1 KiB
JSON
{
|
|
"expo": {
|
|
"name": "Sofa",
|
|
"slug": "sofa",
|
|
"owner": "jakejarvis",
|
|
"scheme": "sofa",
|
|
"orientation": "portrait",
|
|
"userInterfaceStyle": "dark",
|
|
"ios": {
|
|
"config": {
|
|
"usesNonExemptEncryption": false
|
|
},
|
|
"icon": "./assets/images/sofa.icon",
|
|
"bundleIdentifier": "com.jakejarvis.sofa",
|
|
"appleTeamId": "B5ZWKBCUTU"
|
|
},
|
|
"android": {
|
|
"adaptiveIcon": {
|
|
"foregroundImage": "./assets/images/android-icon-foreground.png",
|
|
"backgroundImage": "./assets/images/android-icon-background.png",
|
|
"monochromeImage": "./assets/images/android-icon-monochrome.png"
|
|
},
|
|
"package": "com.jakejarvis.sofa"
|
|
},
|
|
"plugins": [
|
|
[
|
|
"expo-build-properties",
|
|
{
|
|
"ios": {
|
|
"deploymentTarget": "16.2"
|
|
}
|
|
}
|
|
],
|
|
"expo-router",
|
|
"expo-secure-store",
|
|
[
|
|
"expo-font",
|
|
{
|
|
"ios": {
|
|
"fonts": [
|
|
"./assets/fonts/DM_Sans/DMSans-Regular.ttf",
|
|
"./assets/fonts/DM_Sans/DMSans-Medium.ttf",
|
|
"./assets/fonts/DM_Sans/DMSans-SemiBold.ttf",
|
|
"./assets/fonts/DM_Sans/DMSans-Bold.ttf",
|
|
"./assets/fonts/DM_Serif_Display/DMSerifDisplay-Regular.ttf",
|
|
"./assets/fonts/Geist_Mono/GeistMono-Regular.ttf"
|
|
]
|
|
},
|
|
"android": {
|
|
"fonts": [
|
|
{
|
|
"fontFamily": "DM Sans",
|
|
"fontDefinitions": [
|
|
{
|
|
"path": "./assets/fonts/DM_Sans/DMSans-Regular.ttf",
|
|
"weight": 400
|
|
},
|
|
{
|
|
"path": "./assets/fonts/DM_Sans/DMSans-Medium.ttf",
|
|
"weight": 500
|
|
},
|
|
{
|
|
"path": "./assets/fonts/DM_Sans/DMSans-SemiBold.ttf",
|
|
"weight": 600
|
|
},
|
|
{
|
|
"path": "./assets/fonts/DM_Sans/DMSans-Bold.ttf",
|
|
"weight": 700
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"fontFamily": "DM Serif Display",
|
|
"fontDefinitions": [
|
|
{
|
|
"path": "./assets/fonts/DM_Serif_Display/DMSerifDisplay-Regular.ttf",
|
|
"weight": 400
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"fontFamily": "Geist Mono",
|
|
"fontDefinitions": [
|
|
{
|
|
"path": "./assets/fonts/Geist_Mono/GeistMono-Regular.ttf",
|
|
"weight": 400
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
[
|
|
"expo-splash-screen",
|
|
{
|
|
"backgroundColor": "#101010",
|
|
"image": "./assets/images/splash-icon.png",
|
|
"imageWidth": 200
|
|
}
|
|
],
|
|
"expo-system-ui",
|
|
"expo-web-browser",
|
|
[
|
|
"expo-image-picker",
|
|
{
|
|
"microphonePermission": false
|
|
}
|
|
],
|
|
"expo-localization",
|
|
[
|
|
"expo-tracking-transparency",
|
|
{
|
|
"userTrackingPermission": "This identifier will be used to measure app performance and improve your experience."
|
|
}
|
|
],
|
|
[
|
|
"expo-widgets",
|
|
{
|
|
"groupIdentifier": "group.com.jakejarvis.sofa",
|
|
"bundleIdentifier": "com.jakejarvis.sofa.ExpoWidgetsTarget",
|
|
"widgets": [
|
|
{
|
|
"name": "ContinueWatching",
|
|
"displayName": "Continue Watching",
|
|
"description": "Your in-progress TV shows and movies",
|
|
"supportedFamilies": ["systemSmall"]
|
|
},
|
|
{
|
|
"name": "Upcoming",
|
|
"displayName": "Upcoming",
|
|
"description": "Upcoming episodes and movie releases",
|
|
"supportedFamilies": ["systemSmall"]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
],
|
|
"experiments": {
|
|
"typedRoutes": true,
|
|
"reactCompiler": true
|
|
},
|
|
"extra": {
|
|
"eas": {
|
|
"projectId": "a9f021eb-f58d-49af-b291-d72f7dc34051"
|
|
}
|
|
}
|
|
}
|
|
}
|