Skip to content

release: AFinity → viewrr Compose Multiplatform migration - #5

Merged
jobinlawrance merged 5 commits into
masterfrom
develop
Jun 28, 2026
Merged

jobinlawrance merged 5 commits into
masterfrom
develop

Conversation

@jobinlawrance

Copy link
Copy Markdown

Lands the completed AFinity → Compose Multiplatform / viewrr migration on master.

What shipped (squashed PRs #1–#4 + foundation):

  • CMP scaffold (:shared commonMain/androidMain/iosMain) + Koin DI (Hilt removed)
  • viewrr data layer (Ktor client over the v0 contract) replacing Jellyfin
  • commonMain UI: login, Home/Search/Library/History/Settings + Detail/Series/Player overlays — Apple-TV theme, card focus, Coil images, token persistence
  • Real players: ExoPlayer (Android) + AVPlayer (iOS) behind a shared interface
  • Jellyfin stack retired (~467 files, native libs gone — :app is 3 files)
  • Tests: 34 commonTest + Android instrumented + iOS smoke; CI runs JVM + iOS-native (Xcode 26)

Both platforms run the shared app end-to-end. Remaining is external (live Hub + Keycloak).

jobinlawrance and others added 5 commits June 25, 2026 15:11
The iosSimulatorArm64Test target fails to link Compose Multiplatform's iOS UIKit
layer (UIViewLayoutRegion/UIUtilities undefined) on the runner's Xcode 16.4 — a
CMP/Xcode-version issue. Enable androidLibrary withHostTest {} and run the
:shared:testAndroidHostTest task (34 commonTest tests on the JVM) on ubuntu-latest:
no Xcode, faster, same coverage.
* feat(MakD#99): Series/Show detail screen

commonMain SeriesScreen + SeriesViewModel (api.series(showTitle)) — header + per-season
episode rows (MediaCard). Reached from DetailScreen 'View show' (when showTitle present);
episode tap -> media Detail. Register seriesModule (android + iOS). App series overlay.
Both platforms build green.

* ci: run unit tests as JVM host tests on ubuntu

The iosSimulatorArm64Test target fails to link Compose Multiplatform's iOS UIKit
layer (UIViewLayoutRegion/UIUtilities undefined) on the runner's Xcode 16.4 — a
CMP/Xcode-version issue. Enable androidLibrary withHostTest {} and run the
:shared:testAndroidHostTest task (34 commonTest tests on the JVM) on ubuntu-latest:
no Xcode, faster, same coverage.
Second CI job runs the commonTest suite on the iosSimulatorArm64 target (macos-15 +
latest-stable Xcode = 26) to link Compose Multiplatform's UIKit layer. Keeps the fast
JVM host-test job on ubuntu. workflow_dispatch added to test the workflow on a branch.
The new commonMain viewrr stack now covers login -> browse -> detail -> series ->
player -> history -> settings, so the original Android-only Jellyfin code is dead weight.
Remove it:
- Delete ~467 .kt under app/ (data layer, old DI/Koin Jellyfin modules, navigation, cast,
  mpv/audiobookshelf players, all old ui screens + VMs, jellyfin models/managers/workers).
- MainActivity -> minimal ComponentActivity hosting shared App(); AfinityApplication ->
  startKoin with viewrr modules only (drop appModules/cast/workers/Coil factory).
- AndroidManifest -> minimal (drop PlayerActivity/AudiobookshelfService/cast/WorkManager/FileProvider).
- Prune app deps: remove jellyfin-sdk, libmpv, media3-ffmpeg, retrofit, room, okhttp, cast,
  mediarouter, tink, paging, datastore, lottie, commonmark, richtext, aboutlibraries, etc.
  app/ now depends on :shared + compose + koin-android + timber only. Native libs gone.
- Drop KoinModulesTest (verified the old graph).
:app:assembleDebug green; 34 host tests pass; emulator launches clean (dark viewrr login).
- SessionStore persists the auth token via multiplatform-settings (SharedPreferences /
  NSUserDefaults) so login survives restart; viewrrModule provides Settings(). Tests use MapSettings.
- MediaCard applies tvFocusScale (scale 1.06 + ring) on focus (onFocusChanged + focusable)
  for D-pad/keyboard/TV navigation.
- Delete unused res/font (2.8 MB, 20 ttf) — ViewrrTheme uses default Material typography, 0 refs.
Both platforms green; 34 host tests pass.
@jobinlawrance
jobinlawrance merged commit df20250 into master Jun 28, 2026
4 checks passed
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