refactored-umbrella icon indicating copy to clipboard operation
refactored-umbrella copied to clipboard

Example of Flow + LiveData w/ Room as single source of truth for data in an MVVM architecture

Refactored Umbrella :umbrella:

Refactored Umbrella is a side project to check modern Android Development with Kotlin Coroutines & Flow, MVVM & Koin.

CI codebeat badge

Architecture

The architecture of the project is following the MVVM pattern suggested by Android Architecture Components.

  • Creating a new screen
  • Creating a new ReyclerView adapter
  • Creating a new ViewModel
  • Creating a new UseCase
  • Creating a new Repository
  • Domain models & entities
  • Dependency Injection

Testing

The testing of the various components in the project follows the patterns details below:

  • General guide
  • Testing a FlowUseCase
  • Testing a NoResultUseCase
  • Testing a ViewModel