Skip to content

Commit

Permalink
Migrate BuildConfig to Gradle Build Files (#4049)
Browse files Browse the repository at this point in the history
- Addresses the following warning: The option setting 'android.defaults.buildfeatures.buildconfig=true' is deprecated. Each module uses the BuildConfig class so it's added everywhere.
  • Loading branch information
jpelgrom authored Dec 15, 2023
1 parent 857cf46 commit 62414e4
Show file tree
Hide file tree
Showing 5 changed files with 7 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 @@ -40,6 +40,7 @@ android {
buildFeatures {
viewBinding = true
compose = true
buildConfig = true
}

composeOptions {
Expand Down
1 change: 1 addition & 0 deletions automotive/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ android {
buildFeatures {
viewBinding = true
compose = true
buildConfig = true
}

composeOptions {
Expand Down
4 changes: 4 additions & 0 deletions common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ android {
}
}

buildFeatures {
buildConfig = true
}

kotlinOptions {
jvmTarget = libs.versions.javaVersion.get()
}
Expand Down
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ org.gradle.vfs.watch=true

android.defaults.buildfeatures.resvalues=false
android.defaults.buildfeatures.shaders=false
android.defaults.buildfeatures.buildconfig=true
android.nonFinalResIds=false
1 change: 1 addition & 0 deletions wear/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ android {
buildFeatures {
viewBinding = true
compose = true
buildConfig = true
}

composeOptions {
Expand Down

0 comments on commit 62414e4

Please sign in to comment.