From 60e93559c32c81664d161d5672c510a229490514 Mon Sep 17 00:00:00 2001 From: Alexander Bakker Date: Tue, 7 Nov 2023 20:29:45 +0100 Subject: [PATCH] Bump target SDK version and update dependencies --- app/build.gradle | 39 ++++++++++++++++++--------------------- build.gradle | 4 ++-- 2 files changed, 20 insertions(+), 23 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 3cc334a0a1..c8d5056ed4 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -19,14 +19,14 @@ def fileProviderAuthority = "${packageName}.fileprovider" def fileProviderAuthorityDebug = "${packageName}.debug.fileprovider" android { - compileSdk 33 + compileSdk 34 namespace packageName defaultConfig { applicationId "${packageName}" minSdkVersion 21 - targetSdkVersion 33 + targetSdkVersion 34 versionCode 62 versionName "2.2.2" multiDexEnabled true @@ -107,7 +107,7 @@ android { protobuf { protoc { - artifact = 'com.google.protobuf:protoc:3.8.0' + artifact = 'com.google.protobuf:protoc:3.25.0' } generateProtoTasks { all().each { task -> @@ -121,34 +121,31 @@ protobuf { } dependencies { - def cameraxVersion = '1.2.3' + def cameraxVersion = '1.3.0' def glideVersion = '4.16.0' - def guavaVersion = '32.1.2' - def hiltVersion = '2.47' + def guavaVersion = '32.1.3' + def hiltVersion = '2.48.1' def junitVersion = '4.13.2' - def libsuVersion = '5.2.0' + def libsuVersion = '5.2.1' - annotationProcessor 'androidx.annotation:annotation:1.6.0' + annotationProcessor 'androidx.annotation:annotation:1.7.0' annotationProcessor "com.google.dagger:hilt-compiler:$hiltVersion" annotationProcessor "com.github.bumptech.glide:compiler:${glideVersion}" - // Ridiculous fix for a bunch of "Duplicate class" build errors: - implementation (platform("org.jetbrains.kotlin:kotlin-bom:1.8.0")) - implementation fileTree(dir: 'libs', include: ['*.jar']) - implementation 'androidx.activity:activity:1.7.2' + implementation 'androidx.activity:activity:1.8.0' implementation 'androidx.appcompat:appcompat:1.6.1' implementation "androidx.biometric:biometric:1.1.0" implementation "androidx.camera:camera-camera2:$cameraxVersion" implementation "androidx.camera:camera-lifecycle:$cameraxVersion" - implementation 'androidx.camera:camera-view:1.2.3' + implementation "androidx.camera:camera-view:$cameraxVersion" implementation 'androidx.cardview:cardview:1.0.0' - implementation "androidx.core:core:1.10.1" + implementation "androidx.core:core:1.12.0" implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.documentfile:documentfile:1.0.1' - implementation "androidx.lifecycle:lifecycle-process:2.6.1" + implementation "androidx.lifecycle:lifecycle-process:2.6.2" implementation "androidx.preference:preference:1.2.1" - implementation 'androidx.recyclerview:recyclerview:1.3.1' + implementation 'androidx.recyclerview:recyclerview:1.3.2' implementation "androidx.viewpager2:viewpager2:1.0.0" implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1' implementation 'com.caverock:androidsvg-aar:1.4' @@ -162,8 +159,8 @@ dependencies { implementation "com.github.topjohnwu.libsu:core:${libsuVersion}" implementation "com.github.topjohnwu.libsu:io:${libsuVersion}" implementation "com.google.guava:guava:${guavaVersion}-android" - implementation 'com.google.android.material:material:1.9.0' - implementation 'com.google.protobuf:protobuf-javalite:3.22.0' + implementation 'com.google.android.material:material:1.10.0' + implementation 'com.google.protobuf:protobuf-javalite:3.25.0' implementation 'com.google.zxing:core:3.5.2' implementation "com.mikepenz:iconics-core:3.2.5" implementation 'com.mikepenz:material-design-iconic-typeface:2.2.0.5@aar' @@ -190,8 +187,8 @@ dependencies { testImplementation 'androidx.test:core:1.5.0' testImplementation "com.google.guava:guava:${guavaVersion}-jre" testImplementation "junit:junit:${junitVersion}" - testImplementation 'org.json:json:20230618' - testImplementation 'org.robolectric:robolectric:4.10.3' + testImplementation 'org.json:json:20231013' + testImplementation 'org.robolectric:robolectric:4.11.1' - coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.3' + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4' } diff --git a/build.gradle b/build.gradle index ec5557920c..409c8c318b 100644 --- a/build.gradle +++ b/build.gradle @@ -6,8 +6,8 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:8.1.1' - classpath 'com.google.dagger:hilt-android-gradle-plugin:2.47' + classpath 'com.android.tools.build:gradle:8.1.2' + classpath 'com.google.dagger:hilt-android-gradle-plugin:2.48.1' classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.4' // NOTE: Do not place your application dependencies here; they belong