refactor(ble): Replace custom BLE implementation with Nordic #3595
  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.
  
    
  
    
Work In Progress - This is not yet functional.
This pull request migrates the Bluetooth radio interface implementation to use the new Nordic BLE client library, replacing the previous custom Bluetooth logic. The main changes include introducing the new
NordicBleInterfaceclass and updating related factories, specs, dependency injection bindings, and service logic to use this new implementation. Additionally, the legacyBluetoothWorkQueueand related classes have been removed, as they are no longer needed with the new BLE library.Migration to Nordic BLE client library:
NordicBleInterfaceclass, which uses the Nordic BLE client library for scanning, connecting, service/characteristic discovery, and data transfer, replacing the previous custom Bluetooth logic. (app/src/main/java/com/geeksville/mesh/repository/radio/NordicBleInterface.kt)app/build.gradle.kts)Refactoring factories, specs, and dependency injection:
NordicBleInterfaceinstead ofBluetoothInterface, updating their names and references throughout the codebase. (app/src/main/java/com/geeksville/mesh/repository/radio/NordicBleInterfaceFactory.kt,app/src/main/java/com/geeksville/mesh/repository/radio/NordicBleInterfaceSpec.kt) [1] [2]NordicBleInterfaceSpecfor the Bluetooth interface ID. (app/src/main/java/com/geeksville/mesh/repository/radio/RadioRepositoryModule.kt)Service logic updates:
NordicBleInterfaceinstead ofBluetoothInterfacefor starting and stopping the radio interface. (app/src/main/java/com/geeksville/mesh/repository/radio/RadioInterfaceService.kt)Removal of legacy Bluetooth work queue:
BluetoothWorkQueueand related work item classes, which are now obsolete due to the migration to the Nordic BLE library. (app/src/main/java/com/geeksville/mesh/service/BluetoothWorkQueue.kt)