AndroidX DataStore

Frameworks & LibrariesAI extracted

AndroidX's asynchronous, transactional storage for key-value preferences and typed objects, replacing SharedPreferences.

Latest 1.3.0 · by GoogleWebsiteRSS

Release activity

Release activity — 15 releases across 13 days in the last year. Each cell is one day; darker means more releases that day. Older weeks are hidden at this screen width.
AugSepOctNov
SundayNo releases on Aug 2, 2026No releases on Aug 9, 2026No releases on Aug 16, 2026No releases on Aug 23, 2026No releases on Aug 30, 2026No releases on Sep 6, 2026No releases on Sep 13, 2026No releases on Sep 20, 2026No releases on Sep 27, 2026No releases on Oct 4, 2026No releases on Oct 11, 2026No releases on Oct 18, 2026No releases on Oct 25, 2026No releases on Nov 1, 2026No releases on Nov 8, 2026No releases on Nov 15, 2026
MondayNo releases on Aug 3, 2026No releases on Aug 10, 2026No releases on Aug 17, 2026No releases on Aug 24, 2026No releases on Aug 31, 2026No releases on Sep 7, 2026No releases on Sep 14, 2026No releases on Sep 21, 2026No releases on Sep 28, 2026No releases on Oct 5, 20261 release on Oct 12, 2026No releases on Oct 19, 2026No releases on Oct 26, 2026No releases on Nov 2, 2026No releases on Nov 9, 2026
TuesdayNo releases on Aug 4, 2026No releases on Aug 11, 2026No releases on Aug 18, 2026No releases on Aug 25, 2026No releases on Sep 1, 2026No releases on Sep 8, 2026No releases on Sep 15, 2026No releases on Sep 22, 2026No releases on Sep 29, 2026No releases on Oct 6, 2026No releases on Oct 13, 2026No releases on Oct 20, 2026No releases on Oct 27, 2026No releases on Nov 3, 2026No releases on Nov 10, 2026
WednesdayNo releases on Aug 5, 2026No releases on Aug 12, 2026No releases on Aug 19, 2026No releases on Aug 26, 2026No releases on Sep 2, 20261 release on Sep 9, 2026No releases on Sep 16, 2026No releases on Sep 23, 2026No releases on Sep 30, 2026No releases on Oct 7, 2026No releases on Oct 14, 20261 release on Oct 21, 2026No releases on Oct 28, 2026No releases on Nov 4, 2026No releases on Nov 11, 2026
ThursdayNo releases on Aug 6, 2026No releases on Aug 13, 2026No releases on Aug 20, 2026No releases on Aug 27, 2026No releases on Sep 3, 2026No releases on Sep 10, 2026No releases on Sep 17, 2026No releases on Sep 24, 2026No releases on Oct 1, 2026No releases on Oct 8, 2026No releases on Oct 15, 2026No releases on Oct 22, 2026No releases on Oct 29, 2026No releases on Nov 5, 2026No releases on Nov 12, 2026
FridayNo releases on Aug 7, 2026No releases on Aug 14, 2026No releases on Aug 21, 2026No releases on Aug 28, 2026No releases on Sep 4, 2026No releases on Sep 11, 2026No releases on Sep 18, 2026No releases on Sep 25, 2026No releases on Oct 2, 2026No releases on Oct 9, 2026No releases on Oct 16, 2026No releases on Oct 23, 2026No releases on Oct 30, 2026No releases on Nov 6, 2026No releases on Nov 13, 2026
SaturdayNo releases on Aug 8, 2026No releases on Aug 15, 2026No releases on Aug 22, 2026No releases on Aug 29, 2026No releases on Sep 5, 2026No releases on Sep 12, 2026No releases on Sep 19, 2026No releases on Sep 26, 2026No releases on Oct 3, 2026No releases on Oct 10, 2026No releases on Oct 17, 2026No releases on Oct 24, 2026No releases on Oct 31, 2026No releases on Nov 7, 2026No releases on Nov 14, 2026

15 releases in the last year, busiest day 2

Branches

1.3
1.3.0
1.2
1.2.1

Changelog

Filter releases by branch
50 of 50 releases

1.3.0

Latest
Added 8
  • Added sessionStorage support via WebSessionStorage for temporary data persistence within a single browser tab
  • Added localStorage support via WebLocalStorage with cross-tab event notifications and synchronization
  • Added Origin Private File System support via WebOpfsStorage featuring asynchronous file I/O and cross-tab notifications
  • Added the androidx.datastore:datastore-tink artifact providing encryption support using the Tink library
  • Added AeadSerializer to encrypt and decrypt data using Authenticated Encryption with Associated Data (AEAD)
  • Added support for androidx.tracing on the Android target platform
  • Introduced DataStore.Builder<T> as a modern, scalable alternative to DataStoreFactory that requires a CoroutineContext instead of a CoroutineScope
  • Added baseline profiles to datastore for enhanced startup performance
