Skip to content

Commit

Permalink
test(react-native): fix scenario launcher build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
yousif-bugsnag committed Apr 23, 2024
1 parent da9091d commit c08d5cb
Showing 1 changed file with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,26 @@ def isNewArchitectureEnabled() {
return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true"
}

def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}

buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0")
}
}

apply plugin: 'com.android.library'
apply plugin: 'org.jetbrains.kotlin.android'
if (isNewArchitectureEnabled()) {
apply plugin: 'com.facebook.react'
}

def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}

android {
buildToolsVersion safeExtGet('buildToolsVersion', '28.0.3')
Expand Down

0 comments on commit c08d5cb

Please sign in to comment.