VIPER Architecture on Android: My POV
A Clean Architecture for iOS Application Development. There are android architecture like MVP & MVVM but they make the presenter heavy with a lot of code.
Separation of Business Logic from the presenter making it easy to port to any application such as even to a console application.
Idea : App has two screens, login authentication using Firebase Authentication and listing of items from Firebase DB.
Firebase DB Structure :
{
"architectures" : {
"mvp" : {
"message" : "Model View Presenter",
"title" : "MVP"
},
"mvp_clean" : {
"message" : "Model View Presenter Clean Architecture",
"title" : "MVP CLEAN"
},
"mvvm" : {
"message" : "Model View ViewModel",
"title" : "MVVM"
},
"viper" : {
"message" : "VIPER",
"title" : "VIPER"
}
}
}
Firebase Auth is Email Authentication
Note : This project isn’t complete, it is there to represent a approach of using Viper on Android.