I have some questions regarding OpenMRS Android Client App GSoC project. I’ve discussed with my mentor @rohitsharma that I would first publish the app on Google Play Store, but need some clarifications:
1- The app is already published there, However, it just crashes when trying to open it. Is it an older version of the app, or it is the up-to-date one but needs a fix?
2- Would I have access to Google Play Console account (or be added as a user)?
3- Regarding converting MVP architecture to MVVM, there are already some Repositories that are created in the project. These repos contain functions that are used in MVP presenters. I would like to discuss two approaches of conversion to MVVM and what to pick through this process:
a. Create repositories for the rest of the modules and use their functions in the current MVP architecture like what is done until now. Then as a final priority convert the rest of the architecture by creating ViewModels and modifying the views (activities and fragments), then removing MVP views and presenters.
b. Convert module by module thoroughly by creating a Repository, ViewModel, and modifying the View (activity & fragment), along with deletion of the old Presenter & View.
It’s been a while, so let me update you with the latest work concerning the migration of the architecture from MVP to MVVM on the Android Client Project 3.0.x. The next comments show the latest work that has been merged into the master branch of the project:
First, I’ve added Hilt library and its testing dependencies to the project, as well as Android Architecture Components’ ViewModel & LiveData and their testing dependencies, too.
Merge Patients screen (matchingpatients package) that appears when locally (offline) registered patients are similar to server-side’s ones, then sync button is clicked and the app goes online. The screen appears.
I’ve fixed these bugs with it:
The screen couldn’t even appear at first.
“merge” and “register new” buttons’ functionalities were not working properly and crashing the app.
Migrated this package from MVP to MVVM architecture and added new tests for it.
Converted MatchingPatientsActivity & MatchingPatientsFragment from Java to Kotlin.
→
Some errors shown in the gif are still present which I’ll fix when coming to their work.