Skip to content

Commit

Permalink
upgraded deps
Browse files Browse the repository at this point in the history
  • Loading branch information
krjw-eyev committed Aug 17, 2023
1 parent c1f3378 commit 70ff088
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 45 deletions.
2 changes: 1 addition & 1 deletion lib/src/connectivity/native/networkinterfaceprovider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class NetworkInterfaceProvider implements ConnectivityProvider {
// }
}
} catch (error) {
ET.logger?.e('Connection Isolate reports error: ', error, StackTrace.current);
ET.logger?.e('Connection Isolate reports error: ', error: error, stackTrace: StackTrace.current);
message = ConnectionMessage.disconnected();
}
portReceive.send(message);
Expand Down
14 changes: 7 additions & 7 deletions lib/src/data/repositories/profiles_repository_imp.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ class ProfilesRepositoryImpl implements ProfilesRepository {
} on NotConnectedException catch (_) {
rethrow;
} on StillStreamingException catch (error) {
ET.logger?.w('Warning in getting profiles:', error, StackTrace.current);
ET.logger?.w('Warning in getting profiles:', error: error, stackTrace: StackTrace.current);
rethrow;
} catch (error) {
ET.logger?.e('Error in getting profiles:', error, StackTrace.current);
ET.logger?.e('Error in getting profiles:', error: error, stackTrace: StackTrace.current);
rethrow;
} finally {
_stream = null;
Expand All @@ -54,10 +54,10 @@ class ProfilesRepositoryImpl implements ProfilesRepository {
} on NotConnectedException catch (_) {
rethrow;
} on StillStreamingException catch (error) {
ET.logger?.w('Warning deleting profile ${profile.name}:', error, StackTrace.current);
ET.logger?.w('Warning deleting profile ${profile.name}:', error: error, stackTrace: StackTrace.current);
rethrow;
} catch (error) {
ET.logger?.e('Error deleting profile ${profile.name}:', error, StackTrace.current);
ET.logger?.e('Error deleting profile ${profile.name}:', error: error, stackTrace: StackTrace.current);
rethrow;
}
}
Expand All @@ -76,10 +76,10 @@ class ProfilesRepositoryImpl implements ProfilesRepository {
} on NotConnectedException catch (_) {
rethrow;
} on StillStreamingException catch (error) {
ET.logger?.w('Warning adding profile ${profile.name}:', error, StackTrace.current);
ET.logger?.w('Warning adding profile ${profile.name}:', error: error, stackTrace: StackTrace.current);
rethrow;
} catch (error) {
ET.logger?.e('Error adding profile ${profile.name}:', error, StackTrace.current);
ET.logger?.e('Error adding profile ${profile.name}:', error: error, stackTrace: StackTrace.current);
rethrow;
}
}
Expand All @@ -93,7 +93,7 @@ class ProfilesRepositoryImpl implements ProfilesRepository {
} on NotConnectedException catch (_) {
rethrow;
} catch (error) {
ET.logger?.e('Error getting current profile:', error, StackTrace.current);
ET.logger?.e('Error getting current profile:', error: error, stackTrace: StackTrace.current);
rethrow;
}
}
Expand Down
10 changes: 5 additions & 5 deletions lib/src/data/repositories/video_stream_repository_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class VideoStreamRepositoryImpl implements VideoStreamRepository {
_sendPort = null;
running = false;
} catch (error) {
ET.logger?.e('Error stopping parsing isolate.', error, StackTrace.current);
ET.logger?.e('Error stopping parsing isolate.', error: error, stackTrace: StackTrace.current);
}
}

