Created
March 19, 2018 06:52
-
-
Save filipproch/b11fae20617a5c5b198fd39e9e46aa8b to your computer and use it in GitHub Desktop.
This file contains 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 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