I'm making a library that can make use of annotations, where it should get user-defined functions and classes annotated. I know how to define annotations and their target, but I'm lost when it comes to processing them. There seems to be kapt, Dagger and some others, but which one should I be using?
n
nanodeath
12/19/2020, 7:29 PM
do you want compile-time processing or runtime processing? e.g. Daggerish or Guiceish?
l
Lulu
12/19/2020, 7:34 PM
it doesn't matter, but i'm planning to support js, jvm and native, ideally the solution should be compatible with all of them
Lulu
12/19/2020, 7:36 PM
i'm not generating any code, i'm just reading existing code by the user
n
nanodeath
12/19/2020, 7:36 PM
I mean, it matters a lot, but it sounds like compile-time is what you want; otherwise you'd need a runtime processor for each target
nanodeath
12/19/2020, 7:38 PM
you can still probably start here, just skip the code generation part.