Closed sodove closed 6 months ago
Please note that Compose Multiplatform doesn't re-compile Google's binaries and reuses them as-is. This problem is about Compose 1.7.0 compatibility and tracked here: https://issuetracker.google.com/issues/324975816
In your project you can see that in the dependency graph Jetpack Compose is resolved to 1.7.0-alpha05
:
./gradlew dependencies
...
+--- org.jetbrains.androidx.navigation:navigation-compose:2.8.0-alpha01
| \--- androidx.navigation:navigation-compose:2.8.0-alpha05
| +--- androidx.activity:activity-compose:1.8.0 -> 1.8.2 (*)
| +--- androidx.compose.animation:animation:1.7.0-alpha05 (*)
| +--- androidx.compose.runtime:runtime:1.7.0-alpha05 (*)
| +--- androidx.compose.runtime:runtime-saveable:1.7.0-alpha05 (*)
| +--- androidx.compose.ui:ui:1.7.0-alpha05 (*)
...
That's an unfortunate situation because Compose Multiplatform is not adopted to 1.7.0 yet. I'll think how to mitigate this.
UPD: The workaround above is incorrect because navigation 2.8.* uses SeekableTransitionState
from compose 1.7
Got the same issue, and not using Compose Multiplatform
@Lonchi78 The issue is about mixing 1.6 and 1.7 while using experimental API that were changed between these versions
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Describe the bug Compilation aborts when trying to compile a project with Navigation Compose and AnchoredDraggableState, when navigation is not added to the project - the project is built normally.
Affected platforms
Versions
To Reproduce Reproduction sample: https://github.com/sodove/anchored_repro
... val state = remember { AnchoredDraggableState( initialValue = DrawerState.Closed, anchors = DraggableAnchors { DrawerState.Opened at -startAnchor DrawerState.Closed at 0f }, positionalThreshold = { distance: Float -> distance * 0.5f }, velocityThreshold = { with(density) { 100.dp.toPx() } }, animationSpec = tween(), ) } ...