Skip to content

Instantly share code, notes, and snippets.

@tizisdeepan
Created July 28, 2020 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tizisdeepan/3616857c50a878a168eff0b338461702 to your computer and use it in GitHub Desktop.
Save tizisdeepan/3616857c50a878a168eff0b338461702 to your computer and use it in GitHub Desktop.
@Module
@InstallIn(ApplicationComponent::class) // Installs FooModule in the generate ApplicationComponent.
object AppModule {
@Provides
fun provideApiService(): ApiService {...}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment