Course
Overview
Kotlin Multiplatform allows you to share business logic between Android and iOS while preserving native interfaces and performance — provided you master its toolchain and interoperability subtleties.
Understanding it thoroughly is the difference between a shared module that slows your teams down and a common codebase that speeds them up.
This course covers the entire pipeline: Gradle configuration and source sets, platform-specific code, interoperability with Swift and Objective-C, iOS framework distribution, architectural patterns, essential multiplatform libraries, and native programming… Everything you need to build a robust and maintainable multiplatform mobile application.
By the end of these three days, you will be able to design, structure, and distribute a Kotlin Multiplatform SDK, and seamlessly integrate it into your Android and iOS applications.
Program
Objectives
Configure and understand the Kotlin Multiplatform toolchain: Gradle, targets, source sets, and Xcode compilation.
Write, test, and run platform-specific code using expect & actual.
Master interoperability between Kotlin, Swift, and Objective-C.
Distribute an iOS framework as source code or precompiled via SPM.
Architect a multiplatform application using MVVM, MVI, and dependency injection.
Leverage key multiplatform libraries and native APIs.
Prerequisites
Strong proficiency in Kotlin and experience in mobile app development (Android or iOS). Familiarity with Swift and Gradle is a plus, but not required.
Program
D1
Toolchain & Multiplatform SDK
Morning
Build tasks & Gradle
understand build configuration
Targets & source sets
configure compilation targets
Source set hierarchy
work with the hierarchical structure
Xcode toolchain
configure iOS compilation
Module architecture
understand project organization
Afternoon
expect & actual
write platform-specific code
Multiplatform testing
test on all platforms
Concurrent code
run concurrent code on each platform
Clean APIs
expose clear and idiomatic APIs
D2
iOS Interoperability & Architecture
Morning
Kotlin to Swift via ObjC
expose Kotlin code to Swift
ObjC constraints
understand their impact on Kotlin
New export system
expose Kotlin directly to Swift
Asynchronous functions
make them accessible from Swift
Obj-C libraries
use them from Kotlin
Swift to Kotlin
expose Swift code to Kotlin
Afternoon
Source distribution
distribute the iOS framework as source code
Distribution via SPM
distribute the compiled iOS framework
Module organization
structure a multiplatform project
APIs & domain models
expose cross-platform compatible APIs
MVVM & MVI
standardize behavior and UI
Dependency injection
allow platforms to contribute to it
D3
Libraries & Kotlin/Native
Morning
Serialization
serialization and introspection without reflection
HTTP clients & networking
communicate with your services
File access
read and write on each platform
Dates, times & durations
handle time in a portable way
SQL databases
persist data locally
Code generation
generate code from annotations
Afternoon
Native memory
understand memory management in Kotlin/Native
Pointers & arrays
manipulate native memory
POSIX & platform APIs
call system APIs
Multiplatform C interop
integrate C libraries
Details
- Format
In-company
- Duration
3 days (21 hrs)
- Level
Intermediate
These trainings might interest you
Our workshops are designed for professionals. Each program is tailored to your team's level and context, whether in-house or as an open session.
The Kotlin Language: Concepts & Tools
Discover how Kotlin lets you write less code with fewer errors: its key concepts and tools will quickly make you productive at building safe, readable, and maintainable applications.
Compose: Interfaces in All Their Forms
Embrace declarative thinking to build reactive, maintainable, and performant interfaces. Master state and data flow to share a single UI codebase across Android, iOS, Desktop, and Web.
The Kotlin Language: Expertise for Deploying APIs
Go beyond everyday Kotlin: understand the deep mechanisms of the language and compiler to write idiomatic, safe code, design durable public APIs, and automate code generation.
Kotlin Coroutines: Expert Usage
Go beyond everyday coroutine usage: understand their inner mechanisms, from language primitives to flows, to write reliable, performant, and testable asynchronous code, and choose the right tool for each problem.
Koog: Integrating AI into Your Multiplatform Apps
Go beyond the simple LLM call: use Koog to design AI agents integrated into your Kotlin applications, capable of acting and orchestrating themselves, reliable, cost-efficient, and observable in production.
Gradle: Master & Optimize Your Builds
Finally understand what happens in your Gradle builds to make them reliable, fast, and maintainable: factor out your configuration, automate your specific needs, and save precious time on every build.