StreamVault is a TV-first free IPTV player for Android TV built with Kotlin, Jetpack Compose, Room, Hilt, and Media3.
Kotlin iptv-player
fix(live): satisfy compose lint after extraction
David Nashash0cf3927cc3f3
diff --git a/docs/superpowers/plans/2026-08-28-live-feature-extraction.md b/docs/superpowers/plans/2026-08-28-live-feature-extraction.mdindex 6be315d7..d658e7a6 100644--- a/docs/superpowers/plans/2026-08-28-live-feature-extraction.md+++ b/docs/superpowers/plans/2026-08-28-live-feature-extraction.md@@ -1050,7 +1050,7 @@ committed together in `8a3e8cd1`.- Consumes: fully wired feature graph and moved tests/resources.- Produces: one live production owner, exact resource/dependency audit, and fresh automated verification evidence.-- [ ] **Step 1: Prove no legacy Home/EPG production remains**+- [x] **Step 1: Prove no legacy Home/EPG production remains**```powershellrg --files app/src/main/java/com/streamvault/app/ui/screens/home app/src/main/java/com/streamvault/app/ui/screens/epg@@ -1059,7 +1059,7 @@ rg -n "com\.streamvault\.app\.ui\.screens\.(home|epg)" app/src/main app/src/testExpected: the old directories are absent; any remaining string occurs only in generated profile output or recorded validation evidence and is handled in Task 11.-- [ ] **Step 2: Audit feature dependencies and forbidden imports**+- [x] **Step 2: Audit feature dependencies and forbidden imports**```powershell./gradlew.bat :feature:live:verifyFeatureLiveBoundary :feature:live:dependencies --configuration debugRuntimeClasspath --no-daemon --console=plain --warning-mode=none@@ -1068,7 +1068,7 @@ rg -n "com\.streamvault\.(app|feature\.)|MainActivity|NavController|NavHostContrExpected: boundary PASS; no forbidden source match; project dependencies match the five approved modules.-- [ ] **Step 3: Audit every temporary implementation import**+- [x] **Step 3: Audit every temporary implementation import**```powershellrg -n "^import com\.streamvault\.data\." feature/live/src/main@@ -1083,7 +1083,7 @@ For every moved key, compare app and feature values, plurals, and formatting plaExpected: no missing resource at compile time and no changed format argument ordering.-- [ ] **Step 5: Run the full focused structural bundle**+- [x] **Step 5: Run the full focused structural bundle**```powershell./gradlew.bat :feature:live:verifyFeatureLiveBoundary :feature:live:testDebugUnitTest :feature:live:lintDebug :feature:live:compileDebugAndroidTestKotlin :feature:live:assembleDebug :app:compileDebugKotlin :app:compileDebugUnitTestKotlin :app:testDebugUnitTest :app:assembleDebug --no-daemon --console=plain --warning-mode=none@@ -1129,7 +1129,7 @@ git commit -m "refactor(live): remove legacy app presentation ownership"- Consumes: installed debug app, API 36 TV emulator, at least two valid live HLS channels, and feature connected tests.- Produces: exact route/focus/EPG/preview/MultiView evidence plus two long-duration channel captures satisfying the repository protocol.-- [ ] **Step 1: Verify ADB and emulator readiness without clearing data**+- [x] **Step 1: Verify ADB and emulator readiness without clearing data**```powershell$env:ANDROID_HOME='E:\androidSdk'@@ -1140,7 +1140,7 @@ $env:ANDROID_HOME='E:\androidSdk'Expected: one authorized boot-complete TV emulator and available package service. Record device/AVD/API/ABI; do not uninstall or clear user data.-- [ ] **Step 2: Run the complete feature connected suite**+- [x] **Step 2: Run the complete feature connected suite**```powershell./gradlew.bat :feature:live:connectedDebugAndroidTest --no-daemon --console=plain --warning-mode=none@@ -1160,7 +1160,7 @@ Using D-pad first, then available touch/mouse paths, cover source/category switcCapture named 1920x1080 screenshots and sanitized logs. Record unavailable fixture-dependent actions as open.-- [ ] **Step 5: Capture channel 1 at two-second cadence**+- [x] **Step 5: Capture channel 1 at two-second cadence**Create an explicit directory such as `validation/phase5_live/task10-live-playback/channel-1/`. After selecting and naming the channel, run 61 captures:@@ -1175,7 +1175,7 @@ $adb='E:\androidSdk\platform-tools\adb.exe'Expected: 61 nonempty PNGs spanning approximately two minutes.-- [ ] **Step 6: Prove channel 1 progression and health**+- [x] **Step 6: Prove channel 1 progression and health**Compute SHA-256 hashes, unique-hash count, media session, and log scans:@@ -1189,11 +1189,11 @@ rg -n "retry category=|first-frame-success|prepare resolvedStreamType=HLS|read-pExpected: frames continue changing, media session is `PLAYING` with `error=null`, HLS evidence exists, and no fatal/stuck/unintended fallback match exists.-- [ ] **Step 7: Repeat the full capture for a different live channel**+- [x] **Step 7: Repeat the full capture for a different live channel**Use `channel-2/`, clear logcat immediately before starting, and repeat Steps 5-6 without shortening the window. Prefer a different provider/source characteristic when available.-- [ ] **Step 8: Record acceptance honestly**+- [x] **Step 8: Record acceptance honestly**For both channels record name, provider, URL redaction policy, 61 screenshot count, two-second interval, unique hash count, first/last timestamps, media-session state/error, HLS prepare/read/first-frame lines, recovery lines, and every fatal/stuck/fallback match.diff --git a/feature/live/src/main/java/com/streamvault/feature/live/epg/LiveEpgScreen.kt b/feature/live/src/main/java/com/streamvault/feature/live/epg/LiveEpgScreen.ktindex 61e9e28a..7ce542dc 100644--- a/feature/live/src/main/java/com/streamvault/feature/live/epg/LiveEpgScreen.kt+++ b/feature/live/src/main/java/com/streamvault/feature/live/epg/LiveEpgScreen.kt@@ -188,6 +188,7 @@ fun LiveEpgScreen(var pendingLockedAction by remember { mutableStateOf<LockedGuideAction?>(null) }val scope = rememberCoroutineScope()val context = LocalContext.current+ val incorrectPinMessage = stringResource(R.string.home_incorrect_pin)val notificationPermissionGate = rememberNotificationPermissionGate(onNotificationsBlocked = { message ->android.widget.Toast.makeText(context, message, android.widget.Toast.LENGTH_SHORT).show()@@ -674,7 +675,7 @@ fun LiveEpgScreen(pendingLockedAction = nullaction?.let(::executeLockedGuideAction)} else {- pinError = context.getString(R.string.home_incorrect_pin)+ pinError = incorrectPinMessage}}},diff --git a/feature/live/src/main/java/com/streamvault/feature/live/home/LiveHomeDialogsHost.kt b/feature/live/src/main/java/com/streamvault/feature/live/home/LiveHomeDialogsHost.ktindex a4e35464..cfc30e8f 100644--- a/feature/live/src/main/java/com/streamvault/feature/live/home/LiveHomeDialogsHost.kt+++ b/feature/live/src/main/java/com/streamvault/feature/live/home/LiveHomeDialogsHost.kt@@ -6,7 +6,6 @@ import androidx.compose.runtime.mutableStateOfimport androidx.compose.runtime.rememberimport androidx.compose.runtime.setValueimport androidx.compose.ui.Modifier-import androidx.compose.ui.platform.LocalContextimport androidx.compose.ui.res.stringResourceimport com.streamvault.feature.live.Rimport com.streamvault.feature.live.presentation.home.HomeUiState@@ -70,7 +69,7 @@ fun LiveHomeDialogsHost(resolveProviderForChannel: (Channel) -> Provider?,scope: CoroutineScope) {- val context = LocalContext.current+ val incorrectPinMessage = stringResource(R.string.home_incorrect_pin)var pendingM3uSeriesChannel by remember { mutableStateOf<Channel?>(null) }var pendingM3uCategory by remember { mutableStateOf<Category?>(null) }var pendingM3uSeriesCategory by remember { mutableStateOf<Category?>(null) }@@ -99,7 +98,7 @@ fun LiveHomeDialogsHost(is Result.Error -> {onPinErrorChange(if (unlockResult.message == "Incorrect PIN") {- context.getString(R.string.home_incorrect_pin)+ incorrectPinMessage} else {unlockResult.message}@@ -129,7 +128,7 @@ fun LiveHomeDialogsHost(onPendingUnlockCategoryChange(null)onPendingUnlockChannelChange(null)} else {- onPinErrorChange(context.getString(R.string.home_incorrect_pin))+ onPinErrorChange(incorrectPinMessage)}}},diff --git a/feature/live/src/main/java/com/streamvault/feature/live/home/LiveHomeScreen.kt b/feature/live/src/main/java/com/streamvault/feature/live/home/LiveHomeScreen.ktindex 69ea025f..b334e9ae 100644--- a/feature/live/src/main/java/com/streamvault/feature/live/home/LiveHomeScreen.kt+++ b/feature/live/src/main/java/com/streamvault/feature/live/home/LiveHomeScreen.kt@@ -797,11 +797,10 @@ fun LiveHomeScreen()Crossfade(- targetState = uiState.selectedCategory?.id,+ targetState = uiState.selectedCategory,animationSpec = tween(durationMillis = 200),label = "category_content_transition"- ) { _ ->- val selectedCategory = uiState.selectedCategory+ ) { selectedCategory ->var ignoreNextClick by remember { mutableStateOf(false) }var draggingChannel by remember { mutableStateOf<Channel?>(null) }