From fc4683d135d366e1f82d40900a895141aa853f09 Mon Sep 17 00:00:00 2001 From: Chase Latta Date: Tue, 20 Oct 2020 14:47:01 -0700 Subject: [PATCH] [fuchsia] opt-out null-safety in standalone scripts (flutter/engine#22009) --- engine/src/flutter/shell/platform/fuchsia/dart/compiler.dart | 2 ++ .../flutter/shell/platform/fuchsia/flutter/collect_traces.dart | 2 ++ .../shell/platform/fuchsia/flutter/kernel/extract_far.dart | 2 ++ .../runtime/dart/profiler_symbols/dart_profiler_symbols.dart | 2 ++ 4 files changed, 8 insertions(+) diff --git a/engine/src/flutter/shell/platform/fuchsia/dart/compiler.dart b/engine/src/flutter/shell/platform/fuchsia/dart/compiler.dart index c955e21881..b0ab6f2db0 100644 --- a/engine/src/flutter/shell/platform/fuchsia/dart/compiler.dart +++ b/engine/src/flutter/shell/platform/fuchsia/dart/compiler.dart @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.9 + import 'dart:async'; import 'dart:io'; diff --git a/engine/src/flutter/shell/platform/fuchsia/flutter/collect_traces.dart b/engine/src/flutter/shell/platform/fuchsia/flutter/collect_traces.dart index cfb67e09f7..ed017218e1 100644 --- a/engine/src/flutter/shell/platform/fuchsia/flutter/collect_traces.dart +++ b/engine/src/flutter/shell/platform/fuchsia/flutter/collect_traces.dart @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.9 + import 'dart:io'; import 'dart:convert'; diff --git a/engine/src/flutter/shell/platform/fuchsia/flutter/kernel/extract_far.dart b/engine/src/flutter/shell/platform/fuchsia/flutter/kernel/extract_far.dart index 4bfd72a3e4..442f64be4b 100644 --- a/engine/src/flutter/shell/platform/fuchsia/flutter/kernel/extract_far.dart +++ b/engine/src/flutter/shell/platform/fuchsia/flutter/kernel/extract_far.dart @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.9 + import "dart:io"; import "package:args/args.dart"; diff --git a/engine/src/flutter/shell/platform/fuchsia/runtime/dart/profiler_symbols/dart_profiler_symbols.dart b/engine/src/flutter/shell/platform/fuchsia/runtime/dart/profiler_symbols/dart_profiler_symbols.dart index 0e6af0f48e..c0436c096a 100644 --- a/engine/src/flutter/shell/platform/fuchsia/runtime/dart/profiler_symbols/dart_profiler_symbols.dart +++ b/engine/src/flutter/shell/platform/fuchsia/runtime/dart/profiler_symbols/dart_profiler_symbols.dart @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.9 + // On Fuchsia, in lieu of the ELF dynamic symbol table consumed through dladdr, // the Dart VM profiler consumes symbols produced by this tool, which have the // format