mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Update compose bom and fix renovate config for it (#674)
This commit is contained in:
parent
f080a4937e
commit
843daa5304
3 changed files with 13 additions and 4 deletions
10
.github/renovate.json5
vendored
10
.github/renovate.json5
vendored
|
@ -6,12 +6,20 @@
|
||||||
"schedule": ["every friday"],
|
"schedule": ["every friday"],
|
||||||
"labels": ["Dependencies"],
|
"labels": ["Dependencies"],
|
||||||
"packageRules": [
|
"packageRules": [
|
||||||
|
{
|
||||||
|
"groupName": "Compose BOM",
|
||||||
|
"matchPackageNames": [
|
||||||
|
"dev.chrisbanes.compose:compose-bom"
|
||||||
|
],
|
||||||
|
"ignoreUnstable": false
|
||||||
|
},
|
||||||
{
|
{
|
||||||
// Compiler plugins are tightly coupled to Kotlin version
|
// Compiler plugins are tightly coupled to Kotlin version
|
||||||
"groupName": "Kotlin",
|
"groupName": "Kotlin",
|
||||||
"matchPackagePrefixes": [
|
"matchPackagePrefixes": [
|
||||||
"androidx.compose.compiler",
|
"androidx.compose.compiler",
|
||||||
"org.jetbrains.kotlin",
|
"org.jetbrains.kotlin.",
|
||||||
|
"org.jetbrains.kotlin:"
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
[versions]
|
[versions]
|
||||||
compiler = "1.5.11"
|
compiler = "1.5.11"
|
||||||
compose-bom = "2024.02.00-alpha02"
|
# 2024.04.00-alpha01 has several bugs with the new animateItem() modifier
|
||||||
|
compose-bom = "2024.03.00-alpha02"
|
||||||
accompanist = "0.35.0-alpha"
|
accompanist = "0.35.0-alpha"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
|
|
|
@ -122,7 +122,7 @@ fun AdaptiveSheet(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
val internalOnDismissRequest = {
|
val internalOnDismissRequest = {
|
||||||
if (anchoredDraggableState.currentValue == 0) {
|
if (anchoredDraggableState.settledValue == 0) {
|
||||||
scope.launch { anchoredDraggableState.animateTo(1) }
|
scope.launch { anchoredDraggableState.animateTo(1) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -192,7 +192,7 @@ fun AdaptiveSheet(
|
||||||
|
|
||||||
LaunchedEffect(anchoredDraggableState) {
|
LaunchedEffect(anchoredDraggableState) {
|
||||||
scope.launch { anchoredDraggableState.animateTo(0) }
|
scope.launch { anchoredDraggableState.animateTo(0) }
|
||||||
snapshotFlow { anchoredDraggableState.currentValue }
|
snapshotFlow { anchoredDraggableState.settledValue }
|
||||||
.drop(1)
|
.drop(1)
|
||||||
.filter { it == 1 }
|
.filter { it == 1 }
|
||||||
.collectLatest {
|
.collectLatest {
|
||||||
|
|
Loading…
Reference in a new issue