@@ -4,35 +4,33 @@ apply plugin: 'kotlin-android'
44
55apply plugin : ' kotlin-kapt'
66
7- apply plugin : ' kotlin-android-extensions'
8-
97apply plugin : ' dagger.hilt.android.plugin'
108
119apply plugin : ' com.google.gms.google-services'
1210
1311apply plugin : ' com.google.firebase.crashlytics'
1412
1513android {
16- compileSdkVersion 29
17- dataBinding. enabled = true
14+ compileSdkVersion 31
1815 defaultConfig {
1916 applicationId " com.rootstrap.android"
2017 minSdkVersion 23
21- targetSdkVersion 29
18+ targetSdkVersion 31
2219 versionCode 42
2320 versionName " 1.0"
2421 testInstrumentationRunner ' com.rootstrap.android.CustomTestRunner'
2522 }
2623
27- viewBinding {
28- enabled = true
29- }
30-
3124 compileOptions {
3225 sourceCompatibility JavaVersion . VERSION_1_8
3326 targetCompatibility JavaVersion . VERSION_1_8
3427 }
3528
29+ buildFeatures {
30+ viewBinding true
31+ dataBinding true
32+ }
33+
3634 kotlinOptions {
3735 jvmTarget = ' 1.8'
3836 }
@@ -58,6 +56,10 @@ android {
5856 }
5957 }
6058
59+ kapt {
60+ correctErrorTypes true
61+ }
62+
6163 flavorDimensions " server"
6264
6365 productFlavors {
@@ -137,63 +139,74 @@ android {
137139}
138140
139141dependencies {
142+ def room_version = " 2.3.0"
143+ def lifecycle_version = " 2.4.0"
144+
140145 implementation fileTree(include : [' *.jar' ], dir : ' libs' )
141- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
142- implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.1'
143- implementation ' androidx.appcompat:appcompat:1.2.0'
144- implementation ' androidx.core:core-ktx:1.3.2'
145- implementation ' androidx.constraintlayout:constraintlayout:2.0.4'
146+ implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.0'
147+ implementation ' androidx.appcompat:appcompat:1.3.1'
148+ implementation ' androidx.core:core-ktx:1.7.0'
149+ implementation ' androidx.constraintlayout:constraintlayout:2.1.1'
146150 implementation ' androidx.legacy:legacy-support-v4:1.0.0'
147151 implementation " androidx.preference:preference-ktx:1.1.1"
148- implementation ' com.google.android.material:material:1.2.1 '
152+ implementation ' com.google.android.material:material:1.4.0 '
149153 testImplementation ' junit:junit:4.13.1'
150154 testImplementation ' org.mockito:mockito-core:2.28.2'
151- androidTestImplementation ' androidx.test:runner:1.3 .0'
152- androidTestImplementation ' androidx.test.espresso:espresso-core:3.3 .0'
153- androidTestImplementation ' androidx.test.espresso:espresso-intents:3.3 .0'
154- androidTestImplementation ' androidx.test.ext:junit:1.1.2 '
155+ androidTestImplementation ' androidx.test:runner:1.4 .0'
156+ androidTestImplementation ' androidx.test.espresso:espresso-core:3.4 .0'
157+ androidTestImplementation ' androidx.test.espresso:espresso-intents:3.4 .0'
158+ androidTestImplementation ' androidx.test.ext:junit:1.1.3 '
155159 androidTestImplementation ' androidx.test.uiautomator:uiautomator:2.2.0'
156- androidTestImplementation ' androidx.test:rules:1.3 .0'
160+ androidTestImplementation ' androidx.test:rules:1.4 .0'
157161 androidTestImplementation ' com.squareup.okhttp3:mockwebserver:4.3.1'
158- // ---- ANDROID ARCH ROOM ----
159- implementation ' android.arch.persistence.room:runtime:1.1.1'
160- kapt " android.arch.persistence.room:compiler:1.1.1"
161- // ---- ANDROID ARCH LIFECYCLE ----
162- implementation ' android.arch.lifecycle:common-java8:1.1.1'
163- kapt " android.arch.lifecycle:compiler:1.1.1"
164- implementation " androidx.lifecycle:lifecycle-runtime-ktx:2.2.0"
165- implementation " androidx.lifecycle:lifecycle-livedata-ktx:2.2.0"
162+
163+ // ---- ROOM ----
164+ implementation " androidx.room:room-runtime:$room_version "
165+ kapt " androidx.room:room-compiler:$room_version "
166+ // Kotlin Extensions and Coroutines support for Room
167+ implementation " androidx.room:room-ktx:$room_version "
168+
169+ // ---- LIFECYCLE ----]
170+ implementation " androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version "
171+ implementation " androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version "
166172 implementation " androidx.lifecycle:lifecycle-extensions:2.2.0"
167- implementation " androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0"
173+ implementation " androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version "
174+ implementation " androidx.lifecycle:lifecycle-common-java8:$lifecycle_version "
168175
169176 // ---- GOOGLE JSON SERIALIZER/DESERIALIZER ----
170177 implementation ' com.google.code.gson:gson:2.8.6'
178+
171179 // ---- MixPanel ----
172180 implementation ' com.mixpanel.android:mixpanel-android:5.6.1'
181+
173182 // ---- Firebase ----
174- implementation platform(' com.google.firebase:firebase-bom:26.1.0 ' )
175- implementation ' com.google.firebase:firebase-core:18 .0.2 '
183+ implementation platform(' com.google.firebase:firebase-bom:28.4.2 ' )
184+ implementation ' com.google.firebase:firebase-core:20 .0.0 '
176185 implementation ' com.google.firebase:firebase-analytics-ktx'
177186 implementation ' com.google.firebase:firebase-crashlytics-ktx'
178- implementation ' org.jetbrains.kotlin:kotlin-reflect:1.4.10'
187+ implementation ' org.jetbrains.kotlin:kotlin-reflect:1.5.31'
188+
179189 // ---- Image ----
180190 implementation group : ' com.github.bumptech.glide' , name : ' glide' , version : ' 4.10.0'
191+
181192 // ---- Network ----
182193 implementation ' com.squareup.retrofit2:retrofit:2.6.2'
183- implementation ' com.squareup.moshi:moshi-kotlin:1.9.2 '
194+ implementation ' com.squareup.moshi:moshi-kotlin:1.12.0 '
184195 implementation ' com.squareup.retrofit2:converter-moshi:2.5.0'
185196 implementation ' com.squareup.okhttp3:logging-interceptor:4.3.1'
197+
186198 // ---- Events ----
187199 implementation ' com.squareup:otto:1.3.8'
200+
188201 // ---- Linters ----
189202 ktlint " com.pinterest:ktlint:0.35.0"
203+
190204 // ---- Hilt ----
191- implementation " com.google.dagger:hilt-android:2.28-alpha"
192- implementation ' androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha02'
193- kapt " com.google.dagger:hilt-android-compiler:2.28-alpha"
194- kapt ' androidx.hilt:hilt-compiler:1.0.0-alpha02'
195- androidTestImplementation ' com.google.dagger:hilt-android-testing:2.28-alpha'
196- kaptAndroidTest ' com.google.dagger:hilt-android-compiler:2.28-alpha'
205+ implementation " com.google.dagger:hilt-android:$hilt_version "
206+ kapt " com.google.dagger:hilt-android-compiler:$hilt_version "
207+ kapt ' androidx.hilt:hilt-compiler:1.0.0'
208+ androidTestImplementation " com.google.dagger:hilt-android-testing:$hilt_version "
209+ kaptAndroidTest " com.google.dagger:hilt-android-compiler:$hilt_version "
197210
198211 // security crypto
199212 implementation " androidx.security:security-crypto:1.1.0-alpha03"
0 commit comments