Open barbeau opened 2 years ago
This issue has been automatically marked as stale because it has not had recent activity. Please comment here if it is still valid so that we can reprioritize. Thank you!
This issue has been automatically marked as stale because it has not had recent activity. Please comment here if it is still valid so that we can reprioritize. Thank you!
Not stale
This issue has been automatically marked as stale because it has not had recent activity. Please comment here if it is still valid so that we can reprioritize. Thank you!
Not stale
Is your feature request related to a problem? Please describe. As a result of ongoing gradual modernization of the app, currently preference utilities are scattered across Java and Kotlin that use the traditional SharedPreferences. Additionally, PR https://github.com/barbeau/gpstest/pull/570 introduces using Jetpack Datastore for the app
isTrackingStarted
preference so we can listen to changes as a Flow for the Composable UIs.Describe the solution you'd like We should migrate all preferences to use Jetpack Compose Datastore: https://developer.android.com/topic/libraries/architecture/datastore
...in the
PreferencesRepository
class introduced in PR https://github.com/barbeau/gpstest/pull/570.