Enabled more optimisation

The APK is so tiny and runs even faster now. How did I not do this earlier?
This commit is contained in:
Corewala 2022-05-26 12:42:16 -04:00
parent 1ec24a38a5
commit d504df9cd3
3 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,7 @@ android {
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

View File

@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools"
tools:shrinkMode="strict" />

View File

@ -22,3 +22,5 @@ kotlin.code.style=official
# Kapt workaround
kapt.use.worker.api=false
kapt.incremental.apt=false
# R8 optimisation
android.enableR8.fullMode=true