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;
}
Aggregations