mirror of
https://github.com/status-im/react-native.git
synced 2025-01-15 03:56:03 +00:00
e2f2e41f09
Summary: By this change we can unify version early, like we can make kotlin version share in buildscript and app dependency the same time ([butterknife](https://github.com/JakeWharton/butterknife/blob/master/build.gradle) use the same). pass all current ci and one of my project https://github.com/gengjiawen/ReactNative64bitDemo. none [GENERAL] [ANDROID] [TEMPLATE] - refine android config Pull Request resolved: https://github.com/facebook/react-native/pull/20731 Differential Revision: D9482954 Pulled By: hramos fbshipit-source-id: d864adbdbc624bc311ccc5f44a15d0334d2d8a59
40 lines
974 B
Groovy
40 lines
974 B
Groovy
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
buildscript {
|
|
ext {
|
|
buildToolsVersion = "27.0.3"
|
|
minSdkVersion = 16
|
|
compileSdkVersion = 27
|
|
targetSdkVersion = 26
|
|
supportLibVersion = "27.1.1"
|
|
}
|
|
repositories {
|
|
jcenter()
|
|
google()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:3.1.4'
|
|
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|
// in the individual module build.gradle files
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
mavenLocal()
|
|
jcenter()
|
|
maven {
|
|
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
|
url "$rootDir/../node_modules/react-native/android"
|
|
}
|
|
google()
|
|
}
|
|
}
|
|
|
|
|
|
task wrapper(type: Wrapper) {
|
|
gradleVersion = '4.4'
|
|
distributionUrl = distributionUrl.replace("bin", "all")
|
|
}
|