Details
Description
ActiveAndroid, a library used for storing data locally for the client, is not being maintained anymore (last commit was in 2014), and is starting to have problems on newer Android SDK versions. AC-468 is an example of a bug I found.
We should move on to a better library - Google's own Room persistence lib - to cache encounters, patient data, etc (it is fast & up-to-date).
I'll split this issue into sub tasks so we can manage PRs better, as this will require quite a refactoring.
- article for reference
- Room: https://developer.android.com/training/data-storage/room/
- beginner tutorial
- https://medium.com/@eslam.hussein/dominate-remote-local-data-with-rx-retrofit-room-mvp-f2b13a0ac27b
- https://medium.com/@rikvanv/android-repository-pattern-using-room-retrofit2-and-rxjava2-b48aedd173c
Gliffy Diagrams
Attachments
1.
|
Set up Room and create Entities |
|
Closed | Rohan Sharma |
|
|||||||
2.
|
Update ConceptDAO for Room |
|
Closed | Rishabh Agarwal |
|
|||||||
3.
|
Update EncounterDAO for Room |
|
Closed | Rishabh Agarwal |
|
|||||||
4.
|
Update LocationDAO for Room |
|
Closed | Rishabh Agarwal |
|
|||||||
5.
|
Update ObservationDAO for Room |
|
Closed | Vibhor Chinda |
|
|||||||
6.
|
Update PatientDAO for Room |
|
Closed | Rishabh Agarwal |
|
|||||||
7.
|
Update VisitDAO for Room |
|
Closed | Vibhor Chinda |
|
|||||||
8.
|
Encrypt Existing Room database with SQLCipher library |
|
Needs Assessment | Rishabh Agarwal |
|
|||||||
9.
|
Use the newly-created Room Entity classes instead of ActiveAndroid's |
|
Closed | Rishabh Agarwal | ||||||||
10.
|
Create FormEntity and update other entity classes |
|
Closed | Rishabh Agarwal |