Changed 2
  • Made the DataStore.Builder, ReThrowCorruptionHandler and InterProcessCoordinator APIs public
  • Added underlying file path information to CorruptionException messages to improve debuggability during parsing failures
Fixed 1
  • Corrected potential data loss in GuavaDataStore by enforcing strict First-In-First-Out ordering for updates

From AndroidX DataStore

Web Storage Support: Introduced KMP web storage options, enabling flexible data persistence across web targets: sessionStorage (WebSessionStorage): Allows temporary data persistence within a single browser tab. localStorage (WebLocalStorage): Enables persistent storage with cross-tab event notifications and synchronization. Origin Private File System (WebOpfsStorage): Provides file-system support via OPFS, featuring asynchronous file I/O and cross-tab notifications. Encryption Support (datastore-tink): Added the new androidx.datastore:datastore-tink artifact, which provides encryption support using the Tink library. It introduces AeadSerializer to encrypt and decrypt data using Authenticated Encryption with Associated Data (AEAD). Tracing Support: Added support for androidx.tracing on the Android target platform. DataStore.Builder API: Introduced DataStore.Builder as the modern, scalable alternative to DataStoreFactory. It requires a CoroutineContext instead of a CoroutineScope for improved structured concurrency. Baseline Profiles: Added baseline profiles to datastore for enhanced startup performance. DataStore.Builder, ReThrowCorruptionHandler and InterProcessCoordinator APIs have been updated to public. Added underlying file path information to CorruptionException messages to improve debuggability during parsing failures. Corrected potential data loss in GuavaDataStore by enforcing strict First-In-First-Out (FIFO) ordering for updates.

View originalPermalink
How 1.3.0 went

1.3.0-rc01

Changed 2
  • Use WindowCompat#enableEdgeToEdge(Window) instead of EdgeToEdge#enable()
  • androidx.lifecycle:lifecycle-runtime dependency was updated to 2.10.0, which is required for bundled lifecycle runtime lint checks to run with AGP version 9.5.0-alpha04 or later
View originalRead the notes
How 1.3.0-rc01 went

1.3.0-alpha11

Changed 1
  • The underlying file path is now included in CorruptionException messages thrown during DataStore preference parsing failures
View originalRead the notes
How 1.3.0-alpha11 went

1.3.0-alpha10

Changed 1
  • GeneralSecurityException in AeadSerializer is now wrapped in CorruptionException for better CorruptionHandler integration
View originalRead the notes
How 1.3.0-alpha10 went

1.3.0-alpha09

Changed 2
  • Made ReThrowCorruptionHandler public
  • Made tracing lifecycle consistent with system tracing
View originalRead the notes
How 1.3.0-alpha09 went

1.3.0-alpha08

Added 5
  • Added support for Origin Private File System (OPFS) in DataStore for web platforms, introducing WebOpfsStorage
  • Added architectural support for asynchronous file I/O on web platforms via OPFS
  • Added cross-tab notifications using the BroadcastChannel API for web DataStore
  • Added distributed locking via the native Web Locks API for exclusive write access on web DataStore
  • Introduced WebLocalStorage and WebSessionStorage APIs for explicit storage type management in web environments
View originalRead the notes
How 1.3.0-alpha08 went

1.3.0-alpha07

Added 4
  • Introduced the new androidx.datastore:datastore-tink artifact providing encryption support for DataStore using the Tink library
  • Introduced the AeadSerializer, a Serializer<T> wrapper that uses Tink's Authenticated Encryption with Associated Data (AEAD) to encrypt and decrypt data, available on JVM and Android targets
  • Introduced DataStore.Builder<T> as the scalable alternative to DataStoreFactory
  • Added setCorruptionHandler to DataStore.Builder, allowing users to provide their own corruption handling logic
Changed 1
  • The DataStore.Builder API requires initialization with a CoroutineContext instead of a CoroutineScope to improve structured concurrency and let callers define execution behavior without binding DataStore to the caller's scope lifecycle
View originalRead the notes
How 1.3.0-alpha07 went

1.3.0-alpha06

Added 2
  • DataStore now supports androidx.tracing on the Android target platform.
  • A DataStore can be created with tracing by providing a androidx.tracing.Tracer instance to the DataStoreFactory.createWithTracing() function.
