music: add caching

Add caching of already-parsed tag data.

This greatly reduces loading times when the music library has not
changed. This completes the music loader in it's entirety now.

Resolves #207.
This commit is contained in:
Alexander Capehart
2022-09-25 20:02:44 -06:00
parent 393bdf3110
commit 3e73cd8080
9 changed files with 443 additions and 97 deletions
+7
View File
@@ -3,6 +3,7 @@ plugins {
id "kotlin-android"
id "androidx.navigation.safeargs.kotlin"
id "com.diffplug.spotless"
id "kotlin-kapt"
id "kotlin-parcelize"
}
@@ -95,6 +96,12 @@ dependencies {
// Preferences
implementation "androidx.preference:preference-ktx:1.2.0"
// Room
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