Skip to content

Instantly share code, notes, and snippets.

@filipproch
Created March 19, 2018 06:52
Show Gist options
  • Save filipproch/b11fae20617a5c5b198fd39e9e46aa8b to your computer and use it in GitHub Desktop.
Save filipproch/b11fae20617a5c5b198fd39e9e46aa8b to your computer and use it in GitHub Desktop.
class MainActivity : AppCompatActivity(), AppCompatActivityInjector {
override val injector: KodeinInjector = KodeinInjector()
private val repository: TasksRepository by instance()
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
initializeInjector()
}
override fun onDestroy() {
destroyInjector()
super.onDestroy()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment