From f1e1953a0cccb12e8316602a1f3ffe0748669300 Mon Sep 17 00:00:00 2001 From: Saket Narayan Date: Wed, 27 Nov 2024 02:45:07 -0500 Subject: [PATCH] Update Compose UI --- gradle/libs.versions.toml | 10 +++++----- .../main/kotlin/me/saket/squiggles/SquigglySlider.kt | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index c13eabd..01852f3 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,12 +1,12 @@ [versions] minSdk = "21" compileSdk = "34" -kotlin = "1.9.22" +kotlin = "1.9.25" agp = "8.7.2" -compose-ui = "1.6.1" # https://developer.android.com/jetpack/androidx/releases/compose-ui -compose-compiler = "1.5.8" # https://developer.android.com/jetpack/androidx/releases/compose-compiler -compose-material3 = "1.2.0" # https://developer.android.com/jetpack/androidx/releases/compose-material3 -androidx-appcompat = "1.6.1" +compose-ui = "1.7.5" # https://developer.android.com/jetpack/androidx/releases/compose-ui +compose-compiler = "1.5.15" # https://developer.android.com/jetpack/androidx/releases/compose-compiler +compose-material3 = "1.3.1" # https://developer.android.com/jetpack/androidx/releases/compose-material3 +androidx-appcompat = "1.7.0" androidx-activity = "1.8.2" # https://developer.android.com/jetpack/androidx/releases/activity paparazzi = "1.3.4" # https://github.com/cashapp/paparazzi/releases mavenPublish = "0.27.0" # https://github.com/vanniktech/gradle-maven-publish-plugin/releases diff --git a/library/src/main/kotlin/me/saket/squiggles/SquigglySlider.kt b/library/src/main/kotlin/me/saket/squiggles/SquigglySlider.kt index 368a591..36584f8 100644 --- a/library/src/main/kotlin/me/saket/squiggles/SquigglySlider.kt +++ b/library/src/main/kotlin/me/saket/squiggles/SquigglySlider.kt @@ -23,12 +23,12 @@ import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.sizeIn import androidx.compose.foundation.shape.RoundedCornerShape -import androidx.compose.material.ripple.rememberRipple import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.Slider import androidx.compose.material3.SliderColors import androidx.compose.material3.SliderDefaults import androidx.compose.material3.SliderState +import androidx.compose.material3.ripple import androidx.compose.runtime.Composable import androidx.compose.runtime.Immutable import androidx.compose.runtime.Stable @@ -158,7 +158,7 @@ object SquigglySlider { .size(thumbSize) .indication( interactionSource = interactionSource, - indication = rememberRipple( + indication = ripple( bounded = false, radius = maxOf(thumbSize.width, thumbSize.height) + 4.dp, )