View originalRead the notes
How 1.3.0-alpha06 went

1.3.0-alpha05

Added 2
  • Baseline profiles added to DataStore.
  • WASM/JS support in DataStore via localStorage, enabling cross-tab event notifications and synchronization as an advantage over the existing sessionStorage implementation.
View originalRead the notes
How 1.3.0-alpha05 went

1.3.0-alpha04

Added 1
  • Added a utility copy function that can be used to update data for Preferences DataStore.
Fixed 1
  • Resolved an issue where binary data could be malformed during storage by replacing UTF-8 string handling with Base64 encoding for Web.
View originalRead the notes
How 1.3.0-alpha04 went

1.3.0-alpha03

Fixed 2
  • Fixed issue with failing renaming of temp DataStore file
  • Fixed issue to prevent dropped updates during concurrent read/write where a race condition between a new collector on DataStore.data and a concurrent updateData call could cause the collector to miss the new value
View originalRead the notes
How 1.3.0-alpha03 went

1.3.0-alpha02

Added 1
  • Adds a js() target to androidx.datastore
Fixed 1
  • Enforces FIFO ordering for updates in GuavaDataStore
View originalRead the notes
How 1.3.0-alpha02 went

1.2.0

Added 7
  • Added the new datastore-guava module to expose Java and Guava ListenableFuture friendly APIs via GuavaDataStore
  • Added multiprocess support within GuavaDataStore
  • Added an overload for GuavaDataStore.from that accepts a Java Executor instead of a CoroutineContext and uses androidx.core.util.Function
  • Added support for using DataStore during Direct Boot mode
  • Added createInDeviceProtectedStorage() in DataStoreFactory to create a DataStore within Device Protected storage
  • Added deviceProtectedDataStore() in DataStoreDelegate to create a DataStore within Device Protected storage
  • Added PreferencesFileSerializer that implements androidx.datastore.core.Serializer for use with FileStorage
Changed 1
  • Defined the default constructor for ReplaceFileCorruptionHandler for common code usage
Fixed 3
  • Fixed java.lang.UnsatisfiedLinkError when using DataStore in an app optimized with R8 but not using the standard ProGuard file
  • Fixed an issue where GuavaDataStore operations could incorrectly run on the calling thread instead of the specified IO dispatcher
  • Resolved a FileNotFoundException in OkioStorage at startup by adding a second attempt to read data in case of a race condition
View originalRead the notes
How 1.2.0 went

1.3.0-alpha01

Added 1
  • Added KMP Web support in DataStore by using the sessionStorage API, allowing DataStore to persist data temporarily within a single browser tab.
View originalRead the notes
How 1.3.0-alpha01 went

1.2.0-beta01

Added 2
  • Make CorruptionHandler public
  • Add an overload for GuavaDataStore.from that takes in an Executor instead of a CoroutineContext
Changed 1
  • Use androidx.core.util.Function in GuavaDataStore
Fixed 2
  • Fix java.lang.UnsatisfiedLinkError when using DataStore in an app which is optimized with R8 but which is not using getDefaultProguardFile('android-proguard-optimize.txt')
  • Fix issue where GuavaDataStore operations could incorrectly run on the calling thread (e.g., the main thread) instead of the specified IO dispatcher
View originalRead the notes
How 1.2.0-beta01 went

1.1.7

Fixed 1
  • Fixed missing Proguard rules in the Android artifact of datastore-preferences-core
View originalRead the notes
How 1.1.7 went

1.2.0-alpha02

Added 2
  • Added multiprocess support in GuavaDataStore.
  • Added a helper method to create a GuavaDataStore from a DataStore.
Changed 2
  • Projects released with Kotlin 2.0 require KGP 2.0.0 or newer to be consumed.
  • Replaced the existing datastore overload with a delegate method to initialize a DataStore to be used during direct boot.
View originalRead the notes
How 1.2.0-alpha02 went

1.1.6

Changed 1
  • Switched build.gradle to use the older android DSL instead of androidLibrary to fix the Gradle metadata issue
Fixed 1
  • Resolved an issue where Gradle metadata was broken in version 1.1.5, causing some DataStore Android methods to no longer be visible in clients' builds
View originalRead the notes
How 1.1.6 went

1.1.5

Changed 1
  • The default Storage for PreferencesDataStore has been changed from OkioStorage to FileStorage by introducing a PreferencesFileSerializer
Fixed 1
  • To mitigate CorruptionException issues in PreferencesDataStore, the default Storage has been changed from OkioStorage to FileStorage
View originalRead the notes
How 1.1.5 went

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.
View originalRead the notes
How 1.2.0-alpha01 went

