2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-22 09:58:08 +00:00

Use gradle.properties to control what kind of code optimization runs

This commit is contained in:
Philip Cohn-Cort 2020-03-11 01:00:53 -04:00
parent 753b61860e
commit 06a73ca856
2 changed files with 13 additions and 4 deletions

View File

@ -56,12 +56,12 @@ android {
buildTypes { buildTypes {
debug { debug {
minifyEnabled true minifyEnabled true
useProguard true
signingConfig signingConfigs.debug signingConfig signingConfigs.debug
} }
release { //keep on 'release' for faster builds, set to 'all' when testing to make sure proguard is not deleting important stuff // keep minifyEnabled false above for faster builds; set to 'true'
// when testing to make sure ProGuard/R8 is not deleting important stuff
release {
minifyEnabled true minifyEnabled true
useProguard true
} }
} }
} }

View File

@ -1,2 +1,11 @@
android.enableJetifier=true android.enableJetifier=true
android.useAndroidX=true android.useAndroidX=true
###
# This 'android.enableR8' property only matters when the current
# build variant has 'minifyEnabled true'.
#
# Set this to false to use ProGuard.
# Set this to true to use R8.
#
# Default: true
android.enableR8=false