Search in sources :

Example 1 with Subscriber

use of com.google.firebase.events.Subscriber in project firebase-android-sdk by firebase.

the class FirebaseInAppMessagingRegistrar method providesFirebaseInAppMessaging.

private FirebaseInAppMessaging providesFirebaseInAppMessaging(ComponentContainer container) {
    FirebaseApp firebaseApp = container.get(FirebaseApp.class);
    FirebaseInstallationsApi firebaseInstallations = container.get(FirebaseInstallationsApi.class);
    Deferred<AnalyticsConnector> analyticsConnector = container.getDeferred(AnalyticsConnector.class);
    Subscriber firebaseEventsSubscriber = container.get(Subscriber.class);
    Application application = (Application) firebaseApp.getApplicationContext();
    UniversalComponent universalComponent = DaggerUniversalComponent.builder().applicationModule(new ApplicationModule(application)).appMeasurementModule(new AppMeasurementModule(analyticsConnector, firebaseEventsSubscriber)).analyticsEventsModule(new AnalyticsEventsModule()).programmaticContextualTriggerFlowableModule(new ProgrammaticContextualTriggerFlowableModule(new ProgramaticContextualTriggers())).build();
    AppComponent instance = DaggerAppComponent.builder().abtIntegrationHelper(new AbtIntegrationHelper(container.get(AbtComponent.class).get(FirebaseABTesting.OriginService.INAPP_MESSAGING))).apiClientModule(new ApiClientModule(firebaseApp, firebaseInstallations, universalComponent.clock())).grpcClientModule(new GrpcClientModule(firebaseApp)).universalComponent(universalComponent).transportFactory(container.get(TransportFactory.class)).build();
    return instance.providesFirebaseInAppMessaging();
}
Also used : ProgrammaticContextualTriggerFlowableModule(com.google.firebase.inappmessaging.internal.injection.modules.ProgrammaticContextualTriggerFlowableModule) ProgramaticContextualTriggers(com.google.firebase.inappmessaging.internal.ProgramaticContextualTriggers) AnalyticsEventsModule(com.google.firebase.inappmessaging.internal.injection.modules.AnalyticsEventsModule) AppMeasurementModule(com.google.firebase.inappmessaging.internal.injection.modules.AppMeasurementModule) ApiClientModule(com.google.firebase.inappmessaging.internal.injection.modules.ApiClientModule) GrpcClientModule(com.google.firebase.inappmessaging.internal.injection.modules.GrpcClientModule) AnalyticsConnector(com.google.firebase.analytics.connector.AnalyticsConnector) ApplicationModule(com.google.firebase.inappmessaging.internal.injection.modules.ApplicationModule) Subscriber(com.google.firebase.events.Subscriber) AppComponent(com.google.firebase.inappmessaging.internal.injection.components.AppComponent) DaggerAppComponent(com.google.firebase.inappmessaging.internal.injection.components.DaggerAppComponent) AbtIntegrationHelper(com.google.firebase.inappmessaging.internal.AbtIntegrationHelper) FirebaseInstallationsApi(com.google.firebase.installations.FirebaseInstallationsApi) Application(android.app.Application) DaggerUniversalComponent(com.google.firebase.inappmessaging.internal.injection.components.DaggerUniversalComponent) UniversalComponent(com.google.firebase.inappmessaging.internal.injection.components.UniversalComponent) FirebaseApp(com.google.firebase.FirebaseApp)

Aggregations

Application (android.app.Application)1 FirebaseApp (com.google.firebase.FirebaseApp)1 AnalyticsConnector (com.google.firebase.analytics.connector.AnalyticsConnector)1 Subscriber (com.google.firebase.events.Subscriber)1 AbtIntegrationHelper (com.google.firebase.inappmessaging.internal.AbtIntegrationHelper)1 ProgramaticContextualTriggers (com.google.firebase.inappmessaging.internal.ProgramaticContextualTriggers)1 AppComponent (com.google.firebase.inappmessaging.internal.injection.components.AppComponent)1 DaggerAppComponent (com.google.firebase.inappmessaging.internal.injection.components.DaggerAppComponent)1 DaggerUniversalComponent (com.google.firebase.inappmessaging.internal.injection.components.DaggerUniversalComponent)1 UniversalComponent (com.google.firebase.inappmessaging.internal.injection.components.UniversalComponent)1 AnalyticsEventsModule (com.google.firebase.inappmessaging.internal.injection.modules.AnalyticsEventsModule)1 ApiClientModule (com.google.firebase.inappmessaging.internal.injection.modules.ApiClientModule)1 AppMeasurementModule (com.google.firebase.inappmessaging.internal.injection.modules.AppMeasurementModule)1 ApplicationModule (com.google.firebase.inappmessaging.internal.injection.modules.ApplicationModule)1 GrpcClientModule (com.google.firebase.inappmessaging.internal.injection.modules.GrpcClientModule)1 ProgrammaticContextualTriggerFlowableModule (com.google.firebase.inappmessaging.internal.injection.modules.ProgrammaticContextualTriggerFlowableModule)1 FirebaseInstallationsApi (com.google.firebase.installations.FirebaseInstallationsApi)1