DevByte Viewer is an example app that showcases using Room and a Repository to create an offline cache.
In addition, it also covers how to use WorkManager for scheduling periodic work. In this app it's used to setup a daily background data sync.
Notice any issues with a repository? Please file a github issue in the repository.