Releases: tfcporciuncula/flow-preferences
Releases · tfcporciuncula/flow-preferences
1.3.1
1.3.0
- Update coroutines to 1.3.8 cb9e238
- Add explicit nullability support #7 d9a2fd5
- Limit public API 2d0a49b
There's two (small) breaking changes:
- Now that we support nullability explicitly,
ObjectPreference
doesn't support nullables anymore. If you were taking advantage of that, you can switch toNullableObjectPreference
by callingflowSharedPreferences.getNullableObject()
. - The
Serializer
interface isn't defined withinObjectPreference
anymore, sinceObjectPreference
isinternal
now. Instead, it's a standalone interface with no particular namespace.
1.2.0
- Update coroutines to 1.3.7 db6429e
- Update sample to have a clear button dd06bc8
- Update
compileSdk
to30
e7ce463
This last point comes with an important behavior change. Starting on Android R, onSharedPreferenceChanged()
is triggered when clear()
is called, so the library has been updated to notify subscribers when a clear
happens. This will only happen if you're targeting Android R and the device is running Android R. You can observe the new behavior running the sample on an Android R device.
TL;DR: starting from this version, subscribers will be notified when clear()
is called on Android R+.
1.1.1
1.1.0
- Allow a
CoroutineContext
to be passed when creating a new preference, so clients can control wheresetAndCommit()
anddeleteAndCommit()
will run #3 - Update coroutines to 1.3.3 524ac2f
- Improve exception message when an emission in a sync collector fails b52ed12
- Add
isNotSet()
as part of the preference API 2308dc2
1.0.0
Initial release.