Build one target
Set up JDK 21, understand the composite build, run desktop first, and learn what Gradle configures for every target.
Open get started →Trace one production-shaped Kotlin codebase across Android, desktop JVM, and iOS. Yokan makes source sets, shared Compose UI, platform services, networking, persistence, and state management concrete.
One shared product. Thin hosts. Explicit platform seams.
Each chapter answers one question, points to the exact Yokan files, and leaves you with a small inspection exercise.
Set up JDK 21, understand the composite build, run desktop first, and learn what Gradle configures for every target.
Open get started →Walk from each native host into the shared runtime, Room database, state container, and shared Compose application.
Open architecture →Study expect/actual boundaries, target-specific engines, shared MVI, coroutine ownership, persistence, and tests.
Open patterns →KMP is not “write every line once.” Yokan shares product behavior and UI, then implements capabilities where each operating system has the right API.
Manga, Chapter, repositories, state, navigation, readers, and most services live in common Kotlin.
composeApp/src/commonMain
HTTP engines, databases, file pickers, sharing, native players, notifications, and system UI use target APIs.
androidMain · desktopMain · iosMain
Compose Multiplatform renders the same YokanApp() from Android, a desktop window, and a SwiftUI host.
ui/App.kt
Ktor, Room KMP, coroutines, serialization, Coil, and bundled SQLite carry most infrastructure across targets.
composeApp/build.gradle.kts
Use this path whenever the project feels large. It crosses the important boundaries without touring every feature.
The guide links to exact files and symbols. Read the surrounding code: the trade-offs are clearer in context than in isolated snippets.
This is a project field guide, not a replacement for the Kotlin language or platform SDK documentation.
Learn how shared, intermediate, and platform source sets form a dependency tree—not a collection of folders.
Recognize small platform seams and avoid moving product logic into three divergent implementations.
See Android and desktop entry points alongside the static Kotlin framework embedded by the iOS SwiftUI host.