-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
125 lines (104 loc) · 5.56 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = "1.6.0"
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.3'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.0'
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.3.5"
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.38.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
ext {
def room_version = "2.3.0"
def navigation = "2.3.5"
def hilt_version = "2.39.1"
def fragment_version = "1.3.6"
def lifecycle_version = "2.4.0"
androidLibs = [
kotlinStdlib : "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version",
appcompat : 'androidx.appcompat:appcompat:1.3.0',
material : 'com.google.android.material:material:1.3.0',
constraintlayout : 'androidx.constraintlayout:constraintlayout:2.0.4',
coreKtx : 'androidx.core:core-ktx:1.5.0',
activityKtx : "androidx.activity:activity-ktx:1.3.1",
fragmentKtx : "androidx.fragment:fragment-ktx:$fragment_version",
lifecycleViewmodelKtx : "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version",
lifecycleRuntimeKtx : "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version",
recycler : "androidx.recyclerview:recyclerview:1.2.1",
roomRuntime : "androidx.room:room-runtime:$room_version",
roomKtx : "androidx.room:room-ktx:$room_version",
navigationFragmentKtx : "androidx.navigation:navigation-fragment-ktx:$navigation",
navigationUiKtx : "androidx.navigation:navigation-ui-ktx:$navigation",
navigationDynamicFeaturesFragment: "androidx.navigation:navigation-dynamic-features-fragment:$navigation",
hiltAndroid : "com.google.dagger:hilt-android:$hilt_version",
]
kotlinLibs = [
coroutines: 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2'
]
debugImplementationLibs = [
leakcanary: 'com.squareup.leakcanary:leakcanary-android:2.8.1'
]
libs = [
playServicesLocation : 'com.google.android.gms:play-services-location:18.0.0',
glide : 'com.github.bumptech.glide:glide:4.12.0',
retrofit2 : 'com.squareup.retrofit2:retrofit:2.9.0',
retrofit2ConverterGson: 'com.squareup.retrofit2:converter-gson:2.9.0',
okhttpLoginInterceptor: 'com.squareup.okhttp3:logging-interceptor:4.9.2',
timber : 'com.jakewharton.timber:timber:5.0.1',
spinkit : 'com.github.ybq:Android-SpinKit:1.4.0',
shimer : 'com.facebook.shimmer:shimmer:0.5.0'
]
// To use Kotlin annotation processing tool (kapt)
kaptLibs = [
room : "androidx.room:room-compiler:$room_version",
hilt : "com.google.dagger:hilt-compiler:$hilt_version",
glide: 'com.github.bumptech.glide:compiler:4.12.0'
]
kaptTestLibs = [
hilt_unit_tests: "com.google.dagger:hilt-compiler:$hilt_version"
]
kaptAndroidTestLibs = [
hilt_instrumentation_tests: "com.google.dagger:hilt-compiler:$hilt_version"
]
testLibs = [
junit : 'junit:junit:4.13.2',
mockito : 'org.mockito.kotlin:mockito-kotlin:4.0.0',
mockitoInline: 'org.mockito:mockito-inline:4.0.0',
coroutines : 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.5.1',
testShared : project(':testShared')
]
androidxTestLibs = [
archCoreTesting: 'androidx.arch.core:core-testing:2.1.0'
]
androidTestLibs = [
runner : 'androidx.test:runner:1.4.0',
espresso_contrib : 'androidx.test.espresso:espresso-contrib:3.3.0',
rules : 'androidx.test:rules:1.4.0',
junit : 'androidx.test.ext:junit-ktx:1.1.3',
hilt_instrumentation_tests: "com.google.dagger:hilt-android-testing:$hilt_version",
mockwebserver : "com.squareup.okhttp3:mockwebserver:4.9.0",
okhttp3_idling : 'com.jakewharton.espresso:okhttp3-idling-resource:1.0.0',
archCoreTesting : 'androidx.arch.core:core-testing:2.1.0',
mockito : 'org.mockito:mockito-android:4.0.0',
navigation : "androidx.navigation:navigation-testing:$navigation"
]
debugLibs = [
fragment: "androidx.fragment:fragment-testing:$fragment_version"
]
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}