File tree Expand file tree Collapse file tree 6 files changed +13
-12
lines changed Expand file tree Collapse file tree 6 files changed +13
-12
lines changed Original file line number Diff line number Diff line change
1
+ ## 6.1.4-wip
2
+
3
+ - Fix formatting and remove dependency on ` package:intl ` .
4
+
1
5
## 6.1.3
2
6
3
7
- Require Dart 3.4.
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import 'package:file/file.dart';
8
8
import 'package:file/local.dart' ;
9
9
import 'package:file/memory.dart' ;
10
10
import 'package:http/http.dart' ;
11
- import 'package:intl/date_symbol_data_local.dart' ;
12
11
import 'package:meta/meta.dart' ;
13
12
import 'package:path/path.dart' as p;
14
13
@@ -436,10 +435,6 @@ class AnalyticsImpl implements Analytics {
436
435
kLogFileName,
437
436
)),
438
437
) {
439
- // Initialize date formatting for `package:intl` within constructor
440
- // so clients using this package won't need to
441
- initializeDateFormatting ();
442
-
443
438
// This initializer class will let the instance know
444
439
// if it was the first run; if it is, nothing will be sent
445
440
// on the first run
Original file line number Diff line number Diff line change 5
5
import 'dart:convert' ;
6
6
7
7
import 'package:clock/clock.dart' ;
8
+ import 'package:convert/convert.dart' ;
8
9
import 'package:file/file.dart' ;
9
- import 'package:intl/intl.dart' ;
10
10
import 'package:path/path.dart' as p;
11
11
12
12
import 'constants.dart' ;
@@ -226,7 +226,7 @@ class ToolInfo {
226
226
@override
227
227
String toString () {
228
228
return json.encode (< String , Object ? > {
229
- 'lastRun' : DateFormat ( 'yyyy -MM-dd ' ).format (lastRun),
229
+ 'lastRun' : FixedDateTimeFormatter ( 'YYYY -MM-DD ' ).encode (lastRun),
230
230
'versionNumber' : versionNumber,
231
231
});
232
232
}
Original file line number Diff line number Diff line change @@ -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 = '6.1.3 ' ;
90
+ const String kPackageVersion = '6.1.4-wip ' ;
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 @@ -7,8 +7,8 @@ import 'dart:io' as io;
7
7
import 'dart:math' show Random;
8
8
9
9
import 'package:clock/clock.dart' ;
10
+ import 'package:convert/convert.dart' ;
10
11
import 'package:file/file.dart' ;
11
- import 'package:intl/intl.dart' ;
12
12
import 'package:path/path.dart' as p;
13
13
14
14
import 'enums.dart' ;
@@ -21,7 +21,7 @@ import 'user_property.dart';
21
21
/// yyyy-MM-dd (2023-01-09)
22
22
/// ```
23
23
String get dateStamp {
24
- return DateFormat ( 'yyyy -MM-dd ' ).format (clock.now ());
24
+ return FixedDateTimeFormatter ( 'YYYY -MM-DD ' ).encode (clock.now ());
25
25
}
26
26
27
27
/// Reads in a directory and returns `true` if write permissions are enabled.
Original file line number Diff line number Diff line change @@ -2,19 +2,21 @@ name: unified_analytics
2
2
description : >-
3
3
A package for logging analytics for all Dart and Flutter related tooling
4
4
to Google Analytics.
5
+ # LINT.IfChange
5
6
# When updating this, keep the version consistent with the changelog and the
6
7
# value in lib/src/constants.dart.
7
- version : 6.1.3
8
+ version : 6.1.4-wip
9
+ # LINT.ThenChange(lib/src/constants.dart)
8
10
repository : https://github.com/dart-lang/tools/tree/main/pkgs/unified_analytics
9
11
10
12
environment :
11
13
sdk : ^3.4.0
12
14
13
15
dependencies :
14
16
clock : ^1.1.1
17
+ convert : ^3.1.1
15
18
file : ' >=6.1.4 <8.0.0'
16
19
http : ' >=0.13.5 <2.0.0'
17
- intl : ' >=0.18.0 <0.20.0'
18
20
meta : ^1.9.0
19
21
path : ^1.8.0
20
22
You can’t perform that action at this time.
0 commit comments