-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
85 lines (72 loc) · 3.19 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
appcompat_version = '1.1.0'
core_ktx_version = '1.2.0'
constraintlayout_version = '1.1.3'
junit_version = '4.13'
ext_junit_version = '1.1.1'
espresso_core_version = '3.2.0'
kotlin_version = '1.3.50'
retrofit_version = '2.7.1'
logging_interceptor_version = '4.3.1'
gson_version = '2.8.6'
converter_gson_version = '2.6.2'
coroutines_version = '1.3.7'
coroutines_android_versions = '1.3.7'
lifecycle_version = '2.2.0'
recyclerview_version = '1.1.0'
hilt_version = '2.33-beta'
fragment_ktx_version = '1.3.1'
nav_version = '2.3.0'
// Fragment Ktx
fragment_ktx = "androidx.fragment:fragment-ktx:$fragment_ktx_version"
// Hilt
hilt_lib = "com.google.dagger:hilt-android:$hilt_version"
hilt_android_compiler = "com.google.dagger:hilt-compiler:$hilt_version"
// Dependencies
kotlin_lib = "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
appcompat = "androidx.appcompat:appcompat:$appcompat_version"
ktx = "androidx.core:core-ktx:$core_ktx_version"
constraint_layout = "androidx.constraintlayout:constraintlayout:$constraintlayout_version"
recycler_view = "androidx.recyclerview:recyclerview:$recyclerview_version"
// Retrofit
retrofit = "com.squareup.retrofit2:retrofit:$retrofit_version"
gson_converter = "com.squareup.retrofit2:converter-gson:$converter_gson_version"
gson = "com.google.code.gson:gson:$gson_version"
// Logging
logging_interceptor = "com.squareup.okhttp3:logging-interceptor:$logging_interceptor_version"
// Google Architecture Components
view_model = "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
live_data = "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
// Coroutines
coroutines = "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
coroutines_android = "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_android_versions"
coroutines_test = "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines_version"
// Navigation Components
navigation_fragment = "androidx.navigation:navigation-fragment-ktx:$nav_version"
navigation_ui = "androidx.navigation:navigation-ui-ktx:$nav_version"
}
repositories {
google()
jcenter()
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}