~/talk

Best practices for evolving Kotlin libraries

Talkat droidcon Berlin 2024 · 2024-07-03..07-05· [kotlin]
slides:none on file

Explains concrete JVM compatibility pitfalls (renaming named parameters, adding defaulted params breaks binary) and shows a practical workflow: use the binary compatibility validator Gradle plugin (API dump + API check, CI fails on unintended changes, now supports native), enable explicit API mode for visibility and return-type checks with IntelliJ quick fixes, treat main sources as warnings-as-errors, and use staged deprecation (warning → error → deprecation level hidden) plus opt-in experimental annotations to safely evolve libraries.

AI-written summary · about

  1. 0:00Kotlin library evolution intro
  2. 3:00Why compatibility matters
  3. 10:53Breaking binary compatibility risks
  4. 11:13Tracking compatibility with tools
  5. 17:02Enforcing explicit API mode
  6. 23:52Deprecation strategies
  7. 29:11Adding new features
  8. 34:14Library API lifecycle summary
~/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.