Kotlin/Native iOS

Yuya Horita
Dec 28, 2018 · 1 min read

What is Kotlin/Native?

  • is a technology for compiling Kotlin code to native binaries, which can run without a virtual machine.

Why Kotlin/Native ?

  • is primarily designed to allow compilation for platforms where virtual machines are not desirable or possible, for example, iOS.

(reference: https://kotlinlang.org/docs/reference/native-overview.html)

It can produce iOS dynamic framework from Kotlin code. You can use it like other dynamic frameworks written in Swift/Objective-C. Add it to Xcode’s Embedded Binaries and import it.

I would like to explain how to use Kotlin/Native (K/N) in iOS .

  1. Configuring K/N Project on Android Studio with Gradle.
  2. Creating Simple Framework with Describing Some K/N Features.
  3. Coroutines and Immutability of K/N.
  4. Sample with K/N + Reactive Programming + Architectures. (coming soon)

Yuya Horita

Written by

Master of Nuclear Physics, CyberAgent, Inc. FRESH LIVE. M3. Software Engineer. Twitter: https://twitter.com/horita_yuya ,GitHub: https://github.com/horita-yuya

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade