diff --git a/android/build.gradle b/android/build.gradle index b8cea50..a59cd26 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -29,6 +29,13 @@ if (isNewArchitectureEnabled()) { } android { + def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0].toInteger() + if (agpVersion >= 7) { + namespace 'com.github.wumke.RNExitApp' + } + buildFeatures { + buildConfig true + } compileSdkVersion safeExtGet('compileSdkVersion', 23) buildToolsVersion safeExtGet('buildToolsVersion', "25.0.0")