are there any tools available to compute the ABI o...
# announcements
t
are there any tools available to compute the ABI of a Kotlin class? I am working on a gradle plugin that does some dependency analysis, and one thing I'd like to be able to do is tell users whether dependencies should be
implementation
or
api
. To do that, I need to know the ABI of a set of compiled .class files. I'd like a tool like ASM, but for Kotlin. I have found https://github.com/JetBrains/kotlin/tree/master/libraries/kotlinx-metadata/jvm, which is interesting, but it seems like it currently requires an actual KClass instance, when ideally I could just feed it a byte array (as in ASM)
m
t
Interesting! Thanks, I'll take a look
by the way, that totally worked for my use-case. Thanks again!