Skip to content

Commit

Permalink
Fix warning about android.defaults.buildfeatures.buildconfig=true
Browse files Browse the repository at this point in the history
This fixes the following warning warning:

The option setting
'android.defaults.buildfeatures.buildconfig=true' is
deprecated. The current default is 'false'. It will be
removed in version 9.0 of the Android Gradle plugin.
You can resolve this warning in Android Studio via
`Refactor` > `Migrate BuildConfig to Gradle Build
Files`
  • Loading branch information
oakkitten committed Feb 18, 2024
1 parent 05713fb commit 6f1d8ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ android {

buildFeatures {
viewBinding = true
buildConfig = true
}
}

Expand Down
4 changes: 4 additions & 0 deletions cats/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ android {
targetSdk = 34
minSdk = 16
}

buildFeatures {
buildConfig = true
}
}

tasks.withType<JavaCompile> {
Expand Down
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,5 @@ android.useAndroidX=true
# kapt is the annotation processor for Kotlin
kapt.incremental.apt=true

android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false

0 comments on commit 6f1d8ad

Please sign in to comment.