Clean architecture in Android (Jetpack Compose, Kotlin, MVVM) ーPart- 1

Farhan Tanvir
5 min readJan 31, 2022
Photo by Danial Igdery on Unsplash

Making an android application is kind of easy( Compared with creating with Clean architecture . Please feel free to debate me 😃) but making an application with clean architecture is another thing. Recently I am learning about clean architecture on Android. Today I will talk (Actually write )about it.

First, we have to know some theories. I know theories are boring. So I will make it as short as possible. Also, I have created a GitHub repository about this. So feel free to check it.

Why do we need clean architecture?

Coding is an art. An application does not mean it works and meets UI/UX requirements. It also needed to be easily understandable, flexible, testable, scalable, and maintainable(Lots of fancy words . I know 😃). For a simple application, it may not be needed but for a robust one, it is mandatory. Clean architecture is a hot topic in mobile application development. Because the complexity in mobile applications is increasing. So as a developer we must have knowledge of this.

Layers of clean Architecture

There are three main layers of clean architecture.

  1. Domain: Execute business logic that is independent of any layer and is just a pure Kotlin…

--

--

Farhan Tanvir

Believes in learn by doing . Currently working as a software engineer. Love to share Knowledge. https://twitter.com/FarhanTanvirBD