-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
87 lines (83 loc) · 3.33 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.versions = [
'core_test' : '2.1.0',
'coroutines': '1.3.9',
'espresso' : '3.3.0',
'hilt' : '2.31.2-alpha',
'junit' : '4.13.1',
'junit_ext' : '1.1.2',
'kotlin' : '1.4.30',
'lifecycle' : '2.2.0',
'mockito' : '2.19.0',
'navigation': '2.3.3',
'room' : '2.2.6',
]
ext.deps = [
'android' : [
"androidx.appcompat:appcompat:1.2.0",
"androidx.constraintlayout:constraintlayout:2.0.4",
"androidx.core:core-ktx:1.3.2",
"com.google.android.material:material:1.3.0"
],
'kotlin' : [
"org.jetbrains.kotlin:kotlin-stdlib-jdk7:${versions.kotlin}"
],
'coroutines' : [
"org.jetbrains.kotlinx:kotlinx-coroutines-android:${versions.coroutines}",
"org.jetbrains.kotlinx:kotlinx-coroutines-core:${versions.coroutines}",
],
'coroutinesTest': [
"org.jetbrains.kotlinx:kotlinx-coroutines-test:${versions.coroutines}"
],
'hilt' : [
"com.google.dagger:hilt-android:${versions.hilt}",
],
'hiltKapt' : [
"com.google.dagger:hilt-android-compiler:${versions.hilt}"
],
'lifecycle' : [
"androidx.lifecycle:lifecycle-livedata-ktx:${versions.lifecycle}",
"androidx.lifecycle:lifecycle-viewmodel-ktx:${versions.lifecycle}"
],
'navigation' : [
"androidx.navigation:navigation-fragment-ktx:${versions.navigation}",
"androidx.navigation:navigation-ui-ktx:${versions.navigation}",
'androidx.hilt:hilt-navigation-fragment:1.0.0-alpha03'
],
'room' : [
"androidx.room:room-runtime:${versions.room}",
"androidx.room:room-ktx:${versions.room}"
],
'roomKapt' : [
"androidx.room:room-compiler:${versions.room}",
],
'testing' : [
"androidx.arch.core:core-testing:${versions.core_test}",
"androidx.test.ext:junit:${versions.junit_ext}",
"androidx.test.espresso:espresso-core:${versions.espresso}",
"junit:junit:${versions.junit}",
"org.mockito:mockito-core:${versions.mockito}",
"org.mockito:mockito-inline:${versions.mockito}"
]
]
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:4.1.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:${versions.navigation}"
classpath "com.google.dagger:hilt-android-gradle-plugin:${versions.hilt}"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}