Skip to content

Commit

Permalink
Merge pull request #537 from DataDog/louiszawadzki/RUMM-977/RN0.73-su…
Browse files Browse the repository at this point in the history
…pport

Add support for RN 0.73
  • Loading branch information
louiszawadzki authored Oct 12, 2023
2 parents 487bab0 + 7ea79da commit c5d92df
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/core/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@ def getExtOrIntegerDefault(name) {
android {
compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
buildToolsVersion getExtOrDefault('buildToolsVersion')
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
namespace = "com.datadog.reactnative"
}
if (agpVersion.tokenize('.')[0].toInteger() >= 8) {
buildFeatures {
buildConfig = true
}
}

defaultConfig {
minSdkVersion 21
targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
Expand Down

0 comments on commit c5d92df

Please sign in to comment.