Skip to content

Commit f388394

Browse files
build: added namespace for AGP version 7+. This should fix compatibility issues with gradle 8. (#325)
1 parent 9257192 commit f388394

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

android/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ if (isNewArchitectureEnabled()) {
2828
}
2929

3030
android {
31+
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
32+
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
33+
namespace = "com.reactnativecommunity.geolocation"
34+
}
35+
3136
compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
3237

3338
defaultConfig {

0 commit comments

Comments
 (0)