diff --git a/android/build.gradle b/android/build.gradle index 06c8bd1..aab4a31 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -28,6 +28,11 @@ if (isNewArchitectureEnabled()) { } android { + def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION + if (agpVersion.tokenize('.')[0].toInteger() >= 7) { + namespace = "com.reactnativecommunity.geolocation" + } + compileSdkVersion getExtOrIntegerDefault('compileSdkVersion') defaultConfig {