-
Notifications
You must be signed in to change notification settings - Fork 0
/
versions.gradle
137 lines (109 loc) · 5.14 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
ext.deps = [:]
def versions = [:]
versions.androidGradlePlugin = '3.6.1'
versions.kotlin = '1.3.61'
versions.coroutines = '1.3.2'
versions.junit = '4.12'
versions.androidArch = '2.0.0'
versions.androidX = '1.1.0-beta01'
versions.androidXConstraintLayout = '2.0.0-beta4'
versions.androidXTest = '1.1.0'
versions.androidXNavigation = "2.2.1"
versions.androidXmultidex = '2.0.0'
versions.material = '1.2.0-alpha05'
versions.supportJavaInject = '1'
versions.dagger = '2.16'
versions.daggerAssisted = '0.5.1'
versions.retrofit2 = '2.6.0'
versions.retrofit2Coroutine = '0.9.2'
versions.okHttp3 = '3.11.0'
versions.gson = '2.8.5'
versions.glide = '4.8.0'
versions.lottie = '3.4.0'
versions.MPAChart = '3.1.0'
versions.mockito = '2.23.0'
versions.mockitoKotlin = '2.0.0-RC2'
def build_versions = [:]
build_versions.min_sdk = 23
build_versions.target_sdk = 29
build_versions.build_tools = "29.0.2"
ext.build_versions = build_versions
def deps = [:]
deps.android_gradle_plugin = "com.android.tools.build:gradle:$versions.androidGradlePlugin"
def kotlin = [:]
kotlin.stdlib = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$versions.kotlin"
kotlin.plugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
kotlin.coroutines_core = "org.jetbrains.kotlinx:kotlinx-coroutines-core:$versions.coroutines"
kotlin.coroutines_android = "org.jetbrains.kotlinx:kotlinx-coroutines-android:$versions.coroutines"
kotlin.test = "org.jetbrains.kotlin:kotlin-test-junit:$versions.kotlin"
deps.kotlin = kotlin
def androidx = [:]
androidx.multidex = "androidx.multidex:multidex:$versions.androidXmultidex"
androidx.appcompat = "androidx.appcompat:appcompat:$versions.androidX"
androidx.lifecycleExt = "androidx.lifecycle:lifecycle-extensions:$versions.androidArch"
androidx.lifecycleViewmodel = "androidx.lifecycle:lifecycle-viewmodel-ktx:$versions.androidArch"
androidx.lifecycleViewmodelSavedState = "androidx.lifecycle:lifecycle-viewmodel-savedstate:1.0.0-rc03"
androidx.constraint = "androidx.constraintlayout:constraintlayout:$versions.androidXConstraintLayout"
androidx.constraint_solver = "androidx.constraintlayout:constraintlayout-solver:$versions.androidXConstraintLayout"
androidx.navigation_fragment = "androidx.navigation:navigation-fragment-ktx:$versions.androidXNavigation"
androidx.navigation_ui = "androidx.navigation:navigation-ui-ktx:$versions.androidXNavigation"
androidx.navigation_safe_args = "androidx.navigation:navigation-safe-args-gradle-plugin:$versions.androidXNavigation"
androidx.runner = "androidx.test:runner:$versions.androidXTest"
androidx.rules ="androidx.test:rules:$versions.androidXTest"
deps.androidx = androidx
def support = [:]
support.java_inject = "javax.inject:javax.inject:$versions.supportJavaInject"
deps.support = support
def google = [:]
google.material = "com.google.android.material:material:$versions.material"
deps.google = google
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"
dagger.assistedInject = 'com.squareup.inject:assisted-inject-annotations-dagger2:0.5.2'
deps.dagger = dagger
def okhttp = [:]
okhttp.runtime = "com.squareup.okhttp3:okhttp:$versions.okHttp3"
okhttp.logging = "com.squareup.okhttp3:logging-interceptor:$versions.okHttp3"
okhttp.mock = "com.squareup.okhttp3:mockwebserver:$versions.okHttp3"
deps.okhttp = okhttp
def retrofit = [:]
retrofit.coroutine = "com.jakewharton.retrofit:retrofit2-kotlin-coroutines-adapter:$versions.retrofit2Coroutine"
retrofit.gson = "com.squareup.retrofit2:converter-gson:$versions.retrofit2"
retrofit.mock = "com.squareup.retrofit2:retrofit-mock:$versions.retrofit2"
retrofit.runtime = "com.squareup.retrofit2:retrofit:$versions.retrofit2"
deps.retrofit = retrofit
def gson = [:]
gson.runtime = "com.google.code.gson:gson:$versions.gson"
deps.gson = gson
def glide = [:]
glide.runtime = "com.github.bumptech.glide:glide:$versions.glide"
glide.compiler = "com.github.bumptech.glide:compiler:$versions.glide"
deps.glide = glide
def tools = [:]
tools.lottie = "com.airbnb.android:lottie:$versions.lottie"
tools.mpa_chart = "com.github.PhilJay:MPAndroidChart:$versions.MPAChart"
deps.tools = tools
def test = [:]
test.junit = "junit:junit:$versions.junit"
test.kotlin = "org.jetbrains.kotlin:kotlin-test-junit:$versions.kotlin"
deps.test = test
def mockito = [:]
mockito.core = "org.mockito:mockito-core:$versions.mockito"
mockito.inline = "org.mockito:mockito-inline:$versions.mockito"
mockito.android = "org.mockito:mockito-android:$versions.mockito"
mockito.kotlin = "com.nhaarman.mockitokotlin2:mockito-kotlin:$versions.mockitoKotlin"
deps.mockito = mockito
ext.deps = deps
def addRepos(RepositoryHandler handler) {
handler.google()
handler.jcenter()
handler.mavenCentral()
handler.maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
handler.maven { url 'https://maven.fabric.io/public' }
handler.maven { url 'https://jitpack.io' }
}
ext.addRepos = this.&addRepos