Quick question, noting I am no Koin expert. I was ...
# koin
t
Quick question, noting I am no Koin expert. I was updating a project from the DSL to the new plugin. From the setup docs, it says the Annotations package is deprecated. So I read that as not needed when using the Compiler Plugin. But we have an instance where we have a run-time param, and the only way I can get it to work is via an @InjectedParam annotation. Am I missing something related to the plugin that can handle parameters? Thank you.
👌 1
d
Could you share where it says that annotation package is deprecated? Because It's still used with compiler plugin
j
I think you need the annotations library -> https://insert-koin.io/docs/setup/compiler-plugin
Copy code
koin-annotations = { module = "io.insert-koin:koin-annotations", version.ref = "koin" }
And then migrate your existing annotations to these ones (probably just a find/replace on the imports or maybe it can be automated)
d
@Joost Klitsie sorry, I was unaware. Are there annotations other than from koin-annotations artifact? 🙂
a
koin-core-annotations and koin-annotations only
d
What is deprecated then? 🫠
a
koin-ksp-compiler is deprecated in favor of koin compiler plugin
d
Yes, but the question was annotation package is deprecated. Strange
a
in 4.2 koin-annotations is part of Koin itself
😍 1
t
Sorry, my bad, I misread this item here, reading it as any annotations, not just KSP. Forget I brought it up. 😕
a
Yes , I need to rewrite a clearer