Skip to content

Commit

Permalink
build: added namespace for AGP version 7+. This should fix compatibil…
Browse files Browse the repository at this point in the history
…ity issues with gradle 8. (#325)
  • Loading branch information
nhoffmann-fts authored Aug 31, 2024
1 parent 9257192 commit f388394
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f388394

Please sign in to comment.