https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
a

alex.hart

11/23/2018, 1:24 PM
Might be an obvious question, but does annotation processing work with kotlin multiplatform or only JVM modules?
d

diesieben07

11/23/2018, 1:29 PM
Annotation processing is based on APT, which is a Java tool. So it's only available for the JVM.
j

josephivie

11/23/2018, 1:55 PM
... there's a way, if you're thinking about making a plugin. It's straight-up hackery, and it's really manual, but I've done it. https://github.com/lightningkite/mirror-kotlin You'll be reading the 'kotlin_metadata' files AND the source files by hand.
g

gildor

11/23/2018, 4:32 PM
One more way: use special JVM module that generates common Kotlin code and run it build before building depending platform modules
3 Views