Hi there, I’m the <#C67HDJZ2N|koin> project lead. ...
# ksp
a
Hi there, I’m the #koin project lead. Just to say that I’ve started to work on a ksp compiler for Koin (https://github.com/InsertKoinIO/koin/tree/ksp-compiler/compiler) and I have something starting to be stable enough, to soonly share it.
🎉 13
this Koin compiler plugin will help generate DSL content from tagged classes
💯 1
l
Would this allow to generate factories for injectable classes (like how javax's
@Inject
annotation works with Dagger) and not write a single module given that all the dependencies can be injected?
a
you can skip using modules if you want
l
That's good 🙂 . I've always been looking for something that is in the middle of Dagger and Koin. I remember long ago having to write modules with many constructors like
MyClass(get(), get(), get())
. I know there's now the
single<MyClass>()
but you still have to put it into a module and that gets very verbose if you have many classes where you use injections, while in Dagger you just write
@Inject
in
MyClass
and
@Singleton
when needed.
a
yep, would be like just tag it with
@Single
, ksp compiler will just generate default module for you
🔥 2