Skip to content

Releases: tfcporciuncula/flow-preferences

1.3.1

06 Aug 11:41
Compare
Choose a tag to compare

The key and defaultValue of a preference are now public and part of the Preference interface 046c734

1.3.0

22 Jul 14:07
Compare
Choose a tag to compare

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 to NullableObjectPreference by calling flowSharedPreferences.getNullableObject().
  • The Serializer interface isn't defined within ObjectPreference anymore, since ObjectPreference is internal now. Instead, it's a standalone interface with no particular namespace.

1.2.0

25 Jun 12:26
Compare
Choose a tag to compare
  • Update coroutines to 1.3.7 db6429e
  • Update sample to have a clear button dd06bc8
  • Update compileSdk to 30 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

09 Mar 09:29
Compare
Choose a tag to compare
  • Update coroutines to 1.3.4 fa43a3e
  • Add some @JvmOverloads to allow Java clients to take advantage of default values when creating preferences 20cfceb

1.1.0

29 Feb 11:45
Compare
Choose a tag to compare
  • Allow a CoroutineContext to be passed when creating a new preference, so clients can control where setAndCommit() and deleteAndCommit() 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

29 Feb 10:57
Compare
Choose a tag to compare

Initial release.