Skip to content

Commit e14d0a2

Browse files
author
duy
committed
Enable buildConfig in gradle files
1 parent b109ea6 commit e14d0a2

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

app/build.gradle

+4
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ android {
4949
testOptions {
5050
animationsDisabled = true
5151
}
52+
53+
buildFeatures {
54+
buildConfig = true
55+
}
5256
}
5357

5458

gradle.properties

-1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@ android.useAndroidX=true
1919
# resources declared in the library itself and none from the library's dependencies,
2020
# thereby reducing the size of the R class for that library
2121
android.nonTransitiveRClass=true
22-
android.defaults.buildfeatures.buildconfig=true
2322
android.nonFinalResIds=false

modules/common/build.gradle

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ android {
2424
targetCompatibility JavaVersion.VERSION_1_8
2525
}
2626

27+
buildFeatures {
28+
buildConfig = true
29+
}
2730
}
2831

2932
dependencies {

modules/ncalc-editor/build.gradle

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ android {
2626
lint {
2727
disable 'MissingTranslation'
2828
}
29+
30+
buildFeatures {
31+
buildConfig = true
32+
}
2933
}
3034

3135
dependencies {

0 commit comments

Comments
 (0)