DEV Community

Cover image for Android Dependency Injection with Koin

Android Dependency Injection with Koin

Levi Albuquerque on February 25, 2019

Dependency Injection, or DI, is a design pattern/technique as old as time itself. You've probably heard it a couple of times during your career and...
Collapse
 
rapasoft profile image
Pavol Rajzak

I've been trying to use it for a web application (not Android) and like it's simple configuration, but I cannot imagine using it on a larger projects. I know you can define several modules, so that the definitions can be grouped, but I am more used to magic of annotations :).

But still, I think it's a great way to do simple kotlin-first dependency injection :)

Collapse
 
levimoreira profile image
Levi Albuquerque

That's exactly what I thought as well, after we get used to the annotations it's just as easy. But it's always nice to know we've got other options :)

Collapse
 
gvetri profile image
Giuseppe Vetri

Nice post, I really like it I didn't know about Koin and this was a great introduction. I have a question, how did you include gist in markdown? I've tried before but i failed :(