~/talk

Extending kotlin-inject for fun & profit

Talkat droidcon San Francisco 2024 · 2024-06-06..06-07· [kotlin]
links:none on file
slides:none on file

Company replaces Dagger+Anvil with kotlin-inject + KSP to get compile-time DI across Kotlin Multiplatform, writes a custom KSP processor using KotlinPoet and kotlin-compile-testing to reintroduce Envil-like contributesTo/mergeComponent semantics, generates component interfaces at compile time, and ships platform-specific app components for Android, iOS and desktop. Build times drop, verification stays at compile time, and missing features are restored by an internal fork that works in production while upstream catching up.

AI-written summary · about

  1. 0:00Kotlin Inject intro at Amazon
  2. 2:10Why Kotlin Inject for KMP
  3. 9:14Dagger 2 vs Kotlin Inject
  4. 14:34Kotlin Inject improvements over Dagger
  5. 21:26Kotlin Inject limits and fixes
  6. 24:41Scaling Kotlin Inject best practices
  7. 31:07Extending Kotlin Inject with KSP
  8. 37:52Summary for Kotlin Inject
~/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.