Skip to content

Instantly share code, notes, and snippets.

@markchristopherng
Created October 14, 2019 23:41
Show Gist options
  • Save markchristopherng/8dffb0e4174c14971273b007a889a315 to your computer and use it in GitHub Desktop.
Save markchristopherng/8dffb0e4174c14971273b007a889a315 to your computer and use it in GitHub Desktop.
class AppModule(val application: Application) : Module() {
init {
val context = application.applicationContext
bind(Application::class.java).toInstance(application)
bind(Context::class.java).toInstance(context)
bind(AppConfigManager::class.java).toInstance(AppConfigManager())
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment