Member-only story

Koin Framework for Dependency Injection (Part-1) — Most Underrated Framework🙄

Jayant Kumar🇮🇳
3 min readNov 7, 2021

--

Photo by Benjamin Lackey on Unsplash

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.

  1. Manually
  2. 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.

--

--

Jayant Kumar🇮🇳
Jayant Kumar🇮🇳

Written by Jayant Kumar🇮🇳

Hello My name is Jayant Kumar, I am a software Engineer , specialist in Mobile Development (Android , IOS , Flutter , React Native and Ionic) from India 🇮🇳

No responses yet