diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 237a2fb..bb81131 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,15 +1,15 @@ [versions] -compose = "1.0.3" +compose = "1.1.0" composesnapshot = "-" # a single character = no snapshot agp = "7.1.1" ktlint = "0.43.2" -kotlin = "1.5.30" +kotlin = "1.6.10" coroutines = "1.5.2" androidxtest = "1.4.0" -androidxnavigation = "2.4.0-alpha10" +androidxnavigation = "2.4.1" [libraries] compose-ui-ui = { module = "androidx.compose.ui:ui", version.ref = "compose" } @@ -37,8 +37,8 @@ kotlin-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-te dokka = "org.jetbrains.dokka:dokka-gradle-plugin:1.5.0" -androidx-core = "androidx.core:core-ktx:1.6.0" -androidx-activity-compose = "androidx.activity:activity-compose:1.3.0" +androidx-core = "androidx.core:core-ktx:1.7.0" +androidx-activity-compose = "androidx.activity:activity-compose:1.4.0" androidx-test-core = { module = "androidx.test:core-ktx", version.ref = "androidxtest" } androidx-test-runner = { module = "androidx.test:runner", version.ref = "androidxtest" } diff --git a/internal-testutils/src/main/kotlin/dev/chrisbanes/internal/SwipeVelocity.kt b/internal-testutils/src/main/kotlin/dev/chrisbanes/internal/SwipeVelocity.kt index bf79590..55b0d12 100644 --- a/internal-testutils/src/main/kotlin/dev/chrisbanes/internal/SwipeVelocity.kt +++ b/internal-testutils/src/main/kotlin/dev/chrisbanes/internal/SwipeVelocity.kt @@ -17,8 +17,7 @@ package dev.chrisbanes.internal import androidx.compose.ui.test.SemanticsNodeInteraction -import androidx.compose.ui.test.percentOffset -import androidx.compose.ui.test.performGesture +import androidx.compose.ui.test.performTouchInput import androidx.compose.ui.test.swipe import androidx.compose.ui.test.swipeWithVelocity import androidx.compose.ui.unit.Dp @@ -30,7 +29,7 @@ fun SemanticsNodeInteraction.swipeAcrossCenterWithVelocity( velocityPerSec: Dp, distancePercentageX: Float = 0f, distancePercentageY: Float = 0f, -): SemanticsNodeInteraction = performGesture { +): SemanticsNodeInteraction = performTouchInput { val startOffset = percentOffset( x = 0.5f - distancePercentageX / 2, y = 0.5f - distancePercentageY / 2