@@ -10,13 +10,13 @@ plugins {
10
10
}
11
11
12
12
android {
13
- compileSdkVersion 30
14
- buildToolsVersion " 30 .0.3 "
13
+ compileSdkVersion 31
14
+ buildToolsVersion " 31 .0.0 "
15
15
16
16
defaultConfig {
17
17
applicationId " org.imaginativeworld.simplemvvm"
18
18
minSdkVersion 21
19
- targetSdkVersion 30
19
+ targetSdkVersion 31
20
20
versionCode 1
21
21
versionName " 1.0.0.000000" // Major.Minor.Patch.YYMMDD
22
22
vectorDrawables. useSupportLibrary = true
@@ -35,16 +35,16 @@ android {
35
35
}
36
36
37
37
buildTypes {
38
- release {
39
- minifyEnabled true
40
- shrinkResources true
41
- proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
42
- }
43
38
debug {
44
39
debuggable true
45
40
applicationIdSuffix " .debug"
46
41
versionNameSuffix " -debug"
47
42
}
43
+ release {
44
+ minifyEnabled true
45
+ shrinkResources true
46
+ proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
47
+ }
48
48
}
49
49
50
50
// flavorDimensions "feature"
@@ -78,7 +78,6 @@ android {
78
78
buildFeatures {
79
79
viewBinding = true
80
80
dataBinding = true
81
- compose true
82
81
83
82
// Disable unused AGP features
84
83
// buildConfig false
@@ -87,65 +86,61 @@ android {
87
86
resValues false
88
87
shaders false
89
88
}
90
-
91
- composeOptions {
92
- kotlinCompilerExtensionVersion compose_version
93
- }
94
89
}
95
90
96
91
dependencies {
97
92
implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
98
- implementation ' androidx.appcompat:appcompat:1.3.0 '
93
+ implementation ' androidx.appcompat:appcompat:1.3.1 '
99
94
implementation ' androidx.core:core-ktx:1.6.0'
100
- implementation ' androidx.constraintlayout:constraintlayout:2.0.4 '
95
+ implementation ' androidx.constraintlayout:constraintlayout:2.1.0 '
101
96
102
97
testImplementation ' junit:junit:4.13.2'
103
98
androidTestImplementation ' androidx.test.ext:junit:1.1.3'
104
99
androidTestImplementation ' androidx.test.espresso:espresso-core:3.4.0'
105
- androidTestImplementation " androidx.compose.ui:ui-test-junit4:$compose_version "
100
+ // androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
106
101
107
102
// ----------------------------------------------------------------
108
103
// Compose
109
104
// ----------------------------------------------------------------
110
- implementation " androidx.compose.ui:ui:$compose_version "
111
- implementation " androidx.compose.ui:ui-util:$compose_version "
112
- // Tooling support (Previews, etc.)
113
- implementation " androidx.compose.ui:ui-tooling:1.0.0-beta09" // $compose_version"
114
- // Animation
115
- implementation " androidx.compose.animation:animation:$compose_version "
116
- // Foundation (Border, Background, Box, Image, Scroll, shapes, animations, etc.)
117
- implementation " androidx.compose.foundation:foundation:$compose_version "
118
- implementation " androidx.compose.foundation:foundation-layout:$compose_version "
119
- // Material Design
120
- implementation " androidx.compose.material:material:$compose_version "
121
- // Material design icons
122
- // implementation "androidx.compose.material:material-icons-core:$compose_version"
123
- // implementation "androidx.compose.material:material-icons-extended:$compose_version"
124
- // Integration with observables
125
- implementation " androidx.compose.runtime:runtime:$compose_version "
126
- implementation " androidx.compose.runtime:runtime-livedata:$compose_version "
127
- // Compose Navigation Component
128
- implementation " androidx.navigation:navigation-compose:2.4.0-alpha04"
129
- // Constraint Layout
130
- implementation " androidx.constraintlayout:constraintlayout-compose:1.0.0-alpha08"
131
- // Integration with activities
132
- implementation ' androidx.activity:activity-compose:1.3.0-rc01 '
133
-
134
- // Fragments
135
- // implementation "androidx.fragment:fragment-ktx:1.4.0-alpha01"
136
-
137
- // Jetpack Compose Integration for ViewModel
138
- implementation " androidx.lifecycle:lifecycle-viewmodel-compose:1.0.0-alpha07"
139
-
140
- // Paging
141
- implementation " androidx.paging:paging-compose:1.0.0-alpha11"
142
-
143
- // Accompanist
144
- implementation " com.google.accompanist:accompanist-glide:$accompanist_version "
145
- implementation " com.google.accompanist:accompanist-insets:$accompanist_version "
146
- implementation " com.google.accompanist:accompanist-systemuicontroller:$accompanist_version "
147
- implementation " com.google.accompanist:accompanist-flowlayout:$accompanist_version "
148
- implementation " com.google.accompanist:accompanist-pager:$accompanist_version "
105
+ // implementation "androidx.compose.ui:ui:$compose_version"
106
+ // implementation "androidx.compose.ui:ui-util:$compose_version"
107
+ // // Tooling support (Previews, etc.)
108
+ // implementation "androidx.compose.ui:ui-tooling:1.0.0-beta09" //$compose_version"
109
+ // // Animation
110
+ // implementation "androidx.compose.animation:animation:$compose_version"
111
+ // // Foundation (Border, Background, Box, Image, Scroll, shapes, animations, etc.)
112
+ // implementation "androidx.compose.foundation:foundation:$compose_version"
113
+ // implementation "androidx.compose.foundation:foundation-layout:$compose_version"
114
+ // // Material Design
115
+ // implementation "androidx.compose.material:material:$compose_version"
116
+ // // Material design icons
117
+ // // implementation "androidx.compose.material:material-icons-core:$compose_version"
118
+ // // implementation "androidx.compose.material:material-icons-extended:$compose_version"
119
+ // // Integration with observables
120
+ // implementation "androidx.compose.runtime:runtime:$compose_version"
121
+ // implementation "androidx.compose.runtime:runtime-livedata:$compose_version"
122
+ // // Compose Navigation Component
123
+ // implementation "androidx.navigation:navigation-compose:2.4.0-alpha04"
124
+ // // Constraint Layout
125
+ // implementation "androidx.constraintlayout:constraintlayout-compose:1.0.0-alpha08"
126
+ // // Integration with activities
127
+ // implementation 'androidx.activity:activity-compose:1.3.0-rc02 '
128
+ //
129
+ // // Fragments
130
+ // // implementation "androidx.fragment:fragment-ktx:1.4.0-alpha01"
131
+ //
132
+ // // Jetpack Compose Integration for ViewModel
133
+ // implementation "androidx.lifecycle:lifecycle-viewmodel-compose:1.0.0-alpha07"
134
+ //
135
+ // // Paging
136
+ // implementation "androidx.paging:paging-compose:1.0.0-alpha11"
137
+ //
138
+ // // Accompanist
139
+ // implementation "com.google.accompanist:accompanist-glide:$accompanist_version"
140
+ // implementation "com.google.accompanist:accompanist-insets:$accompanist_version"
141
+ // implementation "com.google.accompanist:accompanist-systemuicontroller:$accompanist_version"
142
+ // implementation "com.google.accompanist:accompanist-flowlayout:$accompanist_version"
143
+ // implementation "com.google.accompanist:accompanist-pager:$accompanist_version"
149
144
150
145
// ----------------------------------------------------------------
151
146
@@ -161,15 +156,18 @@ dependencies {
161
156
implementation " com.squareup.moshi:moshi-kotlin:1.12.0"
162
157
kapt " com.squareup.moshi:moshi-kotlin-codegen:1.12.0"
163
158
159
+ // Gson
160
+ implementation ' com.google.code.gson:gson:2.8.7'
161
+
164
162
// ViewModel and LiveData
165
163
implementation " androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version "
166
164
implementation " androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version "
167
165
implementation " androidx.lifecycle:lifecycle-common-java8:2.3.1"
168
166
implementation " androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version "
169
167
170
168
// Kotlin Coroutines
171
- implementation " org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.0 "
172
- implementation " org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0 "
169
+ implementation " org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.1 "
170
+ implementation " org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1 "
173
171
174
172
// Room Persistence Library
175
173
implementation " androidx.room:room-runtime:2.3.0"
@@ -187,7 +185,7 @@ dependencies {
187
185
kapt ' com.github.bumptech.glide:compiler:4.12.0'
188
186
189
187
// Paging
190
- implementation " androidx.paging:paging-runtime-ktx:3.0.0 "
188
+ implementation " androidx.paging:paging-runtime-ktx:3.0.1 "
191
189
192
190
// Permission
193
191
implementation ' com.karumi:dexter:6.2.2'
@@ -198,7 +196,7 @@ dependencies {
198
196
// Hilt
199
197
implementation " com.google.dagger:hilt-android:$hilt_version "
200
198
kapt " com.google.dagger:hilt-compiler:$hilt_version "
201
- implementation ' androidx.hilt:hilt-navigation-compose:1.0.0-alpha03'
199
+ // implementation 'androidx.hilt:hilt-navigation-compose:1.0.0-alpha03'
202
200
203
201
// Shimmer
204
202
implementation ' com.facebook.shimmer:shimmer:0.5.0'
@@ -226,7 +224,13 @@ dependencies {
226
224
implementation " org.imaginativeworld.whynotimagecarousel:whynotimagecarousel:2.0.2"
227
225
228
226
// OneSignal SDK
229
- implementation ' com.onesignal:OneSignal:4.2.0'
227
+ implementation ' com.onesignal:OneSignal:4.4.2'
228
+
229
+ // Coil
230
+ implementation(" io.coil-kt:coil:1.3.1" )
231
+
232
+ // Palette
233
+ implementation ' androidx.palette:palette-ktx:1.0.0'
230
234
}
231
235
232
236
// Workaround for OneSignal from:
0 commit comments