~/talk

Building SDKs - The Kotlin Way

Talkat droidCon Berlin 2019 · 2019-07-01..07-03· [kotlin]
github:jossiwolf
slides:none on file

Explains concrete Kotlin tactics for stable SDKs: use @Experimental and @UseExperimental to surface risky APIs, annotate and supply @Deprecated(..., ReplaceWith="...") so IntelliJ auto-migrates dozens of call sites (example: 40 occurrences fixed with one action), use typealias + deprecated alias for renamed classes, and apply Kotlin class delegation* to keep public surface small while splitting internals. Also covers publishing to a private Maven repo and handling init patterns to avoid breaking consumers (case: Friday 9pm build break).

AI-written summary · about

  1. 0:00Introduction
  2. 1:35What makes SDKs hard
  3. 4:46Handling API changes
  4. 7:34Experimental APIs in Kotlin
  5. 13:29Deprecated APIs in Kotlin
  6. 16:20Practical deprecation
  7. 18:25Class delegation for SDKs
  8. 20:49Summary and Q&A
~/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.