Resolve warning: ExoDatabaseProvider deprecated.

Replace ExoDatabaseProvider with StandaloneDatabaseProvider.
This commit is contained in:
Hugh Daschbach 2022-08-23 21:44:52 -07:00 committed by Ryan Harg
parent 7d49819450
commit 8878e3e68f
No known key found for this signature in database
GPG Key ID: 89106F3A84E6958C
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import audio.funkwhale.ffa.playback.MediaSession
import audio.funkwhale.ffa.utils.AuthorizationServiceFactory
import audio.funkwhale.ffa.utils.OAuth
import com.google.android.exoplayer2.database.DatabaseProvider
import com.google.android.exoplayer2.database.ExoDatabaseProvider
import com.google.android.exoplayer2.database.StandaloneDatabaseProvider
import com.google.android.exoplayer2.offline.DownloadManager
import com.google.android.exoplayer2.upstream.cache.Cache
import com.google.android.exoplayer2.upstream.cache.LeastRecentlyUsedCacheEvictor
@ -19,7 +19,7 @@ import org.koin.dsl.module
fun exoplayerModule(context: Context) = module {
single<DatabaseProvider>(named("exoDatabase")) {
ExoDatabaseProvider(context)
StandaloneDatabaseProvider(context)
}
single {