Android sample app to learn how to use Jetpack DataStore to store key-value pairs, instead of relying on SharedPreferences
, as welll as typed objects with protocol buffers.
The sample mainly showcases:
- Creating, observing from and writing to a preferences dataStore.
- Creating, observing from and writing to a proto dataStore.
- Defining a schema in a proto file for an object that is stored in a proto dataSotre.
- Using DataStore in a synchronous manner.
Resources to learn about Jetpack's DataStore