forked from jruesga/rview
/
build.gradle
143 lines (131 loc) · 5.72 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
135
136
137
138
139
140
141
142
143
/*
* Copyright (C) 2016 Jorge Ruesga
*
* 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
*
* http://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.
*/
ext {
libraries = [
// https://developer.android.com/topic/libraries/support-library/revisions.html
support : '27.1.1',
// https://developers.google.com/android/guides/releases
play_services_auth : '15.0.1',
// https://firebase.google.com/support/release-notes/android
firebase_core : '16.0.0',
firebase_messaging : '17.0.0',
gson : '2.8.5',
retrofit2 : '2.4.0',
okhttp3 : '3.10.0',
okio : '1.14.1',
okhttp_digest : 'f13c5b8f79',
rxjava : '2.1.14',
rxandroid : '2.0.2',
rxloader2 : '244a5fddb6',
// Keep commons-io in 2.5. Prior android versions doesn't have fully support for Files api.
commons_io : '2.5',
antlrv3 : '3.5.2',
smoothprogressbar : '1.1.0',
glide : '4.7.1',
prettytime : '4.0.2.Final',
flexboxlayout : '1.0.0',
floatingsearchview : '2d435bead5',
androidsvg : '3511e13649',
keyboardvisibilityevent : '2.1.0',
better_link_movement_method : '2.2.0',
aboutlibraries : '6.0.8',
// https://s3.amazonaws.com/fabric-artifacts/public/com/crashlytics/sdk/android/crashlytics/maven-metadata.xml
crashlytics : '2.9.3',
// https://s3.amazonaws.com/fabric-artifacts/public/com/crashlytics/sdk/android/crashlytics-core/maven-metadata.xml
crashlytics_core : '2.6.3',
// https://s3.amazonaws.com/fabric-artifacts/public/com/crashlytics/sdk/android/answers/maven-metadata.xml
crashlytics_answers : '1.4.2'
]
testLibraries = [
junit : '4.12',
hamcrest : '1.4-atlassian-1',
mockito : '2.18.3',
powermock : '2.0.0-beta.5',
base64 : '2.3.9'
]
}
allprojects {
buildscript {
repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
// https://developer.android.com/studio/releases/gradle-plugin.html#revisions
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.8.2'
// https://s3.amazonaws.com/fabric-artifacts/public/io/fabric/tools/gradle/maven-metadata.xml
classpath 'io.fabric.tools:gradle:1.25.4'
}
}
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
maven { url 'https://maven.fabric.io/public' }
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}
subprojects {
afterEvaluate {project ->
dependencies {
testImplementation "junit:junit:${testLibraries.junit}"
testImplementation "org.hamcrest:hamcrest-core:${testLibraries.hamcrest}"
testImplementation "org.hamcrest:hamcrest-library:${testLibraries.hamcrest}"
testImplementation "org.mockito:mockito-core:${testLibraries.mockito}"
testImplementation "org.powermock:powermock-module-junit4:${testLibraries.powermock}"
testImplementation "org.powermock:powermock-module-junit4-rule:${testLibraries.powermock}"
testImplementation "org.powermock:powermock-api-mockito2:${testLibraries.powermock}"
}
if (project.plugins.hasPlugin('android') || project.plugins.hasPlugin('android-library')) {
android {
compileSdkVersion 28
// https://developer.android.com/studio/releases/build-tools.html
buildToolsVersion '28.0.0'
defaultConfig {
minSdkVersion 16
targetSdkVersion 28
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/rxjava.properties'
}
testOptions {
unitTests.all {
testLogging {
events "passed", "skipped", "failed", "standardError"
outputs.upToDateWhen {false}
}
}
}
}
}
}
}