1.1.4

Changed 1
  • Replaced the default storage implementation from OkioStorage to FileStorage to improve reliability by reducing CorruptionException.
View originalRead the notes
How 1.1.4 went

1.1.3

Fixed 1
  • Resolved a FileNotFoundException issue in OkioStorage encountered at app startup by making a second read attempt when the initial read fails, in case a race condition occurred due to the file being created by a different process during the initial read
View originalRead the notes
How 1.1.3 went

1.1.2

Fixed 2
  • Improved warm read latency for DataStore.data.first() by 8x
  • ReplaceFileCorruptionHandler can now be created from KMP common code
View originalRead the notes
How 1.1.2 went

1.1.1

Fixed 1
  • Mitigated a Linux false alarm on the 'Resource deadlock would occur' error in a corner case where multiple DataStore instances attempt to write from different processes, by backing off the file lock.
View originalRead the notes
How 1.1.1 went

1.1.0

Added 3
  • DataStore now supports multiple processes accessing the same file, with support for observability across processes.
  • The new Storage interface allows customizing how data models are stored or serialized.
  • DataStore can now be used in Kotlin Multiplatform projects.
View originalRead the notes
How 1.1.0 went

1.1.0-rc01

Fixed 2
  • Fixed the performance degradation where updateData calls didn't optimize on disk writes if the new data is the same as the old data
  • Fixed a race condition where MultiProcess DataStore might miss invalidations during initialization
View originalRead the notes
How 1.1.0-rc01 went

1.1.0-beta02

Changed 2
  • DataStore only collects update notifications when it is observed, improving performance
  • Tests using the Coroutines testing library may throw UncompletedCoroutinesError; pass TestScope.backgroundScope when initializing DataStore in tests to avoid this
Fixed 2
  • Nested updateData calls on the same DataStore instance no longer deadlock
  • DataStore no longer throws IOException when it fails to delete SharedPreferences during migration
View originalRead the notes
How 1.1.0-beta02 went

1.1.0-beta01

androidx.datastore:datastore-:1.1.0-beta01 is released with no changes since 1.1.0-alpha07. Version 1.1.0-beta01 contains these commits.

View originalRead the notes
How 1.1.0-beta01 went

1.1.0-alpha07

Changed 1
  • MultiProcessDataStoreFactory methods are no longer experimental
Removed 1
  • The @ExperimentalMultiProcessDataStore annotation has been removed entirely
View originalRead the notes
How 1.1.0-alpha07 went

1.1.0-alpha06

Changed 1
  • The createSingleProcessCoordinator factory method now receives a file path (String, java.io.File and okio.Path) to be consistent with createMultiProcessCoordinator.
View originalRead the notes
How 1.1.0-alpha06 went

1.1.0-alpha05

Added 1
  • DataStore FileStorage is publicly available now, so clients can provide custom params.
Changed 1
  • OkioStorage constructor now accepts an InterProcessCoordinator so it can be used on Android with MultiProcessCoordinator.
Fixed 4
  • MultiProcessCoordinator is now able to monitor multiple files in the same directory.
  • Duplicate files are now detected even when file paths are not normalized.
  • RxDataStore#isDisposed now returns correct values.
  • Missing proguard configuration for the datastore-preferences-core artifact is now included.
View originalRead the notes
How 1.1.0-alpha05 went

1.1.0-alpha04

Fixed 1
  • Avoid a race condition where DataStore's data flow might emit an older value after an update.
View originalRead the notes
How 1.1.0-alpha04 went

1.1.0-alpha03

Changed 1
  • Removed dependency constraints from Maven artifacts to work around a build problem in Kotlin Native targets.
View originalRead the notes
How 1.1.0-alpha03 went

1.1.0-alpha02

Added 5
  • DataStore can now be used in Kotlin Multiplatform (KMM) projects
  • A new factory method in androidx.datastore.core.MultiProcessDataStoreFactory creates DataStore instances with Storage objects for file operations
  • A new interface InterProcessCoordinator helps multiple DataStore instances communicate across processes
  • InterProcessCoordinator is added to StorageConnection in datastore-core
  • The @JvmDefaultWithCompatibility annotation is added
Changed 4
  • Multi-process features are moved from androidx.datastore.multiprocess to androidx.datastore.core
  • APIs in datastore-core MultiProcessDataStoreFactory now use Storage
  • Public APIs in datastore-multiprocess are moved to datastore-core
  • PreferencesSerializer is exposed from datastore-preferences-core
View originalRead the notes
How 1.1.0-alpha02 went

1.1.0-alpha01

