Jetpack DataStore - protocol buffers storage solution
summary
Jetpack DataStore replaces SharedPreferences with an async, transactional storage that uses Kotlin coroutines & flows for nonblocking reads and writes. Two implementations exist: Preference DataStore for key/value pairs (edit is a suspend function) and Proto DataStore for typed objects using protocol buffers plus a generated serializer and schema for full type safety. A built-in SharedPreferences migration moves old data automatically; updateData performs atomic read‑modify‑write.
AI-written summary · about
chapters (6)
related talks
25mThe New Modern Data Persistence on Android - Meet Jetpack Datastore
27mSharing my preference for DataStore
30mDataStore Preferences and migrating from SharedPreferences
26mSafely Migrating to DataStore in Production
34mStoring app data reliably & performantly with SimpleStore
30mJetpack
24mLightweight Realtime & Offline Data Storage on Android without a Database
19mFirebase & Jetpack: Fits like a Glove
