Skip to content

Commit

Permalink
feat(wrappers/react-native): support gradle 8
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhuang committed Oct 16, 2024
1 parent ccf32c5 commit 0e98452
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions wrappers/react-native/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ def getExtOrIntegerDefault(name) {
}

android {
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
// Check AGP version for backward compatibility w/react-native versions still on gradle plugin 6
def major = agpVersion[0].toInteger()
def minor = agpVersion[1].toInteger()
if ((major == 7 && minor >= 3) || major >= 8) {
namespace "com.mattrglobalpairingcryptorn"
buildFeatures {
buildConfig true
}
}

compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')

defaultConfig {
Expand Down

0 comments on commit 0e98452

Please sign in to comment.