Sync version used in build.gradle with react-native master

Add gradleBuildTools configuration to override gradle classpath
This commit is contained in:
Mikael Sand
2019-02-11 15:34:10 +02:00
parent 131ddb6a1a
commit b4c8985b81
+6 -14
View File
@@ -4,26 +4,22 @@ def safeExtGet(prop, fallback) {
buildscript {
repositories {
jcenter()
google()
maven {
url 'https://maven.google.com/'
name 'Google'
}
jcenter()
}
dependencies {
//noinspection GradleDependency
classpath 'com.android.tools.build:gradle:3.2.1'
classpath rootProject.ext.has('gradleBuildTools') ? rootProject.ext.get('gradleBuildTools') : 'com.android.tools.build:gradle:3.3.0'
}
}
apply plugin: 'com.android.library'
android {
compileSdkVersion safeExtGet('compileSdkVersion', 27)
compileSdkVersion safeExtGet('compileSdkVersion', 28)
//noinspection GradleDependency
buildToolsVersion safeExtGet('buildToolsVersion', '27.0.3')
buildToolsVersion safeExtGet('buildToolsVersion', '28.0.3')
defaultConfig {
minSdkVersion safeExtGet('minSdkVersion', 16)
@@ -37,15 +33,11 @@ android {
repositories {
mavenLocal()
jcenter()
google()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$projectDir/../../../node_modules/react-native/android"
}
maven {
url 'https://maven.google.com/'
name 'Google'
url "$rootDir/../node_modules/react-native/android"
}
}