apps-android-wikiedudashboard
apps-android-wikiedudashboard copied to clipboard
Migrate from MVP to MVVM architecture.
Describe the feature you'd like
Advantages of using MVVM: https://www.youtube.com/watch?v=FrteWKKVyzI&t=874s
More references:
- https://www.youtube.com/watch?v=FrteWKKVyzI
- https://www.youtube.com/watch?v=pErTyQpA390
- https://www.youtube.com/watch?v=Qxj2eBmXLHg
@ShridharGoel can you help us in dividing this issue into small parts. We can start with maybe 1 fragment.
@ujjwalagrawal17 Yes, sure.
Perhaps add one more layer, and use it for the Repository Pattern
And create some sort of Use Case
, between the Repository
and View Model
, to better / cleaner deal with data / changes, if it's necessary.
To further improvements, remove the view / view bindings
from activity / fragment
classes.
Replace the Presenters with ViewModels Replace the RetrofitProviders with Repository Remove the View binding interfaces where needed replace with data classes