From bebf0b4bc2092198d6a1403aecf58afe12fa208d Mon Sep 17 00:00:00 2001 From: NURUL AINI ZA Date: Thu, 7 Aug 2025 16:01:05 +0800 Subject: [PATCH] Update build.gradle Namespace not specified android.buildFeatures.buildConfig = true --- android/build.gradle | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index 006443e3..510b493a 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -16,6 +16,13 @@ buildscript { } android { + def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0].toInteger() + if (agpVersion >= 7) { + namespace 'dev.mcodex.RNSensitiveInfo' + } + buildFeatures { + buildConfig true + } compileSdkVersion project.hasProperty('compileSdkVersion') ? project.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION buildToolsVersion project.hasProperty('buildToolsVersion') ? project.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION