mitchtabian/Local-db-Cache-Retrofit-REST-API-MVVM
App that interacts with a REST API using Retrofit. There is a local db cache and architecture is MVVM
Local Database Cache with REST API, Retrofit2, MVVM Architecture
Watch the app demo.
In this course you'll learn how to build a local database cache with SQLite and Room. The cache retrieves data from a REST API using Retrofit2. Architecture is MVVM.
Here's the specifics of what you will see in the course:
- Caching data for when the network goes offline
- Reading cached data when the network is down
- Custom SQLite queries using Room
- Customizing the cache (how long data will live in the cache)
- How Retrofit caching works
- Why SQLite and Room is better for caching than Retrofit
- How to design a database cache
- There is no "one size fits all"
- Retrofit is better for some things but room is better for others
- How Glide caching works
- Glide RecyclerView Preloader (Customizing how many list items get cached)
- Dealing with Network Errors and slow network speeds
- OkHttp Network Timeouts
- Converting Retrofit Calls to LiveData (Call Adapters)
- And much more...
Architecture Diagram
Contributors
Similar Projects
Discover other similar projects and AI models.
🍲Foodium is a sample food blog Android application 📱 built to demonstrate the use of Modern Android development tools - (Kotlin, Coroutines, Flow, Dagger 2/Hilt, Architecture Components, MVVM, Room, Retrofit, Moshi, Material Components).
🔥🔥🔥 Kotlin + MVVM + LCE版玩安卓,暗黑模式、横竖屏、无网、弱网、无数据、加载失败等等各种情况,协程、Room、Hilt、DataStore、LiveData、Retrofit、屏幕适配、本地缓存、多语言切换、多 lib,你想要的我都有!!!
👕基于谷歌最新AAC架构,MVVM设计模式的一套快速开发库,整合Okhttp+RxJava+Retrofit+Glide等主流模块,满足日常开发需求。使用该框架可以快速开发一个高质量、易维护的Android应用。
💎 Android application following best practices: Kotlin, Coroutines, JetPack, Clean Architecture, Feature Modules, Tests, MVVM, DI, Static Analysis...
SwiftUI sample app using Clean Architecture. Examples of working with SwiftData persistence, networking, dependency injection, unit testing, and more.
Template iOS app using Clean Architecture and MVVM. Includes DIContainer, FlowCoordinator, DTO, Response Caching and one of the views in SwiftUI
Voice AI SDK is a reusable Android library that gives any app a full voice-driven AI conversation pipeline in minutes. Voice Assistant + Android Voide AI + SDK + MVVM + Kotlin
