From bf629950483f3ffae6e0358262401c48a3f07b2b Mon Sep 17 00:00:00 2001 From: Ben Trengrove Date: Wed, 14 Aug 2024 11:52:13 +1000 Subject: [PATCH] Bump test dependencies --- gradle/libs.versions.toml | 6 +++--- .../sample/adaptive/DraggableFoldAwareColumnSample.kt | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 6cfa5eb9b..2fcdafbc5 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,6 @@ [versions] -compose = "1.7.0-beta04" +compose = "1.7.0-beta07" composeCompiler = "1.5.8" composeMaterial3 = "1.0.1" composesnapshot = "-" # a single character = no snapshot @@ -8,7 +8,7 @@ composesnapshot = "-" # a single character = no snapshot dokka = "1.8.10" # gradlePlugin and lint need to be updated together -gradlePlugin = "8.3.2" +gradlePlugin = "8.5.2" lintMinCompose = "30.0.0" ktlint = "0.45.2" @@ -18,7 +18,7 @@ okhttp = "3.12.13" coil = "1.3.2" androidlint = "25.3.0" -androidxtest = "1.4.0" +androidxtest = "1.6.1" androidxnavigation = "2.7.7" androidxWindow = "1.0.0" diff --git a/sample/src/main/java/com/google/accompanist/sample/adaptive/DraggableFoldAwareColumnSample.kt b/sample/src/main/java/com/google/accompanist/sample/adaptive/DraggableFoldAwareColumnSample.kt index d4d190db2..49b7b9fd0 100644 --- a/sample/src/main/java/com/google/accompanist/sample/adaptive/DraggableFoldAwareColumnSample.kt +++ b/sample/src/main/java/com/google/accompanist/sample/adaptive/DraggableFoldAwareColumnSample.kt @@ -34,6 +34,7 @@ import androidx.compose.material.Text import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.FavoriteBorder import androidx.compose.runtime.Composable +import androidx.compose.runtime.SideEffect import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember @@ -42,6 +43,7 @@ import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.geometry.Offset import androidx.compose.ui.input.pointer.pointerInput +import androidx.compose.ui.layout.Layout import androidx.compose.ui.res.painterResource import androidx.compose.ui.unit.IntOffset import androidx.compose.ui.unit.dp @@ -67,7 +69,6 @@ class DraggableFoldAwareColumnSample : ComponentActivity() { @Composable fun DraggableExample(activity: Activity) { var offset by remember { mutableStateOf(Offset(0f, 0f)) } - FoldAwareColumn( modifier = Modifier .offset { IntOffset(offset.x.roundToInt(), offset.y.roundToInt()) }