Expand Down Expand Up @@ -92,18 +92,18 @@ class VideoStreamRepositoryImpl implements VideoStreamRepository {
_subscription = response.stream.listen((data) async {
_sendPort?.send(data);
}, onError: (error) async {
ET.logger?.e('Error in mjpeg stream.', error, StackTrace.current);
ET.logger?.e('Error in mjpeg stream.', error: error, stackTrace: StackTrace.current);
await cancel();
}, cancelOnError: true);
} else {
ET.logger?.e('Error in mjpeg stream.', Exception('Stream returned ${response.statusCode} status'), StackTrace.current);
ET.logger?.e('Error in mjpeg stream.', error: Exception('Stream returned ${response.statusCode} status'), stackTrace: StackTrace.current);
await cancel();
yield DataFailed('Stream returned ${response.statusCode} status and is canceled.');
}
}
}
} catch (error) {
ET.logger?.e('Error in mjpeg stream.', error, StackTrace.current);
ET.logger?.e('Error in mjpeg stream.', error: error, stackTrace: StackTrace.current);
yield const DataFailed('Stream failed.');
}
}
Expand All @@ -117,7 +117,7 @@ class VideoStreamRepositoryImpl implements VideoStreamRepository {
// _httpClient.close();
await _stopParsingIsolate();
} catch (error) {
ET.logger?.e('Error canceling mjpeg stream request.', error, StackTrace.current);
ET.logger?.e('Error canceling mjpeg stream request.', error: error, stackTrace: StackTrace.current);
}
}

