From b4ccb1bf3dae7882e297fc8a99e29467abee839c Mon Sep 17 00:00:00 2001 From: Boehrsi Date: Fri, 5 Jun 2020 10:57:55 +0200 Subject: [PATCH] Last updates --- lib/src/log/log_manager.dart | 6 +++++- pubspec.lock | 2 +- pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/src/log/log_manager.dart b/lib/src/log/log_manager.dart index 8b5e9bfa..de64ea40 100644 --- a/lib/src/log/log_manager.dart +++ b/lib/src/log/log_manager.dart @@ -177,7 +177,11 @@ class LogManager { final dccLogLevel = event.data2; final message = "$dccLogLevel: $dccLogMessage"; final logRecord = LogRecord(Level.INFO, message, _coreLoggerName); - _logEntry(logRecord, true); + if (Platform.isIOS) { + _logEntry(logRecord, true); // Enables iOS developers to receive DCC logs during Android Studio sessions + } else if (Platform.isAndroid) { + _writeToLogFile(logRecord); + } } Future logDeviceInfo() async { diff --git a/pubspec.lock b/pubspec.lock index 2f1b591a..418ab46f 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -49,7 +49,7 @@ packages: name: background_fetch url: "https://pub.dartlang.org" source: hosted - version: "0.5.5" + version: "0.5.6" bloc: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index 98e40e69..1ee40822 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -12,7 +12,7 @@ dependencies: flutter_localizations: sdk: flutter app_settings: ^3.0.0+1 - background_fetch: ^0.5.5 + background_fetch: ^0.5.6 bloc: ^3.0.0 cached_network_image: ^2.0.0 contacts_service: ^0.3.10