Commit Graph
226 Commits
Author SHA1 Message Date
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 8298a1cae8 refactor: import Collection in RemoteControlServer 2026-09-29 16:41:45 +02: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
Michatec bf02145c79 chore: simplify license resource exclusions using wildcard 2026-09-17 13:38:31 +02:00
Michachatz a305caf376 Fix exclude path for LICENSE.base64.txt 2026-09-17 13:19:39 +02:00
Michachatz d0f713d4bf Remove exclusion for LICENSE.base64.txt 2026-09-17 13:10:39 +02:00
Michachatz 10c9759587 Remove exclusion for LICENSE.webbit.txt 2026-09-17 13:03:43 +02:00
Michachatz 2e7c7d72cf Exclude LICENSE.jbzip2.txt from packaging resources 2026-09-17 12:56:03 +02:00
Michatec 98754f9782 refactor(ui): optimize theme calculation and handle cast session termination
- Wrap color scheme calculation in `remember` to prevent unnecessary recomputations in `AppTheme`.
- Add a `SessionManagerListener` to `CustomCastControllerDialogFragment` to automatically dismiss the dialog when a cast session ends or is suspended.
- Clean up imports in `CustomCastControllerDialogFragment`.
2026-09-16 19:03:47 +02:00
Michatec 45dafe486d feat(ui): migrate cast dialogs to Compose and refactor app theme logic
- Migrate `CustomCastChooserDialogFragment` and `CustomCastControllerDialogFragment` from View-based to Jetpack Compose.
- Create `CastComposables.kt` containing new Compose UI for Cast device selection and volume control.
- Remove legacy XML layouts `dialog_cast_chooser.xml`, `dialog_cast_connected.xml`, and `item_cast_device.xml`.
- Refactor `AppTheme.kt` to simplify color scheme logic and wrap content in a `Surface`.
- Add `ic_shader_24dp.xml` and update the shader effect preference icon in `SettingsFragment`.
- Adjust `windowLightStatusBar` and `windowLightNavigationBar` in night theme styles.
2026-09-16 18:45:36 +02:00
Michatec 7345c3e52f feat: add shader effect toggle in settings
- Add `PREF_SHADER_EFFECT` key and helper method to `PreferencesHelper`.
- Implement visibility and animation logic in `LayoutHolder` based on the shader effect preference.
- Add "Shader Effect" switch preference to `SettingsFragment`.
- Update `PlayerFragment` to refresh views when the shader effect setting changes.
- Add localized strings for the new setting in multiple languages.
2026-09-16 18:01:36 +02:00
Michatec df498d8592 Bump version to 15.2 and update Java compatibility to version 21 2026-08-29 18:21:22 +03:00
Michatec b7fb058546 Enhance notification system with custom sound and refactor logging tags
- Added a custom notification sound resource and configured `AudioAttributes` for the notification channel.
- Localized the notification channel name using string resources across multiple languages.
- Increased notification channel importance from `LOW` to `DEFAULT`.
- Refactored `TAG` constants in `ExtrasHelper` and `NativeAudioProcessor` to use dynamic class names.
2026-08-29 18:16:51 +03:00
Michatec 1eb0ad554b feat(ui): improve accessibility in AboutFragment
Add focusable modifiers to interactive elements in AboutFragment to improve navigation support.

- Added `.focusable()` to the logo, contact cards, and external link elements.
- Cleaned up imports and method signatures in AboutFragment.kt.
2026-08-17 19:34:28 +02:00
Michatec 408df31946 feat(ui): add About screen and fix metadata history handling
- Add AboutFragment with Compose UI including app info, FAQ, supported
  formats, Android TV controls, and credits
- Add navigation from Settings to About screen
- Fix PlayerService to skip empty/"null" metadata entries
- Improve PreferencesHelper.loadMetadataHistory() with type-safe
  deserialization and null filtering
- Add material-icons-extended dependency and localized strings
2026-08-17 16:11:15 +02:00
Michatec 7d69846bb0 feat(ui): implement RadioTheme with custom color support
Created a centralized `RadioTheme` component that handles system dark mode and custom background colors based on user preferences. Updated `LicenseFragment` to use the new theme.
2026-08-17 14:35:34 +02:00
Michatec 23d9b4e599 feat(ui): refactor fragment structure and implement Compose-based License screen
- Relocate all fragments to a new `.fragments` subpackage.
- Enable Jetpack Compose and add dependencies for Material3 and `aboutLibraries`.
- Implement `LicenseFragment` using Compose to display third-party library information.
- Update the navigation graph and localization strings to support the new License screen.
- Simplify station bitrate display logic in `LayoutHolder`.
- Add `composeCompiler` and `aboutLibraries` plugins to the build configuration.
2026-08-17 13:38:07 +02:00
Michatec aa7f545437 feat(network): standardize User-Agent header across network requests 2026-08-16 22:27:00 +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 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
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
Michatec 14f2eeabe1 feat(remote-control): add remote authentication plugin and enhance API routes 2026-08-10 22:56:56 +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
Michatec 6ad627964b feat(websocket): add WebSocket support for real-time status updates and enhance API documentation 2026-08-06 19:44:25 +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
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
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 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