Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Gabriel Peal: MvRx: Android on Autopilot - Droidcon SF 2019

Gabriel Peal's talk about MvRx from Droidcon SF 2019

  • Be the first to comment

Gabriel Peal: MvRx: Android on Autopilot - Droidcon SF 2019

  1. 1. GABRIEL PEAL · @GPEAL8 · DROIDCON SF MvRx: Android on Autopilot SOFTWARE ENGINEER @ TONAL (EX-AIRBNB)
  2. 2. Simple Yet Powerful Everyday tasks are simple, clear, consistent, and error-free. Kotlin Only Kotlin only for improved API design Built on Android Jetpack Leverage Google's great work What is MvRx?(Mavericks) (ModelView + Rx)
  3. 3. State of MvRx? MvRx Screens at Airbnb
  4. 4. Lifecycle Activity/Fragment
  5. 5. Lifecycle Activity/Fragment ViewModel
  6. 6. Like what actually
 is a screen really?
  7. 7. f(state)= What is a screen? + + + Or
  8. 8. Are these equal? + + + + + +
  9. 9. Are these equal? + + + + + + MAYBE????? = =
  10. 10. f(state) = What is a screen?
  11. 11. f(state) = What is a screen?
  12. 12. f(state) = What is a screen?
  13. 13. f(state) = What is a screen?
  14. 14. Async<T>
  15. 15. Rx State Observable<T> Async<T> Uninitialized Loading Success( ) execute
  16. 16. Fail( ) Rx State Uninitialized Loading Observable<T> Async<T>execute
  17. 17. Fail( ) Success( ) Rx State Uninitialized Loading Observable<T> Async<T>execute
  18. 18. MvRx Testing •Unit Tests
  19. 19. • Unit Tests •Snapshot Tests MvRx Testing
  20. 20. • Unit Tests • Snapshot Tests •Launcher MvRx Testing
  21. 21. • Unit Tests • Snapshot Tests • Launcher •Interaction Tests MvRx Testing
  22. 22. GABRIEL PEAL · @GPEAL8 · DROIDCON SF MvRx: Android on Autopilot SOFTWARE ENGINEER @ TONAL (EX-AIRBNB) Thank You

×