Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

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