Expand Down
6 changes: 3 additions & 3 deletions lib/src/et.dart
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class ET {
break;
} catch (error) {
final milliseconds = 100 + 500 * i;
logger?.w('Warning in tryReconnect():', error, StackTrace.current);
logger?.w('Warning in tryReconnect():', error: error, stackTrace: StackTrace.current);
logger?.i('GRPC connection attempt ${i + 1}/$_maxRetries - Waiting ${milliseconds / 1000}s before retrying.');
await Future.delayed(Duration(milliseconds: milliseconds));
}
Expand All @@ -155,7 +155,7 @@ class ET {
throw Exception('Could not excecute initial GRPC');
}
} catch (e, st) {
logger?.e('Skyle disconnected fatally:', e, st);
logger?.e('Skyle disconnected fatally:', error: e, stackTrace: st);
await softDisconnect();
}
}
Expand All @@ -180,7 +180,7 @@ class ET {
switchSettings.stop();
await _channel?.terminate();
} catch (e, st) {
logger?.e('Skyle disconnecting clients failed:', e, st);
logger?.e('Skyle disconnecting clients failed:', error: e, stackTrace: st);
} finally {
_channel = null;
_client = null;
Expand Down
60 changes: 34 additions & 26 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ packages:
dependency: transitive
description:
name: _fe_analyzer_shared
sha256: ae92f5d747aee634b87f89d9946000c2de774be1d6ac3e58268224348cd0101a
sha256: eb376e9acf6938204f90eb3b1f00b578640d3188b4c8a8ec054f9f479af8d051
url: "https://pub.dev"
source: hosted
version: "61.0.0"
version: "64.0.0"
analyzer:
dependency: transitive
description:
name: analyzer
sha256: ea3d8652bda62982addfd92fdc2d0214e5f82e43325104990d4f4c4a2a313562
sha256: "69f54f967773f6c26c7dcb13e93d7ccee8b17a641689da39e878d5cf13b06893"
url: "https://pub.dev"
source: hosted
version: "5.13.0"
version: "6.2.0"
archive:
dependency: transitive
description:
Expand Down Expand Up @@ -121,6 +121,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.0.3"
clock:
dependency: transitive
description:
name: clock
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
url: "https://pub.dev"
source: hosted
version: "1.1.1"
code_builder:
dependency: transitive
description:
Expand All @@ -133,10 +141,10 @@ packages:
dependency: "direct main"
description:
name: collection
sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
url: "https://pub.dev"
source: hosted
version: "1.17.2"
version: "1.18.0"
convert:
dependency: transitive
description:
Expand Down Expand Up @@ -189,18 +197,18 @@ packages:
dependency: "direct dev"
description:
name: freezed
sha256: a9520490532087cf38bf3f7de478ab6ebeb5f68bb1eb2641546d92719b224445
sha256: "83462cfc33dc9680533a7f3a4a6ab60aa94f287db5f4ee6511248c22833c497f"
url: "https://pub.dev"
source: hosted
version: "2.3.5"
version: "2.4.2"
freezed_annotation:
dependency: "direct main"
description:
name: freezed_annotation
sha256: aeac15850ef1b38ee368d4c53ba9a847e900bb2c53a4db3f6881cbb3cb684338
sha256: c3fd9336eb55a38cc1bbd79ab17573113a8deccd0ecbbf926cca3c62803b5c2d
url: "https://pub.dev"
source: hosted
version: "2.2.0"
version: "2.4.1"
frontend_server_client:
dependency: transitive
description:
Expand Down Expand Up @@ -237,18 +245,18 @@ packages:
dependency: "direct main"
description:
name: grpc
sha256: "4e9bff1ebb4ff370cf471b1ab85007b408ade867dcc34b551eee7ee7da573002"
sha256: "220ffb2218288f4e7dea487242e08b9c6277596d9b6f3f10ba50be96771a032d"
url: "https://pub.dev"
source: hosted
version: "3.2.2"
version: "3.2.3"
http:
dependency: "direct main"
description:
name: http
sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2"
sha256: "759d1a329847dd0f39226c688d3e06a6b8679668e350e2891a6474f8b4bb8525"
url: "https://pub.dev"
source: hosted
version: "0.13.6"
version: "1.1.0"
http2:
dependency: transitive
description:
Expand Down Expand Up @@ -309,10 +317,10 @@ packages:
dependency: "direct main"
description:
name: logger
sha256: "7ad7215c15420a102ec687bb320a7312afd449bac63bfb1c60d9787c27b9767f"
sha256: "66cb048220ca51cf9011da69fa581e4ee2bed4be6e82870d9e9baae75739da49"
url: "https://pub.dev"
source: hosted
version: "1.4.0"
version: "2.0.1"
logging:
dependency: transitive
description:
Expand Down Expand Up @@ -389,10 +397,10 @@ packages:
dependency: "direct main"
description:
name: protobuf
sha256: "01dd9bd0fa02548bf2ceee13545d4a0ec6046459d847b6b061d8a27237108a08"
sha256: "68645b24e0716782e58948f8467fd42a880f255096a821f9e7d0ec625b00c84d"
url: "https://pub.dev"
source: hosted
version: "2.1.0"
version: "3.1.0"
pub_semver:
dependency: transitive
description:
Expand Down Expand Up @@ -493,10 +501,10 @@ packages:
dependency: transitive
description:
name: stack_trace
sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
url: "https://pub.dev"
source: hosted
version: "1.11.0"
version: "1.11.1"
stream_channel:
dependency: transitive
description:
Expand Down Expand Up @@ -533,10 +541,10 @@ packages:
dependency: "direct dev"
description:
name: test
sha256: "67ec5684c7a19b2aba91d2831f3d305a6fd8e1504629c5818f8d64478abf4f38"
sha256: "9b0dd8e36af4a5b1569029949d50a52cb2a2a2fdaa20cebb96e6603b9ae241f9"
url: "https://pub.dev"
source: hosted
version: "1.24.4"
version: "1.24.6"
test_api:
dependency: transitive
description:
Expand All @@ -549,10 +557,10 @@ packages:
dependency: transitive
description:
name: test_core
sha256: "6b753899253c38ca0523bb0eccff3934ec83d011705dae717c61ecf209e333c9"
sha256: "4bef837e56375537055fdbbbf6dd458b1859881f4c7e6da936158f77d61ab265"
url: "https://pub.dev"
source: hosted
version: "0.5.4"
version: "0.5.6"
timing:
dependency: transitive
description:
Expand Down Expand Up @@ -581,10 +589,10 @@ packages:
dependency: transitive
description:
name: vm_service
sha256: b8c67f5fa3897b122cf60fe9ff314f7b0ef71eab25c5f8b771480bc338f48823
sha256: "0fae432c85c4ea880b33b497d32824b97795b04cdaa74d270219572a1f50268d"
url: "https://pub.dev"
source: hosted
version: "11.7.2"
version: "11.9.0"
watcher:
dependency: transitive
description:
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ dependencies:

grpc: ^3.1.0

http: ^0.13.5
http: ^1.1.0

json_annotation: ^4.8.0

logger: ^1.3.0
logger: ^2.0.1

path: ^1.8.2

protobuf: ^2.1.0
protobuf: ^3.1.0

retry: ^3.1.1

Expand Down

0 comments on commit 70ff088

Please sign in to comment.