kotlin-multiplatform-expect-actual

Installation
SKILL.md

Kotlin Multiplatform: expect/actual boundaries

Core principle

Keep common APIs semantic and stable. Put platform mechanics behind small expect/actual declarations or interfaces, and keep Android/iOS/Desktop details out of commonMain.

When to use this skill

Use this when common code needs:

  • Permissions, settings, intents, share sheets, deep links, haptics, biometrics, or clipboard.
  • Files, paths, clocks, locale, network reachability, sensors, crypto, media, maps, camera, native SDKs, or platform services.
  • Native platform views, controllers, or Compose Multiplatform interop.
  • Different implementation details on Android, iOS, Desktop, or Wasm while preserving one shared call site.
  • A decision between expect/actual, dependency injection, interfaces, or separate platform code.

Choose the boundary

Related skills
Installs
149
GitHub Stars
500
First Seen
3 days ago