/clean-architecture-validation

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

Primary LanguageKotlinApache License 2.0Apache-2.0

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