Skip to content

0.5.0

Latest
Compare
Choose a tag to compare
@LouisCAD LouisCAD released this 25 Feb 16:51
· 1 commit to main since this release

Version 0.5.0 (2022-02-25)

Updates

BleGattCoroutines was using Deprecated kotlinx.coroutines APIs.
Since this release, it is no longer the case, the library moved to shared flows to replace BroadcastChannel usages.

Deprecations

The APIs that were returning a ReceiveChannel have been deprecated in favor of new APIs that return a Flow instead.
We added ReplaceWith clauses, so Android Studio can do the replacements for you.

Fixes

Previously, if you were using the openNotificationSubscription and the device got disconnected before the channel gets closed, the app would crash when the channel is closed.
The openNotificationSubscription has been deprecated, delegating to its replacement, notifications, which will no longer crash the app in an unrecoverable way, throwing against the Flow collector instead, so that you can catch it if disconnection happens.
See the issue #58 for details.