Commit Graph
372 Commits
Author SHA1 Message Date
Michatec aabff6fe1b chore: enable parallel execution, build caching, and parallel sync in gradle.properties 2026-08-16 20:48:09 +02:00
Michatec ef9a607dbe feat(cast): add volume control to custom cast controller dialog
- Integrated a SeekBar for volume adjustment in the cast connection dialog.
- Implemented a Cast listener to synchronize volume state between the remote device and the UI.
- Added volume icons and updated the dialog layout to include the control bar.
- Managed listener registration and UI updates within the dialog lifecycle.
2026-08-16 20:31:45 +02:00
Michatec 7519153037 feat(binding): implement view binding in custom cast dialogs
Implemented View Binding in `CustomCastChooserDialogFragment` and `CustomCastControllerDialogFragment` to replace manual view lookups and improve lifecycle management.

- Replaced `findViewById` calls with `DialogCastChooserBinding`, `ItemCastDeviceBinding`, and `DialogCastConnectedBinding`.
- Added `onDestroyView` to properly nullify binding references.
- Updated `CastDeviceAdapter` to use View Binding in its `ViewHolder`.
2026-08-16 20:20:05 +02:00
Michatec cd76fa1a08 docs: refine search description in README 2026-08-16 19:55:55 +02:00
Michatec 8df6b73869 feat(cast): implement custom cast dialogs and enhance remote UI
Implemented custom UI for Google Cast device selection and session control, alongside improvements to the web remote interface and playback service.

- Added `CustomCastChooserDialogFragment` and `CustomCastControllerDialogFragment` to provide a custom casting experience.
- Implemented `CustomCastDialogFactory` to integrate custom dialogs into `MediaRouteButton` and `ExpandedControllerActivity`.
- Added marquee scrolling for station names and metadata in the web remote interface.
- Improved `PlayerService` stability with safer resource cleanup in `onDestroy` and enhanced remote playback initialization.
- Updated `CollectionHelper` to include additional metadata fields for better station display during casting.
- Added localized strings for custom cast dialogs across multiple languages.
- Refined `CustomCastExpandedControllerStyle` and associated layouts for better UI consistency.
2026-08-16 19:47:52 +02:00
Michatec e450526692 Optimize MediaController.play to avoid redundant preparation
Added a check to verify if the requested station is already the current media item and in a valid playback state before re-setting the media item and preparing.
2026-08-16 10:47:19 +02:00
Michachatz ccea722a27 Fix formatting issue in README.md 2026-08-16 00:43:22 +02:00
Michatec 40b5685c8a refactor(settings): centralize preference handling and simplify dialogs
Refactored `SettingsFragment` to use `OnSharedPreferenceChangeListener` for updating the UI, replacing multiple individual listeners and custom dialog interfaces. Simplified dialog classes by removing listener callbacks and relying on direct preference storage.

