minor
This commit is contained in:
parent
e1d82a5b9f
commit
f47bc62024
1 changed files with 14 additions and 3 deletions
|
@ -8,6 +8,7 @@ import 'package:aves/services/common/services.dart';
|
|||
import 'package:aves_model/aves_model.dart';
|
||||
import 'package:aves_report/aves_report.dart';
|
||||
import 'package:collection/collection.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:stack_trace/stack_trace.dart';
|
||||
|
||||
|
@ -143,12 +144,22 @@ class PlatformMetadataEditService implements MetadataEditService {
|
|||
StackTrace? _currentStack() => ReportService.buildReportStack(Trace.current(), level: 1);
|
||||
|
||||
// distinct exceptions to convince Crashlytics to split reports into distinct issues
|
||||
// The distinct debug statement is there to make the body unique, so that the methods are not merged at compile time.
|
||||
|
||||
Future<void> mp4LargeMoov(CustomPlatformException e) => reportService.recordError(e, _currentStack());
|
||||
Future<void> mp4LargeMoov(CustomPlatformException e) {
|
||||
debugPrint('mp4LargeMoov $e');
|
||||
return reportService.recordError(e, _currentStack());
|
||||
}
|
||||
|
||||
Future<void> mp4LargeOther(CustomPlatformException e) => reportService.recordError(e, _currentStack());
|
||||
Future<void> mp4LargeOther(CustomPlatformException e) {
|
||||
debugPrint('mp4LargeOther $e');
|
||||
return reportService.recordError(e, _currentStack());
|
||||
}
|
||||
|
||||
Future<void> fileNotFound(CustomPlatformException e) => reportService.recordError(e, _currentStack());
|
||||
Future<void> fileNotFound(CustomPlatformException e) {
|
||||
debugPrint('fileNotFound $e');
|
||||
return reportService.recordError(e, _currentStack());
|
||||
}
|
||||
}
|
||||
|
||||
class CustomPlatformException {
|
||||
|
|
Loading…
Reference in a new issue