build: enable r8 full mode
Enable R8 full mode for the app. Should shave off ~150kb.
This commit is contained in:
parent
cb69400905
commit
a8691cf693
3 changed files with 7 additions and 1 deletions
|
@ -247,7 +247,8 @@ constructor(
|
||||||
?: userLibrary?.findPlaylist(uid))
|
?: userLibrary?.findPlaylist(uid))
|
||||||
|
|
||||||
override fun createPlaylist(name: String, songs: List<Song>) {
|
override fun createPlaylist(name: String, songs: List<Song>) {
|
||||||
userLibrary?.createPlaylist(name, songs)
|
val userLibrary = userLibrary ?: return
|
||||||
|
userLibrary.createPlaylist(name, songs)
|
||||||
for (listener in updateListeners) {
|
for (listener in updateListeners) {
|
||||||
listener.onMusicChanges(
|
listener.onMusicChanges(
|
||||||
MusicRepository.Changes(deviceLibrary = false, userLibrary = true))
|
MusicRepository.Changes(deviceLibrary = false, userLibrary = true))
|
||||||
|
|
|
@ -58,6 +58,10 @@ open class FakeMusicRepository : MusicRepository {
|
||||||
throw NotImplementedError()
|
throw NotImplementedError()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun createPlaylist(name: String, songs: List<Song>) {
|
||||||
|
throw NotImplementedError()
|
||||||
|
}
|
||||||
|
|
||||||
override fun requestIndex(withCache: Boolean) {
|
override fun requestIndex(withCache: Boolean) {
|
||||||
throw NotImplementedError()
|
throw NotImplementedError()
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,3 +19,4 @@ android.useAndroidX=true
|
||||||
android.enableJetifier=false
|
android.enableJetifier=false
|
||||||
# Kotlin code style for this project: "official" or "obsolete":
|
# Kotlin code style for this project: "official" or "obsolete":
|
||||||
kotlin.code.style=official
|
kotlin.code.style=official
|
||||||
|
android.enableR8.fullMode=true
|
Loading…
Reference in a new issue