Clean architecture in Android (Jetpack Compose, Kotlin, MVVM) ーPart- 1
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.
- Domain: Execute business logic that is independent of any layer and is just a pure Kotlin…