Skip to content

Add Compose Multiplatform player with VK and media session - #16

Merged
decoder-dev merged 26 commits into
mainfrom
feature/compose-multiplatform
Nov 27, 2026
Merged

decoder-dev merged 26 commits into
mainfrom
feature/compose-multiplatform

Conversation

@decoder-dev

@decoder-dev decoder-dev commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Native Compose Multiplatform migration

  • Shared Compose UI for Android and desktop: home, mini/full player, queue, profile, search, mixes, releases, downloads and lyrics.
  • Existing Rust engine retained behind a typed Kotlin API; JNA on desktop and JNI on Android with shared event broadcasting.
  • VK sign-in through an isolated Android WebView, AES/GCM session storage using Android Keystore, and desktop keyring-backed sessions.
  • Library, search, recommendations, catalog mixes, radio continuation, new releases and offline downloads with persistent native storage.
  • Android foreground media service with artwork, progress, play/pause, previous/next, seek and media-button support.
  • Best-effort Windows global media keys through Win32/JNA.
  • Offline demo catalog and player for deterministic rendering and regression tests.

Verification

Final commit: 1ea125fb56d7c93dbaf991a55f846d106364b067.

  • Rust FFI: passed.
  • Compose shared tests and desktop rendering: passed.
  • Seven PNG screenshots checked: home, player, profile, search, mixes, downloads and lyrics.
  • Android debug APK: passed; native arm64 Rust library, DEX, manifest, playback service, notification and foreground-service flags verified.
  • Workflow: https://github.com/decoder-dev/PrivateMusicDesktop/actions/runs/45934223446

Validation boundary

No VK credentials or physical device are available in CI. Live VK authorization/API responses, audible playback and lock-screen behavior still require a device/account smoke test; these are not claimed as hardware-verified.

Comment thread .github/workflows/compose.yml Fixed
Comment thread .github/workflows/compose.yml Fixed
Comment thread .github/workflows/compose.yml Fixed
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: dtolnay/rust-toolchain@stable
with:
distribution: temurin
java-version: '17'
- uses: gradle/gradle-build-action@v3
with:
distribution: temurin
java-version: '17'
- uses: gradle/gradle-build-action@v3
Comment on lines +9 to +34
<application
android:name=".PrivateMusicApplication"
android:allowBackup="true"
android:icon="@android:drawable/ic_media_play"
android:label="Private Music"
android:supportsRtl="true"
android:theme="@style/Theme.PrivateMusic">
<activity
android:name=".MainActivity"
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|keyboardHidden"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".VkLoginActivity"
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|keyboardHidden"
android:excludeFromRecents="true"
android:theme="@style/Theme.PrivateMusic" />
<service
android:name=".PlaybackService"
android:exported="false"
android:foregroundServiceType="mediaPlayback" />
</application>
@decoder-dev decoder-dev changed the title Add Compose Multiplatform player shell Add Compose Multiplatform player with VK and media session Nov 27, 2026
@decoder-dev
decoder-dev merged commit 8c38d99 into main Nov 27, 2026
22 of 23 checks passed
@decoder-dev
decoder-dev deleted the feature/compose-multiplatform branch November 28, 2026 01:02
decoder-dev added a commit that referenced this pull request Nov 28, 2026
Adds the native Compose Multiplatform UI, VK catalog, offline library and media session.
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