- Notifications
You must be signed in to change notification settings - Fork22
MVI + Clean Architecture + Best Practices | Example of Clean Architecture of Android app using MVI design pattern with Jetpack and popular libraries
License
yusufceylan/MVI-Clean-Architecture
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a sample app & basic code that demonstrate how to build an Android application using the Uncle Bob's Clean Architecture approach.
The trick of the project is to demonstrate best practices, provide a set of guidelines, and present modern Android Application Architecture that is modular, scalable, maintainable and testable, suitable for bigger teams and long application lifecycle management.
Because it is an architectural project, UI has been kept simple. Sample data has been provided fromJsonPlaceholder API You can directly clone the repo and run the app.
This app usesMVI (Model View Intent) architecture.
Modules are the collection of source files and build settings that allow you to divide your project into discrete units of functionality.
App Module
:app
module is ancom.android.application, which is needed to create the app bundle. It contains dependency graph and UI related classes. It presents data to screen and handle user interactions.Base Module
:base
module contains only framework related base classes that is used in other modulesCommon Module
:common
module contains code and resources which are shared between other modulesData Module
:data
module contains implementation of repository and local - remote repository interface adaptDomain Module
:domain
module contains use cases and repository interface adaptLocal Module
:local
module contains local data source related classesRemote Module
:remote
module contains remote data source related classesPresentation Module
:presentation
module contains business logic
Each module has its own test.
- Kotlin
- Jetpack
- Coroutines - Flow
- Dagger Hilt
- Retrofit
- OkHttp
- KotlinX
- KotlinX Serialization Converter
- LeakCanary
- Testing
All contributions are welcome! Please fork this repository and contribute back usingpull requests.
Don't forget to star ⭐ the repo it motivates me to share more open source
MIT LicenseCopyright (c) 2021 Yusuf CeylanPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.
About
MVI + Clean Architecture + Best Practices | Example of Clean Architecture of Android app using MVI design pattern with Jetpack and popular libraries
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.