Escalate deprecation of Bluetooth.availability#977
Merged
Conversation
36739a6 to
d86e295
Compare
d86e295 to
aba693b
Compare
QuantumRand
approved these changes
Jul 31, 2025
cedrickcooke
approved these changes
Aug 4, 2025
davertay-j
approved these changes
Aug 5, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Medium Risk
Intentional breaking API change: consumers still on
Bluetooth.availabilitymust migrate before upgrading, and the property no longer reports radio state on any target.Overview
Escalates the planned removal of
Bluetooth.availabilityby settingDeprecationLevel.ERRORonBluetooth.availability,Availability, and platformReasontypes (Android, Apple, JVM; webReasonentries were already deprecated without ERROR on the enum shell).Removes all platform
bluetoothAvailabilityimplementations—Android adapter/location flows, AppleCBCentralManagerstate mapping, JVMflowOf(Available), and Webavailabilitychangedlisteners—and drops theexpect val bluetoothAvailabilityfrom common code.Bluetooth.availabilityis no longer a realFlow; its getter throwserror("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.