Search in sources :

Example 16 with AnalyticsConnector

use of com.google.firebase.analytics.connector.AnalyticsConnector in project firebase-android-sdk by firebase.

the class CrashlyticsRegistrar method buildCrashlytics.

private FirebaseCrashlytics buildCrashlytics(ComponentContainer container) {
    FirebaseApp app = container.get(FirebaseApp.class);
    Deferred<CrashlyticsNativeComponent> nativeComponent = container.getDeferred(CrashlyticsNativeComponent.class);
    Deferred<AnalyticsConnector> analyticsConnector = container.getDeferred(AnalyticsConnector.class);
    FirebaseInstallationsApi firebaseInstallations = container.get(FirebaseInstallationsApi.class);
    return FirebaseCrashlytics.init(app, firebaseInstallations, nativeComponent, analyticsConnector);
}
Also used : FirebaseInstallationsApi(com.google.firebase.installations.FirebaseInstallationsApi) FirebaseApp(com.google.firebase.FirebaseApp) CrashlyticsNativeComponent(com.google.firebase.crashlytics.internal.CrashlyticsNativeComponent) AnalyticsConnector(com.google.firebase.analytics.connector.AnalyticsConnector)

Aggregations

AnalyticsConnector (com.google.firebase.analytics.connector.AnalyticsConnector)16 Test (org.junit.Test)7 Bundle (android.os.Bundle)6 Matchers.anyString (org.mockito.Matchers.anyString)4 FirebaseApp (com.google.firebase.FirebaseApp)3 NonNull (androidx.annotation.NonNull)2 AndroidJUnit4 (androidx.test.ext.junit.runners.AndroidJUnit4)2 AnalyticsConnectorHandle (com.google.firebase.analytics.connector.AnalyticsConnector.AnalyticsConnectorHandle)2 AnalyticsConnectorListener (com.google.firebase.analytics.connector.AnalyticsConnector.AnalyticsConnectorListener)2 CrashlyticsNativeComponent (com.google.firebase.crashlytics.internal.CrashlyticsNativeComponent)2 Deferred (com.google.firebase.inject.Deferred)2 FirebaseInstallationsApi (com.google.firebase.installations.FirebaseInstallationsApi)2 Collections (java.util.Collections)2 LinkedHashSet (java.util.LinkedHashSet)2 Set (java.util.Set)2 JSONObject (org.json.JSONObject)2 Before (org.junit.Before)2 RunWith (org.junit.runner.RunWith)2 Matchers.any (org.mockito.Matchers.any)2 Mockito.mock (org.mockito.Mockito.mock)2