Skip to content

Commit

Permalink
Bug 1821005 - Enable generation of the BuildConfig class
Browse files Browse the repository at this point in the history
For modules that use buildConfigField and generate metrics, because BuildConfig is not generated by default after Gradle 8.
  • Loading branch information
mcarare authored and mergify[bot] committed Nov 8, 2023
1 parent 0239233 commit 65c2b8c
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ android {
}
}

buildFeatures {
buildConfig true
}

namespace 'mozilla.components.browser.engine.gecko'
}

Expand Down
4 changes: 4 additions & 0 deletions android-components/components/concept/base/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ android {
}
}

buildFeatures {
buildConfig true
}

namespace 'mozilla.components.concept.base'
}

Expand Down
4 changes: 4 additions & 0 deletions android-components/components/concept/fetch/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ android {
}
}

buildFeatures {
buildConfig true
}

namespace 'mozilla.components.concept.fetch'
}

Expand Down
1 change: 1 addition & 0 deletions android-components/components/lib/crash/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ android {

buildFeatures {
viewBinding true
buildConfig true
}

namespace 'mozilla.components.lib.crash'
Expand Down
4 changes: 4 additions & 0 deletions android-components/components/service/nimbus/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ android {
}
}

buildFeatures {
buildConfig true
}

namespace 'mozilla.components.service.nimbus'
}

Expand Down
4 changes: 4 additions & 0 deletions android-components/components/service/pocket/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ android {
androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
}

buildFeatures {
buildConfig true
}

namespace 'mozilla.components.service.pocket'
}

Expand Down
1 change: 1 addition & 0 deletions android-components/components/support/base/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ android {

buildFeatures {
viewBinding true
buildConfig true
}

namespace 'mozilla.components.support.base'
Expand Down
1 change: 1 addition & 0 deletions android-components/samples/glean/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ android {

buildFeatures {
viewBinding true
buildConfig true
}

namespace 'org.mozilla.samples.glean'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ android {
}
}

buildFeatures {
buildConfig true
}

namespace 'mozilla.samples.glean.library'
}

Expand Down
1 change: 1 addition & 0 deletions android-components/samples/sync/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ android {

buildFeatures {
viewBinding true
buildConfig true
}

namespace 'org.mozilla.samples.sync'
Expand Down
1 change: 1 addition & 0 deletions fenix/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ android {

buildFeatures {
viewBinding true
buildConfig true
}

androidResources {
Expand Down
1 change: 1 addition & 0 deletions focus-android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ android {
buildFeatures {
compose true
viewBinding true
buildConfig true
}

composeOptions {
Expand Down

0 comments on commit 65c2b8c

Please sign in to comment.