Kotlin Multiplatform

Kotlin Multiplatform

Introduction to Kotlin Multiplatform that I gave at Kotlin Everywhere in Minneapolis on October 5, 2019

108056ccba92f98fdbbabad534537573?s=128

Bryan Herbst

October 05, 2019
Tweet

Transcript

  1. 4.
  2. 5.
  3. 6.
  4. 7.
  5. 8.
  6. 9.
  7. 19.
  8. 20.
  9. 21.
  10. 22.
  11. 72.
  12. 83.

    plugins { id("org.jetbrains.kotlin.native.cocoapods") } kotlin { cocoapods { summary =

    "Shared library" homepage = "http://github.com/shared-lib" } }
  13. 85.

    Android Notes UI NotesView Model Note (model) Note API iOS

    Notes UI NotesView Controller Note (model) Note API
  14. 86.

    Android Notes UI NotesView Model Note API iOS Notes UI

    NotesView Controller Note API Shared Note (model)
  15. 88.

    iOS struct Note { let content: String let status: String

    } Android data class Note( val content: String, val status: Status ) enum class Status { }
  16. 89.

    iOS struct Note { let content: String let status: String

    } Android data class Note( val content: String, val status: Status ) enum class Status { }
  17. 90.

    iOS struct Note { let content: String let status: String

    } Android data class Note( val content: String, val status: Status ) enum class Status { }
  18. 97.

    Android Notes UI NotesView Model Note API iOS Notes UI

    NotesView Controller Note API Shared Note (model)
  19. 112.

    class NoteApi() { private val client = HttpClient() suspend fun

    fetchNote(): String = client.get<String>("http://...") }
  20. 122.
  21. 126.
  22. 132.
  23. 140.