Member-only story
Koin Framework for Dependency Injection (Part-1) — Most Underrated Framework🙄
What is Dependency injection?🤔
Dependency injection is a way to write code in a easy, clean and better way. whenever we use DI, we don’t need to write much boilerplate code. it also makes our Unit Testing easy😍😋. Basically there are two ways to perform DI.
- Manually
- Auto (use any DI Framework)
So In this post we will perform Auto DI with the help of Koin Framework🙂
What is Koin?🤔
According to docs Koin is a pragmatic and lightweight dependency injection framework for Kotlin developers.🥰
So Let’s start Koin with adding dependencies. Create a project on android studio and add below dependencies.