-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
109 lines (98 loc) · 3.24 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
buildscript {
ext {
compose_version = '1.0.1'
kotlin_version = '1.6.10'
navigation_version = '2.3.2'
hilt_version = '2.38.1'
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.4"
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10'
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigation_version"
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
}
}
apply from: 'dependency_list.gradle'
subprojects {
if (name == "app") {
apply plugin: "com.android.application"
} else {
apply plugin: "com.android.library"
}
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-parcelize'
apply plugin: "androidx.navigation.safeargs.kotlin"
apply plugin: "dagger.hilt.android.plugin"
android {
compileSdkVersion 31
defaultConfig {
minSdkVersion 21
targetSdkVersion 31
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
}
kotlinOptions {
jvmTarget = '1.8'
}
buildFeatures {
dataBinding = true
viewBinding = true
compose = true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
composeOptions {
kotlinCompilerExtensionVersion '1.1.0'
}
}
kapt {
useBuildCache = true
correctErrorTypes = true
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation library.kotlin
implementation library.material
implementation library.androidX
implementation library.coroutines
implementation library.navigation
implementation library.navigationUI
implementation library.gson
implementation library.constraintLayout
implementation library.glide
implementation library.circleImageView
implementation library.localBroadcastManager
implementation library.composeActivity
implementation library.composeMaterialDesign
implementation library.composeAnimations
implementation library.composeTooling
implementation library.composeViewModels
implementation library.composeLiveData
implementation library.composeMdcAdapter
implementation library.accompanistInsets
implementation library.accompanistInsets
implementation library.coil
implementation library.composeNavigation
implementation library.constraintLayoutCompose
implementation library.composeUtils
implementation library.retrofit
implementation library.retrofitGsonConvertor
implementation library.okHttp
implementation library.hilt
implementation library.hiltNavigation
kapt library.hiltCompiler
testImplementation testLibs.junit
testImplementation testLibs.mockito
testImplementation testLibs.googleTruth
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}