android: enable R8

This commit is contained in:
Harsh Shandilya 2021-07-08 02:18:23 +05:30
parent 1c2ae9ad99
commit c927a47759
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
4 changed files with 63 additions and 1 deletions

View file

@ -53,7 +53,12 @@ android {
}
buildTypes.all { signingConfig = signingConfigs.getByName("release") }
}
buildTypes { getByName("release") { isMinifyEnabled = false } }
buildTypes {
getByName("release") {
isMinifyEnabled = true
proguardFiles("proguard-android-optimize.txt", "proguard-rules.pro")
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8