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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user