mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
7818ea43dc
Eagerly initialize libnotify by accessing the current date. See dart-lang/sdk#29539 for details. Fixes #9727.
18 lines
539 B
Dart
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);
|
|
}
|