Skip to content

Escalate deprecation of Bluetooth.availability#977

Merged
twyatt merged 4 commits into
mainfrom
twyatt/bluetooth-availability-deprecation
Jul 8, 2026
Merged

Escalate deprecation of Bluetooth.availability#977
twyatt merged 4 commits into
mainfrom
twyatt/bluetooth-availability-deprecation

Conversation

@twyatt

@twyatt twyatt commented Jul 30, 2025

Copy link
Copy Markdown
Member

Note

Medium Risk
Intentional breaking API change: consumers still on Bluetooth.availability must migrate before upgrading, and the property no longer reports radio state on any target.

Overview
Escalates the planned removal of Bluetooth.availability by setting DeprecationLevel.ERROR on Bluetooth.availability, Availability, and platform Reason types (Android, Apple, JVM; web Reason entries were already deprecated without ERROR on the enum shell).

Removes all platform bluetoothAvailability implementations—Android adapter/location flows, Apple CBCentralManager state mapping, JVM flowOf(Available), and Web availabilitychanged listeners—and drops the expect val bluetoothAvailability from common code.

Bluetooth.availability is no longer a real Flow; its getter throws error("Deprecated"), so any remaining use fails at compile time (ERROR) or immediately at runtime if accessed.

Reviewed by Cursor Bugbot for commit 4df0a21. Configure here.

@twyatt twyatt added the major Changes that should bump the MAJOR version number label Jul 30, 2025
@twyatt twyatt force-pushed the twyatt/bluetooth-availability-deprecation branch from 36739a6 to d86e295 Compare July 30, 2025 07:46
@twyatt twyatt force-pushed the twyatt/bluetooth-availability-deprecation branch from d86e295 to aba693b Compare July 30, 2025 08:14
@twyatt twyatt marked this pull request as ready for review July 30, 2025 21:25
@twyatt twyatt requested a review from a team as a code owner July 30, 2025 21:25
@twyatt twyatt added this to the 0.40.0 milestone Aug 4, 2025
@twyatt twyatt modified the milestones: 0.40.0, 0.41.0 Aug 28, 2025
@twyatt twyatt enabled auto-merge (squash) July 8, 2026 23:20
@twyatt twyatt merged commit c20ae64 into main Jul 8, 2026
9 checks passed
@twyatt twyatt deleted the twyatt/bluetooth-availability-deprecation branch July 8, 2026 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

major Changes that should bump the MAJOR version number

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants