Created
April 28, 2020 17:49
-
-
Save oradkovsky/188bf0ae4f6c5e6b528dc7937de67f54 to your computer and use it in GitHub Desktop.
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
//typically in a separate file | |
val appModule = module { } | |
//in a separate file as well | |
val viewModelsModule = module { } | |
//called in onCreate of your application class | |
startKoin { | |
androidLogger() | |
androidContext(applicationContext) | |
fragmentFactory() | |
modules(appModule + viewModelsModule) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment