Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Android_Scalable_Modularized_Testable_Architecture.pdf

Denix
November 02, 2022

 Android_Scalable_Modularized_Testable_Architecture.pdf

Re-draw graphics from Android Developer Youtube Channel - Building a scalable, modularized, testable app from scratch.

Denix

November 02, 2022
Tweet

More Decks by Denix

Other Decks in Programming

Transcript

  1. Architecture(2) UI Data Displays data Reacts to changes Business logic

    Obtains and exposes data Data Events Reactive UI Single source of truth
  2. Data Layer(3) O ff l ine- fi rst architecture Repository

    NetworkDataSource LocalDataSource Sync
  3. UI state composition(1) Repository A Repository B ViewModel UI state

    Combines/handles data from repositories Loading
  4. Type of module Responsible for Depends on :app :feature :core

    Bring features together Single user-facing functionality Single area of common functionality :feature :core :core :core
  5. Test dependencies ViewModel Interface Implementation Repository Interface A Repository Interface

    B Network-DataA-Repository Test-DataA-Repository Local-DataB-Repository Test-DataB-Repository https://developer.android.com/training/testing/fundamentals/test-doubles
  6. • Building a scalable, modularized, testable app from scratch •

    https://developer.android.com/topic/architecture • https://developer.android.com/topic/modularization • https://developer.android.com/topic/modularization/patterns • https://developer.android.com/training/testing/fundamentals/ test-doubles • https://github.com/android/nowinandroid References