From 3a63f16d84701e149f56b1aa9b9af9e84d6b6473 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Mon, 6 May 2024 17:39:36 -0700 Subject: [PATCH] Switch to buildFeatures for BuildConfig flag. gradle.properties, afaict, can't be applied per module. Once these are all in one giant project we want to apply this property at a finer scope than globally, so move it to buildFeatures, which are preferred anyway. --- native-audio/app/build.gradle | 4 ++++ native-audio/gradle.properties | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/native-audio/app/build.gradle b/native-audio/app/build.gradle index 9410c2dbe..28d27af02 100644 --- a/native-audio/app/build.gradle +++ b/native-audio/app/build.gradle @@ -25,6 +25,10 @@ android { } } namespace 'com.example.nativeaudio' + + buildFeatures { + buildConfig = true + } } dependencies { diff --git a/native-audio/gradle.properties b/native-audio/gradle.properties index e3dfef4e0..918826a7c 100644 --- a/native-audio/gradle.properties +++ b/native-audio/gradle.properties @@ -1,4 +1,3 @@ -android.defaults.buildfeatures.buildconfig=true android.enableJetifier=true android.nonFinalResIds=false android.nonTransitiveRClass=false