-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
109 lines (92 loc) · 3.82 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
// compose_version = '1.0.0-alpha06'
//Versions
appCompatVersion = '1.1.0'
cardViewVersion = '1.0.0'
constraintLayoutVersion = '1.1.3'
coreKTXVersion = '1.3.0'
coreTestingVersion = '1.1.1'
daggerVersion = '2.28'
glideVersion = '4.11.0'
gsonVersion = '2.8.6'
jUnitVersion = '4.13'
materialVersion = '1.1.0'
mockitoKotlinInlineVersion = '3.3.3'
mockitoKotlinVersion = '2.2.0'
okHttpLoggingInterceptorVersion = '4.7.2'
pagingVersion = '2.1.2'
reactiveStreamsVersion = '2.2.0'
recyclerViewVersion = '1.1.0'
retrofitVersion = '2.9.0'
roomVersion = '2.2.5'
rxAndroidVersion = '2.1.1'
rxJavaVersion = '2.2.19'
swipeRefreshLayoutVersion = '1.1.0'
viewPagerVersion = '1.0.0'
//Core Testing
coreTestingLib = "android.arch.core:core-testing:$coreTestingVersion"
//Dagger
daggerCompiler = "com.google.dagger:dagger-compiler:$daggerVersion"
daggerLib = "com.google.dagger:dagger:$daggerVersion"
//Glide
glideCompiler = "com.github.bumptech.glide:compiler:$glideVersion"
glideLib = "com.github.bumptech.glide:glide:$glideVersion"
//Gson
gsonLib = "com.google.code.gson:gson:$gsonVersion"
//JUnit
jUnitLib = "junit:junit:$jUnitVersion"
//Material
materialLib = "com.google.android.material:material:$materialVersion"
//Mockito
mockitoLib = "com.nhaarman.mockitokotlin2:mockito-kotlin:$mockitoKotlinVersion"
mockitoInlineLib = "org.mockito:mockito-inline:$mockitoKotlinInlineVersion"
//OkHttp
okHttpInterceptorLib = "com.squareup.okhttp3:logging-interceptor:$okHttpLoggingInterceptorVersion"
//Reactive Streams
reactiveStreamsLib = "androidx.lifecycle:lifecycle-reactivestreams-ktx:$reactiveStreamsVersion"
//Retrofit
retrofitGsonLib = "com.squareup.retrofit2:converter-gson:$retrofitVersion"
retrofitRxJavaLib = "com.squareup.retrofit2:adapter-rxjava2:$retrofitVersion"
//Room
roomCompiler = "androidx.room:room-compiler:$roomVersion"
roomLib = "androidx.room:room-runtime:$roomVersion"
roomRxJavaLib = "androidx.room:room-rxjava2:$roomVersion"
//Rx
rxAndroidLib = "io.reactivex.rxjava2:rxandroid:$rxAndroidVersion"
rxJavaLib = "io.reactivex.rxjava2:rxjava:$rxJavaVersion"
//Views
appCompatLib = "androidx.appcompat:appcompat:$appCompatVersion"
cardViewLib = "androidx.cardview:cardview:$cardViewVersion"
constraintLayoutLib = "androidx.constraintlayout:constraintlayout:$constraintLayoutVersion"
recyclerViewLib = "androidx.recyclerview:recyclerview:$recyclerViewVersion"
swipeRefreshLayoutLib = "androidx.swiperefreshlayout:swiperefreshlayout:$swipeRefreshLayoutVersion"
viewPagerLib = "androidx.viewpager2:viewpager2:$viewPagerVersion"
}
ext.kotlin_version = "1.4.20-M2"
repositories {
google()
jcenter()
// maven {
// url "https://dl.bintray.com/kotlin/kotlin-eap/"
// }
}
dependencies {
classpath "com.android.tools.build:gradle:4.2.0-alpha15"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
def nav_version = "2.3.1"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}