Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Android template project made with Kotlin, Jetpack, MVVM, Dagger Hilt, and RxJava

License

Notifications You must be signed in to change notification settings

webfactorymk/android-template

Repository files navigation

Android Template

Android template project - A simple movie client that queries themoviedb.org


Light theme

Data Management

Alt text

MovieDataSource

/data/repository/movie

This is the main entry point for accessing and manipulating movies data:

Implementations:

  • MovieRemoteDataSource - Uses the ApiService to contact a remote server;
  • MovieCacheDataSource - Uses in-memory cache to retrieve items;
  • MovieRepository - Uses both MovieRemoteDataSource and MovieCacheDataSource to fetch cached data when available;

ApiService

/network

Abstraction over the API communication that defines (all) endpoints. This templates uses [Chopper], an http client generator, to make network requests.

  • UserApiService - User related endpoints
  • MovieApiService - Movie related endpoints

Dependency Management

/di

Dagger Hilt is used to manage 2 scopes: App and (custom) User scope