https://kotlinlang.org logo
#announcements
Title
# announcements
t

tony

12/12/2019, 8:01 AM
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

Matej Drobnič

12/12/2019, 8:05 AM
t

tony

12/12/2019, 3:50 PM
Interesting! Thanks, I'll take a look
by the way, that totally worked for my use-case. Thanks again!
3 Views