~/talk

Getting big payouts with Koin

Talkat droidcon NYC 2019 · 2019-08-26..08-27· [android]
links:none on file
slides:none on file

Demonstrates using Koin 2.0 as a Kotlin service-locator to wire an Android single-screen app: ViewModel with a repository and a user ID, repository built from a Room DAO (needs application context) and a Retrofit service (needs OkHttp and base URL). Shows modules, factory vs single, scoped lifecycles tied to screens, startKoin/global context and lazy viewModel injection, and overriding modules to supply mocked DAO/service for hermetic tests. Presents checkModules to validate runtime wiring (no compile-time guarantees) and reports the approach works and speeds test setup.

AI-written summary · about

  1. 0:00Introduction to Koin
  2. 3:48Service locators vs DI
  3. 9:31Introducing Koin library
  4. 13:50Global context and DSL
  5. 16:42Setting up modules
  6. 20:00Constructor injection
  7. 23:12Singleton and efficiency
  8. 24:15Retrieving dependencies
  9. 25:18ViewModel integration
  10. 27:01Passing parameters
  11. 28:49Scoped dependencies
  12. 31:17Testing with Koin
  13. 33:23Compile safety
~/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.