Disable buildFeatures flags by default

This commit is contained in:
Goooler 2023-01-13 15:26:07 +08:00
parent 1568e5e84f
commit 83e9f09e50
2 changed files with 8 additions and 0 deletions

View File

@ -52,6 +52,8 @@ android {
disable 'MissingTranslation'
}
buildFeatures {
buildConfig true
resValues true
viewBinding true
}
testOptions {

View File

@ -18,5 +18,11 @@ org.gradle.parallel=true
# https://docs.gradle.org/7.6/userguide/configuration_cache.html
org.gradle.unsafe.configuration-cache=true
# Disable buildFeatures flags by default
android.defaults.buildfeatures.aidl=false
android.defaults.buildfeatures.buildconfig=false
android.defaults.buildfeatures.renderscript=false
android.defaults.buildfeatures.resvalues=false
android.defaults.buildfeatures.shaders=false
android.enableR8.fullMode=true
android.useAndroidX=true