Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/morzhanov/android-boilerplate

Android Boilerplate based on MVVM architecture.
https://github.com/morzhanov/android-boilerplate

android android-boilerplate dagger2 injector java retrofit2 rxandroid rxjava viewmodel

Last synced: 5 days ago
JSON representation

Android Boilerplate based on MVVM architecture.

Awesome Lists containing this project

README

        

# Android Boilerplate

### Android Boilerplate based on MVVM architecture.

## Packages:

* data

Package contains models and DataSource classes to perform CRUD operations.
Package implements Repository pattern.

* databinding

Package contains BindingAdapter classes and BindingConversions class for custom conversion methods that uses in databinding.

* di

Package contain classes that implement dependency ibjection in application.

1. ActivityBuilder class creates Subcomponent classes for application Activities and Fragments.
2. AppComponent - application main dagger component.
3. AppModule - provides main objects for application as utils, repository provider and etc.
4. Injector class initializes and performs di in application.
5. ViewModelProviderFactory - used if the viewmodel has a parameterized constructor.

* notification

Package contain classes for notification management. Also class can call notification delayed and after system start.

* receiver

Package contain android receivers as NetworkReceiver.

* ui

Package contain all ui elements: Activities, Fragments, ViewModels, custom views, adapters.
Each activity stores in its own package and every fragment stores in its own package within activity package.
Each activity and fragment has ViewModel, Module and Provider classes.

* util

Package contain application util classes.

* App

Class extends Application class and this is the main class of application.
It performs Realm and Injector classes initialization.

## Installation

1. git clone
2. build with gradle

## Author

Vlad Morzhanov

## License

#### (The MIT License)

Copyright (c) 2018 Vlad Morzhanov.
You can review license in the LICENSE file.