API Client Refactor, Add Frequents to CarPlay, Allow Playback on Startup (#327)

Refactors the client.ts file and moves it's functionality into the JellifyContext for use in other componentry. Lots of touching in the api folder to refactor this. I also found an issue when adding items to a playlist, so I bumped the axios package - which fixed the issue.

Adds "Most Played" and "On Repeat" sections to CarPlay. Most Played will allow users to view their most played artists, while On Repeat will give users access to their top tracks, of which they can select and start playback

Fixes an issue where on startup, if the user was logged in and had a persisted queue, it wouldn't playback. Users should be able to directly start up the queue upon relaunching the app if they are authenticated
This commit is contained in:
Violet Caulfield
2025-05-02 18:34:57 -05:00
committed by GitHub
parent cfc58f7a42
commit c421c20d35
76 changed files with 1610 additions and 1250 deletions

View File

@@ -4,13 +4,6 @@ import App from './App'
import { name as appName } from './app.json'
import { PlaybackService } from './src/player/service'
import TrackPlayer from 'react-native-track-player'
import Client from './src/api/client'
// Initialize API client instance
/* eslint-disable @typescript-eslint/no-unused-expressions */
Client.instance
console.debug('Created Jellify client')
AppRegistry.registerComponent(appName, () => App)
AppRegistry.registerComponent('RNCarPlayScene', () => App)