Created
July 4, 2019 00:58
-
-
Save juliuscanute/0addba8d2c629b1e8ae5f55868ed9dc1 to your computer and use it in GitHub Desktop.
Dependency Injection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Startup { | |
var dictionary: Module = module(override = true) { | |
single { ... } | |
} | |
init { | |
injectDependencies() | |
} | |
} | |
fun injectDependencies() { | |
startKoin { modules(Startup.dictionary) } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment