Hey guys, is there any binary compatibility plugin...
# multiplatform
h
Hey guys, is there any binary compatibility plugin/library for KMP?
https://github.com/Kotlin/binary-compatibility-validator Has anyone tried this in a KMP environment?
j
There is no binary compatibility validator for any target. That project dumps the API of Java classfiles with a minor understanding of Kotlin at best. It does no validation, however.
thank you color 1
On the 2024 roadmap blog post (https://blog.jetbrains.com/kotlin/2023/11/kotlin-multiplatform-development-roadmap-for-2024/), they said
Provide a tool that ensures that your multiplatform library public API hasn’t changed in an incompatible way.
Although it does not seem to be on the actual roadmap page.
gratitude thank you 1
a
klib support is WIP https://github.com/gradle/gradle/issues/27842 there's a community version for Kotlin/JS https://github.com/fluxo-kt/fluxo-bcv-js#readme
m
Japicmp has some validation for the JVM. IIRC it can tell you if you do some breaking changes like removing a method