Enable private field promotion (flutter/engine#45722)

New feature in upcoming Dart 3.2. See https://github.com/dart-lang/language/issues/2020. Feature is enabled by bumping the min SDK version to 3.2.

Part of https://github.com/flutter/flutter/issues/134476.
This commit is contained in:
Michael Goderbauer 2023-09-14 14:02:03 -07:00 committed by GitHub
parent 563857b00e
commit efc22ee283
50 changed files with 50 additions and 51 deletions

View File

@ -5,7 +5,7 @@
name: ci_scripts
publish_to: none
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
# Do not add any dependencies that require more than what is provided in
# //third_party/pkg, //third_party/dart/pkg, or

View File

@ -18,7 +18,7 @@ homepage: https://flutter.dev
# relative to this directory into //third_party/dart
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
args: any

View File

@ -5,7 +5,7 @@
name: golden_tests_harvester
publish_to: none
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
# Do not add any dependencies that require more than what is provided in
# //third_party/dart/pkg, //third_party/dart/third_party/pkg, or

View File

@ -8,4 +8,4 @@ publish_to: none
homepage: https://github.com/flutter/impeller/tree/main/tessellator/dart
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

View File

@ -7,7 +7,7 @@ description: A framework for writing Flutter applications
homepage: https://flutter.dev
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
sky_engine:

View File

@ -5,4 +5,4 @@
# This file is needed by Fuchsia's dart_library template.
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

View File

@ -1004,7 +1004,7 @@ class BrowserManager {
final String pathToTest = p.dirname(path);
final String mapPath = p.join(
_sourceMapDirectory!.path,
_sourceMapDirectory.path,
pathToTest,
sourceMapFileName
);

View File

@ -406,8 +406,7 @@ class ImageFilterEngineLayer extends ContainerLayer
prerollContext.mutatorsStack.pushTransform(transform);
final ui.Rect childPaintBounds =
prerollChildren(prerollContext, childMatrix);
(_filter as CkManagedSkImageFilterConvertible)
.imageFilter((SkImageFilter filter) {
_filter.imageFilter((SkImageFilter filter) {
paintBounds =
rectFromSkIRect(filter.getOutputBounds(toSkRect(childPaintBounds)));
});

View File

@ -3,7 +3,7 @@ publish_to: none
# Keep the SDK version range in sync with pubspecs under web_sdk
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
js: 0.6.4

View File

@ -81,7 +81,7 @@ class FakeAssetScope {
return fetcher();
}
if (_parent != null) {
return _parent!.getAssetData(assetKey);
return _parent.getAssetData(assetKey);
}
return null;
}

View File

@ -3,4 +3,4 @@
# found in the LICENSE file.
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

View File

@ -5,7 +5,7 @@
name: zircon
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
# Uncomment block for local testing

View File

@ -1,7 +1,7 @@
name: zircon_ffi
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
ffi: ^1.0.0

View File

@ -6,5 +6,5 @@
# template in BUILD.gn.
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

View File

@ -3,5 +3,5 @@
# found in the LICENSE file.
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

View File

@ -3,4 +3,4 @@
# found in the LICENSE file.
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

View File

@ -5,4 +5,4 @@
name: child_view2
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

View File

@ -5,4 +5,4 @@
name: parent-view2
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

View File

@ -5,4 +5,4 @@
name: mouse-input-view
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

View File

@ -5,4 +5,4 @@
name: text-input-view
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

View File

@ -5,4 +5,4 @@
name: embedding-flutter-view
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

View File

@ -5,4 +5,4 @@
name: touch-input-view
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

View File

@ -4,7 +4,7 @@
name: profiler_symbols
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
version: 0
description: Extracts a minimal symbols table for the Dart VM profiler
author: Dart Team <misc@dartlang.org>

View File

@ -5,4 +5,4 @@
name: vmservice_snapshot
publish_to: none
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

View File

@ -5,4 +5,4 @@ description: Dart SDK extensions for dart:ui
homepage: http://flutter.io
# sky_engine requires sdk_ext support in the analyzer which was added in 1.11.x
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

View File

@ -5,7 +5,7 @@
name: android_background_image
publish_to: none
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
# Do not add any dependencies that require more than what is provided in
# //third_party/dart/pkg, //third_party/dart/third_party/pkg, or

View File

@ -5,7 +5,7 @@
name: flutter_engine_benchmark
publish_to: none
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
# Do not add any dependencies that require more than what is provided in
# //third_party/pkg, //third_party/dart/pkg, or

View File

@ -14,7 +14,7 @@ publish_to: none
# relative to this directory into //third_party/dart
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
litetest: any

View File

@ -14,7 +14,7 @@ publish_to: none
# relative to this directory into //third_party/dart
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
async_helper: any

View File

@ -5,7 +5,7 @@
name: scenario_app
publish_to: none
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
# Do not add any dependencies that require more than what is provided in
# //third_party/dart/pkg, //third_party/dart/third_party/pkg, or

View File

@ -5,7 +5,7 @@
name: skia_gold_client
publish_to: none
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
# Do not add any dependencies that require more than what is provided in
# //third_party/dart/pkg, //third_party/dart/third_party/pkg, or

View File

@ -5,7 +5,7 @@
name: smoke_test_failure
publish_to: none
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
# Do not add any dependencies that require more than what is provided in
# //third_party/dart/pkg or //third_party/dart/third_party/pkg.

View File

@ -5,7 +5,7 @@
name: verify_exported
publish_to: none
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
# Do not add any dependencies that require more than what is provided in
# //third_party/pkg, //third_party/dart/pkg, or

View File

@ -3,7 +3,7 @@ name: web_locale_keymap
publish_to: none
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
dev_dependencies:
test: ^1.21.7

View File

@ -3,7 +3,7 @@ name: web_test_fonts
publish_to: none
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
dev_dependencies:
args: any

View File

@ -3,7 +3,7 @@ name: web_unicode
publish_to: none
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
dev_dependencies:
args: any

View File

@ -4,7 +4,7 @@
name: android_lint
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
# Do not add any dependencies that require more than what is provided in
# //third_party.pkg, //third_party/dart/pkg, or

View File

@ -14,7 +14,7 @@ publish_to: none
# relative to this directory into //third_party/dart
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
# Do not add any dependencies that require more than what is provided in
# //third_party/pkg, //third_party/dart/pkg, or

View File

@ -5,7 +5,7 @@
name: build_bucket_golden_scraper
publish_to: none
environment:
sdk: ^3.0.0
sdk: '>=3.2.0-0 <4.0.0'
# Do not add any dependencies that require more than what is provided in
# //third_party/pkg, //third_party/dart/pkg, or

View File

@ -5,7 +5,7 @@
name: clang_tidy
publish_to: none
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
# Do not add any dependencies that require more than what is provided in
# //third_party/pkg, //third_party/dart/pkg, or

View File

@ -6,7 +6,7 @@ name: const_finder
publish_to: none
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
# Do not add any dependencies that require more than what is provided in
# //third_party/dart/pkg or //third_party/dart/third_party/pkg.

View File

@ -2,7 +2,7 @@ name: gen_web_keyboard_keymap
description: Generates keyboard layouts for Web from external sources.
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
args: any

View File

@ -5,7 +5,7 @@
name: githooks
publish_to: none
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
# Do not add any dependencies that require more than what is provided in
# //third_party.pkg, //third_party/dart/pkg, or

View File

@ -5,7 +5,7 @@
name: licenses
publish_to: none
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
# Do not add any dependencies that require more than what is provided
# in //third_party.pkg, //third_party/dart/pkg, or

View File

@ -8,7 +8,7 @@ publish_to: none
homepage: https://github.com/flutter/engine/tree/main/tools/path_ops
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
dev_dependencies:
litetest: any

View File

@ -5,7 +5,7 @@
name: engine_build_configs
publish_to: none
environment:
sdk: '>=3.1.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
# Do not add any dependencies that require more than what is provided in
# //third_party/pkg, //third_party/dart/pkg, or

View File

@ -5,7 +5,7 @@
name: engine_repo_tools
publish_to: none
environment:
sdk: ^3.0.0
sdk: '>=3.2.0-0 <4.0.0'
# Do not add any dependencies that require more than what is provided in
# //third_party/pkg, //third_party/dart/pkg, or

View File

@ -2,7 +2,7 @@ name: web_sdk_tests
# Keep the SDK version range in sync with lib/web_ui/pubspec.yaml
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
args: 2.3.1

View File

@ -2,7 +2,7 @@ name: web_engine_tester
# Keep the SDK version range in sync with lib/web_ui/pubspec.yaml
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
js: 0.6.4

View File

@ -2,7 +2,7 @@ name: web_test_utils
# Keep the SDK version range in sync with lib/web_ui/pubspec.yaml
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
collection: 1.17.0