- Refactored `SettingsFragment` to centralize preference updates in `onSharedPreferenceChanged`.
- Removed `LanguageSelectionDialogListener`, `PresetSelectionDialogListener`, and `ThemeSelectionDialogListener` interfaces.
- Added a fallback artwork URL for casting when station-specific images are unavailable.
- Improved `PlayerService` lifecycle management to prevent service termination during casting or remote control active states.
- Modified sleep timer logic to only cancel on explicit user-initiated pauses.
- Updated `RemoteControlServer` to manage the server instance via a companion object.
- Updated README to reflect version 15.1+ features including Android TV and Google Cast support.
- Removed redundant `pause()` call in `MediaController.play` extension.
2026-08-16 00:34:06 +02:00
Michatec 3822be2e38 feat: implement playback resumption and add media playback attribution
- Added `MediaPlayback` attribution tag to `AndroidManifest.xml`.
- Implemented `onPlaybackResumption` in `PlayerService` to restore the last played station upon session restart.
- Updated `onConnect` to grant all available player commands to connecting controllers.
2026-08-11 14:15:05 +02:00
Michachatz d1a5bbff9a Enhance Star History section with responsive images
Updated the Star History section with responsive images for dark and light themes.
2026-08-10 23:06:34 +02:00
Michatec 14f2eeabe1 feat(remote-control): add remote authentication plugin and enhance API routes 2026-08-10 22:56:56 +02:00
Michatec f29f83fea3 Merge remote-tracking branch 'origin/main' 2026-08-10 22:40:16 +02:00
Michatec 04ec33fad5 feat(remote-control): implement authentication for remote control access and update API documentation 2026-08-10 22:39:53 +02:00
Michachatz f41058299c Change JDK distribution from adopt to temurin 2026-08-10 21:36:13 +02:00
Michachatz e266985b30 Merge pull request #88 from Michatec/renovate/media3
fix(deps): update media3 to v1.11.0
2026-08-09 18:36:00 +02:00
renovate[bot] 1be216b110 fix(deps): update media3 to v1.11.0 2026-08-08 07:55:07 +00:00
Michachatz bfa124acb2 Merge pull request #87 from Michatec/renovate/gradle-9.x
chore(deps): update gradle to v9.7.0
2026-08-06 22:15:01 +02:00
Michatec 6ad627964b feat(websocket): add WebSocket support for real-time status updates and enhance API documentation 2026-08-06 19:44:25 +02:00
renovate[bot] b4c6998672 chore(deps): update gradle to v9.7.0 2026-08-06 17:35:15 +00:00
Michachatz 9f3ab17e91 Merge pull request #86 from Michatec/renovate/ktor-monorepo
fix(deps): update ktor monorepo to v3.5.2
2026-08-05 21:54:33 +02:00
renovate[bot] fa5e828aa5 fix(deps): update ktor monorepo to v3.5.2 2026-08-05 19:53:10 +00:00
Michachatz bce6d3e3e9 Merge pull request #85 from Michatec/add-function-webapp-control
Add function webapp control & others
2026-08-05 21:52:38 +02:00
Michatec 41d46de4b8 feat(binding): implement view binding across multiple fragments and dialogs 2026-08-05 21:47:27 +02:00
Michatec 79e79b3811 feat(adapter): replace notifyDataSetChanged with DiffUtil and enhance remote control
Improved UI performance by implementing DiffUtil in CollectionAdapter and SearchResultAdapter. Updated the web remote control to display starred status and provide more accurate playback state reporting.

