generated from karntrehan/Agni
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
127 lines (109 loc) · 5.39 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
compileSdk = 28
buildTools = '28.0.3'
minSdk = 21
targetSdk = 28
/*https://blog.jetbrains.com/kotlin/category/releases/*/
kotlinVersion = '1.3.50'
kotlinDep = [
gradlePlugin: "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}",
stdlib : "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${kotlinVersion}",
/*https://github.com/Kotlin/kotlinx.coroutines/releases*/
coroutines : "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.1",
]
androidDependencies = [
/*https://developer.android.com/studio/releases/gradle-plugin*/
gradlePlugin: "com.android.tools.build:gradle:3.5.0",
/*https://dl.google.com/dl/android/maven2/index.html*/
appCompat : "androidx.appcompat:appcompat:1.1.0",
]
/*https://github.com/google/dagger#dagger*/
daggerVersion = '2.24'
daggerDep = [
core : "com.google.dagger:dagger:${daggerVersion}",
compiler: "com.google.dagger:dagger-compiler:${daggerVersion}",
]
/*https://dl.google.com/dl/android/maven2/index.html*/
archComponentsVersion = '2.1.0'
archComponents = [
components : "androidx.lifecycle:lifecycle-extensions:${archComponentsVersion}",
componentsCompiler: "androidx.lifecycle:lifecycle-compiler:${archComponentsVersion}",
viewModelKtx : "androidx.lifecycle:lifecycle-viewmodel-ktx:${archComponentsVersion}",
]
/*https://developer.android.com/jetpack/androidx/releases/room*/
roomDbVersion = '2.2.0-rc01'
roomDb = [
core : "androidx.room:room-runtime:${roomDbVersion}",
compiler: "androidx.room:room-compiler:${roomDbVersion}",
ktx : "androidx.room:room-ktx:${roomDbVersion}",
rx : "androidx.room:room-rxjava2:${roomDbVersion}",
]
/*https://github.com/square/okhttp/blob/master/CHANGELOG.md*/
okhttpVersion = '4.2.0'
/*https://github.com/square/retrofit/blob/master/CHANGELOG.md*/
retrofitVersion = '2.6.1'
networking = [
okhttp : "com.squareup.okhttp3:okhttp:${okhttpVersion}",
okhttpLog : "com.squareup.okhttp3:logging-interceptor:${okhttpVersion}",
/*https://github.com/google/gson/releases*/
gson : "com.google.code.gson:gson:2.8.5",
retrofit : "com.squareup.retrofit2:retrofit:${retrofitVersion}",
retrofitRx : "com.squareup.retrofit2:adapter-rxjava2:${retrofitVersion}",
retrofitGson: "com.squareup.retrofit2:converter-gson:${retrofitVersion}",
]
rx = [
/*https://github.com/ReactiveX/RxJava/releases*/
java : "io.reactivex.rxjava2:rxjava:2.2.12",
/*https://github.com/ReactiveX/RxAndroid/releases*/
android: "io.reactivex.rxjava2:rxandroid:2.1.1",
/*https://github.com/ReactiveX/RxKotlin/releases*/
kotlin : "io.reactivex.rxjava2:rxkotlin:2.4.0",
]
/*https://github.com/sockeqwe/AdapterDelegates#dependencies*/
adapterDelegateVersion = '4.2.0'
ui = [
/*https://dl.google.com/dl/android/maven2/index.html*/
constraintLayout : 'androidx.constraintlayout:constraintlayout:1.1.3',
recyclerview : 'androidx.recyclerview:recyclerview:1.0.0',
material : 'com.google.android.material:material:1.0.0',
/*https://github.com/square/picasso#download*/
picasso : "com.squareup.picasso:picasso:2.71828",
/*https://github.com/JakeWharton/picasso2-okhttp3-downloader#download*/
picassoOkHttp : "com.jakewharton.picasso:picasso2-okhttp3-downloader:1.1.0",
adapterDelegate : "com.hannesdorfmann:adapterdelegates4:$adapterDelegateVersion",
adapDelLayoutContainer: "com.hannesdorfmann:adapterdelegates4-kotlin-dsl-layoutcontainer:$adapterDelegateVersion"
]
other = [
//multidex: 'androidx.multidex:multidex:2.0.0'
]
roboelectricVersion = '4.0.2'
testing = [
junit : "junit:junit:4.12",
junitRunner : "androidx.test.runner.AndroidJUnitRunner",
mockitoKotlin : "com.nhaarman.mockitokotlin2:mockito-kotlin:2.0.0",
roboelectric : "org.robolectric:robolectric:${roboelectricVersion}",
roboelectricMultidex: "org.robolectric:shadows-multidex:${roboelectricVersion}",
aacTesting : "androidx.arch.core:core-testing:${archComponentsVersion}",
roomDb : "androidx.room:room-testing:${roomDbVersion}"
]
}
repositories {
google()
jcenter()
}
dependencies {
classpath androidDependencies.gradlePlugin
classpath kotlinDep.gradlePlugin
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}