Kotlin Multiplatform Development

Installation
SKILL.md

Gradle Tasks

  • NEVER run build gradle task, ALWAYS use target-specific smaller gradle tasks.
  • Run ./gradlew tasks to list available tasks
  • For iOS, prefer a single target (e.g., iosSimulatorArm64) unless all are needed

File Naming

Use platform suffixes to distinguish files with the same name across platforms:

  • FileManager.kt → common expect
  • FileManager.android.kt → Android actual
  • FileManager.ios.kt → iOS actual

Expect/Actual Patterns

Factory Function (for class instantiation in common code)

// Common
expect class Platform()
expect fun createPlatform(): Platform
Installs
Repository
smithery/ai
First Seen
Kotlin Multiplatform Development — smithery/ai