From d1a6dd2120ad559ddc3d0d70a35ea62f1c80fdd4 Mon Sep 17 00:00:00 2001 From: Luong Vo Date: Wed, 23 Aug 2023 16:13:10 +0700 Subject: [PATCH] Use buildFeatures to enable buildConfig instead --- template-compose/app/build.gradle.kts | 1 + template-compose/gradle.properties | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/template-compose/app/build.gradle.kts b/template-compose/app/build.gradle.kts index 2de01dfca..ed899e49b 100644 --- a/template-compose/app/build.gradle.kts +++ b/template-compose/app/build.gradle.kts @@ -94,6 +94,7 @@ android { buildFeatures { compose = true + buildConfig = true } composeOptions { diff --git a/template-compose/gradle.properties b/template-compose/gradle.properties index a18e078d0..2cbd6d19d 100644 --- a/template-compose/gradle.properties +++ b/template-compose/gradle.properties @@ -21,5 +21,3 @@ kotlin.code.style=official # 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 -# Disable BuildConfig usage later https://developer.android.com/build/releases/past-releases/agp-8-0-0-release-notes#default-changes -android.defaults.buildfeatures.buildconfig=true