apps-android-wikiedudashboard icon indicating copy to clipboard operation
apps-android-wikiedudashboard copied to clipboard

Migrate from MVP to MVVM architecture.

Open ujjwalagrawal17 opened this issue 5 years ago • 7 comments

Describe the feature you'd like

Advantages of using MVVM: https://www.youtube.com/watch?v=FrteWKKVyzI&t=874s

ujjwalagrawal17 avatar Aug 26 '19 08:08 ujjwalagrawal17

More references:

  1. https://www.youtube.com/watch?v=FrteWKKVyzI
  2. https://www.youtube.com/watch?v=pErTyQpA390
  3. https://www.youtube.com/watch?v=Qxj2eBmXLHg

ujjwalagrawal17 avatar Aug 26 '19 09:08 ujjwalagrawal17

@ShridharGoel can you help us in dividing this issue into small parts. We can start with maybe 1 fragment.

ujjwalagrawal17 avatar Oct 03 '19 09:10 ujjwalagrawal17

@ujjwalagrawal17 Yes, sure.

ShridharGoel avatar Oct 03 '19 11:10 ShridharGoel

Perhaps add one more layer, and use it for the Repository Pattern

victorvicari avatar Dec 16 '19 14:12 victorvicari

And create some sort of Use Case, between the Repository and View Model, to better / cleaner deal with data / changes, if it's necessary.

victorvicari avatar Dec 16 '19 14:12 victorvicari

To further improvements, remove the view / view bindings from activity / fragment classes.

victorvicari avatar Dec 16 '19 14:12 victorvicari

Replace the Presenters with ViewModels Replace the RetrofitProviders with Repository Remove the View binding interfaces where needed replace with data classes

gconnect avatar Jan 06 '20 00:01 gconnect