use of com.google.firebase.inappmessaging.internal.injection.modules.ApiClientModule 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();
}
Aggregations