A supporting repository for my talk Advanced Kotlin Native Integration.
This is an educational sample project that demonstrates how to integrate Kotlin Multiplatform code with iOS Swift applications. It contains three Kotlin modules (kmp-a, kmp-b, kmp-c) that define shared classes and functions, along with corresponding Swift code that uses them. The project shows developers how to properly expose Kotlin code to Swift through type aliases and export mechanisms, enabling them to write code once and use it in both Android and iOS apps. It's designed as a teaching example to accompany a conference talk on advanced Kotlin Native integration techniques.
How It Works
You want to write code once and use it in both Android and iPhone apps.
You stumble upon a sample project that shows how to connect Kotlin code with iPhone apps.
The project reveals how Kotlin classes become available in your iPhone app through special bridges.
You see three mini-projects working together: one creates data, one uses it, and one defines shared types.
Look at how your iPhone app calls Kotlin-powered functions like magic
See how your shared code gets automatically prepared for iPhone use
The umbrella project combines everything so your app can use all the shared code seamlessly.
You now understand how to write code once and have it work smoothly on both Android phones and iPhones.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.