-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
110 lines (97 loc) · 4.99 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = "1.5.30"
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
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
}
}
plugins {
id("io.gitlab.arturbosch.detekt").version("1.17.1")
id("com.github.ben-manes.versions").version("0.39.0")
}
allprojects {
repositories {
google()
mavenCentral()
}
ext {
androidLibs = [
core : 'androidx.core:core-ktx:1.6.0',
activity : 'androidx.activity:activity-ktx:1.3.1',
fragment : 'androidx.fragment:fragment-ktx:1.3.6',
appcompat : 'androidx.appcompat:appcompat:1.3.1',
material : 'com.google.android.material:material:1.4.0',
constraintlayout : 'androidx.constraintlayout:constraintlayout:2.1.0',
recyclerview : 'androidx.recyclerview:recyclerview:1.2.1',
roomRuntime : 'androidx.room:room-runtime:2.3.0',
roomKtx : 'androidx.room:room-ktx:2.3.0',
lifecycleViewModel: 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1',
pagingRuntime : 'androidx.paging:paging-runtime-ktx:3.0.1',
biometric : 'androidx.biometric:biometric-ktx:1.2.0-alpha03',
lifecycleRuntime : 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1',
espressoIdlingRes : 'androidx.test.espresso:espresso-idling-resource:3.4.0'
]
androidKaptLibs = [
moshiKotlinCodegen: 'com.squareup.moshi:moshi-kotlin-codegen:1.12.0',
glideCompiler : 'com.github.bumptech.glide:compiler:4.12.0',
roomCompiler : 'androidx.room:room-compiler:2.3.0',
hiltCompiler : 'com.google.dagger:hilt-compiler:2.38.1'
]
kotlinLibs = [
kotlinStdlib : "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version",
kotlinCoroutinesCore : 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1',
kotlinCoroutinesAndroid: 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.1',
]
libs = [
timber : 'com.jakewharton.timber:timber:4.7.1',
moshi : "com.squareup.moshi:moshi:1.12.0",
glide : 'com.github.bumptech.glide:glide:4.12.0',
hilt : 'com.google.dagger:hilt-android:2.38.1',
loggingInterceptor: 'com.squareup.okhttp3:logging-interceptor:4.9.0',
retrofit : 'com.squareup.retrofit2:retrofit:2.9.0',
converterMoshi : "com.squareup.retrofit2:converter-moshi:2.9.0"
]
testLibsForAllModules = [
junit : 'junit:junit:4.13.2',
mockitoKotlin : 'org.mockito.kotlin:mockito-kotlin:3.2.0',
mockitoInline : 'org.mockito:mockito-inline:3.11.2',
turbine : 'app.cash.turbine:turbine:0.6.0',
kotlinCoroutineTest: 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.5.1',
coreTesting : 'androidx.arch.core:core-testing:2.1.0',
testShared : project(':testShared')
]
testLibsForApp = [
hiltAndroidTesting: 'com.google.dagger:hilt-android-testing:2.38.1'
]
androidTestLibs = [
testCore : 'androidx.test:core:1.3.0',
testJunit : 'androidx.test.ext:junit:1.1.3',
espressoCore : 'androidx.test.espresso:espresso-core:3.4.0',
espressoContrib : 'androidx.test.espresso:espresso-contrib:3.3.0',
testRunner : 'androidx.test:runner:1.4.0',
testRules : 'androidx.test:rules:1.4.0',
hiltAndroidTesting : 'com.google.dagger:hilt-android-testing:2.38.1',
coreTesting : 'androidx.arch.core:core-testing:2.1.0',
mockwebserver : 'com.squareup.okhttp3:mockwebserver:4.9.1',
okhttp3IdlingResource : 'com.jakewharton.espresso:okhttp3-idling-resource:1.0.0',
testShared : project(':testShared')
]
kaptTestLibs = [
hiltAndroidCompiler: 'com.google.dagger:hilt-android-compiler:2.38.1'
]
kaptAndroidTestLibs = [
hiltAndroidCompiler: 'com.google.dagger:hilt-android-compiler:2.38.1'
]
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}