Search in sources :

Example 1 with ReportUploader

use of com.google.firebase.crashlytics.internal.report.ReportUploader in project GreenHouse by utsanjan.

the class CrashlyticsController method defaultReportUploader.

private ReportUploader.Provider defaultReportUploader() {
    return new // from class: com.google.firebase.crashlytics.internal.common.CrashlyticsController.9
    ReportUploader.Provider() {

        // com.google.firebase.crashlytics.internal.report.ReportUploader.Provider
        @Override
        public ReportUploader createReportUploader(AppSettingsData appSettingsData) {
            String reportsUrl = appSettingsData.reportsUrl;
            String ndkReportsUrl = appSettingsData.ndkReportsUrl;
            String organizationId = appSettingsData.organizationId;
            CreateReportSpiCall call = CrashlyticsController.this.getCreateReportSpiCall(reportsUrl, ndkReportsUrl);
            return new ReportUploader(organizationId, CrashlyticsController.this.appData.googleAppId, DataTransportState.getState(appSettingsData), CrashlyticsController.this.reportManager, call, CrashlyticsController.this.handlingExceptionCheck);
        }
    };
}
Also used : AppSettingsData(com.google.firebase.crashlytics.internal.settings.model.AppSettingsData) ReportUploader(com.google.firebase.crashlytics.internal.report.ReportUploader) CompositeCreateReportSpiCall(com.google.firebase.crashlytics.internal.report.network.CompositeCreateReportSpiCall) DefaultCreateReportSpiCall(com.google.firebase.crashlytics.internal.report.network.DefaultCreateReportSpiCall) NativeCreateReportSpiCall(com.google.firebase.crashlytics.internal.report.network.NativeCreateReportSpiCall) CreateReportSpiCall(com.google.firebase.crashlytics.internal.report.network.CreateReportSpiCall) SettingsDataProvider(com.google.firebase.crashlytics.internal.settings.SettingsDataProvider) NativeSessionFileProvider(com.google.firebase.crashlytics.internal.NativeSessionFileProvider) UnityVersionProvider(com.google.firebase.crashlytics.internal.unity.UnityVersionProvider)

Example 2 with ReportUploader

use of com.google.firebase.crashlytics.internal.report.ReportUploader in project GreenHouse by utsanjan.

the class CrashlyticsController method sendSessionReports.

/* JADX INFO: Access modifiers changed from: private */
public void sendSessionReports(AppSettingsData appSettings, boolean dataCollectionToken) throws Exception {
    File[] listCompleteSessionFiles;
    Context context = getContext();
    ReportUploader reportUploader = this.reportUploaderProvider.createReportUploader(appSettings);
    for (File finishedSessionFile : listCompleteSessionFiles()) {
        appendOrganizationIdToSessionFile(appSettings.organizationId, finishedSessionFile);
        Report report = new SessionReport(finishedSessionFile, SEND_AT_CRASHTIME_HEADER);
        this.backgroundWorker.submit(new SendReportRunnable(context, report, reportUploader, dataCollectionToken));
    }
}
Also used : Context(android.content.Context) SessionReport(com.google.firebase.crashlytics.internal.report.model.SessionReport) ReportUploader(com.google.firebase.crashlytics.internal.report.ReportUploader) SessionReport(com.google.firebase.crashlytics.internal.report.model.SessionReport) Report(com.google.firebase.crashlytics.internal.report.model.Report) File(java.io.File)

Aggregations

ReportUploader (com.google.firebase.crashlytics.internal.report.ReportUploader)2 Context (android.content.Context)1 NativeSessionFileProvider (com.google.firebase.crashlytics.internal.NativeSessionFileProvider)1 Report (com.google.firebase.crashlytics.internal.report.model.Report)1 SessionReport (com.google.firebase.crashlytics.internal.report.model.SessionReport)1 CompositeCreateReportSpiCall (com.google.firebase.crashlytics.internal.report.network.CompositeCreateReportSpiCall)1 CreateReportSpiCall (com.google.firebase.crashlytics.internal.report.network.CreateReportSpiCall)1 DefaultCreateReportSpiCall (com.google.firebase.crashlytics.internal.report.network.DefaultCreateReportSpiCall)1 NativeCreateReportSpiCall (com.google.firebase.crashlytics.internal.report.network.NativeCreateReportSpiCall)1 SettingsDataProvider (com.google.firebase.crashlytics.internal.settings.SettingsDataProvider)1 AppSettingsData (com.google.firebase.crashlytics.internal.settings.model.AppSettingsData)1 UnityVersionProvider (com.google.firebase.crashlytics.internal.unity.UnityVersionProvider)1 File (java.io.File)1