项目作者: webfactorymk

项目描述 :
Android template project made with Kotlin, Jetpack, MVVM, Dagger Hilt, and RxJava
高级语言: Kotlin
项目地址: git://github.com/webfactorymk/android-template.git
创建时间: 2020-02-03T12:20:04Z
项目社区:https://github.com/webfactorymk/android-template

开源协议:MIT License

下载


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