-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
107 lines (88 loc) · 4.9 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
buildscript {
ext {
compose_version = '1.1.0'
lifecycle_version = '2.4.1'
androidx_core_version = '1.7.0'
coroutine_version = "1.6.0"
material_version = '1.4.0'
appcompat_version = '1.4.1'
nav_version = '2.4.1'
hilt_version = '2.38.1'
retrofit_version = '2.9.0'
okhttp_version = '4.9.3'
coil_version = '1.4.0'
ktor_version = '1.6.7'
logback_version = '1.2.10'
kotlin_version = '1.6.10'
gradle_version = '7.1.2'
sqldelight_version = '1.5.3'
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:$gradle_version"
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
classpath "com.squareup.sqldelight:gradle-plugin:$sqldelight_version"
}
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.1.1' apply false
id 'com.android.library' version '7.1.1' apply false
id 'org.jetbrains.kotlin.android' version '1.6.10' apply false
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext.deps =
[
androidMaterial : "com.google.android.material:material:$material_version",
appCompat : "androidx.appcompat:appcompat:$appcompat_version",
navigationComponent : "androidx.navigation:navigation-fragment-ktx:$nav_version",
navigationExt : "androidx.navigation:navigation-ui-ktx:$nav_version",
//kotlin
kotlinCoroutineCore : "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutine_version",
//core kotlin Ext
coreKotlinExt : "androidx.core:core-ktx:$androidx_core_version",
//compose
composeUI : "androidx.compose.ui:ui:$compose_version",
composeMaterial : "androidx.compose.material:material:$compose_version",
composeToolingPreview : "androidx.compose.ui:ui-tooling-preview:$compose_version",
activityCompose : 'androidx.activity:activity-compose:1.3.1',
composeLayout : "androidx.compose.foundation:foundation-layout:$compose_version",
//lifecycle
lifeCycleRuntimeKotlinExt: "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version",
lifecycleViewmodelKtx : "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version",
lifecycleViewmodelCompose: "androidx.lifecycle:lifecycle-viewmodel-compose:$lifecycle_version",
//hilt
hilt : "com.google.dagger:hilt-android:$hilt_version",
//test
junit : 'junit:junit:4.13.2',
androidJunit : 'androidx.test.ext:junit:1.1.3',
androidEspresso : 'androidx.test.espresso:espresso-core:3.4.0',
composeJunit : "androidx.compose.ui:ui-test-junit4:$compose_version",
composeDebugTooling : "androidx.compose.ui:ui-tooling:$compose_version",
//retrofit
retrofit : "com.squareup.retrofit2:retrofit:$retrofit_version",
retofitGsonConvertor : "com.squareup.retrofit2:converter-gson:$retrofit_version",
okHttpLogInterceptor : "com.squareup.okhttp3:logging-interceptor:$okhttp_version",
//coil
composeCoil : "io.coil-kt:coil-compose:$coil_version",
//ktor
ktorCore : "io.ktor:ktor-client-core:$ktor_version",
ktorAndroidEngine : "io.ktor:ktor-client-android:$ktor_version",
ktorClientLogging : "io.ktor:ktor-client-logging:$ktor_version",
ktorClientSerialization : "io.ktor:ktor-client-serialization:$ktor_version",
ktorClientGson : "io.ktor:ktor-client-gson:$ktor_version",
//sqlDelight
sqlDelight : "com.squareup.sqldelight:android-driver:$sqldelight_version",
sqlDelightCoroutine : "com.squareup.sqldelight:coroutines-extensions-jvm:$sqldelight_version",
//logback
logbackClassic : "ch.qos.logback:logback-classic:$logback_version",
//kapt
hitKapt : "com.google.dagger:hilt-android-compiler:$hilt_version",
]