Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
Merge pull request #17 from chrisbanes/cb/compose-1.1
Browse files Browse the repository at this point in the history
Update to Compose 1.1 and Kotlin 1.6.10
  • Loading branch information
chrisbanes authored Feb 11, 2022
1 parent a60bfd8 commit 6bfa7ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
10 changes: 5 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -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" }
Expand Down Expand Up @@ -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" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6bfa7ea

Please sign in to comment.