Hello, dear Koin users 👋
We are pleased to share with you a new Koin project. The idea is to introduce a new way to declare modules and components in Koin, and also to help introduce a new tooling capacity.
The need for annotations? 🤔
The idea is not to replace the Koin DSL, as it’s the core value / the DNA of the project. But rather propose a new complementary way for components & modules declaration in Koin. In a way, annotating components can be easier for big projects, rather than declaring everything by hand in a module file.
Here is a new proposal for Koin: just tag your component class with a simple annotation, we will generate all the Koin module declarations for you!
We keep the same “semantic” as for the DSL. You will find the same keyword but as annotations: @Single, @Factory, @KoinViewModel , @Scoped …
Continue to read the article on Medium: