Skip to content

Instantly share code, notes, and snippets.

@orcchg
Created June 26, 2021 08:36
Show Gist options
  • Save orcchg/065b0b10aebfc6fcd71236719717f8f3 to your computer and use it in GitHub Desktop.
Save orcchg/065b0b10aebfc6fcd71236719717f8f3 to your computer and use it in GitHub Desktop.
@Component(
modules = [
CoreApiModule::class,
DataApiModule::class,
FeatureApiModule::class
]
)
interface AppComponent {
@FeatureApis
fun featuresMap(): Map<Class<*>, @JvmSuppressWildcards Api>
fun inject(target: App)
@Component.Factory
interface Factory {
fun create(): AppComponent
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment