https://github.com/prasannajeet/retrolivedagger2
https://github.com/prasannajeet/retrolivedagger2
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/prasannajeet/retrolivedagger2
- Owner: prasannajeet
- Created: 2018-08-04T05:47:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-05T18:16:52.000Z (over 6 years ago)
- Last Synced: 2023-10-26T02:36:54.975Z (over 1 year ago)
- Language: Java
- Size: 147 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
[](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)