kotlin-multiplatform

Community

Guide to platform sharing across Kotlin Multiplatform.

Authorvitorpamplona
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Platform abstraction and source-set decisions for Amethyst Kotlin Multiplatform project. Guides when to abstract vs keep platform-specific, source set placement (commonMain, jvmAndroid, platform-specific), expect/actual patterns. Covers primary targets (Android, JVM/Desktop, iOS) with web/wasm future considerations. Integrates with Gradle and dependency management.

Core Features & Use Cases

  • Guidance on crypto, IO, and platform APIs separation using expect/actual with decision trees and examples from Amethyst.
  • Real-world strategies for source-set layout, module boundaries, and migration paths; includes examples and potential pitfalls.
  • Use Case: when starting a new KMP module, determine whether to place code in commonMain or a platform-specific source set, and how to arrange cross-target dependencies and dependencies between source sets.

Quick Start

Review the Abstraction Decision Tree and begin migrating shared logic into commonMain where applicable.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: kotlin-multiplatform
Download link: https://github.com/vitorpamplona/amethyst/archive/main.zip#kotlin-multiplatform

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.