Skip to content

Latest commit

 

History

History
4 lines (3 loc) · 579 Bytes

dependency_injection.md

File metadata and controls

4 lines (3 loc) · 579 Bytes

Dependency Injection

Press uses Koin for maintaining the object graph in shared code. These objects are wired to the Android app using Dagger. Using Dagger in shared code would have been nice, but until we get codegen support on Kotlin Native, Press will be stuck with manually wiring dependencies using a service locator.

If you’re curious to see code, the Android and the shared DI graph are initialized in PressApp.kt.