49 lines
1.2 KiB
Groovy
49 lines
1.2 KiB
Groovy
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
maven { url 'https://maven.google.com' }
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:2.2.3'
|
|
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|
// in the individual module build.gradle files
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
maven { url 'https://maven.google.com' }
|
|
jcenter()
|
|
maven {
|
|
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
|
url "$rootDir/../node_modules/react-native/android"
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
ext {
|
|
compileSdkVersion = 27
|
|
buildToolsVersion = '27.0.3'
|
|
}
|
|
|
|
subprojects {
|
|
afterEvaluate {
|
|
android {
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
}
|
|
if (project.plugins.hasPlugin('android') || project.plugins.hasPlugin('android-library')) {
|
|
android {
|
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
|
buildToolsVersion rootProject.ext.buildToolsVersion
|
|
}
|
|
}
|
|
}
|
|
} |