build: enable r8 full mode

Enable R8 full mode for the app.

Should shave off ~150kb.
This commit is contained in:
Alexander Capehart 2023-05-11 15:06:37 -06:00
parent cb69400905
commit a8691cf693
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
3 changed files with 7 additions and 1 deletions

View file

@ -247,7 +247,8 @@ constructor(
?: userLibrary?.findPlaylist(uid))
override fun createPlaylist(name: String, songs: List<Song>) {
userLibrary?.createPlaylist(name, songs)
val userLibrary = userLibrary ?: return
userLibrary.createPlaylist(name, songs)
for (listener in updateListeners) {
listener.onMusicChanges(
MusicRepository.Changes(deviceLibrary = false, userLibrary = true))

View file

@ -58,6 +58,10 @@ open class FakeMusicRepository : MusicRepository {
throw NotImplementedError()
}
override fun createPlaylist(name: String, songs: List<Song>) {
throw NotImplementedError()
}
override fun requestIndex(withCache: Boolean) {
throw NotImplementedError()
}

View file

@ -19,3 +19,4 @@ android.useAndroidX=true
android.enableJetifier=false
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
android.enableR8.fullMode=true