Skip to content

Translations update from Hosted Weblate - #101

Merged
MakD merged 1 commit into
MakD:masterfrom
weblate:weblate-afinity-yet-another-jellyfin-client-afinity
Apr 29, 2026
Merged

MakD merged 1 commit into
MakD:masterfrom
weblate:weblate-afinity-yet-another-jellyfin-client-afinity

Conversation

@weblate

@weblate weblate commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

Translations update from Hosted Weblate for Afinity - Yet Another Jellyfin Client/AFinity.

Current translation status:

Weblate translation status

@MakD
MakD merged commit a9be376 into MakD:master Apr 29, 2026
1 check failed
jobinlawrance added a commit to viewrr/viewrr-mobile that referenced this pull request Jun 25, 2026
…d on MakD#101

Coupling scan: domain models are Jellyfin SDK DTOs + Room @entity, pervasively
depended on (repos->VMs->UI). Can't move UI/VMs to commonMain until viewrr-native
KMP models exist (MakD#101). Reorder plan: MakD#101 models-first -> Stage 2 -> Stage 3 -> Stage 4.
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).
jobinlawrance added a commit to viewrr/viewrr-mobile that referenced this pull request Jul 6, 2026
…olish

Mobile: finish auth (MakD#101) + gate sample fallbacks + player/build polish (MakD#102)
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.

2 participants