[go: nahoru, domu]

Skip to content

Commit

Permalink
Migrate buildConfig from properties.gradle to build.gradle
Browse files Browse the repository at this point in the history
This is generated in response to a deprecation warning in AS:

```
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`
```

PiperOrigin-RevId: 636546985
  • Loading branch information
icbaker authored and Copybara-Service committed May 23, 2024
1 parent 7b352e1 commit 68c1678
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions demos/main/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ android {

flavorDimensions = ["decoderExtensions"]

buildFeatures.buildConfig true

productFlavors {
noDecoderExtensions {
dimension "decoderExtensions"
Expand Down
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
android.useAndroidX=true
buildDir=buildout
org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false

0 comments on commit 68c1678

Please sign in to comment.