Created
April 11, 2020 12:39
-
-
Save iambaljeet/07f9049f35f6ecb4147b974d205387cd 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
class MyApp: Application() { | |
override fun onCreate() { | |
super.onCreate() | |
val moduleList = listOf(mainModule) | |
// start Koin! | |
startKoin { | |
androidLogger() | |
// declare used Android context | |
androidContext(this@MyApp) | |
// declare modules | |
modules(moduleList) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment