Skip to content

Instantly share code, notes, and snippets.

@KaustubhPatange
Created November 18, 2021 12:33
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 KaustubhPatange/8b3bee5c94f20b1616066a284f5e06a8 to your computer and use it in GitHub Desktop.
Save KaustubhPatange/8b3bee5c94f20b1616066a284f5e06a8 to your computer and use it in GitHub Desktop.
// in :home module
@Module
@InstallIn(FragmentComponent::class) // <-- Scope to fragments
abstract class HomeModule {
@Binds
abstract fun provideHomeInternalButtonClick(homeButtonClicked: HomeInternalButtonClickedImpl) : HomeInternalButtonClicked
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment