AndroidX DataStore 1.2.0-alpha01

1.2.0-alpha01
Added 3
  • Added datastore-guava module to expose APIs friendly to Java and Guava ListenableFuture users via GuavaDataStore.
  • DataStore usage during DirectBoot mode is now supported, with datastores created within Device Protected storage using createInDeviceProtectedStorage() in DataStoreFactory and deviceProtectedDataStore() in DataStoreDelegate.
  • Added PreferencesFileSerializer that implements androidx.datastore.core.Serializer interface for use with FileStorage.
Fixed 2
  • Resolved FileNotFoundException issue in OkioStorage at startup by adding a second attempt to read data in the case of a race condition.
  • Defined the default constructor for ReplaceFileCorruptionHandler for common code usage.

From AndroidX DataStore

New Features Added datastore-guava module to expose APIs friendly to Java and Guava ListenableFuture users via GuavaDataStore. ( Iadd5e0) DataStore usage during DirectBoot mode is now supported. To create a datastore to be used during direct boot mode it must be created within the Device Protected storage. This can be achieved by the following new DataStore APIs: createInDeviceProtectedStorage() in DataStoreFactory and deviceProtectedDataStore() in DataStoreDelegate. ( Ib90e56) API Changes Added PreferencesFileSerializer that implements androidx.datastore.core.Serializer interface for use with FileStorage. ( I4c71f3) Bug Fixes Resolved FileNotFoundException issue in OkioStorage at startup by adding a second attempt to read data in the case of a race condition. ( I43b3fb, b/337870543) Defined the default constructor for ReplaceFileCorruptionHandler for common code usage. ( I795b05, b/358138957)

View original

Upgraded? How did it go?

Discussion