analysis service init fix
This commit is contained in:
parent
da209ff1bc
commit
e76e49a54b
3 changed files with 4 additions and 2 deletions
|
@ -2,6 +2,7 @@ import 'dart:async';
|
|||
import 'dart:ui';
|
||||
|
||||
import 'package:aves/l10n/l10n.dart';
|
||||
import 'package:aves/model/device.dart';
|
||||
import 'package:aves/model/settings/settings.dart';
|
||||
import 'package:aves/model/source/analysis_controller.dart';
|
||||
import 'package:aves/model/source/enums/enums.dart';
|
||||
|
@ -47,6 +48,7 @@ Future<void> _init() async {
|
|||
initPlatformServices();
|
||||
await androidFileUtils.init();
|
||||
await metadataDb.init();
|
||||
await device.init();
|
||||
await mobileServices.init();
|
||||
await settings.init(monitorPlatformSettings: false);
|
||||
FijkLog.setLevel(FijkLogLevel.Warn);
|
||||
|
|
|
@ -11,7 +11,7 @@ class PlatformReportService extends ReportService {
|
|||
Future<void> log(String message) async => debugPrint('Report log with message=$message');
|
||||
|
||||
@override
|
||||
Future<void> recordError(exception, StackTrace? stack) async => debugPrint('Report error with exception=$exception, stack=$stack');
|
||||
Future<void> recordError(dynamic exception, StackTrace? stack) async => debugPrint('Report error with exception=$exception, stack=$stack');
|
||||
|
||||
@override
|
||||
Future<void> recordFlutterError(FlutterErrorDetails flutterErrorDetails) async => debugPrint('Report Flutter error with details=$flutterErrorDetails');
|
||||
|
|
|
@ -21,7 +21,7 @@ class FakeReportService extends ReportService {
|
|||
Future<void> setCustomKeys(Map<String, Object> map) => SynchronousFuture(null);
|
||||
|
||||
@override
|
||||
Future<void> recordError(exception, StackTrace? stack) => SynchronousFuture(null);
|
||||
Future<void> recordError(dynamic exception, StackTrace? stack) => SynchronousFuture(null);
|
||||
|
||||
@override
|
||||
Future<void> recordFlutterError(FlutterErrorDetails flutterErrorDetails) => SynchronousFuture(null);
|
||||
|
|
Loading…
Reference in a new issue