-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
128 lines (105 loc) · 4.25 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
128
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext{
// global variables
compile_sdk_version = 30
kotlin_version = "1.3.72"
min_sdk_version = 21
// local variables (use def)
def activity_version = "1.2.0"
def androidx_test_version = '1.2.0'
def androidx_core_ktx = '1.3.2'
def appcompat_version = '1.2.0'
def constraint_layout_version = '2.0.4'
def coroutines_android_version = '1.4.2'
def datastores_prefs = '1.0.0-alpha06'
def expresso_version = '3.2.0'
def junit_version = '4.12'
def lifecycle_version = '2.1.0'
def livedata_version = '2.2.0-rc02'
def material_version = '1.3.0'
def room_version = '2.2.6'
def timberVersion = '4.7.1'
def truth_version = '1.0'
def work_version = '2.2.0'
def wasabeef_recyclerview_animators_version = '3.0.0'
base = [
"org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version",
"androidx.core:core-ktx:$androidx_core_ktx",
"androidx.appcompat:appcompat:$appcompat_version",
"com.google.android.material:material:$material_version",
"androidx.constraintlayout:constraintlayout:$constraint_layout_version",
"androidx.activity:activity-ktx:$activity_version"
]
coroutines = [
// Coroutines
"org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_android_version",
"org.jetbrains.kotlinx:kotlinx-coroutines-android:${coroutines_android_version}"
]
lifecycle = [
// ViewModel and LiveData
"androidx.lifecycle:lifecycle-extensions:$lifecycle_version",
"androidx.lifecycle:lifecycle-livedata-ktx:$livedata_version",
"androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version",
]
datastoresPreferences = [
"androidx.datastore:datastore-preferences:$datastores_prefs"
]
timber = [
"com.jakewharton.timber:timber:$timberVersion"
]
recyclerViewAnimators = [
//RecyclerViewAnimation
"jp.wasabeef:recyclerview-animators:$wasabeef_recyclerview_animators_version"
]
librariesKapt = [
"androidx.room:room-compiler:$room_version",
]
arch_libraries = [
"androidx.work:work-runtime-ktx:$work_version",
// Room for database
"androidx.room:room-ktx:$room_version"
]
testLibraries = [
"junit:junit:$junit_version",
// Coroutines testing
"org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines_android_version",
// mocks
"org.mockito:mockito-core:2.23.0",
// Architecture Components testing libraries
"androidx.arch.core:core-testing:$lifecycle_version",
"com.google.truth:truth:$truth_version",
]
androidTestLibraries = [
"junit:junit:$junit_version",
"androidx.test:runner:$androidx_test_version",
"androidx.test:rules:$androidx_test_version",
// Espresso
"androidx.test.espresso:espresso-core:$expresso_version",
"androidx.test.espresso:espresso-contrib:$expresso_version",
"androidx.test.espresso:espresso-intents:$expresso_version",
// Architecture Components testing libraries
"androidx.arch.core:core-testing:$lifecycle_version",
"androidx.work:work-testing:$work_version",
]
}
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:4.1.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}