Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 1.64 KB

README.md

File metadata and controls

28 lines (17 loc) · 1.64 KB

Android-Architecture-Project

This project is a Demo of creating a stable Android structure for any Api/Database based project.
Project structure is based on Clean architecture by Robert C Martin

Project uses following major dependencies in this project :

-RX Java
-Dagger Hilt

Wait.... If you do not want to use RxJava go ahead use Coroutine Flow. This(https://github.com/amanattri09/CoroutinesFlowExample) example is same structure only with Coroutine Flow.

Benifits of using this project:

-All the errors during any api call , reaches back to BaseActivity.
-Session expired is easily managed for all screens as all errors reaches back on same point of code
-Project also works offline.When device is connected, Data is converted to json and saved in Shared Prefrence and when app is opened offline then data is displayed from Shared Prefrence
-Project will give you an opportunity to learn about Extentions functions,Lambda's,Sealed classes and Genric classes
-Project shows reusable code for displaying progress bar and error dialog for any screen and api.
-There is common flow for consuming any api and handling their responses. Once all errors/cases are handled for single api the same flow will work for all apis so you have reduced the probability of any api based error to almost 0% :)