โ—† Sparround

Architecture & patterns

0%

MVVM/MVI comparisons, Jetpack architecture components, DI, Clean Architecture and where GoF patterns live in Android.

๐ŸŽฏ Stage assignment

Stage project โ€” "build one screen properly" (3-4 hours).

Write an accounts-list screen from scratch with MVVM + Clean layers:

  • domain: the Account model, the AccountRepository interface, one use case. No Android imports in this package.
  • data: AccountRepositoryImpl (fake data for now), an AccountDto โ†’ Account mapper.
  • presentation: a @HiltViewModel + a single UiState data class + a StateFlow.
  • Wire up the Hilt module and verify the difference between @Singleton and an unscoped binding.
  • Write at least 2 unit tests with a FakeAccountRepository: the success and error paths.

Done when: the tests pass without an emulator (on the JVM) โ€” the simplest proof the architecture is right.