~/talk

Building a Multiplatform Kotlin Library

Talkat droidCon NYC 2018 · 2018-08-27..08-28· [kotlin]
links:none on file
slides:none on file

Shows how to build a real Kotlin Multiplatform library called multiplatform‑settings that wraps SharedPreferences & NSUserDefaults, uses expect/actual for platform bindings, and produces Android .aar and Kotlin/Native artifacts (klib/framework) consumable via Gradle/Maven. Implementation stays intentionally thin (adds a double-via-long workaround and iOS default‑value checks), includes a sample app proving it runs in a Droid app, and uses common Kotlin tests plus Robolectric and iOS simulator tests to validate behavior.

AI-written summary · about

  1. 0:00Introduction
  2. 1:19Code sharing in Kotlin
  3. 4:50Expect actual declarations
  4. 8:49Multiplatform Settings library
  5. 13:52Library design lessons
  6. 16:40Testing multiplatform code
  7. 19:57Publishing Kotlin libraries
  8. 20:38Challenges and future
  9. 23:26Call to action
  10. 24:09Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.