opensrp / fhircore

FHIR Core / OpenSRP 2 is a Kotlin application for delivering offline-capable, mobile-first healthcare project implementations from local community to national and international scale using FHIR and WHO Smart Guidelines on Android.
https://smartregister.org
Apache License 2.0
53 stars 41 forks source link

Migrate SharedPreferences to DataStore #2930

Open kelvin-ngure opened 9 months ago

kelvin-ngure commented 9 months ago

Describe the feature request. Following this pull request. We will migrate all the functionality of unencrypted shared preferences to datastore.

Additional context

Acceptance criteria A check list of all things to verify once the implementation by the engineer is complete

Area path A list of ordered steps in the app on usage of the feature to support anyone testing it e.g. Code reviewer, QA e.g.

  1. Login to the app
  2. Open Navigation bar
  3. Click on Children register
  4. Click on Child profile
  5. Click on Edit profile from menu

Implementation plan (For Engineers) Create serializable wrapper data classes for relevant SDK classes Replace shared preferences functionality Update view models with StateFlow when needed Write new tests Remove unused tests Update documentation

kelvin-ngure commented 7 months ago

@f-odhiambo @ndegwamartin The most significant items left are