-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
109 lines (104 loc) · 4.55 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: "${rootProject.projectDir.path}${File.separatorChar}gradle${File.separatorChar}detekt${File.separatorChar}detekt.gradle"
buildscript {
ext {
compileSdkVersion = 33
minSdkVersion = 23
targetSdkVersion = 33
appcompatVersion = '1.4.0'
constraintLayoutVersion = '2.1.4'
coroutinesVersion = '1.6.4'
daggerVersion = '2.44'
detektVersion = '1.12.0-RC1' ///////
espressoVersion = '3.4.0'
exoplayerVersion = '2.18.1'
glideVersion = '4.14.2'
junitVersion = '4.13.2'
junitExtentionVersion = '1.1.3'
jodaTimeVersion = '2.12.1'
kotlinVersion = '1.7.10'
ktxVersion = '1.8.0'
lifecycleVersion = '2.5.1'
materialVersion = '1.6.0'
mockitoVersion = '4.8.1'
navigationVersion = '2.5.3'
okhttpVersion = '4.10.0-RC1'
retrofitVersion = '2.9.0'
robolectricVersion = '4.9'
roomVersion = '2.4.3'
timberVersion = '5.0.1'
testRunnerVersion = '1.4.0'
uiautomatorVersion = '2.2.0'
workVersion = '2.7.1'
appcompat = "androidx.appcompat:appcompat:$appcompatVersion"
constraintLayout = "androidx.constraintlayout:constraintlayout:$constraintLayoutVersion"
coroutines = [
core : "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion",
android: "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion"
]
dagger = [
compiler: "com.google.dagger:dagger-compiler:$daggerVersion",
dagger : "com.google.dagger:dagger:$daggerVersion"
]
exoplayer = [
core: "com.google.android.exoplayer:exoplayer-core:$exoplayerVersion",
ui : "com.google.android.exoplayer:exoplayer-ui:$exoplayerVersion"
]
glide = [
glide : "com.github.bumptech.glide:glide:$glideVersion",
compiler: "com.github.bumptech.glide:compiler:$glideVersion"
]
jodaTime = "joda-time:joda-time:$jodaTimeVersion"
kotlinSdk = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
ktx = "androidx.core:core-ktx:$ktxVersion"
lifecycle = [
compiler : "androidx.lifecycle:lifecycle-compiler:$lifecycleVersion"
]
material = "com.google.android.material:material:$materialVersion"
navigation = [
fragment: "androidx.navigation:navigation-fragment-ktx:$navigationVersion",
ui : "androidx.navigation:navigation-ui-ktx:$navigationVersion"
]
okhttp = "com.squareup.okhttp3:okhttp:$okhttpVersion"
retrofit = [
retrofit : "com.squareup.retrofit2:retrofit:$retrofitVersion",
gsonConverter: "com.squareup.retrofit2:converter-gson:$retrofitVersion"
]
room = [
room : "androidx.room:room-ktx:$roomVersion",
compiler: "androidx.room:room-compiler:$roomVersion"
]
testing = [
espresso : "androidx.test.espresso:espresso-core:$espressoVersion",
junit : "junit:junit:$junitVersion",
junitExtension: "androidx.test.ext:junit:$junitExtentionVersion",
mockito : "org.mockito:mockito-core:$mockitoVersion",
robolectric : "org.robolectric:robolectric:$robolectricVersion",
runner : "androidx.test:runner:$testRunnerVersion",
uiautomator : "androidx.test.uiautomator:uiautomator:$uiautomatorVersion",
workmanager : "androidx.work:work-testing:$workVersion",
coroutines : "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesVersion"
]
timber = "com.jakewharton.timber:timber:$timberVersion"
workmanager = "androidx.work:work-runtime-ktx:$workVersion"
}
repositories {
google()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'com.android.tools.build:gradle:8.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigationVersion"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:$detektVersion"
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}