How patilshreyas/foodium works
Project type and purpose
• This is a single-module Android client application (“app” folder) written in Kotlin, following MVVM (Model-View-ViewModel) architecture.
• Purpose: fetch “Posts” from a remote JSON API, persist them in a local SQLite database (using Room), and present them in a Material UI. It’s designed to be offline-capable, synchronized, and demonstrate modern Android development (Coroutines, Flow, Hilt, Retrofit, Coil, etc.).
File structure
• Top-level “app” module:
– data/: local (Room schemas, DAOs, DatabaseMigrations), remote (Retrofit API interface), repository (NetworkBoundRepository, PostRepository).
– di/: Hilt modules (ApiModule, DatabaseModule, RepositoryModule).
– model/: data classes (Post, State).
– ui/: presentation code split into base, main (Activity + ViewModel + adapter + viewholder), details (Activity + ViewModel).
– utils/: helper functions (ActivityUtils, NetworkUtils, TimeUtils, ViewUtils).
– resources: layouts, drawables, menus, themes.
• Build/config: Gradle Kotlin DSL scripts, ProGuard rules, GitHub workflows for build, test, lint, and publish.
README for additional insights
• Confirms MVVM, Android Architecture Components (LiveData, ViewModel, Room), Coroutines & Flow, dependency injection (Hilt), Retrofit + Moshi, Coil for image loading, Material Components.