Added 4
  • Support multi-process use cases where data consistency is guaranteed among DataStore instances across processes
  • Add MultiProcessDataStoreFactory#create to create DataStore instances that support multi-process use
  • New Storage interface which allows the underlying storage mechanism for DataStore to be switched out, with implementations for java.io and okio
  • DataStore factories have new methods which accept a Storage object
Changed 3
  • Change APIs in datastore-core MultiProcessDataStoreFactory to use Storage
  • Move public APIs in datastore-multiprocess to datastore-core
  • Expose PreferencesSerializer from datastore-preferences-core
View originalRead the notes
How 1.1.0-alpha01 went

1.0.0

Jetpack DataStore is a data storage solution that allows you to store key-value pairs or typed objects with protocol buffers. DataStore uses Kotlin coroutines and Flow to store data asynchronously, consistently, and transactionally.

View originalRead the notes
How 1.0.0 went

1.0.0-rc02

Changed 1
  • Clarify that SharedPreferencesMigration does not run if there are no keys.
Fixed 1
  • Fix bug where SharedPreferencesMigration constructed with MIGRATE_ALL_KEYS would throw an exception if the key requested does not yet exist.
View originalRead the notes
How 1.0.0-rc02 went

1.0.0-rc01

Fixed 1
  • Fixed a bug where a .java file was inadvertently added into the final jar
View originalRead the notes
How 1.0.0-rc01 went

1.0.0-beta01

Fixed 1
  • Fixed a bug where DataStore delegates could result in leaking contexts
Removed 1
  • Removed JVM overloads for Kotlin-only methods
View originalRead the notes
How 1.0.0-beta01 went

1.0.0-alpha08

Added 3
  • Migration that depends on context can now be added to the dataStore and preferencesDataStore property delegates
  • Helper functions to get the name of the file when no longer using the datastore delegate or context.createDataStore
  • Property delegates for RxDataStore users
Changed 2
  • Serializer writeTo and readFrom are now suspending; Serializer implementations must update their functions to be suspend functions
  • Restrictions are enforced on public usage of experimental APIs
View originalRead the notes
How 1.0.0-alpha08 went

1.0.0-alpha07

Added 1
  • A new SharedPreferencesMigration constructor allows injecting SharedPreferences, enabling migration from EncryptedSharedPreferences or direct boot SharedPreferences to DataStore.
Changed 2
  • The RxDataStore functions are now on an RxDataStore class instead of extension functions on DataStore.
  • DataStore now throws an exception when multiple active DataStore instances exist for the same file, so DataStore should be managed as a Singleton to avoid exceptions when reading or writing.
Fixed 1
  • Cancellation behavior is fixed when the caller scope is cancelled.
Removed 1
  • The Context.createDataStore extension function has been removed and replaced with the globalDataStore property delegate, which should be called once at the top level of a Kotlin file so there is only one instance.
View originalRead the notes
How 1.0.0-alpha07 went

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
  • Hid the CorruptionHandler interface, which is no longer public because the DataStore factory only accepts a ReplaceFileCorruptionHandler
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")
View originalRead the notes
How 1.0.0-alpha06 went

1.0.0-alpha05

Changed 2
  • Add better documentation and exceptions around concurrent writes from datastores
  • Allow, but do not require, the OutputStream passed to Serializer.writeTo() to be closed
View originalRead the notes
How 1.0.0-alpha05 went

1.0.0-alpha04

Fixed 1
  • Fixed a packaging issue that caused a java.lang.NoClassDefFoundError crash in Preference DataStore 1.0.0-alpha03.
View originalRead the notes
How 1.0.0-alpha04 went

1.0.0-alpha03

Added 1
  • Preferences now supports double values, which is useful when more precision than floats is needed
Fixed 1
  • Resolved a critical issue that caused Preference DataStore to crash with java.lang.NoClassDefFoundError; users should use 1.0.0-alpha04 instead
View originalRead the notes
How 1.0.0-alpha03 went

1.0.0-alpha02

Added 3
  • Added a safeguard against mutation in datastore-core to prevent breaking DataStore usage with non-proto and non-preferences types
  • Added a toString method to Preferences to make the current state easier to debug
  • Added an exception to safeguard against misuse of DataStore.Preferences
Fixed 1
  • Fixed a bug that would cause the app to crash on start up
View originalRead the notes
How 1.0.0-alpha02 went

1.0.0-alpha01

Added 2
  • Proto DataStore for storing typed objects backed by protocol buffers
  • Preferences DataStore for storing key-value pairs
View originalRead the notes
How 1.0.0-alpha01 went
View all

Discussion