Created
January 1, 2022 21:51
-
-
Save ericntd/4172723d4d47d8691d9c3e44f180d2dd to your computer and use it in GitHub Desktop.
Dagger naming sanity
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
package app.ericn.daggerplain | |
import dagger.Component | |
import dagger.Module | |
import dagger.Subcomponent | |
import javax.inject.Inject | |
import javax.inject.Singleton | |
typealias AppScope = Singleton | |
/** | |
* For automatic service discovery or provision outside of [DependencyHolder]/ Module | |
*/ | |
typealias Contribute = Inject | |
/** | |
* Alternatively "DependencyGroup" or "CompositionRoot" | |
*/ | |
typealias DependencyHolder = Module | |
typealias Injector = Component | |
/** | |
* Alternatively "InjectorPart" | |
*/ | |
typealias SubInjector = Subcomponent | |
/** | |
* This is not very critical as long as [Contribute] and "injectInto" methods are clear | |
*/ | |
typealias RequestDependency = Inject |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment