From 2135b1087db9e34924a09c3224f22010b1e44064 Mon Sep 17 00:00:00 2001 From: Infi Date: Sun, 9 Jun 2024 16:57:38 +0200 Subject: [PATCH] chore: update dependencies Signed-off-by: Infi --- app/build.gradle | 22 +++++++++---------- .../chat/views/channel/ChannelScreen.kt | 6 ++--- build.gradle | 4 ++-- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 40647cfa..a70c9e09 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -176,7 +176,7 @@ sentry { dependencies { // Android/Kotlin Core - implementation 'androidx.core:core-ktx:1.12.0' + implementation 'androidx.core:core-ktx:1.13.1' implementation "org.jetbrains.kotlin:kotlin-reflect:1.9.22" // Kotlinx - various first-party extensions for Kotlin @@ -195,9 +195,9 @@ dependencies { implementation 'androidx.compose.material3:material3-window-size-class' implementation "androidx.compose.ui:ui-tooling-preview" implementation "androidx.compose.runtime:runtime-livedata" - implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.2' - implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.6.2' - implementation 'androidx.activity:activity-compose:1.8.1' + implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.8.1' + implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.8.1' + implementation 'androidx.activity:activity-compose:1.9.0' // Accompanist - Jetpack Compose Extensions implementation "com.google.accompanist:accompanist-systemuicontroller:$accompanist_version" @@ -219,7 +219,7 @@ dependencies { // Hilt - Dependency Injection implementation "com.google.dagger:hilt-android:$hilt_version" - implementation "androidx.hilt:hilt-navigation-compose:1.1.0" + implementation "androidx.hilt:hilt-navigation-compose:1.2.0" kapt "com.google.dagger:hilt-compiler:$hilt_version" // Glide - Image Loading @@ -239,14 +239,14 @@ dependencies { // Other AndroidX libraries - used for various things and never seem to have a consistent version implementation 'androidx.documentfile:documentfile:1.0.1' - implementation "androidx.browser:browser:1.7.0" - implementation "androidx.webkit:webkit:1.9.0" + implementation "androidx.browser:browser:1.8.0" + implementation "androidx.webkit:webkit:1.11.0" implementation "androidx.core:core-splashscreen:1.0.1" // Libraries used for legacy View-based UI implementation "androidx.constraintlayout:constraintlayout:2.2.0-alpha13" - implementation "androidx.appcompat:appcompat:1.7.0-alpha03" - implementation 'com.google.android.material:material:1.11.0' + implementation "androidx.appcompat:appcompat:1.7.0" + implementation 'com.google.android.material:material:1.12.0' // hCaptcha - captcha provider implementation "com.github.hcaptcha:hcaptcha-android-sdk:3.8.1" @@ -267,8 +267,8 @@ dependencies { // Persistence implementation "app.cash.sqldelight:android-driver:2.0.1" - implementation "androidx.datastore:datastore:1.1.0-beta02" - implementation "androidx.datastore:datastore-preferences:1.1.0-beta02" + implementation "androidx.datastore:datastore:1.1.1" + implementation "androidx.datastore:datastore-preferences:1.1.1" // Livekit implementation "io.livekit:livekit-android:$livekit_version" diff --git a/app/src/main/java/chat/revolt/screens/chat/views/channel/ChannelScreen.kt b/app/src/main/java/chat/revolt/screens/chat/views/channel/ChannelScreen.kt index aa63de76..f83a05f3 100644 --- a/app/src/main/java/chat/revolt/screens/chat/views/channel/ChannelScreen.kt +++ b/app/src/main/java/chat/revolt/screens/chat/views/channel/ChannelScreen.kt @@ -960,9 +960,9 @@ fun ChannelScreen( ) try { - pickCameraLauncher.launch( - capturedPhotoUri.value - ) + capturedPhotoUri.value?.let { uri -> + pickCameraLauncher.launch(uri) + } } catch (e: Exception) { Toast.makeText( context, diff --git a/build.gradle b/build.gradle index 2a0c6885..ac84d0c2 100644 --- a/build.gradle +++ b/build.gradle @@ -4,13 +4,13 @@ buildscript { compose_bom_version = '2024.02.01' accompanist_version = '0.34.0' okhttp_version = '4.10.0' - nav_version = '2.7.5' + nav_version = '2.7.7' hilt_version = '2.44' coil_version = '2.2.2' glide_version = '4.16.0' ktor_version = '2.3.0' aboutlibraries_version = '10.9.1' - media3_version = '1.3.0' + media3_version = '1.3.1' livekit_version = '2.2.0' } }