The New Modern Data Persistence on Android - Meet Jetpack Datastore
summary
Demonstrates Jetpack DataStore with concrete code: uses Preferences DataStore for simple key-value pairs (taskTitle, taskDescription, taskPriority:int, taskCompleted:bool) with createDataStore, edit, data.map and flow.collect; shows Proto DataStore using a src/main/proto task message, generated serializer and updateData, and notes requiring protobuf Java Lite 3.18.1 and an M1 workaround. Compares performance, type safety, versioning and schema evolution versus SharedPreferences; uses Budgeting Buddy as a dogfood app and keeps Room for complex relational data.
AI-written summary · about
chapters (11)
- 0:00Introduction and speaker intro
- 1:52What is Jetpack DataStore
- 3:59Advantages of DataStore
- 5:47Implementing DataStore preferences
- 9:41Introducing Proto DataStore
- 11:48Proto DataStore setup and usage
- 13:55Comparing DataStore with SharedPreferences
- 14:58When to use DataStore vs Room
- 18:32Migrating from SharedPreferences
- 21:41Proto DataStore use cases
- 22:44Summary and resources
related talks
19mJetpack DataStore - protocol buffers storage solution
27mSharing my preference for DataStore
30mDataStore Preferences and migrating from SharedPreferences
26mSafely Migrating to DataStore in Production
19mFirebase & Jetpack: Fits like a Glove
18mRescuing Old Code with JetPack
34mStoring app data reliably & performantly with SimpleStore
50mFirebase and Android Jetpack: fit like a glove
