From 478b4751fdf8249ab9e59c76c682899c7ce59564 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste <87148630+Jean-BaptisteC@users.noreply.github.com> Date: Fri, 29 Mar 2024 16:08:42 +0100 Subject: [PATCH] Fix gradle deprecation (#27) * Remove build config in properties file * Add build config property in main module --- app/build.gradle | 5 ++++- gradle.properties | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 5360605..b069fa1 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -44,6 +44,9 @@ android { } } } + buildFeatures { + buildConfig = true + } buildTypes { debug { @@ -114,4 +117,4 @@ dependencies { implementation 'androidx.core:core:1.9.0' //coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.0' -} \ No newline at end of file +} diff --git a/gradle.properties b/gradle.properties index 6672512..0217004 100644 --- a/gradle.properties +++ b/gradle.properties @@ -21,6 +21,5 @@ android.useAndroidX=true org.gradle.unsafe.configuration-cache=true org.gradle.warning.mode=none org.gradle.unsafe.configuration-cache-problems=warn -android.defaults.buildfeatures.buildconfig=true android.nonTransitiveRClass=false -android.nonFinalResIds=false \ No newline at end of file +android.nonFinalResIds=false