From 287c75cc4ce514b440013e653cfa15099fbbbae0 Mon Sep 17 00:00:00 2001 From: Violet Caulfield Date: Sat, 15 Feb 2025 07:49:20 -0600 Subject: [PATCH] fix build --- App.tsx | 37 ------------------------------------- components/jellify.tsx | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/App.tsx b/App.tsx index 6a8ab36e..a7b2f17a 100644 --- a/App.tsx +++ b/App.tsx @@ -9,10 +9,6 @@ import jellifyConfig from './tamagui.config'; import { clientPersister } from './constants/storage'; import { queryClient } from './constants/query-client'; import { GestureHandlerRootView } from 'react-native-gesture-handler'; -import { QueryKeys } from './enums/query-keys'; -import { useQuery } from '@tanstack/react-query'; -import TrackPlayer, { IOSCategory, IOSCategoryOptions } from 'react-native-track-player'; -import { CAPABILITIES } from './player/constants'; // export const backgroundRuntime = createWorkletRuntime('background'); @@ -20,39 +16,6 @@ export default function App(): React.JSX.Element { const isDarkMode = useColorScheme() === 'dark'; - const { isSuccess: isPlayerReady } = useQuery({ - queryKey: [QueryKeys.Player], - queryFn: async () => { - await TrackPlayer.setupPlayer({ - autoHandleInterruptions: true, - maxCacheSize: 1000 * 100, // 100MB, TODO make this adjustable - iosCategory: IOSCategory.Playback, - iosCategoryOptions: [ - IOSCategoryOptions.AllowAirPlay, - IOSCategoryOptions.AllowBluetooth, - ] - }); - - return await TrackPlayer.updateOptions({ - progressUpdateEventInterval: 1, - capabilities: CAPABILITIES, - notificationCapabilities: CAPABILITIES, - compactCapabilities: CAPABILITIES, - // ratingType: RatingType.Heart, - // likeOptions: { - // isActive: false, - // title: "Favorite" - // }, - // dislikeOptions: { - // isActive: true, - // title: "Unfavorite" - // } - }); - }, - retry: 0, - staleTime: 1000 * 60 * 60 * 24 * 7 // 7 days - }); - return ( { + await TrackPlayer.setupPlayer({ + autoHandleInterruptions: true, + maxCacheSize: 1000 * 100, // 100MB, TODO make this adjustable + iosCategory: IOSCategory.Playback, + iosCategoryOptions: [ + IOSCategoryOptions.AllowAirPlay, + IOSCategoryOptions.AllowBluetooth, + ] + }); + + return await TrackPlayer.updateOptions({ + progressUpdateEventInterval: 1, + capabilities: CAPABILITIES, + notificationCapabilities: CAPABILITIES, + compactCapabilities: CAPABILITIES, + // ratingType: RatingType.Heart, + // likeOptions: { + // isActive: false, + // title: "Favorite" + // }, + // dislikeOptions: { + // isActive: true, + // title: "Unfavorite" + // } + }); + }, + retry: 0, + staleTime: 1000 * 60 * 60 * 24 * 7 // 7 days + }); + return (