-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
131 lines (103 loc) · 4.43 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: "androidx.navigation.safeargs.kotlin"
apply plugin: 'com.google.gms.google-services'
apply plugin: 'dagger.hilt.android.plugin'
android {
compileSdk 31
buildFeatures {
dataBinding true
viewBinding true
}
defaultConfig {
applicationId "com.example.spasdomuserapp"
minSdk 21
targetSdk 31
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
coreLibraryDesugaringEnabled = true
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
}
dependencies {
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
implementation "androidx.fragment:fragment-ktx:1.3.6"
implementation "androidx.activity:activity-ktx:1.4.0"
// Navigation
implementation("androidx.navigation:navigation-fragment-ktx:2.3.5")
implementation("androidx.navigation:navigation-ui-ktx:2.3.5")
// Coroutines for getting off the UI thread
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.0"
// Retrofit for networking
implementation "com.squareup.retrofit2:retrofit:2.9.0"
implementation "com.squareup.retrofit2:converter-gson:2.9.0"
implementation "com.jakewharton.retrofit:retrofit2-kotlin-coroutines-adapter:0.9.2"
// Joda time library for dealing with time
implementation "joda-time:joda-time:2.10"
// ViewModel and LiveData (arch components)
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.4.0"
// Glide for images
implementation "com.github.bumptech.glide:glide:4.12.0"
// Room database
implementation "androidx.room:room-runtime:2.3.0"
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
kapt "androidx.room:room-compiler:2.3.0"
// Kotlin Extensions and Coroutines support for Room
implementation "androidx.room:room-ktx:2.3.0"
// WorkManager
implementation "android.arch.work:work-runtime-ktx:1.0.1"
// Logging
implementation "com.jakewharton.timber:timber:4.7.1"
// Add the dependency for the Firebase SDK for Google Analytics
// When using the BoM, don't specify versions in Firebase dependencies
implementation 'com.google.firebase:firebase-analytics-ktx'
// Firebase
implementation platform('com.google.firebase:firebase-bom:29.0.0')
implementation 'com.google.firebase:firebase-messaging-ktx'
implementation 'com.google.firebase:firebase-database-ktx'
implementation 'com.google.firebase:firebase-auth'
implementation 'com.google.firebase:firebase-auth-ktx'
implementation 'com.google.firebase:firebase-core'
implementation 'com.google.firebase:firebase-database:20.0.3'
implementation 'com.firebaseui:firebase-ui-database:8.0.0'
//circleimageview
implementation 'de.hdodenhof:circleimageview:3.1.0'
// Swipe to refresh
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0")
// View Pager 2
implementation("androidx.viewpager2:viewpager2:1.0.0")
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.2.1'
// Logging interceptor
implementation("com.squareup.okhttp3:logging-interceptor:4.9.3")
// Data store
implementation "androidx.datastore:datastore-preferences:1.0.0"
// Hilt
kapt "com.google.dagger:hilt-android-compiler:2.40"
implementation "com.google.dagger:hilt-android:2.40"
implementation "androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha03"
// Image picker
implementation 'com.github.dhaval2404:imagepicker:2.1'
// Date
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.1.5")
}