Commit 7818ea43 authored by Jakob Andersen's avatar Jakob Andersen Committed by GitHub

Workaround for intermittent pub crash on macOS. (#9832)

Eagerly initialize libnotify by accessing the current date. See dart-lang/sdk#29539 for details.

Fixes #9727.
parent 74e65675
...@@ -4,6 +4,14 @@ ...@@ -4,6 +4,14 @@
import 'package:flutter_tools/executable.dart' as executable; import 'package:flutter_tools/executable.dart' as executable;
// Temporary workaround for https://github.com/flutter/flutter/issues/9727
bool get initializeLibNotify {
final DateTime date = new DateTime.now();
return date.month == 1;
}
void main(List<String> args) { void main(List<String> args) {
// ignore: UNUSED_LOCAL_VARIABLE
final bool x = initializeLibNotify;
executable.main(args); executable.main(args);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment