JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
16.23k stars 1.18k forks source link

Fix MultiWidgetSelectionDelegate.@Synchronized #3363

Closed igordmn closed 1 month ago

igordmn commented 1 year ago

Compose 1.4.1

kotlin.jvm.Synchronized is used in MultiWidgetSelectionDelegate. it works only for JVM, and doesn't work for native/web

kotlinx.atomicfu.locks.SynchronizedObject should be used instead (skikoMain should depend on implementation(libs.atomicFu))

okushnikov commented 2 months ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.