-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
106 lines (88 loc) · 3.9 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
// 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
/*Jetpack / AndroidX dependency releases: https://dl.google.com/dl/android/maven2/index.html*/
/*https://blog.jetbrains.com/kotlin/category/releases/*/
kotlinVersion = '1.3.30'
kotlinDep = [
gradlePlugin: "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}",
stdlib : "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${kotlinVersion}",
]
androidDependencies = [
/*https://developer.android.com/studio/releases/gradle-plugin*/
gradlePlugin: "com.android.tools.build:gradle:3.4.0",
appCompat : "androidx.appcompat:appcompat:1.0.2",
]
koinVersion = '2.0.0-rc-2'
koinDep = [
core : "org.koin:koin-core:${koinVersion}",
android : "org.koin:koin-android:${koinVersion}",
viewmodel: "org.koin:koin-androidx-viewmodel:${koinVersion}",
]
archComponentsVersion = '2.0.0'
archComponents = [
components : "androidx.lifecycle:lifecycle-extensions:${archComponentsVersion}",
componentsCompiler: "androidx.lifecycle:lifecycle-compiler:${archComponentsVersion}"
]
/*https://github.com/square/okhttp/blob/master/CHANGELOG.md*/
okhttpVersion = '3.13.1'
/*https://github.com/square/retrofit/blob/master/CHANGELOG.md*/
retrofitVersion = '2.5.0'
networking = [
okhttp : "com.squareup.okhttp3:okhttp:${okhttpVersion}",
okhttpLog : "com.squareup.okhttp3:logging-interceptor:${okhttpVersion}",
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}",
/*https://github.com/JodaOrg/joda-time/releases*/
'jodaTime' : "joda-time:joda-time:2.10.1",
]
rx = [
java : "io.reactivex.rxjava2:rxjava:2.2.6",
android: "io.reactivex.rxjava2:rxandroid:2.1.0",
kotlin : "io.reactivex.rxjava2:rxkotlin:2.3.0",
]
picassoVersion = '2.71828'
ui = [
constraintLayout: 'androidx.constraintlayout:constraintlayout:2.0.0-alpha2',
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",
]
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}"
]
}
repositories {
google()
jcenter()
}
dependencies {
classpath androidDependencies.gradlePlugin
classpath kotlinDep.gradlePlugin
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}