Upgrade to Pro — share decks privately, control downloads, hide ads and more …

kotlin MultiPlatform

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.

kotlin MultiPlatform

Kotlin multiplatform makes you share an app's data between the web, IOS and Android solutions. In this talk, we go through Kotlin Multi-Platform to get a deeper insight into how it works.

Avatar for Frank Tamre

Frank Tamre

October 05, 2019
Tweet

More Decks by Frank Tamre

Other Decks in Technology

Transcript

  1. Kotlin/JVM 1.6+ • 100% Java Interop • Mix Java/Kotlin in

    one module • Copy-paste conversion • Gradle, Maven, Ant, Command line
  2. Kotlin/Native ❤ LLVM • No Virtual Machine! • Targets ◦

    iOS / Android ◦ Windows, Linux, Mac ◦ Small Devices
  3. Multiplatform • Share common code ◦ Business logic, Utilities, UI-core,

    DTO • Use platform for the rest ◦ UI, API, Frameworks • Write code once, run on all targets natively
  4. Some Libraries Standard Libraries: regex, Collections etc Ktor- async HTTP

    server/client lib Kotlinx.serialization – JSON, BOR Object serialization lib 3rd Party Libs – SQLDelight(db) etc
  5. 3rd Party Libraries SQL Delight Db and Persis Ktor- async

    HTTP server/client lib Kotlinx.serialization – JSON, BOR Object serialization lib
  6. expect & actual common *.kt expect fun expect class ...

    platform *.kt actual fun actual class ...
  7. *.kt common expect ... *.kt, *.java, *.jar JVM actual... *.kt,

    *.js, NPM JS actual... *.kt, C, Swift, Framework Native actual...