- Replaced manual notify calls with DiffUtil for efficient list updates.
- Added starred status to the web UI and remote control API.
- Fixed station reordering and expansion logic in CollectionAdapter.
- Improved playback resume logic in PlayerService to handle idle states.
- Prevented potential memory leaks by properly managing TextWatchers in ViewHolders.
2026-08-05 20:08:17 +02:00
Michatec ba404c04d3 feat(collection): add search and favorite filtering
Implemented a search bar and favorites filter for the station list. Added a search button to the station collection card, updated the adapter to handle filtered datasets, and integrated the search UI into both mobile and Android TV layouts. Includes localized strings for multiple languages.
2026-08-05 19:02:53 +02:00
Michatec cb1ca8ef80 update: replacing remote control in SettingsFragment.kt 2026-07-29 20:28:51 +02:00
Michatec 1d13948370 update: remove unused comment 2026-07-29 20:23:58 +02:00
Michatec 75dafd9460 update: disable release shrink ressources 2026-07-29 20:16:43 +02:00
Michatec 228c98c1f3 update: disable release minification 2026-07-29 20:14:05 +02:00
Michatec 8fa73ff6f9 feat: add web remote control with translations
- Implement embedded Ktor remote control server (port 8080)
- Add REST API endpoints for play/pause/next/prev/status
- Add web UI with localization support
- Add remote control preference toggle and settings integration
- Translate remote control strings to all supported languages
2026-07-29 19:45:08 +02:00
Michachatz 925a40fa08 Merge pull request #84 from Michatec/renovate/agp
chore(deps): update agp to v9.3.1
2026-07-28 13:43:42 +02:00
renovate[bot] 2827286e1d chore(deps): update agp to v9.3.1 2026-07-23 15:32:12 +00:00
Michachatz 49f2e1e598 Merge pull request #83 from Michatec/renovate/agp
chore(deps): update agp to v9.3.0
2026-07-15 15:46:52 +02:00
renovate[bot] bdf7551282 chore(deps): update agp to v9.3.0 2026-07-14 19:52:17 +00:00
Michachatz cf75ea1ee8 Merge pull request #82 from Michatec/renovate/kotlin-monorepo
Update dependency org.jetbrains.kotlin.android to v2.4.10
2026-07-14 15:16:55 +02:00
Michatec f6807f9ea5 feat(widget): internationalize favorites widget
Favorites widget now respects the selected language and theme. Added Ukrainian language support and updated the widget preview image.
2026-07-14 15:15:27 +02:00
renovate[bot] 2ffb80ad88 Update dependency org.jetbrains.kotlin.android to v2.4.10 2026-07-14 12:00:21 +00:00
Michatec f0d279895c feat(share): enhance sharing functionality with additional subject and title 2026-07-10 19:46:06 +02:00
Michatec cbfea35ff2 Update Favorites widget dimensions, preview image, and click behavior
- Adjust `minWidth` and `minHeight` and add resize constraints in `favorites_widget_info.xml`.
- Update `previewImage` to use a new dedicated preview drawable.
- Add a `PendingIntent` to the widget root and header to launch `MainActivity`.
2026-07-07 12:45:45 +02:00
Michatec e2ac535308 feat(widget): add favorites widget
Implement a home screen widget for quick access to favorite stations.
Features theme-aware styling, custom theme color support, and updates
on collection or theme changes. Includes localized strings for all
supported languages.
2026-07-07 12:21:31 +02:00
Michachatz 12f8b649ce Fix versionName from '15.0' to '15' 2026-07-04 10:04:57 +02:00
Michatec 6ddd7b2238 Update backup and data extraction rules
- Include shared preferences and external storage in backup configurations.
- Exclude the `temp` directory from external storage backups.
- Add explicit `device-transfer` rules to `data_extraction_rules.xml`.
2026-06-30 16:53:50 +02:00
Michatec 4f94bee129 Update .gitignore and include specific .idea configuration files
- Modify `.gitignore` to allow tracking of selected IDE settings while ignoring the rest of the `.idea` directory.
- Add `runConfigurations.xml`, `vcs.xml`, and `icon.png` to the repository.
- Remove `/captures` from `.gitignore`.
2026-06-30 16:27:48 +02:00
Michatec 56de27466f feat(settings): implement hidden arguments system for advanced configuration
- Add a new "Arguments" field in the Advanced settings section.
- Implement SHA-256 hash-based argument checking in PreferencesHelper.
- Add support for a "Mute" mode (via hash) in PlayerService and SearchResultAdapter.
- Add support for toggling the Android TV overlay (via hash) in MainActivity.
- Update Keys.kt with new preference constants.
- Add translations for "Arguments" in all supported languages.
2026-06-30 16:18:29 +02:00
Michatec 098eca9ea4 add more screenshots to README.md 2026-06-30 14:55:20 +02:00
Michatec b9dd7f0409 metadata: add phone screenshots for radio
- Add four new screenshots to the en-US phone screenshots directory.
2026-06-30 14:51:03 +02:00
Michatec 4f07561239 Update banner and banner foreground icons 2026-06-30 14:13:31 +02:00
Michatec b65b666b81 Add fallback drawing logic to ShaderEffectView
- Implement `drawFallback` using standard Canvas APIs to support devices below Android 13 (API 33).
- Refactor `onDraw` to toggle between shader-based rendering and the fallback animation.
- Update `setColor` to store the current color and trigger a redraw via `invalidate()`.
- Add anti-aliasing to the paint instance and use a reusable `RectF` for fallback rendering.
2026-06-30 13:49:14 +02:00
Michatec 906b23188e feat(ui): add pulsing shader effect to station icon
Introduce a custom `ShaderEffectView` that uses AGSL (`RuntimeShader`) to display a pulsing glow animation behind the station icon during playback on supported Android versions (API 33+).

* **Shader Animation**: Created `ShaderEffectView` to render a hardware-accelerated rounded rectangle glow effect with configurable colors and pulse timing.
* **Layout Integration**: Added the shader view to both mobile and Android TV layouts, ensuring it is properly layered behind the station artwork.
* **Lifecycle Management**: Updated `PlayerFragment` and `LayoutHolder` to start or stop the animation based on playback state and to synchronize the glow color with the station's primary image color.
* **Visibility Logic**: Implementation ensures the effect is only visible when a station image is present and playback is active.
2026-06-26 23:41:40 +02:00
Michatec 7e7c6871ff chore(build): add clean task description and multicast permission
Add a descriptive string to the `clean` task in `build.gradle.kts` and include the `CHANGE_WIFI_MULTICAST_STATE` permission in the Android manifest.

* **Build Script**: Updated the `clean` task to include a description clarifying that it deletes the build directory.
* **Permissions**: Added the `CHANGE_WIFI_MULTICAST_STATE` permission to support network discovery features. Included `tools:ignore="LeanbackUsesWifi"` to suppress Lint warnings regarding Wi-Fi usage on Android TV devices.
2026-06-26 22:24:16 +02:00