Last active
February 16, 2020 20:20
-
-
Save jraska/defeb51abc0ff21525134ce0cac85ee3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Module | |
class AnalyticsModule { | |
@Provides | |
@IntoSet | |
fun analyticsCallbacks(callbacks: AnalyticsCallbacks): ActivityLifecycleCallbacks = callbacks | |
} | |
@Module | |
class PushModule { | |
@Provides | |
@IntoSet | |
fun pushCallbacks(callbacks: PushCallbacks): ActivityLifecycleCallbacks = callbacks | |
} | |
@Component(modules = [AnalyticsModule::class, PushModule::class, /* ... other modules */]) | |
interface AppComponent { | |
fun callbacks(): Set<ActivityLifecycleCallbacks> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment