kmp-build

Coordinate Kotlin Multiplatform build, test, and release workflows across Gradle Kotlin DSL.

Updated Mar 31, 2026
One-click install
npx skills add https://github.com/DojoCodingLabs/app-gtm-release-toolkit --skill kmp-build
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kmp-build
Source: https://github.com/DojoCodingLabs/app-gtm-release-toolkit/tree/main/skills/kmp-build
Command: npx skills add https://github.com/DojoCodingLabs/app-gtm-release-toolkit --skill kmp-build

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Coordinating a Kotlin Multiplatform build and release is complex: it requires aligning shared code across Android and iOS targets, synchronizing Gradle/Kotlin DSL configuration with iOS Info.plist/versioning, and selecting an iOS framework integration strategy (CocoaPods, Swift Package Manager, or direct embedding). This guide helps teams structure projects, reduce drift, and enable reliable shipping to app stores.

Core Features & Use Cases

  • End-to-end KMP project structure validation and release preparation for Android, iOS, and desktop targets.
  • Guidance for iOS framework integration approaches and version alignment with Gradle, plus Compose Multiplatform setup and expect/actual patterns.
  • Build commands per target, signing considerations, and cross-target version synchronization to facilitate smooth releases.

Quick Start

Configure your Kotlin Multiplatform project with a shared module and platform apps, set up iOS integration, and run the Gradle build for all targets.

Frequently Asked Questions about kmp-build

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure a Kotlin Multiplatform build for Android and iOS targets?

To configure a Kotlin Multiplatform build, you need a shared module with commonMain, androidMain, and iosMain source sets alongside platform apps. Gradle Kotlin DSL is used to define targets, manage iOS framework integration, and synchronize versions across Android and iOS.

What is the best way to integrate a Kotlin Multiplatform iOS framework?

Integrating a Kotlin Multiplatform iOS framework requires choosing between CocoaPods, Swift Package Manager, or direct embedding. The chosen approach must be synchronized with your Gradle Kotlin DSL configuration and iOS Info.plist to ensure proper alignment and reliable releases.

How do I handle expect and actual declarations in a Kotlin Multiplatform project?

Expect and actual declarations in Kotlin Multiplatform allow you to define common APIs in commonMain and provide platform-specific implementations in androidMain and iosMain. Proper handling ensures shared code compiles correctly across all targets without drift.

Can I use Compose Multiplatform with my existing Kotlin Multiplatform project structure?

Yes, you can set up Compose Multiplatform within a standard Kotlin Multiplatform project structure. It requires specific Gradle Kotlin DSL configurations to support shared UI across Android, iOS, and desktop targets while maintaining your commonMain and platform-specific source sets.

Why does my Kotlin Multiplatform release fail due to version synchronization issues?

Kotlin Multiplatform release failures often occur when version numbers drift between Gradle configurations and iOS Info.plist. Cross-target version synchronization is required to align shared code, signing considerations, and platform-specific app metadata for smooth app store shipping.

Do I need separate build commands for Android and iOS in Kotlin Multiplatform?

Yes, Kotlin Multiplatform requires specific build commands per target. While shared code compiles from commonMain, you must execute distinct Gradle tasks for Android, iOS, and desktop targets to generate the correct artifacts and frameworks for each platform.