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