-
Notifications
You must be signed in to change notification settings - Fork 16
/
versions.gradle
248 lines (214 loc) · 10.5 KB
/
versions.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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
/**
* Shared file between builds so that they can all use the same dependencies and
* maven repositories.
**/
ext.deps = [:]
def versions = [:]
versions.android_gradle_plugin = '3.5.0-alpha01'
versions.androidx = "1.0.0"
versions.androidx_annotation = "1.0.0-alpha01"
versions.animated_pie = "1.2.4"
versions.apache_commons = "2.5"
versions.arch_core = "2.0.0-alpha1"
versions.assertj = "3.8.0"
versions.atsl_runner = "1.1.0-alpha4"
versions.calligraphy = "2.3.0"
versions.crashlytics = "2.9.5"
versions.constraint_layout = "2.0.0-alpha2"
versions.dagger = "2.16"
versions.dexmaker = "2.2.0"
versions.espresso = "3.1.0-alpha4"
versions.fabric = "1.25.4"
versions.firebase = "16.0.4"
versions.flashbar = "1.0.3"
versions.google_services = "4.2.0"
versions.glassfish = "10.0-b28"
versions.glide = "4.8.0"
versions.groovy = "2.4.12"
versions.hamcrest = "1.3"
versions.item_animators = "1.0.2@aar"
versions.jacoco = "0.1.3"
versions.javax = "1"
versions.javax_annotation = "1.0"
versions.junit = "4.12"
versions.kotlin = "1.3.11"
versions.leakcanary = "1.6.3"
versions.lifecycle = "2.0.0-rc01"
versions.materialviewpager = "1.2.3"
versions.mikepenz_material_drawer = "6.1.1"
versions.mikepenz_google_material = "3.0.1.2.original@aar"
versions.mikepenz_font_awesome = "5.0.6.0@aar"
versions.mikepenz_iconics = "3.0.3@aar"
versions.mikepenz_iconics_views = "3.0.4@aar"
versions.mockwebserver = "3.8.1"
versions.mockito = "2.19.0"
versions.mockito_all = "1.10.19"
versions.mockito_kotlin = '2.0.0-RC1'
versions.multidex = "2.0.0"
versions.navigation = "1.0.0-alpha05"
versions.octicons = "3.0.0.1@aar"
versions.okhttp = "3.9.0"
versions.onboarder = "1.0.4"
versions.retrofit = "2.3.0"
versions.room = "2.0.0-alpha1"
versions.robolectric = "3.4.2"
versions.rx_android = "2.0.1"
versions.rx_binding = "2.1.1"
versions.rx_java = "2.2.5"
versions.rx_kotlin = "2.3.0"
versions.rx_java = "2.2.4"
versions.stepper = "4.3.1"
versions.ticketView = "1.0.7"
versions.timber = "4.5.1"
versions.threetenabp = "1.1.0"
versions.work = "1.0.0-alpha06"
def deps = [:]
def build_versions = [:]
build_versions.min_sdk = 21
build_versions.target_sdk = '28'
build_versions.compile_version = 28
build_versions.build_tools = "28.0.3"
ext.build_versions = build_versions
def androidx = [:]
androidx.app_compat = "androidx.appcompat:appcompat:$versions.androidx"
androidx.annotations = "androidx.annotation:annotation:$versions.androidx_annotation"
androidx.cardview = "androidx.cardview:cardview:$versions.androidx"
androidx.core = "androidx.core:core-ktx:$versions.androidx"
androidx.core_utils = "androidx.legacy:legacy-support-core-utils:$versions.androidx"
androidx.constraint_layout = "androidx.constraintlayout:constraintlayout:$versions.constraint_layout"
androidx.material = "com.google.android.material:material:$versions.androidx"
androidx.preference = "androidx.preference:preference:$versions.androidx"
androidx.recyclerview = "androidx.recyclerview:recyclerview:$versions.androidx"
androidx.recyclerview_selection = "androidx.recyclerview:recyclerview-selection:$versions.androidx"
androidx.v4 = "androidx.legacy:legacy-support-v4:$versions.androidx"
deps.androidx = androidx
def arch_core = [:]
arch_core.testing = "androidx.arch.core:core-testing:$versions.arch_core"
deps.arch_core = arch_core
def atsl = [:]
atsl.runner = "androidx.test:runner:$versions.atsl_runner"
atsl.rules = "androidx.test:rules:$versions.atsl_runner"
deps.atsl = atsl
def dagger = [:]
dagger.runtime = "com.google.dagger:dagger:$versions.dagger"
dagger.android = "com.google.dagger:dagger-android:$versions.dagger"
dagger.android_support = "com.google.dagger:dagger-android-support:$versions.dagger"
dagger.compiler = "com.google.dagger:dagger-compiler:$versions.dagger"
dagger.processor = "com.google.dagger:dagger-android-processor:$versions.dagger"
deps.dagger = dagger
def espresso = [:]
espresso.core = "androidx.test.espresso:espresso-core:$versions.espresso"
espresso.contrib = "androidx.test.espresso:espresso-contrib:$versions.espresso"
espresso.intents = "androidx.test.espresso:espresso-intents:$versions.espresso"
deps.espresso = espresso
def firebase = [:]
firebase.core = "com.google.firebase:firebase-core:$versions.firebase"
deps.firebase = firebase
def kotlin = [:]
kotlin.stdlib = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$versions.kotlin"
kotlin.test = "org.jetbrains.kotlin:kotlin-test-junit:$versions.kotlin"
kotlin.plugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
kotlin.extensions = "org.jetbrains.kotlin:kotlin-android-extensions:$versions.kotlin"
kotlin.allopen = "org.jetbrains.kotlin:kotlin-allopen:$versions.kotlin"
deps.kotlin = kotlin
def leakcanary = [:]
leakcanary.android = "com.squareup.leakcanary:leakcanary-android:$versions.leakcanary"
leakcanary.fragment = "com.squareup.leakcanary:leakcanary-support-fragment:$versions.leakcanary"
leakcanary.no_op = "com.squareup.leakcanary:leakcanary-android-no-op:$versions.leakcanary"
deps.leakcanary = leakcanary
def lifecycle = [:]
lifecycle.runtime = "androidx.lifecycle:lifecycle-runtime:$versions.lifecycle"
lifecycle.extensions = "androidx.lifecycle:lifecycle-extensions:$versions.lifecycle"
lifecycle.java8 = "androidx.lifecycle:lifecycle-common-java8:$versions.lifecycle"
lifecycle.compiler = "androidx.lifecycle:lifecycle-compiler:$versions.lifecycle"
deps.lifecycle = lifecycle
def material_libs = [:]
material_libs.drawer = "com.mikepenz:materialdrawer:$versions.mikepenz_material_drawer"
material_libs.core = "com.mikepenz:iconics-core:$versions.mikepenz_iconics"
material_libs.iconics = "com.mikepenz:google-material-typeface:$versions.mikepenz_google_material"
material_libs.iconics_views = "com.mikepenz:iconics-views:$versions.mikepenz_iconics_views"
material_libs.octicons = "com.mikepenz:octicons-typeface:$versions.octicons"
material_libs.item_animators = "com.mikepenz:itemanimators:$versions.item_animators"
material_libs.fontawesome = "com.mikepenz:fontawesome-typeface:$versions.mikepenz_font_awesome"
deps.material_libs = material_libs
def mockito = [:]
mockito.core = "org.mockito:mockito-core:$versions.mockito"
mockito.all = "org.mockito:mockito-all:$versions.mockito_all"
mockito.kotlin = "com.nhaarman.mockitokotlin2:mockito-kotlin:$versions.mockito_kotlin"
mockito.android = "org.mockito:mockito-android:$versions.mockito"
deps.mockito = mockito
def material_stepper = [:]
material_stepper.esporesso = "com.stepstone.stepper:espresso-material-stepper:$versions.stepper"
material_stepper.core = "com.stepstone.stepper:material-stepper:$versions.stepper"
deps.material_stepper = material_stepper
def navigation = [:]
navigation.fragment = "android.arch.navigation:navigation-fragment-ktx:$versions.navigation"
navigation.testing = "android.arch.navigation:navigation-testing-ktx:$versions.navigation"
navigation.ui = "android.arch.navigation:navigation-ui-ktx:${versions.navigation}"
deps.navigation = navigation
def retrofit = [:]
retrofit.runtime = "com.squareup.retrofit2:retrofit:$versions.retrofit"
retrofit.gson = "com.squareup.retrofit2:converter-gson:$versions.retrofit"
retrofit.mock = "com.squareup.retrofit2:retrofit-mock:$versions.retrofit"
retrofit.jackson = "com.squareup.retrofit2:converter-jackson:$versions.retrofit"
retrofit.rxjava2 = "com.squareup.retrofit2:adapter-rxjava2:$versions.retrofit"
deps.retrofit = retrofit
def okhttp = [:]
okhttp.okhttp = "com.squareup.okhttp3:okhttp:${versions.okhttp}"
okhttp.okhttp_logging_interceptor = "com.squareup.okhttp3:logging-interceptor:${versions.okhttp}"
deps.okhttp = okhttp
def room = [:]
room.runtime = "androidx.room:room-runtime:$versions.room"
room.compiler = "androidx.room:room-compiler:$versions.room"
room.rxjava2 = "androidx.room:room-rxjava2:$versions.room"
room.testing = "androidx.room:room-testing:$versions.room"
deps.room = room
def rx_binding = [:]
rx_binding.rx = "com.jakewharton.rxbinding2:rxbinding:$versions.rx_binding"
rx_binding.appcompact = "com.jakewharton.rxbinding2:rxbinding-appcompat-v7:$versions.rx_binding"
deps.rx_binding = rx_binding
def work = [:]
work.runtime = "android.arch.work:work-runtime-ktx:$versions.work"
work.testing = "android.arch.work:work-testing:$versions.work"
deps.work = work
deps.android_gradle_plugin = "com.android.tools.build:gradle:$versions.android_gradle_plugin"
deps.animated_pie = "com.github.razerdp:AnimatedPieView:$versions.animated_pie"
deps.assertj = "org.assertj:assertj-core:$versions.assertj"
deps.calligraphy = "uk.co.chrisjenx:calligraphy:$versions.calligraphy"
deps.crashlytics = "com.crashlytics.sdk.android:crashlytics:$versions.crashlytics"
deps.dexmaker = "com.linkedin.dexmaker:dexmaker-mockito:$versions.dexmaker"
deps.fabric = "io.fabric.tools:gradle:$versions.fabric"
deps.flashbar = "com.andrognito.flashbar:flashbar:$versions.flashbar"
deps.google_services = "com.google.gms:google-services:$versions.google_services"
deps.groovy_all = "org.codehaus.groovy:groovy-all:$versions.groovy"
deps.glassfish = "org.glassfish:javax.annotation:$versions.glassfish"
deps.glide = "com.github.bumptech.glide:glide:$versions.glide"
deps.hamcrest = "org.hamcrest:hamcrest-all:$versions.hamcrest"
deps.jacoco = "com.dicedmelon.gradle:jacoco-android:$versions.jacoco"
deps.javax_inject = "javax.inject:javax.inject:$versions.javax"
deps.javax_annotation = "javax.annotation:jsr250-api:$versions.javax_annotation"
deps.junit = "junit:junit:$versions.junit"
deps.materialviewpager = "com.github.florent37:materialviewpager:$versions.materialviewpager"
deps.mock_web_server = "com.squareup.okhttp3:mockwebserver:$versions.mockwebserver"
deps.multidex = "androidx.multidex:multidex:$versions.multidex"
deps.onboarder = "com.codemybrainsout.onboarding:onboarder:$versions.onboarder"
deps.paging = "android.arch.paging:runtime:$versions.paging"
deps.robolectric = "org.robolectric:robolectric:$versions.robolectric"
deps.stepper = "com.stepstone.stepper:material-stepper:$versions.stepper"
deps.rx_android = "io.reactivex.rxjava2:rxandroid:$versions.rx_android"
deps.rx_kotlin = "io.reactivex.rxjava2:rxkotlin:$versions.rx_kotlin"
deps.rx_java = "io.reactivex.rxjava2:rxjava:$versions.rx_java"
deps.ticketView = "com.vipulasri:ticketview:$versions.ticketView"
deps.timber = "com.jakewharton.timber:timber:$versions.timber"
deps.threetenabp = "com.jakewharton.threetenabp:threetenabp:$versions.threetenabp"
ext.deps = deps
def addRepos(RepositoryHandler handler) {
handler.mavenCentral()
handler.google()
handler.jcenter()
handler.maven { url "https://maven.google.com" }
handler.maven { url 'https://maven.fabric.io/public' }
handler.maven { url "https://dl.bintray.com/fabian/maven" }
handler.maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
ext.addRepos = this.&addRepos