-
Notifications
You must be signed in to change notification settings - Fork 0
/
versions.gradle
234 lines (214 loc) · 11.2 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
/**
*Source largely taken from this OS repo: https://github.com/googlesamples/android-architecture-components/blob/master/GithubBrowserSample/versions.gradle
* Thank you to everyone involved in this awesome OS project!
*
* In this file, we basically build a tree of deps in a very DRY way.
**/
//ext is a way to add extra data key/value pairs to a gradle domain object. Since it has no prefix,
//it is short hand for project.ext in this case.
//[:] is groovy syntax for creating a "Map" Object, which is a collection of key/value pairs
//create a map of key/value pairs, called deps (deps)
ext.deps = [:]
//def means we're making a local variable. We'll use this map to build our deps key/value
//pairs below
def versions = [:]
versions.espresso = "3.1.0"
versions.mockito = "2.13.0"
versions.junit = "5.1.1"
versions.test = "1.0.0"
versions.runner = "1.1.0"
versions.truth = "0.42"
versions.lifecycle = "2.2.0-alpha01"
versions.room = "2.1.0-alpha03"
versions.navigation = "2.1.0-alpha04"
versions.dagger = "2.16"
versions.support_test = "1.0.1"
versions.design = "1.1.0-alpha09"
versions.appcompat = "1.1.0-alpha05"
versions.fragment= "1.1.0-alpha09"
versions.ktx_fragment = "1.0.0"
versions.rec_view = "1.0.0"
versions.constraint_layout = "2.0.0-alpha2"
versions.coroutine_version = "1.0.0"
versions.android_gradle_plugin = '3.4.0'
versions.kotlin = "1.3.21"
versions.jstarter= "1.0.1"
versions.rxJava="2.2.8"
versions.rxKotlin = "2.3.0"
versions.rxAndroid="2.1.1"
versions.circle_image = "3.0.0"
versions.lottieVersion ="3.0.0"
versions.picasso_version = "2.71828"
versions.shimmer = '0.4.0'
versions.multidex = '1.0.3'
versions.image_copper='2.8.0'
versions.paging = "2.1.0"
versions.retrofit ='2.5.0'
versions.retrofit_coroutines='0.9.2'
versions.gson = "2.3"
versions.okhttp = "3.12.0"
versions.roboelectric = "4.2.1"
versions.mockito_kotlin= "2.1.0"
versions.leak_canary="2.0-alpha-1"
versions.stetho = "1.5.0"
versions.chuck = "1.1.0"
versions.curved = "1.2.1"
versions.indicator = '3.0.3'
versions.epoxy="3.4.2"
versions.timbre = "4.7.1"
versions.expande_layout = '2.9.2'
versions.scaleLayout = '1.2.1'
versions.backdrop="0.1.6"
versions.spinner = "2.0.0"
versions.backdrop = "1.0"
versions.flexbox = "1.1.0"
versions.google_services= "16.0.1"
versions.reactive_network = "3.0.3"
versions.checkableView = "1.0.3"
versions.rxpreferences = "2.0.0"
versions.instabug = "8.5.0"
versions.prefrences = "1.1.0-rc01"
versions.fcm = "20.0.0"
def deps = [:]
def android = [:]
android.appcompat = "androidx.appcompat:appcompat:$versions.appcompat"
android.fragment = "androidx.fragment:fragment:$versions.fragment"
android.activity="androidx.activity:activity-ktx:1.0.0-alpha08"
android.recyclerview = "androidx.recyclerview:recyclerview:$versions.appcompat"
android.design = "com.google.android.material:material:$versions.design"
android.constraint_layout = "androidx.constraintlayout:constraintlayout:$versions.constraint_layout"
android.lifecycle_extensions = "androidx.lifecycle:lifecycle-extensions:$versions.lifecycle"
android.viewModelOnly = "androidx.lifecycle:lifecycle-livedata:$versions.lifecycle"
android.ktx_fragment = "androidx.fragment:fragment-ktx:$versions.ktx_fragment"
android.picasso = "com.squareup.picasso:picasso:$versions.picasso_version"
android.shimmer = "com.facebook.shimmer:shimmer:$versions.shimmer"
android.lottie ="com.airbnb.android:lottie:$versions.lottieVersion"
android.image_copper = "com.theartofdev.edmodo:android-image-cropper:$versions.image_copper"
android.circle_imageview = "de.hdodenhof:circleimageview:$versions.circle_image"
android.custom_fab = "com.github.clans:fab:$versions.custom_fab"
android.multidex = "com.android.support:multidex:$versions.multidex"
android.paging = "androidx.paging:paging-runtime:$versions.paging"
android.navigation_ui= "androidx.navigation:navigation-ui-ktx:$versions.navigation"
android.navigation_fragment = "androidx.navigation:navigation-fragment-ktx:$versions.navigation"
android.leak_canary= "com.squareup.leakcanary:leakcanary-android:$versions.leak_canary"
android.curved_view = "com.github.developer-shivam:Crescento:$versions.curved"
android.indicator ="com.tbuonomo.andrui:viewpagerdotsindicator:$versions.indicator"
android.timbre = "com.jakewharton.timber:timber:$versions.timbre"
android.expand_layou = "net.cachapa.expandablelayout:expandablelayout:$versions.expande_layout"
android.recycler_tablayout= "com.nshmura:recyclertablayout:1.5.0"
android.scalLayout = "com.github.iammert:ScalingLayout:$versions.scaleLayout"
android.backdrop="ru.semper-viventem.backdrop:backdrop:$versions.backdrop"
android.spinner = "com.github.ganfra:material-spinner:$versions.spinner"
android.backdrop = "com.github.roiacult:BackdropLayout:$versions.backdrop"
android.facebook = "com.facebook.android:facebook-login:[4,5)"
android.flex_layout = "com.google.android:flexbox:$versions.flexbox"
android.google_services= "com.google.android.gms:play-services-auth:$versions.google_services"
android.expandableToolabr = "com.github.roiacult:ExpandableToolbar:1.0.0"
android.checkableView = "com.github.okdroid:checkablechipview:$versions.checkableView"
android.instabug = "com.instabug.library:instabug:$versions.instabug"
android.loadingBtn ="com.github.dmytrodanylyk.android-process-button:library:1.0.4"
android.customeFab = "com.leinardi.android:speed-dial:3.0.0"
android.prefrences = "androidx.preference:preference-ktx:$versions.prefrences"
android.numberPicker = "com.github.sephiroth74:NumberSlidingPicker:1.0.3"
android.tooltip = "com.github.sephiroth74:android-target-tooltip:2.0.4"
android.gesture = "it.sephiroth.android.library.uigestures:uigesture-recognizer-kotlin:1.2.7"
android.photoView = "com.github.chrisbanes:PhotoView:2.3.0"
android.labelView = "com.github.linger1216:labelview:v1.1.2"
android.curve = "com.github.florent37:shapeofview:1.4.7"
deps.android = android
def room = [:]
room.runtime = "androidx.room:room-runtime:$versions.room"
room.compiler = "androidx.room:room-compiler:$versions.room"
room.rxJava= "androidx.room:room-rxjava2:$versions.room"
room.coroutines="androidx.room:room-coroutines:$versions.room"
room.testing = "androidx.room:room-testing:$versions.room"
deps.room = room
def base = [:]
base.jstarter = "com.roacult.team7:Jstarter:$versions.jstarter"
base.domain = "com.roacult.team7:Jstarter_domain:$versions.jstarter"
base.presentation = "com.roacult.team7:Jstarter_presentation:$versions.jstarter"
deps.base = base
def dagger=[:]
dagger.core= "com.google.dagger:dagger-android:$versions.dagger"
dagger.javax = "javax.inject:javax.inject:1"
dagger.support= "com.google.dagger:dagger-android-support:$versions.dagger"
dagger.kaptCompiler= "com.google.dagger:dagger-compiler:$versions.dagger"
dagger.kaptProcessor= "com.google.dagger:dagger-android-processor:$versions.dagger"
deps.dagger=dagger
def epoxy = [:]
epoxy.core = "com.airbnb.android:epoxy:$versions.epoxy"
epoxy.processor = "com.airbnb.android:epoxy-processor:$versions.epoxy"
epoxy.databinding = "com.airbnb.android:epoxy-databinding:$versions.epoxy"
epoxy.paging = "com.airbnb.android:epoxy-paging:$versions.epoxy"
deps.epoxy = epoxy
def retrofit =[:]
retrofit.core = "com.squareup.retrofit2:retrofit:$versions.retrofit"
retrofit.coroutine_support= "com.jakewharton.retrofit:retrofit2-kotlin-coroutines-adapter:$versions.retrofit_coroutines"
retrofit.okhttp= "com.squareup.okhttp:okhttp:$versions.retrofit"
retrofit.gson = "com.google.code.gson:gson:$versions.gson"
retrofit.rxjava = "com.squareup.retrofit2:adapter-rxjava2:$versions.retrofit"
retrofit.gson_retrofit = "com.squareup.retrofit2:converter-gson:$versions.retrofit"
retrofit.okhttp3 = "com.squareup.okhttp3:okhttp:$versions.okhttp"
retrofit.logging ="com.squareup.okhttp3:logging-interceptor:$versions.okhttp"
retrofit.mockweberver ="com.squareup.okhttp3:mockwebserver:$versions.okhttp"
retrofit.stetho = "com.facebook.stetho:stetho-okhttp3:$versions.stetho"
retrofit.chuck_release = "com.readystatesoftware.chuck:library-no-op:$versions.chuck"
retrofit.chuck_debug ="com.readystatesoftware.chuck:library:$versions.chuck"
retrofit.scalar_converter= "com.squareup.retrofit2:converter-scalars:$versions.retrofit"
deps.retrofit = retrofit
def firebase =[:]
firebase.fcm = "com.google.firebase:firebase-messaging:$versions.fcm"
deps.firebase = firebase
def test = [:]
test.junit = "org.junit.jupiter:junit-jupiter-api:$versions.junit"
test.kotlin_junit = "org.jetbrains.kotlin:kotlin-test-junit:$versions.kotlin"
test.mockk = "io.mockk:mockk:1.8.9.kotlin13"
test.mock_kotlin= "com.nhaarman.mockitokotlin2:mockito-kotlin:$versions.mockito_kotlin"
test.roboelectric = "org.robolectric:robolectric:$versions.roboelectric"
deps.test = test
def android_test = [:]
android_test.core ="androidx.test:core:$versions.test"
android_test.runner = "androidx.test:runner:$versions.runner"
android_test.rules= "androidx.test:rules:$versions.runner"
android_test.junit ="androidx.test.ext:junit:$versions.test"
android_test.ext_truth="androidx.test.ext:truth:$versions.test"
android_test.truth= "com.google.truth:truth:$versions.truth"
android_test.espresso_core= "androidx.test.espresso:espresso-core:$versions.espresso"
android_test.espresso_contrib= "androidx.test.espresso:espresso-contrib:$versions.espresso"
android_test.espresso_intents="androidx.test.espresso:espresso-intents:$versions.espresso"
android_test.espresso_accessibility = "androidx.test.espresso:espresso-accessibility:$versions.espresso"
android_test.espresso_idling_res = "androidx.test.espresso:espresso-idling-resource:$versions.espresso"
android_test.espresso_idling_concureent = "androidx.test.espresso.idling:idling-concurrent:$versions.espresso"
deps.android_test =android_test
def kotlin = [:]
kotlin.kotlin_jre = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$versions.kotlin"
kotlin.kotlin_gradle_plugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
kotlin.coroutines_core = "org.jetbrains.kotlinx:kotlinx-coroutines-core:$versions.coroutine_version"
kotlin.coroutines_android = "org.jetbrains.kotlinx:kotlinx-coroutines-android:$versions.coroutine_version"
kotlin.rx2 = "org.jetbrains.kotlinx:kotlinx-coroutines-rx2:$versions.coroutine_version"
deps.kotlin = kotlin
def rxjava =[:]
rxjava.core="io.reactivex.rxjava2:rxjava:$versions.rxJava"
rxjava.rxKotlin = "io.reactivex.rxjava2:rxkotlin:$versions.rxKotlin"
rxjava.rxAndroid= "io.reactivex.rxjava2:rxandroid:$versions.rxAndroid"
rxjava.rxpreferences = "com.f2prateek.rx.preferences2:rx-preferences:$versions.rxpreferences"
rxjava.reactive_network = "com.github.pwittchen:reactivenetwork-rx2:$versions.reactive_network"
deps.rxJava = rxjava
def build_versions = [:]
build_versions.min_sdk = 19
build_versions.target_sdk = 28
build_versions.CODE_VERSION = 1
build_versions.VERSION = "1.0.0"
ext.build_versions = build_versions
deps.android_gradle_plugin = "com.android.tools.build:gradle:$versions.android_gradle_plugin"
deps.kotlin_gradle_plugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
deps.navigation_safe_args = "androidx.navigation:navigation-safe-args-gradle-plugin:$versions.navigation"
ext.deps = deps
static def addRepos(RepositoryHandler handler) {
handler.google()
handler.jcenter()
handler.maven { url 'https://jitpack.io' }
handler.maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
handler.maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
}
ext.addRepos = this.&addRepos