Does Kotlin/Native support processing of annotations? Is it possible to provide processing in commonMain for KMM project?
a
Animesh Sahu
02/14/2021, 4:47 PM
Yes, if the annotation is declared in common. Annotation processors are same, i.e. IR based.
a
azharkova
02/14/2021, 4:48 PM
Is it possible to use my own custom annotations in commonMain?
a
Animesh Sahu
02/14/2021, 4:48 PM
idk if its possible without IR or not 🤔 because IR is stablized for native & js but is on beta I guess for JVM, and will be on by default in Kt 1.5
a
azharkova
02/14/2021, 4:50 PM
Thank you!
a
Animesh Sahu
02/14/2021, 4:53 PM
Alternatively if you don't wanna get around with the IR internals (which are undocumented), you can have a look at google/ksp can only navigate through but cannot edit the code, or Foso/MpApt a multiplatform port of Kapt. Both are based on IR.