diff --git a/build.gradle.kts b/build.gradle.kts index e2a8e295b..0157483d6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -47,6 +47,7 @@ dependencyAnalysis { all { onUnusedDependencies { severity("fail") + exclude(libs.androidx.compose.ui.tooling.asProvider()) } } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index a02490f51..63024c4db 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -2,14 +2,14 @@ android-gradle-plugin = "8.7.0" androidx-activity = "1.9.2" androidx-annotation = "1.8.2" -androidx-compose = "2024.09.01" +androidx-compose = "2024.09.03" androidx-compose-material-navigation = "1.7.0-beta01" # TODO Remove this once https://issuetracker.google.com/issues/347719428 is resolved androidx-core = "1.13.1" androidx-datastore = "1.1.1" -androidx-fragment = "1.8.3" +androidx-fragment = "1.8.4" androidx-lifecycle = "2.8.6" androidx-media3 = "1.4.1" -androidx-navigation = "2.8.0" +androidx-navigation = "2.8.2" androidx-paging = "3.3.2" androidx-test-core = "1.6.1" androidx-test-ext-junit = "1.2.1" diff --git a/pillarbox-ui/src/main/java/ch/srgssr/pillarbox/ui/widget/DelayedVisibilityState.kt b/pillarbox-ui/src/main/java/ch/srgssr/pillarbox/ui/widget/DelayedVisibilityState.kt index e2ba04be4..daf319f41 100644 --- a/pillarbox-ui/src/main/java/ch/srgssr/pillarbox/ui/widget/DelayedVisibilityState.kt +++ b/pillarbox-ui/src/main/java/ch/srgssr/pillarbox/ui/widget/DelayedVisibilityState.kt @@ -21,7 +21,6 @@ import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember import androidx.compose.runtime.setValue import androidx.compose.ui.Modifier -import androidx.compose.ui.composed import androidx.compose.ui.focus.onFocusChanged import androidx.compose.ui.input.key.Key import androidx.compose.ui.input.key.KeyEventType @@ -130,14 +129,12 @@ fun Modifier.toggleable( enabled: Boolean = true, role: Role? = Role.Switch, delayedVisibilityState: DelayedVisibilityState -): Modifier = composed { - toggleable( - enabled = enabled, - role = role, - interactionSource = null, - delayedVisibilityState = delayedVisibilityState - ) -} +): Modifier = toggleable( + enabled = enabled, + role = role, + interactionSource = null, + delayedVisibilityState = delayedVisibilityState, +) /** * Toggleable