Created
April 8, 2019 18:33
-
-
Save tfcporciuncula/ccf90f560b0a6e2174b19801a05bcd7d to your computer and use it in GitHub Desktop.
ApplicationInjection.kt
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
@Component(modules = [ApplicationModule::class, ...]) | |
interface ApplicationComponent { | |
... | |
} | |
@Module | |
class ApplicationModule(private val applicationContext: Context) { | |
@Provides fun provideApplicationContext() = applicationContext | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment