lets-plot-skia icon indicating copy to clipboard operation
lets-plot-skia copied to clipboard

[question] When will lets-plot-skia support kotlin 2.0.0 and Compose 1.6.10?

Open changhexuefei opened this issue 1 year ago • 3 comments

changhexuefei avatar May 25 '24 13:05 changhexuefei

Typically Lets-plot skia does not need to be updated with each new version of Compose multiplatform as long as backward compatibility is not broken. Have you tried to build your app with lets-plot skia and Compose Multiplatform 1.6.10?

Kotlin 2.0 should maintain backward compatibility and support older libraries. Thus, nothing stands in your way of switching to Kotlin 2.0.

There is also a versioning info in Compose Multiplatform dos : https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-compatibility-and-versioning.html#kotlin-compatibility .

alshan avatar May 28 '24 19:05 alshan

When I updated the Kotlin version to 1.9.24 and the Compose version to 1.6.10, the following error was reported:

org.gradle.jvmargs=-Xmx8192m -Dfile.encoding=UTF-8 kotlin.code.style=official kotlin.version=1.9.24 compose.version=1.6.10 org.gradle.warning.mode=all exposedVersion=0.49.0

image Caused by: java.lang.ClassNotFoundException: org.jetbrains.skiko.SkikoView at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525) ... 91 more Caused by: java.lang.ClassNotFoundException: org.jetbrains.skiko.SkikoView

changhexuefei avatar May 29 '24 01:05 changhexuefei

In v0.8.0 skiko removed input handling support and few classes, including SkikoView, that we are using.
In v1.6.10 Compose Multiplatform started to use skiko v0.8.4.

This means that for now lets-plot-skia can't be used with Compose Multiplatform v1.6.10 and higher. We need to update skiko and adapt our code to the changes. Sadly there is a critical issue for us - https://github.com/JetBrains/skiko/issues/761. Have to check is it still a problem.

IKupriyanov-HORIS avatar May 31 '24 15:05 IKupriyanov-HORIS

Please, see release notes: v2.0.0.

alshan avatar Aug 30 '24 21:08 alshan