https://github.com/patilshreyas/datastoreexample
Jetpack DataStore is a data storage solution. It allows us to store key-value pairs (like SharedPreferences) or typed objects with protocol buffers. DataStore uses Kotlin and Coroutines + Flow to store data synchronously with consistency and transaction support 😍
https://github.com/patilshreyas/datastoreexample
android coroutines datastore flow jetpack jetpack-android kotlin kotlin-android livedata
Last synced: 7 months ago
JSON representation
Jetpack DataStore is a data storage solution. It allows us to store key-value pairs (like SharedPreferences) or typed objects with protocol buffers. DataStore uses Kotlin and Coroutines + Flow to store data synchronously with consistency and transaction support 😍
- Host: GitHub
- URL: https://github.com/patilshreyas/datastoreexample
- Owner: PatilShreyas
- Created: 2020-09-03T14:19:09.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-12T15:26:37.000Z (about 5 years ago)
- Last Synced: 2025-03-18T05:51:21.101Z (7 months ago)
- Topics: android, coroutines, datastore, flow, jetpack, jetpack-android, kotlin, kotlin-android, livedata
- Language: Kotlin
- Homepage: https://medium.com/scalereal/hello-datastore-bye-sharedpreferences-android-f46c610b81d5
- Size: 143 KB
- Stars: 55
- Watchers: 2
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DataStore Example - Android
Jetpack DataStore is a data storage solution. It allows us to store key-value pairs (like SharedPreferences) or typed objects with protocol buffers.
DataStore uses Kotlin and Coroutines + Flow to store data synchronously with consistency and transaction support 😍. In short, it's the new data storage solution which is the replacement of SharedPreferences.## Articles
- [Preference DataStore - Hello DataStore, Bye SharedPreferences: Part 1](https://medium.com/scalereal/hello-datastore-bye-sharedpreferences-android-f46c610b81d5)
- [Proto DataStore - Hello DataStore, Bye SharedPreferences: Part 2](https://medium.com/scalereal/hello-datastore-bye-sharedpreferences-android-part-2-proto-datastore-2716fbfd4783)