Download Latest Version 0.5.0 source code.zip (270.1 kB)
Email in envelope

Get an email when there's a new version of BleGattCoroutines

Home / v0.5.0
Name Modified Size InfoDownloads / Week
Parent folder
0.5.0 source code.tar.gz 2022-02-25 218.3 kB
0.5.0 source code.zip 2022-02-25 270.1 kB
README.md 2022-02-25 1.0 kB
Totals: 3 Items   489.5 kB 0

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.

Source: README.md, updated 2022-02-25