barbeau / gpstest

The #1 open-source Android GNSS/GPS test program
Apache License 2.0
1.75k stars 361 forks source link

Migrate all preferences to Jetpack Datastore #596

Open barbeau opened 2 years ago

barbeau commented 2 years ago

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.

stale[bot] commented 1 year 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!

stale[bot] commented 11 months 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!

barbeau commented 11 months ago

Not stale

stale[bot] commented 5 months 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!

barbeau commented 5 months ago

Not stale