Skip to content

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

License

Notifications You must be signed in to change notification settings

raheemadamboev/clean-architecture-validation

Repository files navigation

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