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 behavior changed · inferred, marked in the notes below
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
1 change to check, marked in the notes below
From AndroidX DataStore
Bug Fixes Performance improvement on DataStore only collects update notifications when it is observed. ( b/267792241) Note that this change might trigger UncompletedCoroutinesError in your tests if you are using the Coroutines testing library. Make sure you pass the TestScope.backgroundScope when initializing DataStore in your tests to avoid this issue. Fixed the issue of nested updateData calls on the same instance would deadlock. ( b/241760537) Made DataStore no longer throw IOExceptions if it fails to delete SharedPreferences during migration. ( b/195553816) behavior changed · inferred