~/talk

Koin vs. Kotlin-inject

Talkat droidcon Berlin 2024 · 2024-07-03..07-05· [kotlin]

Comparison of Koin and Kotlin‑inject for a Kotlin Multiplatform library integrated into an existing app serving ~40M users shows Koin wins here because its readable DSL, larger community and gentler learning curve make onboarding iOS and junior devs easier, while Kotlin‑inject provides compile-time safety and no runtime overhead plus a neat function injection trick for Compose. Koin’s downside is weaker compile checks for parameterized (assisted) injection — a value‑class→String mismatch caused a runtime crash during migration — but overall the Koin setup works better for this team.

AI-written summary · about

  1. 0:00Introduction
  2. 1:50Dependency injection background
  3. 4:00Choosing Koin vs Kotlin Inject
  4. 6:07Koin overview
  5. 8:12Koin pros and cons
  6. 10:20Kotlin Inject overview
  7. 11:45Kotlin Inject pros and cons
  8. 14:32Decision factors
  9. 15:38Recap and conclusion
~/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.