https://github.com/binaryroot/AndroidArchitecture
Android Architecture using Google guides
https://github.com/binaryroot/AndroidArchitecture
android architecture dagger2 kotlin-android livedata mvc mvp mvvm retrofit2 room
Last synced: 2 months ago
JSON representation
Android Architecture using Google guides
- Host: GitHub
- URL: https://github.com/binaryroot/AndroidArchitecture
- Owner: binaryroot
- License: mit
- Created: 2017-05-19T17:56:53.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-08T08:05:30.000Z (almost 8 years ago)
- Last Synced: 2024-10-30T06:33:26.948Z (7 months ago)
- Topics: android, architecture, dagger2, kotlin-android, livedata, mvc, mvp, mvvm, retrofit2, room
- Language: Kotlin
- Homepage:
- Size: 178 KB
- Stars: 132
- Watchers: 10
- Forks: 22
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Android Architecture Kotlin + Dagger2 + Room + LiveData + Retrofit
Project contributors: [Nazar Ivanchuk](https://goo.gl/1185SB) & [Roman Havran](https://goo.gl/W0NQfP)
### Summary
This sample stands on the principles of [Android Architecture](https://goo.gl/p917KL).It's based on the MVC sample, splitting the application in four layers:
### Layers responsibilities
#### UI Controller (Activities, Fragments & Custom views)- Activities & Fragments
- Observes the ViewModel
- Keeps the UI up-to-date
- Forwards user Actions back to the ViewModel
#### ViewModel
- Prepares & keeps data for the UI
- Includes LiveData, Observables etc.
- Survives configuration changes
- The gateway for the UI Controller
#### Repository
- The complete data model from the App
- Provides simple data modification & retrieval APIs#### Data Source
- Provides local or network sources for data### Maintainability
ViewModel concept makes application more flexible for support
[](https://android-arsenal.com/details/3/5775)