-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathversions.gradle
116 lines (95 loc) · 3.7 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
ext.versions = [
gradle : '4.2.1',
compile_sdk: 30,
build_tools: "30.0.3",
min_sdk : 23,
target_sdk : 30,
java : JavaVersion.VERSION_1_8,
fragment : '1.3.2',
kotlin : '1.4.31',
lifecycle : '2.3.0',
coroutines : '1.4.2',
timber : '4.7.1',
room : '2.2.6',
retrofit : '2.9.0',
okhttp3 : '4.9.0',
dagger : '2.33',
truth : '1.3.0',
detekt : '1.17.1'
]
ext.kotlin = "org.jetbrains.kotlin:kotlin-stdlib:$versions.kotlin"
ext.coroutines_android = "org.jetbrains.kotlinx:kotlinx-coroutines-android:$versions.coroutines"
ext.coroutines_core = "org.jetbrains.kotlinx:kotlinx-coroutines-core:$versions.coroutines"
ext.coroutines_test = "org.jetbrains.kotlinx:kotlinx-coroutines-test:$versions.coroutines"
ext.appcompat = "androidx.appcompat:appcompat:1.2.0"
ext.material = "com.google.android.material:material:1.3.0"
ext.constraintlayout = "androidx.constraintlayout:constraintlayout:2.0.4"
ext.recyclerview = "androidx.recyclerview:recyclerview:1.1.0"
ext.core_ktx = "androidx.core:core-ktx:1.3.2"
ext.fragment_ktx = "androidx.fragment:fragment-ktx:$versions.fragment"
ext.lifecycle_viewmodel_ktx = "androidx.lifecycle:lifecycle-viewmodel-ktx:$versions.lifecycle"
ext.lifecycle_runtime_ktx = "androidx.lifecycle:lifecycle-runtime-ktx:$versions.lifecycle"
ext.lifecycle_common_java8 = "androidx.lifecycle:lifecycle-common-java8:$versions.lifecycle"
ext.retrofit = "com.squareup.retrofit2:retrofit:$versions.retrofit"
ext.converter_gson = "com.squareup.retrofit2:converter-gson:$versions.retrofit"
ext.okhttp = "com.squareup.okhttp3:okhttp:$versions.okhttp3"
ext.logging_interceptor = "com.squareup.okhttp3:logging-interceptor:$versions.okhttp3"
ext.dagger = "com.google.dagger:dagger:$versions.dagger"
ext.dagger_compiler = "com.google.dagger:dagger-compiler:$versions.dagger"
ext.room_runtime = "androidx.room:room-runtime:$versions.room"
ext.room_ktx = "androidx.room:room-ktx:$versions.room"
ext.room_compiler = "androidx.room:room-compiler:$versions.room"
ext.junit = 'junit:junit:4.13.2'
ext.junit_ext = 'androidx.test.ext:junit:1.1.2'
ext.espresso = 'androidx.test.espresso:espresso-core:3.3.0'
ext.mockk = "io.mockk:mockk:1.11.0"
ext.robolectric = "org.robolectric:robolectric:4.5.1"
ext.detekt_cli = "io.gitlab.arturbosch.detekt:detekt-cli:$versions.detekt"
// ViewBindingPropertyDelegate https://github.com/kirich1409/ViewBindingPropertyDelegate
ext.view_binding_delegate = "com.github.kirich1409:viewbindingpropertydelegate:1.4.4"
ext.timber = "com.jakewharton.timber:timber:4.7.1"
ext.cicerone = "com.github.terrakok:cicerone:6.6"
ext {
applyCommonFeatureDependencies = { module ->
module.dependencies {
api kotlin
api coroutines_android
api core_ktx
api appcompat
api material
api fragment_ktx
api lifecycle_viewmodel_ktx
api lifecycle_runtime_ktx
api lifecycle_common_java8
api view_binding_delegate
api timber
api cicerone
}
}
}
ext {
applyTests = { module ->
module.dependencies {
testImplementation junit
testImplementation mockk
testImplementation coroutines_test
testImplementation project(':test')
}
}
}
ext {
applyDagger = { module ->
module.dependencies {
implementation dagger
kapt dagger_compiler
}
}
}
ext {
applyAndroidTests = { module ->
module.dependencies {
androidTestImplementation junit_ext
androidTestImplementation espresso
}
}
}