iOS port: working build on iPhone, proposal to upstream it in small PRs

Aperta
#2,939 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
12/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
android, github-actions, ios, kotlin, swift

Direzione di ricerca

This is a proposal awaiting a maintainer decision, not a task: start with docs/ios-player-bridge.md and docs/ios-upkeep.md on the author's ios branches, then compare against #2901 to see what already exists. Nothing is actionable until the maintainer answers whether an iOS target is wanted and in which order the four PRs should land against dev. Done means an agreed split, not a merged patch.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Problem Description

SimpMusic has no iOS version, and iPhone users keep asking for one (#1136, #2287, #2615).

Proposed Solution

Hi Max, I've ported SimpMusic to iOS, and I've been using it as my daily player on an iPhone 16 (iOS 27.2.1).
Before sending any code, I'd like to know whether you want it upstream and how you'd like it split.

Try it: an unsigned IPA (sideload with AltStore / SideStore) is at https://github.com/Siddh68/SimpMusic/releases/tag/ios-v2.6.0
Code: the ios branch of my fork, plus a matching ios branch of core.

How it works

  • The UI is the existing Compose Multiplatform composeApp, built as a ComposeApp.xcframework for iosArm64
    by a GitHub Actions workflow.
  • core compiles for iOS, with iosMain actuals for the data, media and service layers and the Darwin Ktor engine.
  • Playback: a small Swift host app owns an AVPlayer engine and hands it to Kotlin at launch through a frozen
    bridge interface (NativePlayerEngine). IosMediaPlayerHandlerImpl drives it, so the existing
    MediaPlayerHandler, queue and SharedViewModel logic is reused unchanged. Streams use the AAC/HLS formats
    that AVPlayer can play.
  • Platform pieces: Now Playing and remote commands, downloads to app storage, login web views, and
    simpmusic:// deep links.
  • The Swift host app is a SwiftPM project built with xtool, so it can be built and signed without a Mac.

Design notes are in docs/ios-player-bridge.md and docs/ios-upkeep.md on the branch.

Proposed split. The diff is large (about 135 files, +8.9k lines across both repos), so for example:

  1. core compiles for iOS, with no behaviour change on Android or Desktop
  2. The composeApp iOS target and actuals, plus the CI workflow
  3. The Swift host app and the AVPlayer bridge
  4. Optional features, separately, and only if you want them

Android and Desktop still build from the branch; a CI check verifies that.

Alternative Solutions
  • I've seen #2901 (initial iOS app and AVPlayer support). I'm glad to coordinate with its author rather than
    compete; some of this could build on it, or the other way round.
  • If an iOS target isn't something you want to maintain, that's completely fine. I'll keep it on my fork.
Additional Context
Home Mixes Library Downloads (grouped) Player

Extras I built on top (happy to keep these out, or to put them behind flags):

  • Downloads grouped by their source playlist or album (this also affects Android and Desktop)
  • Spotify playlist import
  • Optional "DJ transitions" in the player: on-device tempo, beat and key analysis, with beat-matched blends

About your AI policy. To be upfront: most of the code was written with Claude Code, under my direction,
and I tested every feature on my phone. I haven't reviewed every line yet. Before opening each PR I'll go
through it line by line so I can answer your review comments, and I'll rewrite the commits without AI trailers
in whatever shape you prefer. If AI-written code of this size isn't something you want, just say so.

For upstream I'll revert the things that were only for my own build: the bundle ID and the footer credit.

Would you be open to an iOS target? If so, which order do you want the PRs in, against dev?

Lingua principale
Kotlin
Stelle
13.8k
Fork
811
Merge medio
1g 3h
PR unite (30g)
7

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di maxrave-dev/SimpMusic

Tutte le issue di maxrave-dev/SimpMusic

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.