raheemadamboev / clean-architecture-validation

Validating user input in Clean Architecture Android app using the use-cases. As a result, easily unit testing them

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clean-architecture-validation

Clean Architecture Validation

It is very plain Clean Architecture android app. This project shows how to validate inputs in Clean Architecture architectural components using use-cases in domain layer. Domain layer should not contain any platform specific libraries, it should contain only pure kotlin code. As a result of this, unit testing them is possible and easy. In this project, use-cases are tested using JUnit4 framework. Dependencies are injected via Hilt. Thanks to Jetpack ViewModel and Jetpack SavedStateHandle, the application is robust to configuration changes and process death. Jetpack Compose is used for building simple material UI.

Download demo

About

Validating user input in Clean Architecture Android app using the use-cases. As a result, easily unit testing them

License:Apache License 2.0


Languages

Language:Kotlin 100.0%