Skip to content

Instantly share code, notes, and snippets.

@raystatic
Created July 9, 2022 21:04
Show Gist options
  • Save raystatic/7e471a5ab116e9d724947d9d8e375d89 to your computer and use it in GitHub Desktop.
Save raystatic/7e471a5ab116e9d724947d9d8e375d89 to your computer and use it in GitHub Desktop.
@Module
@InstallIn(SingletonComponent::class)
object AppModule {
@Provides
@Singleton
fun providesContext(@ApplicationContext context: Context): Context = context
@Provides
@Singleton
fun providesDefaultDeeplinkHandler(
processors: Set<@JvmSuppressWildcards DeeplinkProcessor>
): DeeplinkHandler = DefaultDeeplinkHandler(processors)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment