Commit Graph
473 Commits
Author SHA1 Message Date
Michatec 33ff113989 feat: implement metadata history tracking and UI updates
- Add `updateMetadata` function to `LayoutHolder` to handle metadata persistence in `metadataHistory` and update UI views.
- Implement `onMediaMetadataChanged` in `PlayerFragment` to trigger metadata updates from the media controller.
- Integrate history management logic to save unique metadata entries and enforce maximum history size via `PreferencesHelper`.
2026-10-31 21:01:56 +01:00
Michatec eed4b097b8 fix: improve station name retrieval for media metadata updates
- Update `PlayerService.kt` to fetch the station name from the collection using `mediaId` via `CollectionHelper`.
- Fall back to the existing artist metadata if the retrieved station name is empty.
2026-10-31 20:42:39 +01:00
Michatec 34aa8cde03 feat: update media metadata dynamically during playback
- Update the current `MediaItem` in `PlayerService.kt` when new metadata is received.
- Set the original station name as the artist and the new metadata string as the title and display title.
- Replace the current media item in the player to ensure UI components reflect the updated metadata.
2026-10-31 20:34:22 +01:00
Michatec 0125e97307 fix: execute PlaybackController methods on the main thread
- Wrap all overridden methods in `RadioApiService.PlaybackController` with `runBlocking(Main)`.
- Ensure player operations and media metadata retrievals in `PlayerService` execute safely on the main thread.
2026-10-31 19:57:42 +01:00
Michatec 143484a37f feat: add AIDL API service and refactor Shizuku power management
- Introduce the `IRadioApi` AIDL interface and `RadioApiService` to support external IPC playback control and station metadata retrieval.
- Connect `PlayerService` to `RadioApiService` using an internal `PlaybackController` callback interface.
- Extract background battery optimization logic from `Shizuku` into a dedicated `RadioPowerManager` class featuring atomic backup, restoration, and rollback capabilities.
- Update `ShizukuFragment` to execute power optimization tasks asynchronously via Kotlin coroutines.
- Enable AIDL feature support in Gradle, add documentation in `API_DOC.md`, and include `junit` and `mockito-core` test dependencies.
2026-10-31 19:35:16 +01:00
Michachatz a55930d00a Merge pull request #120 from Michatec/renovate/ktor-monorepo
fix(deps): update ktor monorepo to v3.6.1
2026-10-29 19:51:08 +01:00
Michachatz 7adeb4f5e9 Merge pull request #119 from Michatec/renovate/agp
chore(deps): update agp to v9.5.0
2026-10-29 19:50:35 +01:00
Michatec f1810dcd20 feat: add Shizuku integration for background playback optimization
- Implement `Shizuku` helper and `ShizukuFragment` using Jetpack Compose to manage system permissions and Doze mode battery optimization whitelisting.
- Add Shizuku API and provider dependencies, manifest provider configuration, vector icon, and localized strings.
- Add Shizuku preference entry to `SettingsFragment` and navigation graph.
- Update QR code verification logic to show a toast message on Android TV instead of hiding the preference.
2026-10-29 19:48:21 +01:00
renovate[bot] 9db93bf4f9 fix(deps): update ktor monorepo to v3.6.1 2026-10-29 16:39:27 +00:00
renovate[bot] efe89a01eb chore(deps): update dependency com.android.application to v9.5.0 2026-10-28 16:10:06 +00:00
Michatec 8640368a50 refactor: cleanup constants and simplify preference logic
- Remove unused `ACTION_REMOTE_SERVER_ERROR` and `ACTION_REMOTE_AUTH_FAILED` constants from `Keys.kt`.
- Simplify `constantTimeEquals` implementation in `SettingsFragment.kt`.
- Refactor `preferenceEnableEditingStreamUri` enablement logic to use a concise boolean expression.
2026-10-24 19:43:13 +02:00
Michachatz 06d09fa31a Merge pull request #118 from Michatec/renovate/gson
fix(deps): update dependency com.google.code.gson:gson to v2.15.0
2026-10-24 18:04:09 +02:00
renovate[bot] a4ddee1b7e fix(deps): update dependency com.google.code.gson:gson to v2.15.0 2026-10-24 06:33:19 +00:00
Michatec 575af5f53a refactor: replace LocalBroadcastManager with AppEventBus for internal communication 2026-10-22 14:47:52 +02:00
Michachatz 6570f673f9 Merge pull request #117 from Michatec/renovate/java-jdk-25.x
chore(deps): update dependency java-jdk to v25.0.5+8.0.lts
2026-10-22 12:53:50 +02:00
renovate[bot] 4ec2301821 chore(deps): update dependency java-jdk to v25.0.5+8.0.lts 2026-10-22 09:52:05 +00:00
Michachatz 627627b54e Merge pull request #116 from Michatec/renovate/palettektx
fix(deps): update dependency androidx.palette:palette-ktx to v1.1.0
2026-10-21 21:57:01 +02:00
renovate[bot] bdde2395f9 fix(deps): update dependency androidx.palette:palette-ktx to v1.1.0 2026-10-21 18:22:15 +00:00
Michachatz c2719bcaae Merge pull request #114 from Michatec/renovate/gradle-9.x
chore(deps): update gradle to v9.8.2
2026-10-20 20:45:08 +02:00
Michachatz ea51ba61e9 Merge pull request #115 from Michatec/renovate/major-playservicescastframework
fix(deps): update dependency com.google.android.gms:play-services-cast-framework to v23
2026-10-20 20:44:55 +02:00
renovate[bot] 512d663f9f fix(deps): update dependency com.google.android.gms:play-services-cast-framework to v23 2026-10-20 11:00:43 +00:00
renovate[bot] 45e702849d chore(deps): update gradle to v9.8.2 2026-10-20 11:00:38 +00:00
Michachatz 6ab1d4bf6d Merge pull request #113 from Michatec/renovate/aboutlibraries
fix(deps): update aboutlibraries to v15.3.0
2026-10-14 22:39:29 +02:00
renovate[bot] 52ed72a3b9 fix(deps): update aboutlibraries to v15.3.0 2026-10-13 17:08:36 +00:00
Michachatz c1330d637a Merge pull request #112 from Michatec/renovate/kotlin-monorepo
chore(deps): update kotlin monorepo to v2.4.21
2026-10-10 18:15:33 +02:00
renovate[bot] 9b99f89e4f chore(deps): update kotlin monorepo to v2.4.21 2026-10-08 10:12:26 +00:00
Michachatz ec9acfe8da Merge pull request #111 from Michatec/renovate/gradle-9.x
chore(deps): update gradle to v9.8.1
2026-10-08 06:12:01 +02:00
renovate[bot] 5165fd5958 chore(deps): update gradle to v9.8.1 2026-10-07 21:43:28 +00:00
Michatec 36b108f1d6 Merge remote-tracking branch 'origin/main' 2026-09-30 09:31:29 +02:00
Michatec 65045c4387 docs: update pairing documentation and adjust settings UI layout
- Rename "server app" to "Radio app" in pairing documentation.
- Simplify security warning in documentation.
- Fix grammar (short-lived).
- Unconditionally add QR verification preference to the Remote Control settings category.
2026-09-30 09:31:10 +02:00
Michachatz a46f227a33 Enable hardware acceleration in AndroidManifest.xml 2026-09-30 07:24:57 +02:00
Michatec 75e839d5cc feat: implement QR code pairing for remote control
- Add `QrCaptureActivity` to support scanning QR codes for authentication.
- Implement `PairingManager` to handle short-lived pairing sessions.
- Expose new API endpoints for pairing start, status polling, and QR image generation.
- Add UI modal to the web interface for pairing code input and QR code display.
- Increase Gradle JVM heap size to 4096m.
- Include necessary permissions and dependencies for barcode scanning.
2026-09-29 19:38:39 +02:00
Michatec 6f59fd95a9 refactor(layout): rename loading_layout ID to loadingLayout in activity_main.xml 2026-09-29 17:08:59 +02:00
Michatec fe2b0ada5f Merge remote-tracking branch 'origin/main' 2026-09-29 16:43:02 +02:00
Michatec 8298a1cae8 refactor: import Collection in RemoteControlServer 2026-09-29 16:41:45 +02:00
Michachatz b8091000a2 Merge pull request #109 from Michatec/renovate/gradle-9.x
chore(deps): update gradle to v9.8.0
2026-09-25 20:11:55 +02:00
Michachatz dff871c227 Merge pull request #110 from Michatec/renovate/workruntimektx
fix(deps): update dependency androidx.work:work-runtime-ktx to v2.12.0
2026-09-25 20:11:42 +02:00
renovate[bot] 02f0f86788 fix(deps): update dependency androidx.work:work-runtime-ktx to v2.12.0 2026-09-25 03:52:59 +00:00
renovate[bot] b333e618ba chore(deps): update gradle to v9.8.0 2026-09-25 03:52:54 +00:00
Michachatz 984a724979 Merge pull request #107 from Michatec/renovate/corektx
fix(deps): update dependency androidx.core:core-ktx to v1.19.1
2026-09-24 06:44:10 +02:00
Michachatz a899b4bedd Merge pull request #108 from Michatec/renovate/navigation
fix(deps): update dependency androidx.navigation:navigation-fragment-ktx to v2.10.2
2026-09-24 06:44:01 +02:00
renovate[bot] d764924fbd fix(deps): update dependency androidx.navigation:navigation-fragment-ktx to v2.10.2 2026-09-24 04:12:48 +00:00
renovate[bot] 226e4b3ff0 fix(deps): update dependency androidx.core:core-ktx to v1.19.1 2026-09-24 04:12:43 +00:00
Michachatz 56c5eff5f9 Merge pull request #106 from Michatec/renovate/agp
chore(deps): update agp to v9.4.1
2026-09-21 13:59:14 +02:00
renovate[bot] e1761e1d43 chore(deps): update agp to v9.4.1 2026-09-18 23:13:17 +00:00
Michatec 21b5bdacb0 refactor: move web assets into css and js subdirectories 2026-09-17 15:55:10 +02:00
Michatec 8056299177 feat(web): add web streaming support and refactor frontend modules
- Implement `/api/stream` endpoint to provide the current station's audio URI.
- Refactor the frontend into modular `api.js`, `ui.js`, and `script.js` files.
- Add a "Listen on Web" feature to play radio streams directly in the browser.
- Update the backend to serve and whitelist new JavaScript assets.
- Add multi-language translations for the web streaming toggle.
2026-09-17 15:50:32 +02:00
Michatec 642018b965 chore: convert launcher and banner icons from PNG to WebP 2026-09-17 14:11:11 +02:00
Michatec 5e66fc35d3 chore: downgrade Java compatibility to v21 and update packaging excludes 2026-09-17 14:05:27 +02:00
Michatec 0b4f85c9b3 chore: update java-jdk to v25 and exclude native-image resources 2026-09-17 13:52:55 +02:00