File tree 1 file changed +5
-0
lines changed
pkgs/unified_analytics/lib/src
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ 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' ;
11
12
import 'package:meta/meta.dart' ;
12
13
import 'package:path/path.dart' as p;
13
14
@@ -291,6 +292,10 @@ class AnalyticsImpl implements Analytics {
291
292
required gaClient,
292
293
bool pddFlag = false ,
293
294
}) : _gaClient = gaClient {
295
+ // Initialize date formatting for `package:intl` within constructor
296
+ // so clients using this package won't need to
297
+ initializeDateFormatting ();
298
+
294
299
// This initializer class will let the instance know
295
300
// if it was the first run; if it is, nothing will be sent
296
301
// on the first run
You can’t perform that action at this time.
0 commit comments