- 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
- Multi-process features are moved from androidx.datastore.multiprocess to androidx.datastore.core renamed · inferred, marked in the notes below
- APIs in datastore-core MultiProcessDataStoreFactory now use Storage signature changed · inferred, marked in the notes below
- Public APIs in datastore-multiprocess are moved to datastore-core
- PreferencesSerializer is exposed from datastore-preferences-core
1 change to check, marked in the notes below
From AndroidX DataStore
You can now use DataStore in KMM projects. Note that non-Android targets of DataStore are still experimental but we decided to merge versions to make it easier for developers to try them. Multi process features are moved from androidx.datastore.multiprocess to androidx.datastore.core. Add a new factory method in androidx.datastore.core.MultiProcessDataStoreFactory to create DataStore instances with Storage objects for file operations. Add a new interface InterProcessCoordinator that helps multiple DataStore instances communicate across processes. Note that, Multi-Process implementation of InterProcessCoordinator is only available on Android. Add InterProcessCoordinator to StorageConnection in datastore-core interface ( I555bb) Change APIs in datastore-core MultiProcessDataStoreFactory to use Storage. ( Iac02f) Move public APIs in datastore-multiprocess to datastore-core ( I76d7c) Exposed PreferencesSerializer from datastore-preferences-core ( I4b788) Adding @JvmDefaultWithCompatibility annotation ( I8f206) renamed · inferred signature changed · inferred