Repository navigation
Conversation
jobinlawrance
added a commit
to viewrr/viewrr-mobile
that referenced
this pull request
Jun 25, 2026
Typed KMP API layer against viewrr v0 contract (docs/api/client-api.md): - Models.kt: MediaItem, Series/Season, WatchEvent, PlaybackResolve, Subtitle, StremioKey, AuthTokens (viewrr-native, kotlinx-serialization; NOT Jellyfin). - ViewrrApi.kt: data-layer interface (the migration swap-point). - ViewrrClient.kt: Ktor 3.2 impl; engine resolves per-platform (okhttp/darwin), bearer via tokenProvider, endpoints per contract (incl 🔜 stubs). - ViewrrModule.kt: Koin module factory. Add Ktor + kotlinx-coroutines/serialization to :shared commonMain/androidMain/iosMain. Compiles to android + iOS; :app stays green. Refs MakD#101
jobinlawrance
added a commit
to viewrr/viewrr-mobile
that referenced
this pull request
Jun 25, 2026
…iewrr client End-to-end CMP feature proving the target architecture, compiling to android+iOS: - MediaRepository (commonMain): viewrr-native domain repo over ViewrrApi; aggregates Apple-TV home rows, tolerates 🔜 endpoints (runCatching). - HomeViewModel (commonMain): androidx.lifecycle.ViewModel + viewModelScope + StateFlow. - HomeScreen (commonMain): pure Compose Apple-TV rows (LazyColumn/LazyRow poster cards). - Wired into viewrrModule (Koin: MediaRepository + viewModelOf(::HomeViewModel)). Lifecycle/koinViewModel resolve in commonMain (transitive). :app stays green. Template for the Stage 2 UI migration. Refs MakD#101 MakD#99
jobinlawrance
added a commit
to viewrr/viewrr-mobile
that referenced
this pull request
Jun 25, 2026
Repoint Android entry at the new CMP home over the viewrr client (inside existing AFinityTheme/splash). Register viewrrModule in startKoin (dev base 10.0.2.2:8080, token wiring pending Keycloak). Old Jellyfin MainContent kept in-file for rollback. :app:assembleDebug green.
jobinlawrance
added a commit
to viewrr/viewrr-mobile
that referenced
this pull request
Jun 25, 2026
First iOS run of the Compose Multiplatform UI — same commonMain HomeScreen as Android. - shared/iosMain: MainViewController (ComposeUIViewController) + doInitKoin (starts Koin with viewrrModule on iOS). - iosApp/ Xcode project (SwiftUI shell, UIViewControllerRepresentable -> shared framework), Info.plist with CADisableMinimumFrameDurationOnPhone (CMP PlistSanityCheck requirement). - SampleData dev fallback so home renders without a backend. - MainActivity already on HomeScreen; viewrrModule registered in startKoin. Verified: android emulator + iOS simulator (iPhone 16) both render the Apple-TV home, no crash. Build: ARCHS=arm64 for sim (framework is arm64-only). Refs MakD#99 MakD#100 MakD#101
jobinlawrance
added a commit
to viewrr/viewrr-mobile
that referenced
this pull request
Jun 25, 2026
- SessionStore (commonMain): holds bearer token + isLoggedIn StateFlow; ViewrrClient reads token on every request (in-memory; persistence TODO with Keycloak). - AuthViewModel + LoginScreen (commonMain): username/password -> api.login(/auth/login) -> SessionStore.setToken -> nav shell appears. - App() gates on SessionStore.isLoggedIn (LoginScreen when logged out). - viewrrModule drops tokenProvider param, wires token from SessionStore; register AuthViewModel. startKoin (android + iOS) updated. Both platforms build green; android renders the login screen. Real login needs a reachable Hub + valid creds. Refs MakD#101
jobinlawrance
added a commit
to viewrr/viewrr-mobile
that referenced
this pull request
Jun 28, 2026
* fix: media playback on device (HLS source + dev stream)
ExoPlayer crashed with ClassNotFoundException HlsMediaSource$Factory — the HLS source
module was missing. Add androidx.media3.exoplayer.hls to :shared androidMain (AVPlayer
plays HLS natively on iOS, no change needed).
Dev fallbacks so the player is exercisable before the backend exists:
- DetailViewModel falls back to SampleData.sampleDetail(id) so Detail renders (incl. Play)
- PlayerViewModel falls back to SampleData.samplePlayback (public Mux HLS test stream) and
starts the player when /playback/{id} 401s.
Verified: emulator plays real HLS video (Play -> ExoPlayer renders the stream). Remove fallbacks with MakD#101.
* test: update Detail/Player failure tests for dev fallback behavior
jobinlawrance
added a commit
to viewrr/viewrr-mobile
that referenced
this pull request
Jun 28, 2026
…ing (#10) - baseUrl -> https://api.viewrr.stream on both platforms (was dev localhost/10.0.2.2). - AuthTokens.token now maps the API's accessToken via @SerialName (login returns {accessToken, refreshToken}; the app was looking for 'token' and login deserialization failed). Verified end-to-end on the Android emulator: register -> login -> token persists -> home loads against the live Hub (catalog empty for now -> dev SampleData fallback, MakD#101).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Translations update from Hosted Weblate for Afinity - Yet Another Jellyfin Client/AFinity.
Current translation status: