@@ -4,10 +4,6 @@ apply plugin: 'com.android.application'
4
4
apply from : ' ../jacoco.gradle'
5
5
apply from : ' ../sonarqube.gradle'
6
6
7
- repositories {
8
- maven { url " https://jitpack.io" }
9
- }
10
-
11
7
def version_code = 114
12
8
def version_name = " 7.4.9"
13
9
@@ -240,7 +236,7 @@ android {
240
236
241
237
}
242
238
243
- flavorDimensions " main"
239
+ flavorDimensions = [ " main" ]
244
240
245
241
productFlavors {
246
242
normal { dimension " main" }
@@ -249,40 +245,44 @@ android {
249
245
useLibrary ' android.test.mock'
250
246
namespace ' org.digitalcampus.mobile.learning'
251
247
252
- android. buildFeatures. viewBinding = true
248
+ buildFeatures {
249
+ buildConfig true
250
+ viewBinding = true
251
+ }
252
+
253
253
}
254
254
255
255
dependencies {
256
- def workVersion = ' 2.7 .1'
257
- def roomVersion = " 1.1 .1"
258
- def fragmentVersion = ' 1.5.4 '
256
+ def workVersion = ' 2.9 .1'
257
+ def roomVersion = " 2.6 .1"
258
+ def fragmentVersion = ' 1.8.2 '
259
259
def daggerVersion = ' 2.41'
260
- def appcompatVersion = ' 1.6.0-rc01 '
261
- def espressoVersion = ' 3.5 .1'
260
+ def appcompatVersion = ' 1.7.0 '
261
+ def espressoVersion = ' 3.6 .1'
262
262
263
263
implementation fileTree(include : [' *.jar' ], dir : ' libs' )
264
264
implementation ' joda-time:joda-time:2.10.13'
265
- implementation ' com.google.android.material:material:1.7 .0'
265
+ implementation ' com.google.android.material:material:1.12 .0'
266
266
implementation ' com.google.android.flexbox:flexbox:3.0.0'
267
267
268
- implementation ' androidx.core:core:1.9.0 '
268
+ implementation ' androidx.core:core:1.13.1 '
269
269
implementation ' androidx.cardview:cardview:1.0.0'
270
- implementation ' androidx.preference:preference:1.2.0 '
270
+ implementation ' androidx.preference:preference:1.2.1 '
271
271
272
272
implementation " androidx.appcompat:appcompat:$appcompatVersion "
273
273
274
- implementation ' androidx.vectordrawable:vectordrawable:1.1 .0'
275
- implementation ' androidx.navigation:navigation-fragment:2.5.3 '
276
- implementation ' androidx.navigation:navigation-ui:2.5.3 '
274
+ implementation ' androidx.vectordrawable:vectordrawable:1.2 .0'
275
+ implementation ' androidx.navigation:navigation-fragment:2.7.7 '
276
+ implementation ' androidx.navigation:navigation-ui:2.7.7 '
277
277
implementation ' androidx.lifecycle:lifecycle-extensions:2.2.0'
278
278
implementation ' androidx.legacy:legacy-support-v4:1.0.0'
279
- implementation ' androidx.concurrent:concurrent-futures:1.1 .0'
280
- implementation " android.arch.persistence. room:runtime:$roomVersion "
279
+ implementation ' androidx.concurrent:concurrent-futures:1.2 .0'
280
+ implementation " androidx. room:room- runtime:$roomVersion "
281
281
implementation " androidx.work:work-runtime:$workVersion "
282
- implementation ' com.google.guava:guava:31 .1-android'
282
+ implementation ' com.google.guava:guava:33.2 .1-android'
283
283
284
284
androidTestImplementation " androidx.work:work-testing:$workVersion "
285
- annotationProcessor " android.arch.persistence. room:compiler:$roomVersion "
285
+ annotationProcessor " androidx. room:room- compiler:$roomVersion "
286
286
287
287
implementation ' javax.xml.stream:stax-api:1.0'
288
288
implementation ' com.squareup.picasso:picasso:2.71828'
@@ -294,7 +294,7 @@ dependencies {
294
294
implementation ' com.github.PhilJay:MPAndroidChart:v3.1.0'
295
295
implementation ' com.mikhaellopez:circularprogressbar:3.1.0'
296
296
implementation ' com.github.badoualy:stepper-indicator:1.0.7'
297
- implementation ' com.google.code.gson:gson:2.9.0 '
297
+ implementation ' com.google.code.gson:gson:2.10.1 '
298
298
implementation ' com.hbb20:ccp:2.6.0' // Phone code picker
299
299
300
300
// Dagger Dependencies
@@ -308,17 +308,17 @@ dependencies {
308
308
implementation " com.squareup.inject:assisted-inject-annotations-dagger2:0.8.1"
309
309
310
310
// JUnit Dependencies
311
- testImplementation ' androidx.test.ext:junit:1.1.5 '
311
+ testImplementation ' androidx.test.ext:junit:1.2.1 '
312
312
testImplementation " org.json:json:20220924"
313
313
314
314
androidTestImplementation ' com.squareup.okhttp3:mockwebserver:4.9.3'
315
- androidTestImplementation ' androidx.test:runner:1.5 .2'
316
- androidTestImplementation ' androidx.test:rules:1.5.0 '
317
- androidTestImplementation ' androidx.test.ext:junit:1.1.5 '
315
+ androidTestImplementation ' androidx.test:runner:1.6 .2'
316
+ androidTestImplementation ' androidx.test:rules:1.6.1 '
317
+ androidTestImplementation ' androidx.test.ext:junit:1.2.1 '
318
318
androidTestImplementation ' androidx.annotation:annotation:1.3.0'
319
- androidTestImplementation ' androidx.test.uiautomator:uiautomator:2.2 .0'
320
- androidTestUtil ' androidx.test:orchestrator:1.4.2 '
321
- androidTestUtil ' androidx.test.services:test-services:1.4.2 '
319
+ androidTestImplementation ' androidx.test.uiautomator:uiautomator:2.3 .0'
320
+ androidTestUtil ' androidx.test:orchestrator:1.5.0 '
321
+ androidTestUtil ' androidx.test.services:test-services:1.5.0 '
322
322
323
323
// Espresso Dependencies
324
324
androidTestImplementation " androidx.test.espresso:espresso-core:$espressoVersion "
@@ -334,8 +334,8 @@ dependencies {
334
334
335
335
// Fragment testing
336
336
implementation " androidx.fragment:fragment:$fragmentVersion "
337
- debugImplementation ' androidx.test:core:1.5.0 '
338
- debugImplementation " androidx.fragment:fragment-testing:1.5.4 "
337
+ debugImplementation ' androidx.test:core:1.6.1 '
338
+ debugImplementation " androidx.fragment:fragment-testing:1.8.2 "
339
339
340
340
// Mockito Dependencies
341
341
testImplementation ' org.mockito:mockito-core:4.3.1'
@@ -353,11 +353,12 @@ dependencies {
353
353
}
354
354
355
355
356
- task grantPermissions (type : Exec , dependsOn : ' installNormalDebug' ) {
356
+ tasks. register(' grantPermissions' , Exec ) {
357
+ dependsOn ' installNormalDebug'
357
358
group = ' test'
358
359
description = ' Grant permissions for testing.'
359
360
360
- def adb = android. getAdbExe (). toString()
361
+ def adb = android. getAdbExecutable (). toString()
361
362
if (! System . getProperty(' os.name' ). toLowerCase(). contains(' windows' )) {
362
363
logger. lifecycle(' Granting permissions for a non windows os' )
363
364
} else {
@@ -369,7 +370,7 @@ task grantPermissions(type: Exec, dependsOn: 'installNormalDebug') {
369
370
370
371
}
371
372
372
- tasks. whenTaskAdded { task ->
373
+ tasks. configureEach { task ->
373
374
if (task. name. startsWith(' connectedAndroidTest' ) ||
374
375
task. name. startsWith(' connectedDebugAndroidTest' ) ||
375
376
task. name. startsWith(' assembleDebugAndroidTest' ) ||
0 commit comments