File tree 4 files changed +14
-4
lines changed 4 files changed +14
-4
lines changed Original file line number Diff line number Diff line change
1
+ ## 5.8.3
2
+
3
+ - [ Fix bug] ( https://github.com/flutter/flutter/issues/143792 ) when parsing session json file
4
+
1
5
## 5.8.2
2
6
3
7
- Added new event ` Event.analyticsException ` to track internal errors for this package
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ const int kLogFileLength = 2500;
82
82
const String kLogFileName = 'dart-flutter-telemetry.log' ;
83
83
84
84
/// The current version of the package, should be in line with pubspec version.
85
- const String kPackageVersion = '5.8.2 ' ;
85
+ const String kPackageVersion = '5.8.3 ' ;
86
86
87
87
/// The minimum length for a session.
88
88
const int kSessionDurationMinutes = 30 ;
Original file line number Diff line number Diff line change @@ -105,7 +105,10 @@ class Session {
105
105
description: 'message: ${err .message }\n source: ${err .source }' ,
106
106
));
107
107
108
- parseContents ();
108
+ // Fallback to setting the session id as the current time
109
+ final now = clock.now ();
110
+ _sessionId = now.millisecondsSinceEpoch;
111
+ _lastPing = now.millisecondsSinceEpoch;
109
112
} on FileSystemException catch (err) {
110
113
Initializer .createSessionFile (sessionFile: sessionFile);
111
114
@@ -115,7 +118,10 @@ class Session {
115
118
description: err.osError? .toString (),
116
119
));
117
120
118
- parseContents ();
121
+ // Fallback to setting the session id as the current time
122
+ final now = clock.now ();
123
+ _sessionId = now.millisecondsSinceEpoch;
124
+ _lastPing = now.millisecondsSinceEpoch;
119
125
}
120
126
}
121
127
}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ description: >-
4
4
to Google Analytics.
5
5
# When updating this, keep the version consistent with the changelog and the
6
6
# value in lib/src/constants.dart.
7
- version : 5.8.2
7
+ version : 5.8.3
8
8
repository : https://github.com/dart-lang/tools/tree/main/pkgs/unified_analytics
9
9
10
10
environment :
You can’t perform that action at this time.
0 commit comments