1
1
apply plugin : ' com.android.application'
2
-
3
2
apply plugin : ' kotlin-android'
4
-
5
3
apply plugin : ' kotlin-android-extensions'
6
-
7
4
apply plugin : ' kotlin-kapt'
8
5
9
6
// Navigation Component: Safe Args
10
7
apply plugin : " androidx.navigation.safeargs"
11
8
9
+ apply plugin : ' com.google.gms.google-services'
10
+
12
11
android {
13
- compileSdkVersion 29
14
- buildToolsVersion " 29.0.3"
12
+ compileSdkVersion 30
13
+ buildToolsVersion " 30.0.1"
14
+
15
15
defaultConfig {
16
16
applicationId " org.imaginativeworld.simplemvvm"
17
17
minSdkVersion 21
18
- targetSdkVersion 29
18
+ targetSdkVersion 30
19
19
versionCode 1
20
- versionName " 1.0"
20
+ versionName " 1.0.000000" // Major.Minor.YYMMDD
21
+
21
22
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
23
+
22
24
javaCompileOptions {
23
25
annotationProcessorOptions {
24
26
arguments = [
@@ -29,6 +31,7 @@ android {
29
31
}
30
32
}
31
33
}
34
+
32
35
buildTypes {
33
36
release {
34
37
minifyEnabled true
@@ -41,6 +44,7 @@ android {
41
44
versionNameSuffix " -debug"
42
45
}
43
46
}
47
+
44
48
// flavorDimensions "feature"
45
49
// productFlavors {
46
50
// flavorone {
@@ -54,43 +58,49 @@ android {
54
58
// versionNameSuffix "-flavortwo"
55
59
// }
56
60
// }
61
+
57
62
compileOptions {
58
63
sourceCompatibility JavaVersion . VERSION_1_8
59
64
targetCompatibility JavaVersion . VERSION_1_8
60
65
}
66
+
61
67
kotlinOptions {
62
68
jvmTarget = " 1.8"
63
69
}
70
+
64
71
androidExtensions. experimental = true
65
- dataBinding. enabled = true
66
- viewBinding. enabled = true
72
+
73
+ buildFeatures {
74
+ viewBinding = true
75
+ dataBinding = true
76
+ }
67
77
}
68
78
69
79
dependencies {
70
80
implementation fileTree(dir : ' libs' , include : [' *.jar' ])
71
- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
72
- implementation ' androidx.appcompat:appcompat:1.1.0'
73
- implementation ' androidx.core:core-ktx:1.2.0'
74
- implementation ' androidx.constraintlayout:constraintlayout:1.1.3'
75
- implementation ' androidx.legacy:legacy-support-v4:1.0.0'
76
- implementation ' androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
77
- testImplementation ' junit:junit:4.13'
78
- androidTestImplementation ' androidx.test.ext:junit:1.1.1'
79
- androidTestImplementation ' androidx.test.espresso:espresso-core:3.2.0'
81
+ implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
82
+ implementation ' androidx.appcompat:appcompat:1.2.0'
83
+ implementation ' androidx.core:core-ktx:1.3.2'
84
+ implementation ' androidx.constraintlayout:constraintlayout:2.0.4'
85
+ // implementation 'androidx.legacy:legacy-support-v4:1.0.0'
86
+ testImplementation ' junit:junit:4.13.1'
87
+ androidTestImplementation ' androidx.test.ext:junit:1.1.2'
88
+ androidTestImplementation ' androidx.test.espresso:espresso-core:3.3.0'
80
89
81
90
// Retrofit and Moshi
82
- implementation ' com.squareup.retrofit2:retrofit:2.8.1 '
83
- implementation ' com.squareup.retrofit2:converter-moshi:2.8.1 '
84
- implementation ' com.squareup.okhttp3:logging-interceptor:4.4.1 '
85
- implementation " com.squareup.moshi:moshi-kotlin:1.9.2 "
86
- kapt " com.squareup.moshi:moshi-kotlin-codegen:1.9.2 "
91
+ implementation ' com.squareup.retrofit2:retrofit:2.9.0 '
92
+ implementation ' com.squareup.retrofit2:converter-moshi:2.9.0 '
93
+ implementation ' com.squareup.okhttp3:logging-interceptor:4.9.0 '
94
+ implementation " com.squareup.moshi:moshi-kotlin:1.9.3 "
95
+ kapt " com.squareup.moshi:moshi-kotlin-codegen:1.9.3 "
87
96
88
97
// ViewModel and LiveData
98
+ implementation ' androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
89
99
implementation " androidx.lifecycle:lifecycle-extensions:2.2.0"
90
100
implementation " androidx.lifecycle:lifecycle-common-java8:2.2.0"
91
101
92
102
// Material Design
93
- implementation ' com.google.android.material:material:1.1.0 '
103
+ implementation ' com.google.android.material:material:1.2.1 '
94
104
95
105
// Room Persistence Library
96
106
implementation " androidx.room:room-runtime:2.2.5"
@@ -100,16 +110,16 @@ dependencies {
100
110
implementation " androidx.room:room-ktx:2.2.5"
101
111
102
112
// Android Navigation Architecture
103
- implementation " androidx.navigation:navigation-fragment-ktx:2.2.2 "
104
- implementation " androidx.navigation:navigation-ui-ktx:2.2.2 "
113
+ implementation " androidx.navigation:navigation-fragment-ktx:2.3.1 "
114
+ implementation " androidx.navigation:navigation-ui-ktx:2.3.1 "
105
115
106
116
// Kotlin Coroutines
107
- implementation " org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.5 "
108
- implementation " org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.5 "
117
+ implementation " org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.1 "
118
+ implementation " org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1 "
109
119
110
120
// Glide
111
121
implementation ' com.github.bumptech.glide:glide:4.11.0'
112
- kapt ' com.github.bumptech.glide:compiler:4.10 .0'
122
+ kapt ' com.github.bumptech.glide:compiler:4.11 .0'
113
123
114
124
// Paging
115
125
implementation " androidx.paging:paging-runtime-ktx:2.1.2"
@@ -118,20 +128,36 @@ dependencies {
118
128
implementation ' com.github.ImaginativeShohag:Oops-No-Internet:v1.1.3'
119
129
120
130
// Permission
121
- implementation ' com.karumi:dexter:6.0.2 '
131
+ implementation ' com.karumi:dexter:6.2.1 '
122
132
123
133
// Timber
124
134
implementation ' com.jakewharton.timber:timber:4.7.1'
125
135
126
136
// Dagger
127
- implementation ' com.google.dagger:dagger:2.27 '
128
- kapt ' com.google.dagger:dagger-compiler:2.26 '
137
+ implementation ' com.google.dagger:dagger:2.29.1 '
138
+ kapt ' com.google.dagger:dagger-compiler:2.29.1 '
129
139
130
- implementation ' com.google.dagger:dagger-android:2.27 '
140
+ implementation ' com.google.dagger:dagger-android:2.29.1 '
131
141
// if you use the support libraries
132
142
// implementation 'com.google.dagger:dagger-android-support:2.26'
133
- kapt ' com.google.dagger:dagger-android-processor:2.26 '
143
+ kapt ' com.google.dagger:dagger-android-processor:2.29.1 '
134
144
135
145
// Shimmer
136
146
implementation ' com.facebook.shimmer:shimmer:0.5.0'
147
+
148
+ // Firebase BoM
149
+ implementation platform(' com.google.firebase:firebase-bom:26.1.0' )
150
+
151
+ // Firebase Libraries
152
+ implementation ' com.google.firebase:firebase-analytics-ktx'
153
+ implementation ' com.google.firebase:firebase-messaging-ktx'
154
+
155
+ // Maps
156
+ implementation ' com.google.android.gms:play-services-maps:17.0.0'
157
+
158
+ // Location
159
+ implementation ' com.google.android.gms:play-services-location:17.1.0'
160
+
161
+ // image compressor
162
+ implementation ' id.zelory:compressor:3.0.0'
137
163
}
0 commit comments