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
// This is a super simplified example of how to use the dagger.android framework | |
// This example also shows how to scope subcomponents to higher level subcomponents: | |
// Activity -> Fragment -> Fragment | |
// It allows you to create a single instances of classes for an Activity and its Fragments. | |
// This example works with Dagger 2.26. | |
// App.kt | |
class App: Application(), HasAndroidInjector { | |
@Inject |