From 047b3be16cbb5430668583de3e113825ced51f4f Mon Sep 17 00:00:00 2001 From: Jonatan Rhodin Date: Thu, 20 Jun 2024 16:04:00 +0200 Subject: [PATCH] Update compose to 1.7.0-beta03 Also update some related libraries that were required This fixes a crash on release build --- android/app/lint-baseline.xml | 4 ++-- .../component/MullvadModalBottomSheet.kt | 2 +- .../AutoConnectAndLockdownModeScreen.kt | 2 +- .../compose/textfield/TextFieldColors.kt | 6 +++++- android/buildSrc/src/main/kotlin/Versions.kt | 16 +++++++------- .../net/mullvad/mullvadvpn/lib/theme/Theme.kt | 21 ++++++++----------- 6 files changed, 26 insertions(+), 25 deletions(-) diff --git a/android/app/lint-baseline.xml b/android/app/lint-baseline.xml index 0ab48b375dca..9f67e68efad6 100644 --- a/android/app/lint-baseline.xml +++ b/android/app/lint-baseline.xml @@ -1,5 +1,5 @@ - + Unit) { private val LocalAppDimens = staticCompositionLocalOf { defaultDimensions } +@OptIn(ExperimentalMaterial3Api::class) @Composable fun AppTheme(content: @Composable () -> Unit) { val colors = darkColorScheme @@ -150,15 +150,12 @@ fun AppTheme(content: @Composable () -> Unit) { shapes = Shapes, typography = typography, content = { - CompositionLocalProvider(LocalRippleTheme provides MullvadRippleTheme) { content() } + CompositionLocalProvider( + LocalRippleConfiguration provides RippleConfiguration(rippleAlpha = rippleAlpha) + ) { + content() + } } ) } } - -@Immutable -object MullvadRippleTheme : RippleTheme { - @Composable override fun defaultColor() = LocalContentColor.current - - @Composable override fun rippleAlpha() = rippleAlpha -}