Remove warning about deprecated 'variant.getGenerateBuildConfig()'

This commit is contained in:
tzugen 2021-04-18 22:18:41 +02:00
parent 4f7da06e26
commit 42967ef45f
No known key found for this signature in database
GPG Key ID: 61E9C34BC10EC930
2 changed files with 4 additions and 6 deletions

View File

@ -1,8 +1,8 @@
apply from: bootstrap.androidModule apply from: bootstrap.androidModule
android { android {
libraryVariants.all { buildFeatures {
generateBuildConfig.enabled = true buildConfig = true
} }
} }

View File

@ -39,10 +39,8 @@ android {
} }
} }
// Disable generating BuildConfig class by default buildFeatures {
// Replace it with https://issuetracker.google.com/issues/72050365 once released. buildConfig = false
libraryVariants.all {
generateBuildConfig.enabled = false
} }
} }