Files

44 lines
1.1 KiB
Groovy
Raw Permalink Normal View History

2016-05-29 12:55:51 -04:00
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
2016-05-29 12:55:51 -04:00
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
2016-05-29 12:55:51 -04:00
// 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
2016-09-23 15:37:15 -04:00
url "$rootDir/../node_modules/react-native/android"
2016-05-29 12:55:51 -04:00
}
google()
2016-05-29 12:55:51 -04:00
}
}
ext {
compileSdkVersion = 26
buildToolsVersion = '26.0.2'
}
subprojects { subproject ->
afterEvaluate{
if((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) {
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
}
}
}
}