Last active
October 3, 2018 10:23
-
-
Save pedromassango/a9a8188dd3c5ead97f20b55d2a9267d4 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
| object DependeciesModule { | |
| val appModule = module { | |
| // Usinlge only one instance of the giving class will run at time | |
| single { Repository() } | |
| // Koin will take care of creating ViewModel's dependencies | |
| viewModel { MainViewModel( get()) } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment