AndroidX DataStore 1.0.0-alpha01

1.0.0-alpha01
Added 2
  • Proto DataStore for storing typed objects backed by protocol buffers
  • Preferences DataStore for storing key-value pairs

From AndroidX DataStore

Jetpack DataStore is a new and improved data storage solution aimed at replacing SharedPreferences. Built on Kotlin coroutines and Flow, DataStore provides two different implementations: Proto DataStore, that lets you store typed objects (backed by protocol buffers) Preferences DataStore, that stores key-value pairs Data is stored asynchronously, consistently, and transactionally, overcoming most of the drawbacks of SharedPreferences.

View original

Upgraded? How did it go?

Discussion