-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
126 lines (115 loc) · 6.55 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
buildscript {
ext.versions = [
minSdk : 21,
compileSdk : 32,
targetSdk : 32,
kotlin : [
'core' : '1.7.10',
'serialization': '1.3.2',
'coroutines' : '1.6.2'
],
androidx : [
'fragment' : '1.5.0',
'core' : '1.7.0',
'appcompat' : '1.4.1',
'constraintLayout': '2.1.3',
'lifecycle' : '2.5.0',
'swiperefresh' : '1.1.0',
'startup' : '1.1.1',
'recyclerview' : '1.2.1',
'navigation' : '2.5.0',
coreTesting : '2.1.0'
],
google : [
'material': "1.6.1",
'dagger' : '2.42',
'location': '20.0.0'
],
toggleButtonGroup : '1.4.1',
timber : '5.0.1',
coil : '2.0.0',
flowbinding : '1.2.0',
okhttp : '5.0.0-alpha.7',
retrofit : '2.9.0',
retrofitKotlinSerialization: '0.8.0',
chucker : '3.5.2',
desugar : '1.1.5',
kluent : '1.68',
mockk : '1.12.4',
junit : '4.13.2',
turbine : '0.8.0'
]
ext.deps = [
timber : "com.jakewharton.timber:timber:${versions.timber}",
coil : "io.coil-kt:coil:${versions.coil}",
flowbinding : "io.github.reactivecircus.flowbinding:flowbinding-android:${versions.flowbinding}",
retrofit : "com.squareup.retrofit2:retrofit:${versions.retrofit}",
retrofitKotlinSerialization: "com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:${versions.retrofitKotlinSerialization}",
toggleButtonGroup : "nl.bryanderidder:themed-toggle-button-group:${versions.toggleButtonGroup}",
desugar : "com.android.tools:desugar_jdk_libs:${versions.desugar}",
kluent : "org.amshove.kluent:kluent-android:${versions.kluent}",
turbine : "app.cash.turbine:turbine:$versions.turbine",
junit : "junit:junit:${versions.junit}",
kotlin : [
coroutines : "org.jetbrains.kotlinx:kotlinx-coroutines-android:${versions.kotlin.coroutines}",
serialization : "org.jetbrains.kotlinx:kotlinx-serialization-json:${versions.kotlin.serialization}",
coroutinesTest: "org.jetbrains.kotlinx:kotlinx-coroutines-test:${versions.kotlin.coroutines}"
],
androidx : [
'fragment' : "androidx.fragment:fragment-ktx:$versions.androidx.fragment",
'appcompat' : "androidx.appcompat:appcompat:${versions.androidx.appcompat}",
'core' : "androidx.core:core-ktx:${versions.androidx.core}",
'constraintLayout': "androidx.constraintlayout:constraintlayout:${versions.androidx.constraintLayout}",
'swiperefresh' : "androidx.swiperefreshlayout:swiperefreshlayout:${versions.androidx.swiperefresh}",
'startup' : "androidx.startup:startup-runtime:${versions.androidx.startup}",
'recyclerview' : "androidx.recyclerview:recyclerview:${versions.androidx.recyclerview}",
coreTesting : "androidx.arch.core:core-testing:${versions.androidx.coreTesting}"
],
navigation : [
fragment: "androidx.navigation:navigation-fragment-ktx:${versions.androidx.navigation}",
ui : "androidx.navigation:navigation-ui-ktx:${versions.androidx.navigation}"
],
google : [
'material' : "com.google.android.material:material:${versions.google.material}",
'hiltandroid' : "com.google.dagger:hilt-android:${versions.google.dagger}",
'hiltcompiler': "com.google.dagger:hilt-compiler:${versions.google.dagger}",
'location' : "com.google.android.gms:play-services-location:${versions.google.location}"
],
lifecycle : [
'livedata' : "androidx.lifecycle:lifecycle-livedata-ktx:${versions.androidx.lifecycle}",
'viewmodel': "androidx.lifecycle:lifecycle-viewmodel-ktx:${versions.androidx.lifecycle}",
'runtime' : "androidx.lifecycle:lifecycle-runtime-ktx:${versions.androidx.lifecycle}",
],
okhttp : [
core : "com.squareup.okhttp3:okhttp:${versions.okhttp}",
logging : "com.squareup.okhttp3:logging-interceptor:${versions.okhttp}",
mockWebServer: "com.squareup.okhttp3:mockwebserver:${versions.okhttp}"
],
chucker : [
core: "com.github.chuckerteam.chucker:library:${versions.chucker}",
noop: "com.github.chuckerteam.chucker:library-no-op:${versions.chucker}"
],
mockk : [
core : "io.mockk:mockk:${versions.mockk}",
android: "io.mockk:mockk-android:${versions.mockk}"
]
]
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.42'
classpath "org.jetbrains.kotlin:kotlin-serialization:${versions.kotlin.core}"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:${versions.androidx.navigation}"
}
}
plugins {
id 'com.android.application' version '7.2.1' apply false
id 'com.android.library' version '7.2.1' apply false
id 'org.jetbrains.kotlin.android' version '1.7.10' apply false
id 'org.jetbrains.kotlin.jvm' version '1.7.10' apply false
}
task clean(type: Delete) {
delete rootProject.buildDir
}