Skip to content

fix: Pre-release cleanup of manifest, resource leaks, and dependencies#382

Merged
d4rken merged 1 commit intomainfrom
fix/pre-release-cleanup
Feb 9, 2026
Merged

fix: Pre-release cleanup of manifest, resource leaks, and dependencies#382
d4rken merged 1 commit intomainfrom
fix/pre-release-cleanup

Conversation

@d4rken
Copy link
Copy Markdown
Member

@d4rken d4rken commented Feb 9, 2026

Summary

Pre-release code review fixes before cutting a release from the current main branch (which includes the WorkManager→ForegroundService migration and battery display crash hardening).

  • Fix BleScanResultReceiver manifest package name: .bluetooth.BleScanResultReceiver.common.bluetooth.BleScanResultReceiver — the manifest entry didn't match the actual class location
  • Fix HandlerThread leak in BluetoothManager2: Add handlerThread.quitSafely() before close(e) when registerReceiver() throws, since awaitClose never executes in that path
  • Cache battery values in MonitorNotifications: Align with the hardening pattern from 5aa36b1 — cache battery properties to local variables before use to prevent concurrent modification issues
  • Remove duplicate fragment-ktx dependency: Remove stale 1.4.1 declaration, keep 1.6.1, and update fragment-testing to match
  • Remove deprecated lifecycle-extensions: lifecycle-extensions:2.2.0 has been deprecated since 2019; all its functionality is covered by the other lifecycle deps already declared

Test plan

  • ./gradlew assembleFossDebug — clean build
  • ./gradlew testFossDebugUnitTest — all tests pass
  • ./gradlew lintFossDebug — no new lint issues (pre-existing errors unchanged)

- Fix BleScanResultReceiver package name in manifest (.bluetooth → .common.bluetooth)
- Fix HandlerThread leak in BluetoothManager2 when registerReceiver() throws
- Cache battery values in MonitorNotifications to match hardening pattern
- Remove duplicate fragment-ktx dependency and align fragment-testing version
- Remove deprecated lifecycle-extensions dependency
@d4rken d4rken added the bug Something isn't working label Feb 9, 2026
@d4rken d4rken merged commit 12d2c4d into main Feb 9, 2026
9 checks passed
@d4rken d4rken deleted the fix/pre-release-cleanup branch February 9, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant