Skip to content

Instantly share code, notes, and snippets.

View grumpyshoe's full-sized avatar

Thomas Cirksena grumpyshoe

View GitHub Profile
@grumpyshoe
grumpyshoe / tinder-like-card-dragging.kt
Created July 6, 2023 19:18
Compose: Tinder like card dragging
fun Modifier.swiper(
enabled: Boolean,
state: Swipe,
onDragReset: () -> Unit = {},
onTap: () -> Unit,
onLongPress: () -> Unit,
onDrag: (SwipeDirection?, Float) -> Unit = { _, _ -> },
onDragRight: () -> Unit,
onDragLeft: () -> Unit,
): Modifier = composed {
@grumpyshoe
grumpyshoe / usefull_code.md
Last active February 26, 2024 22:19
Usefull commands while developing android apps

Test related

UnitTest

Make test wait until everyting is idle

testDispatcher.scheduler.advanceUntilIdle()

Bundletool

build apks