forked from microsoft/appcenter-sdk-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
69 lines (59 loc) · 2.02 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: 'versions.gradle'
apply from: 'publish.gradle'
buildscript {
repositories {
google()
jcenter()
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
//noinspection GradleDependency upgrading this is not compatible with the pinned firebase versions
classpath 'com.google.gms:google-services:4.0.1'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.2'
}
}
allprojects {
repositories {
google()
jcenter()
}
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:deprecation" << "-Xlint:unchecked"
}
}
subprojects {
afterEvaluate { project ->
if (project.hasProperty('android')) {
def config = android.defaultConfig
def ext = rootProject.ext
if (android.compileSdkVersion == null)
android.compileSdkVersion ext.compileSdkVersion
if (config.minSdkVersion == null)
config.minSdkVersion ext.minSdkVersion
if (config.targetSdkVersion == null)
config.targetSdkVersion ext.targetSdkVersion
if (config.versionCode == null)
config.versionCode ext.versionCode
if (config.versionName == null)
config.versionName ext.versionName
if (config.testInstrumentationRunner == null)
config.testInstrumentationRunner ext.testInstrumentationRunner
}
}
}
ext {
testInstrumentationRunner = 'android.support.test.runner.AndroidJUnitRunner'
}
task clean(type: Delete) {
delete project.buildDir
}