Commit Graph
529 Commits
Author SHA1 Message Date
Michachatz 5c8ea6cf1c Merge pull request #128 from Michatec/renovate/composebom
fix(deps): update dependency androidx.compose:compose-bom to v2026.11.01
2026-11-22 17:09:18 +01:00
Michatec 79114473d0 chore: update compile and target SDK versions to 372 2026-11-22 17:09:03 +01:00
Michachatz fb324b15fe Merge pull request #125 from Michatec/renovate/java
chore(deps): update dependency java-jdk to v25.0.5+100000002.0.lts
2026-11-22 00:57:58 +01:00
Michachatz b5c1271563 Merge pull request #126 from Michatec/renovate/appfunctions
fix(deps): update appfunctions to v1.0.0
2026-11-22 00:57:33 +01:00
Michachatz aeb80c7027 Merge pull request #127 from Michatec/renovate/gradle-9.x
chore(deps): update gradle to v9.9.2
2026-11-22 00:57:15 +01:00
Michachatz 39afa680dc Merge pull request #129 from Michatec/renovate/material3
fix(deps): update dependency androidx.compose.material3:material3 to v1.5.0
2026-11-22 00:56:22 +01:00
Michachatz d9a852fec2 Merge pull request #130 from Michatec/renovate/agp
chore(deps): update agp to v9.5.2
2026-11-22 00:55:49 +01:00
renovate[bot] 1c27f90de9 chore(deps): update agp to v9.5.2 2026-11-20 16:01:18 +00:00
renovate[bot] 14b4c7fd61 fix(deps): update dependency androidx.compose.material3:material3 to v1.5.0 2026-11-20 08:16:54 +00:00
renovate[bot] 7aac3bdd8a fix(deps): update dependency androidx.compose:compose-bom to v2026.11.01 2026-11-20 02:16:54 +00:00
renovate[bot] 11969ba0d0 chore(deps): update gradle to v9.9.2 2026-11-20 02:16:48 +00:00
renovate[bot] c2ac22b874 fix(deps): update appfunctions to v1.0.0 2026-11-19 05:46:50 +00:00
renovate[bot] cb7ac5759f chore(deps): update dependency java-jdk to v25.0.5+100000002.0.lts 2026-11-19 05:46:46 +00:00
Michatec 223718ffff chore(manifest): hardcode CONTROL_RADIO permission and add octet-stream mime type 2026-11-16 14:21:56 +01:00
Michatec 4d31007879 docs: add nightly builds link to README 2026-11-16 13:49:59 +01:00
Michatec 2895e0905d feat: require custom CONTROL_RADIO permission for RadioApiService
- Define `com.michatec.radio.permission.CONTROL_RADIO` permission in `AndroidManifest.xml` and protect `RadioApiService`.
- Add localized string resources for the new IPC permission label and description.
- Update AIDL and REST API documentation with permission requirements and WebSocket schemas.
- Update bug report template and README links.
2026-11-16 13:39:31 +01:00
Michatec 2d52ae5cee docs: add documentation for retrieving station cover and station images in README 2026-11-15 18:49:54 +01:00
Michatec ac3b280eec refactor: update AIDL API to return raw image bytes instead of URIs
- Update `IRadioApi` to replace `getCurrentStationImageUri` and `getStationImageUriByUuid` with methods returning `byte[]`.
- Update `AIDL_API.md` documentation to reflect the API changes and specify that raw image bytes are now returned.
- Update `RadioController` and sample usage to handle `ByteArray` return types and default to empty arrays on failure.
2026-11-15 18:19:28 +01:00
Michatec 0e736db75c feat: optimize station image retrieval for IPC
- Update `ImageHelper.getStationImageAsByteArray` to support downsampling and JPEG compression for IPC transmission.
- Add `SIZE_STATION_IMAGE_API` constant for consistent image scaling.
- Refactor `PlayerService` to use downsampled images when fetching via `Binder` API.
- Improve thread safety in `PlayerService` station image lookup by consolidating I/O operations and avoiding main-thread access when possible.
2026-11-15 17:34:40 +01:00
Michatec c3d351f646 refactor: remove AIDL custom permission requirement
- Remove `com.michatec.radio.permission.CONTROL_RADIO_API` definition and usage.
- Update `RadioApiService` to remove the permission constraint and add `tools:ignore="ExportedService"`.
- Remove corresponding documentation and usage in `AIDL_API.md`.
2026-11-15 17:20:10 +01:00
Michatec 4d1b2ed365 refactor: remove protectionLevel from CONTROL_RADIO_API permission
Remove the redundant `android:protectionLevel="normal"` attribute from the custom AIDL permission declaration in the manifest.
2026-11-15 17:09:26 +01:00
Michatec 02c088fd6b refactor: optimize thread management in PlayerService image fetching
- Remove `runBlocking(Main)` from `getCurrentStationImage` to avoid blocking the main thread.
- Update `getStationImageByUuid` to use `Dispatchers.IO` for file operations.
- Add check to perform image loading on the main thread if already called from the main looper.
2026-11-15 16:50:03 +01:00
Michatec 66b6e58631 fix: switch runBlocking context to Main for image retrieval in PlayerService
- Change `runBlocking` dispatcher from `IO` to `Main` in `getCurrentStationImage` and `getStationImageByUuid` to ensure safe access to player state and service context.
2026-11-15 16:35:56 +01:00
Michatec d744b777ec fix: offload image retrieval to Dispatchers.IO in PlayerService
- Replace `runBlocking(Main)` with `runBlocking(Dispatchers.IO)` in `getCurrentStationImage` and `getStationImageByUuid` to prevent potential UI thread blocking during file I/O.
2026-11-15 16:24:23 +01:00
Michatec cecb97f5a1 refactor: remove unused Uri import in RadioApiService 2026-11-15 16:08:31 +01:00
Michatec b565a0ff58 feat: migrate station image retrieval from URI to byte array
- Update AIDL interface methods `getCurrentStationImage` and `getStationImageByUuid` to return `byte[]` instead of `String`.
- Implement `ImageHelper.getStationImageAsByteArray` to handle the conversion of station image URIs to byte arrays.
- Refactor `PlayerService` and `RadioApiService` to support binary image data retrieval, removing redundant file/URI logic in the service wrapper.
2026-11-15 16:07:56 +01:00
Michatec 5ecc19852c Merge remote-tracking branch 'origin/main' 2026-11-15 15:37:40 +01:00
Michatec 6c3b6ba21d fix: use runBlocking(Main) for thread dispatching in PlayerService binder methods
- Replace custom CountDownLatch and Handler synchronization with `runBlocking(Main)` in PlayerService binder methods (`isPlaying`, `getCurrentStationName`, `getCurrentMetadata`).
- Add intent query for `IRadioApi` to package visibility configuration in AIDL documentation.
2026-11-15 15:37:29 +01:00
Michachatz c367dc737d Merge pull request #124 from Michatec/renovate/ksp-monorepo
chore(deps): update dependency com.google.devtools.ksp to v2.3.14
2026-11-15 15:21:39 +01:00
renovate[bot] 27df2a1111 chore(deps): update dependency com.google.devtools.ksp to v2.3.14 2026-11-15 14:20:34 +00:00
Michatec 2619675118 feat: implement WebDAV cloud sync, AppFunctions, and Quick Settings tile
- Add `WebDavSyncHelper` and `CryptoHelper` to support encrypted WebDAV cloud backup and restore in settings.
- Implement `RadioAppFunctionService` and voice search intent handling for system and assistant integrations.
- Add `RadioTileService` to provide a Quick Settings tile for playback control and status.
- Expand `IRadioApi` AIDL interface to support fetching station cover image URIs.
2026-11-15 15:19:51 +01:00
Michachatz 4833fe07b4 Merge pull request #123 from Michatec/renovate/gradle-9.x
chore(deps): update gradle to v9.9.1
2026-11-11 07:45:03 +01:00
renovate[bot] b4685280b8 chore(deps): update gradle to v9.9.1 2026-11-11 01:03:43 +00:00
Michachatz 2c7e12d661 Merge pull request #122 from Michatec/renovate/gradle-9.x
chore(deps): update gradle to v9.9.0
2026-11-08 18:02:36 +01:00
renovate[bot] 6e7183b144 chore(deps): update gradle to v9.9.0 2026-11-06 20:44:17 +00:00
Michachatz d39d601518 Merge pull request #121 from Michatec/renovate/agp
chore(deps): update agp to v9.5.1
2026-11-06 16:17:19 +01:00
renovate[bot] d0b527be00 chore(deps): update agp to v9.5.1 2026-11-06 00:48:52 +00:00
Michatec 1a214d1683 feat: implement station stream health checking
- Add `StationHealthChecker` to asynchronously test station stream availability, response codes, and latency.
- Add long-click listener on the save button in `CollectionAdapter` to trigger health checks and display results via `Snackbar`.
- Add localized string resources for stream health check status UI messages.
- Update `provider_paths.xml` to include internal files and cache directory paths for FileProvider.
2026-11-05 18:12:39 +01:00
Michatec 50cd0b99a7 docs: update Shizuku integration description in README
- Clarify minimum version requirement (v15.2) for Shizuku support.
- Expand explanation of benefits regarding battery optimization and background playback reliability.
2026-11-01 11:51:21 +01:00
Michatec 0986735348 docs: add Shizuku integration section to README 2026-11-01 11:48:59 +01:00
Michatec e3e1e1f10a docs: update REST API minimum version in API_DOC.md 2026-11-01 11:37:42 +01:00
Michatec 81a2c630b3 docs: add comprehensive developer documentation for REST and AIDL APIs
- Create `docs/API_DOC.md` as an entry point for developer integrations.
- Create `docs/REST_API.md` documenting endpoints, authentication, and QR code pairing.
- Rename existing `API_DOC.md` to `docs/AIDL_API.md` to standardize documentation structure.
- Update `README.md` to include links and descriptions for both API surfaces.
2026-11-01 11:33:39 +01:00
Michachatz b1cfd63b54 Update SECURITY.md 2026-11-01 00:11:47 +01:00
Michatec d69a8dfe77 fix: station UUID existence validation before playback 2026-10-31 23:53:43 +01:00
Michatec a55dc6acd1 docs: document AIDL Developer API in README 2026-10-31 23:43:04 +01:00
Michatec d80e5e2e17 fix: dispatch PlaybackController calls to main thread 2026-10-31 23:24:23 +01:00
Michatec ba1dd4e9eb fix: remove runBlocking(Main) from PlaybackController to prevent main thread deadlock 2026-10-31 23:09:36 +01:00
Michatec 0f6f774e73 feat: implement intent-based playback control for PlayerService
- Add handling for `PLAY` and `PLAY_STATION` actions in `PlayerService.onStartCommand`.
- Update `RadioApiService` to trigger playback via intents when `playbackController` is not yet initialized.
- Add `startPlayerService` helper method in `RadioApiService` to encapsulate service starting logic.
2026-10-31 22:42:41 +01:00
Michatec e315c7a037 test: include Android resources in unit tests
- Set `isIncludeAndroidResources` to `true` within `testOptions` in `app/build.gradle.kts`.
2026-10-31 22:35:52 +01:00
Michatec a9a228bba2 refactor: remove artificial delay when starting playback in RadioApiService
- Remove 500ms delay when calling `play()` and `playStationByUuid()`.
- Remove unused `Handler`, `Looper`, and `Keys` imports.
- Reorder helper imports for consistency.
2026-10-31 22:25:05 +01:00