2017-04-23 19:22:19 +00:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
|
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
dependencies {
|
2017-05-04 17:53:54 +00:00
|
|
|
classpath 'com.android.tools.build:gradle:2.3.1'
|
2017-04-23 19:22:19 +00:00
|
|
|
classpath 'com.google.gms:google-services:3.0.0'
|
|
|
|
|
|
|
|
// 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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
subprojects {
|
|
|
|
ext {
|
|
|
|
compileSdk = 25
|
|
|
|
buildTools = "25.0.2"
|
|
|
|
minSdk = 16
|
|
|
|
targetSdk = 25
|
|
|
|
}
|
|
|
|
|
|
|
|
afterEvaluate { project ->
|
|
|
|
if (!project.name.equalsIgnoreCase("app")
|
|
|
|
&& project.hasProperty("android")) {
|
|
|
|
android {
|
|
|
|
compileSdkVersion compileSdk
|
|
|
|
buildToolsVersion buildTools
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion minSdk
|
|
|
|
targetSdkVersion targetSdk
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|