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

Latest commit

 

History

History
44 lines (23 loc) · 1.12 KB

README.md

File metadata and controls

44 lines (23 loc) · 1.12 KB

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