Skip to content

Commit 843daa5

Browse files
authored
Update compose bom and fix renovate config for it (#674)
1 parent f080a49 commit 843daa5

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.github/renovate.json5

+9-1
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,20 @@
66
"schedule": ["every friday"],
77
"labels": ["Dependencies"],
88
"packageRules": [
9+
{
10+
"groupName": "Compose BOM",
11+
"matchPackageNames": [
12+
"dev.chrisbanes.compose:compose-bom"
13+
],
14+
"ignoreUnstable": false
15+
},
916
{
1017
// Compiler plugins are tightly coupled to Kotlin version
1118
"groupName": "Kotlin",
1219
"matchPackagePrefixes": [
1320
"androidx.compose.compiler",
14-
"org.jetbrains.kotlin",
21+
"org.jetbrains.kotlin.",
22+
"org.jetbrains.kotlin:"
1523
],
1624
}
1725
]

gradle/compose.versions.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[versions]
22
compiler = "1.5.11"
3-
compose-bom = "2024.02.00-alpha02"
3+
# 2024.04.00-alpha01 has several bugs with the new animateItem() modifier
4+
compose-bom = "2024.03.00-alpha02"
45
accompanist = "0.35.0-alpha"
56

67
[libraries]

presentation-core/src/main/java/tachiyomi/presentation/core/components/AdaptiveSheet.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ fun AdaptiveSheet(
122122
)
123123
}
124124
val internalOnDismissRequest = {
125-
if (anchoredDraggableState.currentValue == 0) {
125+
if (anchoredDraggableState.settledValue == 0) {
126126
scope.launch { anchoredDraggableState.animateTo(1) }
127127
}
128128
}
@@ -192,7 +192,7 @@ fun AdaptiveSheet(
192192

193193
LaunchedEffect(anchoredDraggableState) {
194194
scope.launch { anchoredDraggableState.animateTo(0) }
195-
snapshotFlow { anchoredDraggableState.currentValue }
195+
snapshotFlow { anchoredDraggableState.settledValue }
196196
.drop(1)
197197
.filter { it == 1 }
198198
.collectLatest {

0 commit comments

Comments
 (0)