In this course, we will learn how to fetch data from a REST API using Retrofit, and how to cache this data for offline use in an SQLite database using the Room persistence library. For this, we will use a NetworkBoundResource implementation based on Kotlin Coroutines and Kotlin Flow.
The app will follow a simple MVVM architecture with dependency injection, single source of truth principle, and separation of concerns.

In this part, I’ll give an overview of the project we will build.

Get the starting code for this project here:
https://github.com/codinginflow/SimpleCachingExample

#kotlin

Simple Offline Caching With NetworkBoundResource + Kotlin Coroutines (Flow)
15.65 GEEK