playback: use room for persistence

Finally give up and use Room to persist the playback state.

This should make dependency injection much easier, and the
implementation isn't exactly the *worst*, as I was already using
"raw" data structures for the old queue database.
This commit is contained in:
Alexander Capehart
2023-01-23 12:45:55 -07:00
parent fb004a9e8b
commit f27215a4be
15 changed files with 536 additions and 507 deletions
+7
View File
@@ -4,6 +4,7 @@ plugins {
id "androidx.navigation.safeargs.kotlin"
id "com.diffplug.spotless"
id "kotlin-parcelize"
id 'kotlin-kapt'
}
android {
@@ -93,6 +94,12 @@ dependencies {
// Preferences
implementation "androidx.preference:preference-ktx:1.2.0"
// Database
def room_version = '2.4.3'
implementation "androidx.room:room-runtime:$room_version"
kapt "androidx.room:room-compiler:$room_version"
implementation "androidx.room:room-ktx:$room_version"
// --- THIRD PARTY ---
// Exoplayer