Skip to content

Instantly share code, notes, and snippets.

@oradkovsky
Created April 28, 2020 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oradkovsky/188bf0ae4f6c5e6b528dc7937de67f54 to your computer and use it in GitHub Desktop.
Save oradkovsky/188bf0ae4f6c5e6b528dc7937de67f54 to your computer and use it in GitHub Desktop.
//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