Ben LaVerriere d8073ed16d
Don't specify buildToolsVersion on Android (#477)
Since we're depending on a version of the Android Gradle plugin higher
than 3, we don't need to specify a buildToolsVersion. Trying to grab
this value from the root project, in a project that also doesn't specify
it, would fail. Since the only reason we were doing the fetch was to
specify our own buildToolsVersion, I think we can safely remove it.
2020-08-01 14:55:09 -03:00

39 lines
769 B
Groovy

buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
}
}
apply plugin: 'com.android.library'
def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}
android {
compileSdkVersion rootProject.ext.compileSdkVersion
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
}
lintOptions {
abortOnError false
}
}
repositories {
mavenCentral()
}
dependencies {
implementation "com.facebook.react:react-native:${safeExtGet("reactNative", "+")}" // from node_modules
}