53 lines
1.3 KiB
Groovy
53 lines
1.3 KiB
Groovy
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
maven {
|
|
url 'https://maven.fabric.io/public'
|
|
}
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:3.1.2'
|
|
classpath 'com.google.gms:google-services:4.0.1'
|
|
classpath 'com.google.firebase:firebase-plugins:1.1.1'
|
|
classpath 'io.fabric.tools:gradle:1.25.4'
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
mavenLocal()
|
|
google()
|
|
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 = 27
|
|
buildTools = "27.0.3"
|
|
minSdk = 16
|
|
targetSdk = 26
|
|
}
|
|
|
|
afterEvaluate { project ->
|
|
if (!project.name.equalsIgnoreCase("app")
|
|
&& project.hasProperty("android")) {
|
|
android {
|
|
compileSdkVersion compileSdk
|
|
buildToolsVersion buildTools
|
|
defaultConfig {
|
|
minSdkVersion minSdk
|
|
targetSdkVersion targetSdk
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|