Skip to content

StreamVault is a TV-first free IPTV player for Android TV built with Kotlin, Jetpack Compose, Room, Hilt, and Media3.

feat: Complete Phase 1 source decomposition and synchronize with develop branch

David Nashash7b6d55267ccf
diff --git a/docs/COMPOSE_REDUCTION_AND_UI_ARCHITECTURE_PLAN.md b/docs/COMPOSE_REDUCTION_AND_UI_ARCHITECTURE_PLAN.md
index 3c248c3d..5002004d 100644
--- a/docs/COMPOSE_REDUCTION_AND_UI_ARCHITECTURE_PLAN.md
+++ b/docs/COMPOSE_REDUCTION_AND_UI_ARCHITECTURE_PLAN.md
@@ -9,7 +9,7 @@ Scope: Android application UI, navigation, build structure, and UI-facing module
Phase 0 is complete for the available development environment. The build, artifact, memory, Compose compiler, Macrobenchmark, and live-playback baseline is recorded in [`COMPOSE_REDUCTION_BASELINE.md`](COMPOSE_REDUCTION_BASELINE.md), and the Compose compiler diagnostic outputs are generated under `app/build/reports/compose-compiler/`. Physical-device measurements and a stable provider stream are explicitly listed as follow-up limitations, not treated as successful release-quality measurements.
-The first Phase 1 refactor has also started: `PlayerControlsOverlayHost` was moved out of `PlayerScreen.kt` into its own file without changing its parameters, callbacks, routes, or playback behavior. The player Back-navigation priority is now also isolated in the platform-free `PlayerBackNavigationPolicy`, with focused unit tests. Android lifecycle, Picture-in-Picture cleanup, and keep-screen-on effects are now isolated in `PlayerLifecycleHost` while preserving the original effect keys and callback order. The placement-preserving player modal-host slice is now implemented in `PlayerModalHosts.kt` and wired into `PlayerScreen.kt`; its compile, assemble, unit-test, structural, and two-channel long-duration playback checks pass, while the remaining manual and baseline instrumentation gates are recorded as incomplete in the execution plan. Provider setup decomposition has now started with behavior-neutral extraction of file-import support, Stalker form models, source tabs, action buttons, password glyph/text-field behavior, the Jellyfin form/QR helper, the sync-progress dialog, policy option rows, phone pairing, import dialogs/cards, and Stalker request-rule editing; the root still owns draft state, launchers, effects, and ViewModel calls. These changes reduced the root screens' coordination responsibilities while preserving the existing callback behavior. `:app:compileDebugKotlin` and the app unit-test suite pass.
+The Phase 1 source decomposition is now code-complete: `PlayerControlsOverlayHost`, `PlayerLifecycleHost`, the platform-free `PlayerBackNavigationPolicy`, the placement-preserving `PlayerModalHosts`, and the event-time-tested `PlayerInputPolicy` are extracted from the player root; ProviderSetup is split into provider-specific forms, dialogs, import helpers, and components; and AppNavigation is split into startup/external-navigation policy, adapters, contracts, and graph registration. These changes preserve the existing callback behavior and keep packages and Gradle modules unchanged. The remaining manual and baseline instrumentation gates are recorded as incomplete in the execution plan.
The full `:app:testDebugUnitTest` task now passes after the test fixture was updated to provide the already-required `m3uClassificationRepository` mock. No production behavior was changed; existing coroutine opt-in warnings remain.
@@ -19,6 +19,8 @@ The AppNavigation split is now complete for Phase 1: startup resolution, route/r
The review follow-up also closed player input freshness regressions: input and Back decisions now build their snapshots at event time, including the ViewModel-backed numeric-channel buffer, with regression tests covering digit-entry updates followed by immediate confirmation or Back. Focused player, provider, and navigation unit tests pass. Long-duration live playback and manual TV smoke checks remain required Phase 1 gates whenever the environment is available; this workspace currently has no `adb` executable/device, so those gates remain explicitly unvalidated.
+This branch was synchronized with the current local `develop` in merge commit `c2a2658f`. The merge was conflict-free and included the `1.0.18` changelog, grouped VOD performance/pagination work, dashboard shelf updates, orientation handling, and data-maintenance changes; none overlapped the Phase 1 extraction boundaries, so no compatibility code changes were required. The merged tree passes `:app:testDebugUnitTest` and `:app:assembleDebug`. `:data:testDebugUnitTest` runs 1,038 tests but retains the pre-existing `ProviderExecutionArchitectureTest` failure at `data/src/test/java/com/streamvault/data/provider/ProviderExecutionArchitectureTest.kt:276` (expected dependency budget 40, actual 42); `SyncManager` was not part of the merge.
+
## 1. Executive summary
StreamVault should reduce Compose by making it an intentional UI technology choice instead of the default location for all application behavior. Compose should remain the primary technology for dynamic, focus-heavy TV experiences such as Live TV, EPG, playback overlays, media shelves, and MultiView. Form-heavy and mostly static surfaces such as provider setup, settings, backup/import, and simple onboarding should be evaluated for classic Views after their state and navigation boundaries are cleaned up.