File tree Expand file tree Collapse file tree 5 files changed +15
-4
lines changed Expand file tree Collapse file tree 5 files changed +15
-4
lines changed Original file line number Diff line number Diff line change
1
+ ## 7.0.1
2
+ - Fixed ` UnsupportedError ` thrown when Event.exception is called without providing a value for ` args ` .
3
+
1
4
## 7.0.0
2
5
- Added a required parameter ` screen ` to the ` Event.devtoolsEvent ` constructor.
3
6
- Added an optional parameter ` additionalMetrics ` to the ` Event.devtoolsEvent ` constructor.
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const String kConfigString = '''
26
26
# All other lines are configuration lines. They have
27
27
# the form "name=value". If multiple lines contain
28
28
# the same configuration name with different values,
29
- # the parser will default to a conservative value.
29
+ # the parser will default to a conservative value.
30
30
31
31
# DISABLING TELEMETRY REPORTING
32
32
#
@@ -87,7 +87,7 @@ const int kMaxLogFileSize = 25 * (1 << 20);
87
87
const String kLogFileName = 'dart-flutter-telemetry.log' ;
88
88
89
89
/// The current version of the package, should be in line with pubspec version.
90
- const String kPackageVersion = '7.0.0 ' ;
90
+ const String kPackageVersion = '7.0.1 ' ;
91
91
92
92
/// The minimum length for a session.
93
93
const int kSessionDurationMinutes = 30 ;
Original file line number Diff line number Diff line change @@ -455,7 +455,7 @@ final class Event {
455
455
}) : eventName = DashEvent .exception,
456
456
eventData = {
457
457
'exception' : exception,
458
- ...data..removeWhere ((key, value) => value == null ),
458
+ ...Map . from ( data) ..removeWhere ((key, value) => value == null ),
459
459
};
460
460
461
461
/// Event that is emitted from the flutter tool when a build invocation
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ description: >-
5
5
# LINT.IfChange
6
6
# When updating this, keep the version consistent with the changelog and the
7
7
# value in lib/src/constants.dart.
8
- version : 7.0.0
8
+ version : 7.0.1
9
9
# LINT.ThenChange(lib/src/constants.dart)
10
10
repository : https://github.com/dart-lang/tools/tree/main/pkgs/unified_analytics
11
11
issue_tracker : https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aunified_analytics
Original file line number Diff line number Diff line change @@ -444,6 +444,14 @@ void main() {
444
444
expect (constructedEvent.eventData.length, 3 );
445
445
});
446
446
447
+ test ('Event.exception constructor works when no data is provided' , () {
448
+ Event generateEvent () => Event .exception (
449
+ exception: 'exception' ,
450
+ );
451
+
452
+ expect (generateEvent, returnsNormally);
453
+ });
454
+
447
455
test ('Event.timing constructed' , () {
448
456
Event generateEvent () => Event .timing (
449
457
workflow: 'workflow' ,
You can’t perform that action at this time.
0 commit comments