AndroidX DataStore 1.0.0-alpha06

1.0.0-alpha06
Added 2
  • Added RxJava wrappers for DataStore, including the datastore-rxjava2/3 artifacts with RxDataStore, RxDataStoreBuilder, and RxDataMigration
  • Added a builder in the datastore-preferences-rxjava2/3 artifacts to construct a Preferences DataStore
Changed 1
Fixed 1
  • Fixed DataStoreFactory documentation that omitted that the datastore file is created in the "datastore/" subdirectory
Removed 1
  • Removed the preferencesKey<T>(name: String): Key<T> method, replaced by type-specific methods such as intPreferencesKey("int") in place of preferencesKey<Int>("int") inferred, marked in the notes below

1 change to check, marked in the notes below

From AndroidX DataStore

Added RxJava wrappers for DataStore. The datastore-rxjava2/3 artifacts contain the wrappers for the core DataStore APIs ( RxDataStore, RxDataStoreBuilder, and RxDataMigration). The datastore-preferences-rxjava2/3 artifacts contain a builder to construct a Preferences DataStore. Hide the CorruptionHandler interface. There was no reason for it to be public because the DataStore factory only accepts a ReplaceFileCorruptionHandler. ( I0b3b3, b/176032264) The preferencesKey(name: String): Key method has been removed and replaced with methods specific to each supported type, for example preferencesKey("int") is now intPreferencesKey("int") ( Ibcfac, b/170311106) Fixes documentation on DataStoreFactory which left out the fact that the datastore file is created in the “datastore/” subdirectory. ( Ica222) removed · inferred

View original

Upgraded? How did it go?

Discussion