Is there some tooling available to evaluate the co...
# multiplatform
s
Is there some tooling available to evaluate the cost / readiness of e.g. a Kotlin/JVM project to be ported to KMP? For example, I could imagine a very simple check whether any
java.*
imports are present, or in general if Gradle / Maven dependencies on JVM-only artifacts are used.
o
I'm not aware of such tooling, but: Isn't that a kind of task where using an LLM could help?
t
it may be possible in the future Kotlin releases by migrating to KMP with JVM target only and moving all code to
commonMain
. If you want to test it right now - change plugin id to
org.jetbrains.kotlin.multiplatform
, move all the code to
commonMain
and add two targets in the project. Than try to compile JVM target
s
While that would probably formally create a KMP project (layout), I'd also like evaluate the readiness to actually target non-JVM platforms, in particular JS and native.
In essence, it boils down to determining how much Java vs Kotlin API use there still is.