Is there a reason, why did you implemented it as annotation processor, not as a kotlin compiler plugin. I am not judging your decision, just trying to learn rationale in a decision process.
m
Michal Klimczak
02/02/2021, 11:33 AM
@Michal Harakal I'm still not sure about this part tbh. I guess I was trying to start with what the big guys do, e.g. moshi or dagger. One thing that I will try to do is to get rid of explicit path to kapt dir, it's annoying and I don't see that in all the daggers. Other than that, not sure what big advantage of one over another might be.
👍 1
r
russhwolf
02/02/2021, 2:38 PM
I hadn't thought kapt would work for something like this because it's jvm-based.
👍 2
m
Michal Klimczak
02/02/2021, 3:48 PM
The processor module was at some point a pure jvm module and it generated kotlin via kotlinpoet which was then used as kotlin native without problem. I only changed it from pure jvm to multiplatform because of some weird issues with IDE and integration tests
p
Philip Dukhov
04/12/2021, 3:40 PM
Hi @Michal Klimczak. I’m trying to build a local annotation processor for my project, that’s how I found this thread. Your source code already helped with some issues, so thank you!
But also I’ve faced a couple of issues, could you take a look at my questions(https://kotlinlang.slack.com/archives/C3PQML5NU/p1618241893017100) in case you’ve faced some?