I have a question about the compatibility of diffe...
# multiplatform
f
I have a question about the compatibility of different versions of the Kotlin Multiplatform Gradle plugin: Assuming I want to use a KMP library in my KMP project. The KMP library uses version 1.9.22 and my KMP project uses version 2.2.10 of the Kotlin Multiplatform Gradle plugin. There seems to be no issues in doing so but I wonder whether there could be any issues and if that's possible how I can find out about them. I could also imagine that this is not just specific to KMP but applies to the compatibility of different Kotlin versions in general. Any insights are appreciated!
I found https://kotlinlang.org/docs/kotlin-evolution-principles.html#evolving-the-binary-format: I assume it's covered by
All binaries are backwards compatible; that means a newer compiler can read older binaries (for example, 1.3 understands 1.0 through 1.2).
However, it also says
Note that not all target platforms have reached this level of stability, but Kotlin/JVM has.
So what is with Kotlin/Native?
t
https://kotlinlang.org/docs/kotlin-evolution-principles.html#kotlin-klib-binaries - this applies to non-JVM platforms:
klib binaries are backwards compatible starting with Kotlin 1.9.20. For example, the 2.0.x compiler can read binaries produced by the 1.9.2x compiler.
f
Thanks!