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

https://github.com/prasannajeet/retrolivedagger2


https://github.com/prasannajeet/retrolivedagger2

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Retrofit + LiveData + Dagger2 in a MVVM + Clean Architecture
This project shows how you can create an Android app using Retrofit, Android architecture component Livedata, Dagger2 to write code using a Model-View-ViewModel pattern implementing Clean Architecture

## Motivation
The motivation behind the project was the lack of a concrete example of using Retrofit2+Dagger2+LiveData without any RxJava in order to achieve an MVVM pattern. This is a very simple straight-forward example involving 2 difference webservice calls. **The work on Clean Architure is in progress. Feel free to fork and contribute to make this project better**

## Code style

[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)

## Tech/framework used
1. Retrofit
2. Dagger2
3. Android Architecture Component - LiveData
4. Gson

## Contribute

Feel free to fork the project and send in your pull requests. The pull requests should only pertain to either Unit Tests or improving the MVVM and Clean Architecture in the code. Any PRs for UI changes will not be merged, sorry.

## Credits
1. https://medium.com/@saquib3705/consuming-rest-api-using-retrofit-library-with-the-help-of-mvvm-dagger-livedata-and-rxjava2-in-67aebefe031d
2. https://medium.com/@muhammadahmedabutalib/dagger2-with-repsitorypattern-room-and-retrofit-2ff918831250
3. https://google.github.io/dagger/users-guide#binding-instances
4. https://medium.com/@aaraashkhan/using-dagger2-and-retrofit-4b162d0a2021

## License
A short snippet describing the license (MIT, Apache etc)

MIT © [Prasannajeet Pani](2018)