Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { GLITCHTIP_DSN } from './src/configs/config'
import * as Sentry from '@sentry/react-native'
import registerNitroPlayer from './src/services/player'
import configureDownloadManager from './src/services/downloads'
import { cacheService } from './src/cache/service'

enableScreens(true)
enableFreeze(true)
Expand All @@ -25,6 +26,10 @@ Sentry.init({
registerNitroPlayer()
configureDownloadManager()

// Migrate legacy auto-download users and reconcile the cache ledger against
// disk truth (adopts pre-ledger downloads, recovers stuck download state)
void cacheService.initialize()

// Lazy require the CarPlayService on iOS so react-native-carplay's native
// module is never accessed on Android, as it's only linked for iOS in react-native.config.js
if (Platform.OS === 'ios') {
Expand Down
Loading
Loading