-
Notifications
You must be signed in to change notification settings - Fork 1
/
dependencies.gradle
119 lines (100 loc) · 3.28 KB
/
dependencies.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
ext.deps = [:]
// version
def versions = [:]
versions.gradleBuildTool = '7.0.1'
versions.kotlin = "1.5.10"
versions.coroutine = "1.5.0"
versions.lifecycle = "2.4.0-alpha03"
versions.room = "2.3.0"
versions.hilt = "2.38.1"
versions.retrofit = "2.9.0"
versions.moshi = "1.12.0"
versions.glide = "4.12.0"
deps.versions = versions
// dependency
def deps = [:]
// androidx
deps.androidx = [
appcompat : "androidx.appcompat:appcompat:1.3.0",
core_ktx : "androidx.core:core-ktx:1.5.0",
activity_ktx : "androidx.activity:activity-ktx:1.3.0",
constraintlayout : "androidx.constraintlayout:constraintlayout:2.0.4"
]
// lifecycle
deps.lifecycle = [
runtime_ktx : "androidx.lifecycle:lifecycle-runtime-ktx:$versions.lifecycle",
viewmodel_ktx: "androidx.lifecycle:lifecycle-viewmodel-ktx:$versions.lifecycle"
]
// material
deps.material = [
material : "com.google.android.material:material:1.3.0"
]
// recycler view
deps.recyclerview = [
androidx : "androidx.recyclerview:recyclerview:1.2.1",
carousel : "com.github.sparrow007:carouselrecyclerview:1.2.1"
]
// kotlin
deps.kotlin = [
stdlib : "org.jetbrains.kotlin:kotlin-stdlib:$versions.kotlin",
coroutine : "org.jetbrains.kotlinx:kotlinx-coroutines-android:$versions.coroutine"
]
// persistence
deps.persistence = [
room_ktx : "androidx.room:room-ktx:$versions.room",
room_runtime : "androidx.room:room-runtime:$versions.room",
room_compiler : "androidx.room:room-compiler:$versions.room"
]
// image
deps.image = [
glide : "com.github.bumptech.glide:glide:$versions.glide",
glide_compiler : "com.github.bumptech.glide:compiler:$versions.glide",
]
// network
deps.network = [
retrofit : "com.squareup.retrofit2:retrofit:$versions.retrofit",
retrofit_moshi : "com.squareup.retrofit2:converter-moshi:$versions.retrofit"
]
// serialization
deps.serialization = [
moshi : "com.squareup.moshi:moshi-kotlin:$versions.moshi",
moshi_codegen : "com.squareup.moshi:moshi-kotlin-codegen:$versions.moshi"
]
// DI
deps.di = [
hilt : "com.google.dagger:hilt-android:$versions.hilt",
hilt_compiler : "com.google.dagger:hilt-compiler:$versions.hilt"
]
// logger
deps.logger = [
timber : "com.jakewharton.timber:timber:5.0.0"
]
// test
deps.test = [
junit : "junit:junit:4.12",
ext_junit : "androidx.test.ext:junit:1.1.2",
espresso_core: "androidx.test.espresso:espresso-core:3.3.0"
]
ext.deps = deps
// build gradle plugin
def gradlePlugin = [
android : "com.android.tools.build:gradle:$versions.gradleBuildTool",
kotlin : "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin",
hilt : "com.google.dagger:hilt-android-gradle-plugin:$versions.hilt"
]
ext.gradlePlugin = gradlePlugin
// build_versions
ext.build_versions = [
compile_sdk: 30,
build_tools: "30.0.3",
min_sdk : 24,
target_sdk : 30,
version_code : 1,
version_name : "1.0"
]
// repository
def static addRepos(RepositoryHandler handler) {
handler.google()
handler.mavenCentral()
}
ext.addRepos = this.&addRepos