Skip to content

Conversation

@sameerasw
Copy link
Owner

This pull request introduces a new "Batteries" feature, including support for Bluetooth and Mac battery monitoring, and adds a widget for displaying battery information. It also updates dependencies, permissions, and internal APIs to support these new features. The main changes are grouped below:

New Batteries Feature and Widget:

  • Added a new "Batteries" feature to the feature registry, including UI integration in FeatureSettingsActivity and associated settings keys in SettingsRepository. This feature provides battery status for Bluetooth devices and Mac computers, and exposes relevant settings. [1] [2] [3] [4]
  • Introduced new widget support using Glance, including dependencies for glance-appwidget and glance-material3, and registered a new BatteriesWidgetReceiver in the manifest to handle battery-related broadcasts and widget updates. [1] [2]
  • Added AirSyncBridgeReceiver to receive Mac battery updates via broadcast and update widget/app state accordingly, with new custom permission for secure communication. [1] [2] [3]

Bluetooth & Mac Battery Monitoring:

  • Added new permissions for Bluetooth battery monitoring (BLUETOOTH_CONNECT, BLUETOOTH_SCAN) and a custom permission for AirSync bridge. Registered these permissions in the manifest and permission registry, and updated the settings repository with keys and methods for storing and retrieving Bluetooth device battery info and widget preferences. [1] [2] [3] [4]

Dependency and Version Updates:

  • Updated versionCode and versionName in build.gradle.kts for a new release, and bumped Material3 dependency to 1.5.0-alpha12 for improved widget and UI support. [1] [2]

Settings and Data Handling Improvements:

  • Excluded AirSync and Mac battery keys from settings export to avoid leaking or persisting stale device-specific data.

Bugfixes and Minor Changes:

  • Fixed a type mismatch in NotificationListener for edge lighting preferences, ensuring float/int handling is robust.

@sameerasw sameerasw self-assigned this Jan 16, 2026
@sameerasw sameerasw added the enhancement New feature or request label Jan 16, 2026
@sameerasw sameerasw merged commit 23ba037 into main Jan 16, 2026
1 check passed
@github-project-automation github-project-automation bot moved this from Backlog to Done in Essentials Progress Jan 16, 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.

2 participants