Skip to content

Mobile: finish auth (#101) + gate sample fallbacks + player/build polish (#102) - #12

Merged
jobinlawrance merged 9 commits into
developfrom
feat/mobile-auth-fallback-player-polish
Jul 6, 2026
Merged

jobinlawrance merged 9 commits into
developfrom
feat/mobile-auth-fallback-player-polish

Conversation

@jobinlawrance

Copy link
Copy Markdown

Fans out three vetted units, all merged with combined :shared:testAndroidHostTest green.

A — MakD#101 auth finish (26e0261)

  • expectSuccess=true + HttpResponseValidator → typed ViewrrApiException (no more 401 body deserialized as AuthTokens)
  • refresh e2e: persist+send refreshToken, 401→refresh→retry-once coordinator, logout on fail
  • register endpoint + model + sign-in/register toggle UI (email mandatory)
  • sanitized Ktor Logging (redacts Authorization, never logs bodies)
  • tests: AuthErrorAndRefresh 13/13, AuthViewModel 7/7, SessionStore 5/5

B — gate SampleData fallbacks (MakD#102 P1) (e9ebb4f)

  • expect/actual isDebugBuild; SampleData in repo/detail/player gated → release surfaces real empty/Error states

C — player/build polish (MakD#102) (fdb7311)

  • minSdk 35→24; drop ExoPlayer duplicate controls; iOS seek timescale 1→600 + state reset/sync

Remaining MakD#102 work tracked as sub-issues. iOS end-to-end playback test still a follow-up (CI render smoke only).

jobinlawrance and others added 9 commits June 28, 2026 14:33
release: AFinity → viewrr Compose Multiplatform migration
release: player controls, media playback, res cleanup
release: live API + iOS render smoke job
…ix iOS seek precision + state sync

- shared/build.gradle.kts: minSdk 35 -> 24 (35 excluded nearly the entire device base)
- VideoSurface.android.kt: useController=false (ExoPlayer controls overlapped Compose overlay)
- AvPlayer.kt (iOS): CMTimeMakeWithSeconds timescale 1 -> 600 (was whole-second-only seeks);
  reset _state on load() so stale position/duration don't carry over; sync isPlaying/isBuffering
  from AVPlayer.timeControlStatus in refreshState()

From MakD#102 triage.
Dev SampleData fallbacks were unconditionally masking backend failures, so a
broken integration rendered as fake 'working' content. Introduce a self-contained
expect/actual isDebugBuild flag and gate all three fallbacks behind it:

- MediaRepository.homeRows(): return real (possibly empty) rows in release
- DetailViewModel: emit DetailUiState.Error on failure in release
- PlayerViewModel: emit PlayerUiState.Error on failure in release

Detail/Player modules switch viewModelOf -> explicit viewModel{} so the debug
default param isn't force-resolved from the Koin graph. commonTest extended to
assert empty/Error when flag off and sample fallback when flag on.
@jobinlawrance
jobinlawrance merged commit 72918d0 into develop Jul 6, 2026
3 checks passed
@jobinlawrance
jobinlawrance deleted the feat/mobile-auth-fallback-player-polish branch July 6, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant