From e14d0a246e440963ca7aeb69ee3be6ee7df8bf12 Mon Sep 17 00:00:00 2001 From: duy Date: Sat, 31 Aug 2024 00:31:15 +0700 Subject: [PATCH] Enable buildConfig in gradle files --- app/build.gradle | 4 ++++ gradle.properties | 1 - modules/common/build.gradle | 3 +++ modules/ncalc-editor/build.gradle | 4 ++++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index fce6350..68d1539 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -49,6 +49,10 @@ android { testOptions { animationsDisabled = true } + + buildFeatures { + buildConfig = true + } } diff --git a/gradle.properties b/gradle.properties index f3353b4..de63fea 100644 --- a/gradle.properties +++ b/gradle.properties @@ -19,5 +19,4 @@ android.useAndroidX=true # resources declared in the library itself and none from the library's dependencies, # thereby reducing the size of the R class for that library android.nonTransitiveRClass=true -android.defaults.buildfeatures.buildconfig=true android.nonFinalResIds=false \ No newline at end of file diff --git a/modules/common/build.gradle b/modules/common/build.gradle index b34127d..f8cb2ca 100644 --- a/modules/common/build.gradle +++ b/modules/common/build.gradle @@ -24,6 +24,9 @@ android { targetCompatibility JavaVersion.VERSION_1_8 } + buildFeatures { + buildConfig = true + } } dependencies { diff --git a/modules/ncalc-editor/build.gradle b/modules/ncalc-editor/build.gradle index 9d0cdc6..d308dfe 100644 --- a/modules/ncalc-editor/build.gradle +++ b/modules/ncalc-editor/build.gradle @@ -26,6 +26,10 @@ android { lint { disable 'MissingTranslation' } + + buildFeatures { + buildConfig = true + } } dependencies {