mirror of
https://github.com/anultravioletaurora/Jellify.git
synced 2025-12-21 13:30:11 -06:00
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
13 lines
481 B
JavaScript
13 lines
481 B
JavaScript
import 'react-native-gesture-handler'
|
|
import { AppRegistry } from 'react-native'
|
|
import App from './App'
|
|
import { name as appName } from './app.json'
|
|
import { PlaybackService } from './src/player/service'
|
|
import TrackPlayer from 'react-native-track-player'
|
|
|
|
AppRegistry.registerComponent(appName, () => App)
|
|
AppRegistry.registerComponent('RNCarPlayScene', () => App)
|
|
|
|
// Register RNTP playback service for remote controls
|
|
TrackPlayer.registerPlaybackService(() => PlaybackService)
|