Skip to content

morzhanov/android-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.