Search in sources :

Example 1 with NativeSessionReport

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

the class ReportManager method findReports.

public List<Report> findReports() {
    Logger.getLogger().d("Checking for crash reports...");
    File[] clsFiles = this.reportFilesProvider.getCompleteSessionFiles();
    File[] nativeReportFiles = this.reportFilesProvider.getNativeReportFiles();
    List<Report> reports = new LinkedList<>();
    if (clsFiles != null) {
        for (File file : clsFiles) {
            Logger.getLogger().d("Found crash report " + file.getPath());
            reports.add(new SessionReport(file));
        }
    }
    if (nativeReportFiles != null) {
        for (File dir : nativeReportFiles) {
            reports.add(new NativeSessionReport(dir));
        }
    }
    if (reports.isEmpty()) {
        Logger.getLogger().d("No reports found.");
    }
    return reports;
}
Also used : NativeSessionReport(com.google.firebase.crashlytics.internal.report.model.NativeSessionReport) SessionReport(com.google.firebase.crashlytics.internal.report.model.SessionReport) Report(com.google.firebase.crashlytics.internal.report.model.Report) NativeSessionReport(com.google.firebase.crashlytics.internal.report.model.NativeSessionReport) SessionReport(com.google.firebase.crashlytics.internal.report.model.SessionReport) File(java.io.File) NativeSessionReport(com.google.firebase.crashlytics.internal.report.model.NativeSessionReport) LinkedList(java.util.LinkedList)

Aggregations

NativeSessionReport (com.google.firebase.crashlytics.internal.report.model.NativeSessionReport)1 Report (com.google.firebase.crashlytics.internal.report.model.Report)1 SessionReport (com.google.firebase.crashlytics.internal.report.model.SessionReport)1 File (java.io.File)1 LinkedList (java.util.LinkedList)1