mirror of
https://github.com/Corewala/Buran
synced 2024-12-22 07:42:43 +00:00
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:
parent
1ec24a38a5
commit
d504df9cd3
3 changed files with 6 additions and 0 deletions
|
@ -21,6 +21,7 @@ android {
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
minifyEnabled true
|
minifyEnabled true
|
||||||
|
shrinkResources true
|
||||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
3
app/src/main/res/raw/keep.xml
Normal file
3
app/src/main/res/raw/keep.xml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
tools:shrinkMode="strict" />
|
|
@ -22,3 +22,5 @@ kotlin.code.style=official
|
||||||
# Kapt workaround
|
# Kapt workaround
|
||||||
kapt.use.worker.api=false
|
kapt.use.worker.api=false
|
||||||
kapt.incremental.apt=false
|
kapt.incremental.apt=false
|
||||||
|
# R8 optimisation
|
||||||
|
android.enableR8.fullMode=true
|
||||||
|
|
Loading…
Reference in a new issue