react-native-firebase/tests/android/build.gradle

53 lines
1.3 KiB
Groovy
Raw Normal View History

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()
2018-03-27 14:32:10 +00:00
google()
maven {
url 'https://maven.fabric.io/public'
}
2017-04-23 19:22:19 +00:00
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
classpath 'com.google.gms:google-services:3.2.1'
classpath 'com.google.firebase:firebase-plugins:1.1.1'
2018-03-08 10:04:53 +00:00
classpath 'io.fabric.tools:gradle:1.25.1'
2017-04-23 19:22:19 +00:00
}
}
allprojects {
repositories {
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
mavenLocal()
google()
2017-04-23 19:22:19 +00:00
}
}
subprojects {
ext {
2018-03-23 17:03:53 +00:00
compileSdk = 27
2018-03-28 14:51:08 +00:00
buildTools = "27.0.3"
2017-04-23 19:22:19 +00:00
minSdk = 16
targetSdk = 26
2017-04-23 19:22:19 +00:00
}
afterEvaluate { project ->
if (!project.name.equalsIgnoreCase("app")
&& project.hasProperty("android")) {
android {
compileSdkVersion compileSdk
buildToolsVersion buildTools
defaultConfig {
minSdkVersion minSdk
targetSdkVersion targetSdk
}
}
}
}
}