flutter/packages/flutter_tools/bin/flutter_tools.dart
Jakob Andersen 7818ea43dc 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.
2017-05-05 13:30:48 +02:00

18 lines
539 B
Dart

// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
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) {
// ignore: UNUSED_LOCAL_VARIABLE
final bool x = initializeLibNotify;
executable.main(args);
}