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

오프라인과 앱서비스 - 드로이드 나이츠 2019

오프라인과 앱서비스 - 드로이드 나이츠 2019

Droid Knights 2019 발표자료 공유합니다.

Avatar for fr-rannte

fr-rannte

April 05, 2019

Other Decks in Programming

Transcript

  1. Mobile Developer I am Hyun Kim I am working at

    Fast Retailing @ Tokyo You can find me at https://rannte.tistory.com [email protected] 3
  2. Enterprise business rules Application business rules Interface adapters Frameworks and

    drivers External Interfaces UI DB Devices W eb Controllers Presenters Gateways Use Cases Entities
  3. Dependency Injection Platform views UI libs BM Usecase Domain View

    Model View Platform independent ViewModel View Cache API Data Manager Data Transformation Storage & retrieval Model DB Mapper
  4. Dagger Platfor m views Lottie Groupie androidx Plain Kotlin Rx

    Java Domain View Model View Platform independent Rx Java Databinding androidx.lifecycle Databinding Rx Java Retrofit Rx Java Data Transformation Storage & retrieval Model Object Box Plain Kotlin
  5. 예외처리 View Model Usecase Data Manager Local Entity BM Data

    STREAM Remote 에러 발생 Error signal onError
  6. Updater ◼ 온라인 / 오프라인 데이터에 대한 인터페이스 제공 ◼

    온라인 / 오프라인 간의 동기화 작업을 담당 ◼ 오프라인 스토리지 변경에 대한 Observer 를 제공
  7. 오프라인 데이터 처리 ◼ 마지막 동기화 시간 기록 ◼ 민감한

    데이터는 유효시간 설정 ◼ 유효시간이 지난 데이터 표시시 UI 표시