Skip to content

Ble - Bluetooth LE communication#108

Merged
sameerasw merged 9 commits into
developfrom
ble
May 19, 2026
Merged

Ble - Bluetooth LE communication#108
sameerasw merged 9 commits into
developfrom
ble

Conversation

@sameerasw
Copy link
Copy Markdown
Owner

This pull request introduces core Bluetooth Low Energy (BLE) sync support to the app, enabling BLE-based communication between devices. It adds the necessary BLE permissions and features, implements a BLE connection manager and protocol constants, provides utilities for chunking data for BLE transmission, and integrates BLE permission handling into the permissions UI. It also updates relevant data models and state management to support BLE connection status.

The most important changes are:

BLE Sync Core Implementation:

  • Added new BleConnectionManager, BleConstants, BleChunkUtil, and BleTransportBridge classes to manage BLE connections, define protocol constants, handle chunked BLE data transmission, and bridge BLE transport logic. (app/src/main/java/com/sameerasw/airsync/data/ble/BleConnectionManager.kt [1] BleConstants.kt [2] BleChunkUtil.kt [3] BleTransportBridge.kt [4]
  • Integrated BLE connection manager into the application lifecycle (AirSyncApp) and exposed it for app-wide use. (app/src/main/java/com/sameerasw/airsync/AirSyncApp.kt app/src/main/java/com/sameerasw/airsync/AirSyncApp.ktR13-R27)

Permissions and Manifest Updates:

  • Added all required BLE permissions and features to the Android manifest and implemented runtime BLE permission request logic in the permissions activity and UI. (AndroidManifest.xml [1] PermissionsActivity.kt [2] [3] [4]

Settings and State Management:

  • Extended DataStoreManager to persist BLE sync and auto-connect settings, and updated UiState to reflect BLE connection state. (DataStoreManager.kt [1] [2]; UiState.kt [3]

Model Enhancements:

  • Updated device and media models to include fields needed for BLE sync, such as albumArtLite and device name. (DeviceStatus.kt [1] [2]; MacDeviceStatus.kt [3]

These changes lay the groundwork for robust BLE-based device communication and synchronization within the app.

@sameerasw sameerasw self-assigned this May 19, 2026
@sameerasw sameerasw added the enhancement New feature or request label May 19, 2026
@sameerasw sameerasw merged commit 6066017 into develop May 19, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in AirSync Features and Bugs May 19, 2026
Mudit200408 pushed a commit to Mudit200408/airsync-android that referenced this pull request May 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant