Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 3d62190

Browse files
authored
[fuchsia] NNBD: Kernel libraries for Flutter, Dart runners (#18714)
This updates the references to `third_party/dart/sdk` to `third_party/dart/sdk_nnbd` Fixes: flutter/flutter#58431
1 parent e39301f commit 3d62190

File tree

12 files changed

+368
-356
lines changed

12 files changed

+368
-356
lines changed

shell/platform/fuchsia/dart-pkg/fuchsia/lib/fuchsia.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
// @dart = 2.6
56
library fuchsia;
67

78
import 'dart:io';

shell/platform/fuchsia/dart-pkg/zircon/lib/src/handle.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
// @dart = 2.6
56
part of zircon;
67

78
// ignore_for_file: native_function_body_in_non_sdk_code

shell/platform/fuchsia/dart-pkg/zircon/lib/src/handle_waiter.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
// @dart = 2.6
56
part of zircon;
67

78
// ignore_for_file: native_function_body_in_non_sdk_code

shell/platform/fuchsia/dart-pkg/zircon/lib/src/system.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
// @dart = 2.6
56
part of zircon;
67

78
// ignore_for_file: native_function_body_in_non_sdk_code

shell/platform/fuchsia/dart-pkg/zircon/lib/zircon.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
// @dart = 2.6
56
library zircon;
67

78
import 'dart:convert' show utf8;

shell/platform/fuchsia/dart_runner/embedder/builtin.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
// @dart = 2.6
56
library fuchsia_builtin;
67

78
import 'dart:async';

shell/platform/fuchsia/dart_runner/kernel/BUILD.gn

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ compile_platform("kernel_platform_files") {
2020
]
2121

2222
args = [
23+
"--enable-experiment=non-nullable",
24+
"--nnbd-weak",
25+
2326
# TODO(dartbug.com/36342): enable bytecode for core libraries when performance of bytecode
2427
# pipeline is on par with default pipeline and continuously tracked.
2528
# "--bytecode",

shell/platform/fuchsia/dart_runner/kernel/libraries.json

Lines changed: 89 additions & 89 deletions
Large diffs are not rendered by default.

shell/platform/fuchsia/dart_runner/kernel/libraries.yaml

Lines changed: 89 additions & 89 deletions
Large diffs are not rendered by default.

shell/platform/fuchsia/flutter/kernel/BUILD.gn

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ compile_platform("kernel_platform_files") {
2020
]
2121

2222
args = [
23+
"--enable-experiment=non-nullable",
24+
"--nnbd-weak",
25+
2326
# TODO(dartbug.com/36342): enable bytecode for core libraries when performance of bytecode
2427
# pipeline is on par with default pipeline and continuously tracked.
2528
# "--bytecode",

0 commit comments

Comments
 (0)