Skip to content

Instantly share code, notes, and snippets.

@orcchg
Created June 26, 2021 08:34
Show Gist options
  • Select an option

  • Save orcchg/9d991f358a19ff9b0cedc97e92d5fe57 to your computer and use it in GitHub Desktop.

Select an option

Save orcchg/9d991f358a19ff9b0cedc97e92d5fe57 to your computer and use it in GitHub Desktop.
@Module
object DataApiModule {
@Provides
@IntoMap
@ClassKey(StockListDataApi::class)
@DataApis
fun stockListDataApi(@CoreApis coreApis: Map<Class<*>, @JvmSuppressWildcards Api>): Api =
DaggerStockListDataComponent.factory()
.create(
networkCoreLibApi = coreApis.get()
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment