forked from google/iosched
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
134 lines (123 loc) · 4.47 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
/*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Top-level build file where you can add configuration options common to all
// sub-projects/modules.
buildscript {
ext {
// App version
versionName = '6.1.0' // X.Y.Z; X = Major, Y = minor, Z = Patch level
versionCodeBase = 61000 // XYZZM; M = Module (wear, tv, mobile)
versionCodeWear = versionCodeBase + 1
versionCodeTv = versionCodeBase + 2
versionCodeMobile = versionCodeBase + 3
// SDK and tools
compileSdkVersion = 27
minSdkVersion = 21
minTvSdkVersion = 21 // TV was introduced with Lollipop, min SDK should be 21.
targetSdkVersion = 27
// At this time, there isn't a device (or emulator) that supports 27.
compileWearSdkVersion = 27
minWearSdkVersion = 23
targetWearSdkVersion = 27
// App dependencies
androidGradlePluginVersion = '3.1.0'
archLifecycleVersion = '1.1.0'
constraintLayoutVersion = '1.1.0-beta6'
crashlyticsVersion = '2.9.1'
dagger = "2.14.1"
dataBindingCompilerVersion = '3.0.1'
designLibraryVersion = '27.1.0'
espressoVersion = '3.0.1'
fabricVersion = '1.25.1'
firebaseUiVersion = "3.3.0"
flexboxVersion = "0.3.2"
glideVersion = "4.6.1"
googleMapUtilsVersion = "0.5"
googlePlayServicesClientVersion = "12.0.1"
googleServicesVersion = "3.2.0"
gsonVersion = "2.8.1"
hamcrestVersion = '1.3'
junitVersion = '4.12'
kotlinVersion = '1.2.31'
ktxVersion = "0.2"
leakCanaryVersion = "1.5.4"
lottieVersion = "2.5.1"
mdcVersion = '1.0.0-alpha'
mockitoVersion = "2.8.9"
mockitoKotlinVersion = "1.5.0"
okhttpVersion = "3.10.0"
pageIndicatorVersion = "1.3.0"
runnerVersion = '1.0.1'
supportLibraryVersion = '27.1.0'
threetenabpVersion = "1.0.5"
threetenbpVersion = "1.3.6"
timberVersion = "4.6.0"
wearableSupportLibraryVersion = "2.3.0"
}
repositories {
// Material Design Components in Kokoro & local
if (project.hasProperty('mdc_repo_location')) {
maven { url "$mdc_repo_location" }
}
google()
mavenCentral()
jcenter()
maven {
url 'https://maven.fabric.io/public'
}
// Android Build Server
maven { url '../iosched-prebuilts/m2repository' }
}
dependencies {
classpath "com.android.tools.build:gradle:$androidGradlePluginVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "com.google.gms:google-services:$googleServicesVersion"
classpath "io.fabric.tools:gradle:$fabricVersion"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
mavenCentral()
jcenter()
// Material Design Components in Kokoro & local
if (project.hasProperty('mdc_repo_location')) {
maven { url "$mdc_repo_location" }
}
// For Android Build Server
// - Material Design Components
maven { url "${rootProject.projectDir}/../iosched-prebuilts/repository" }
// - Other dependencies
maven { url "${rootProject.projectDir}/../iosched-prebuilts/m2repository" }
// - Support Libraries, etc
maven { url "${rootProject.projectDir}/../../../prebuilts/fullsdk/linux/extras/support/m2repository" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
// Force all of the primary support libraries to use the same version.
configurations.all {
resolutionStrategy {
eachDependency { details ->
if (details.requested.group == 'com.android.support') {
details.useVersion supportLibraryVersion
}
}
}
}