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

View File

@@ -5,7 +5,7 @@
name: golden_tests_harvester name: golden_tests_harvester
publish_to: none publish_to: none
environment: 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 # Do not add any dependencies that require more than what is provided in
# //third_party/dart/pkg, //third_party/dart/third_party/pkg, or # //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 homepage: https://github.com/flutter/impeller/tree/main/tessellator/dart
environment: 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 homepage: https://flutter.dev
environment: environment:
sdk: '>=3.0.0-0 <4.0.0' sdk: '>=3.2.0-0 <4.0.0'
dependencies: dependencies:
sky_engine: sky_engine:

View File

@@ -5,4 +5,4 @@
# This file is needed by Fuchsia's dart_library template. # This file is needed by Fuchsia's dart_library template.
environment: 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 pathToTest = p.dirname(path);
final String mapPath = p.join( final String mapPath = p.join(
_sourceMapDirectory!.path, _sourceMapDirectory.path,
pathToTest, pathToTest,
sourceMapFileName sourceMapFileName
); );

View File

@@ -406,8 +406,7 @@ class ImageFilterEngineLayer extends ContainerLayer
prerollContext.mutatorsStack.pushTransform(transform); prerollContext.mutatorsStack.pushTransform(transform);
final ui.Rect childPaintBounds = final ui.Rect childPaintBounds =
prerollChildren(prerollContext, childMatrix); prerollChildren(prerollContext, childMatrix);
(_filter as CkManagedSkImageFilterConvertible) _filter.imageFilter((SkImageFilter filter) {
.imageFilter((SkImageFilter filter) {
paintBounds = paintBounds =
rectFromSkIRect(filter.getOutputBounds(toSkRect(childPaintBounds))); 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 # Keep the SDK version range in sync with pubspecs under web_sdk
environment: environment:
sdk: '>=3.0.0-0 <4.0.0' sdk: '>=3.2.0-0 <4.0.0'
dependencies: dependencies:
js: 0.6.4 js: 0.6.4

View File

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

View File

@@ -3,4 +3,4 @@
# found in the LICENSE file. # found in the LICENSE file.
environment: 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 name: zircon
environment: environment:
sdk: '>=3.0.0-0 <4.0.0' sdk: '>=3.2.0-0 <4.0.0'
# Uncomment block for local testing # Uncomment block for local testing

View File

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

View File

@@ -6,5 +6,5 @@
# template in BUILD.gn. # template in BUILD.gn.
environment: 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. # found in the LICENSE file.
environment: 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. # found in the LICENSE file.
environment: 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 name: child_view2
environment: 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 name: parent-view2
environment: 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 name: mouse-input-view
environment: 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 name: text-input-view
environment: 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 name: embedding-flutter-view
environment: 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 name: touch-input-view
environment: 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 name: profiler_symbols
environment: environment:
sdk: '>=3.0.0-0 <4.0.0' sdk: '>=3.2.0-0 <4.0.0'
version: 0 version: 0
description: Extracts a minimal symbols table for the Dart VM profiler description: Extracts a minimal symbols table for the Dart VM profiler
author: Dart Team <misc@dartlang.org> author: Dart Team <misc@dartlang.org>

View File

@@ -5,4 +5,4 @@
name: vmservice_snapshot name: vmservice_snapshot
publish_to: none publish_to: none
environment: 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 homepage: http://flutter.io
# sky_engine requires sdk_ext support in the analyzer which was added in 1.11.x # sky_engine requires sdk_ext support in the analyzer which was added in 1.11.x
environment: 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 name: android_background_image
publish_to: none publish_to: none
environment: 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 # Do not add any dependencies that require more than what is provided in
# //third_party/dart/pkg, //third_party/dart/third_party/pkg, or # //third_party/dart/pkg, //third_party/dart/third_party/pkg, or

View File

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

View File

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

View File

@@ -5,7 +5,7 @@
name: scenario_app name: scenario_app
publish_to: none publish_to: none
environment: 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 # Do not add any dependencies that require more than what is provided in
# //third_party/dart/pkg, //third_party/dart/third_party/pkg, or # //third_party/dart/pkg, //third_party/dart/third_party/pkg, or

View File

@@ -5,7 +5,7 @@
name: skia_gold_client name: skia_gold_client
publish_to: none publish_to: none
environment: 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 # Do not add any dependencies that require more than what is provided in
# //third_party/dart/pkg, //third_party/dart/third_party/pkg, or # //third_party/dart/pkg, //third_party/dart/third_party/pkg, or

View File

@@ -5,7 +5,7 @@
name: smoke_test_failure name: smoke_test_failure
publish_to: none publish_to: none
environment: 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 # Do not add any dependencies that require more than what is provided in
# //third_party/dart/pkg or //third_party/dart/third_party/pkg. # //third_party/dart/pkg or //third_party/dart/third_party/pkg.

View File

@@ -5,7 +5,7 @@
name: verify_exported name: verify_exported
publish_to: none publish_to: none
environment: 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 # Do not add any dependencies that require more than what is provided in
# //third_party/pkg, //third_party/dart/pkg, or # //third_party/pkg, //third_party/dart/pkg, or

View File

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

View File

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

View File

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

View File

@@ -4,7 +4,7 @@
name: android_lint name: android_lint
environment: 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 # Do not add any dependencies that require more than what is provided in
# //third_party.pkg, //third_party/dart/pkg, or # //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 # relative to this directory into //third_party/dart
environment: 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 # Do not add any dependencies that require more than what is provided in
# //third_party/pkg, //third_party/dart/pkg, or # //third_party/pkg, //third_party/dart/pkg, or

View File

@@ -5,7 +5,7 @@
name: build_bucket_golden_scraper name: build_bucket_golden_scraper
publish_to: none publish_to: none
environment: 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 # Do not add any dependencies that require more than what is provided in
# //third_party/pkg, //third_party/dart/pkg, or # //third_party/pkg, //third_party/dart/pkg, or

View File

@@ -5,7 +5,7 @@
name: clang_tidy name: clang_tidy
publish_to: none publish_to: none
environment: 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 # Do not add any dependencies that require more than what is provided in
# //third_party/pkg, //third_party/dart/pkg, or # //third_party/pkg, //third_party/dart/pkg, or

View File

@@ -6,7 +6,7 @@ name: const_finder
publish_to: none publish_to: none
environment: 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 # Do not add any dependencies that require more than what is provided in
# //third_party/dart/pkg or //third_party/dart/third_party/pkg. # //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. description: Generates keyboard layouts for Web from external sources.
environment: environment:
sdk: '>=3.0.0-0 <4.0.0' sdk: '>=3.2.0-0 <4.0.0'
dependencies: dependencies:
args: any args: any

View File

@@ -5,7 +5,7 @@
name: githooks name: githooks
publish_to: none publish_to: none
environment: 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 # Do not add any dependencies that require more than what is provided in
# //third_party.pkg, //third_party/dart/pkg, or # //third_party.pkg, //third_party/dart/pkg, or

View File

@@ -5,7 +5,7 @@
name: licenses name: licenses
publish_to: none publish_to: none
environment: 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 # Do not add any dependencies that require more than what is provided
# in //third_party.pkg, //third_party/dart/pkg, or # 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 homepage: https://github.com/flutter/engine/tree/main/tools/path_ops
environment: environment:
sdk: '>=3.0.0-0 <4.0.0' sdk: '>=3.2.0-0 <4.0.0'
dev_dependencies: dev_dependencies:
litetest: any litetest: any

View File

@@ -5,7 +5,7 @@
name: engine_build_configs name: engine_build_configs
publish_to: none publish_to: none
environment: 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 # Do not add any dependencies that require more than what is provided in
# //third_party/pkg, //third_party/dart/pkg, or # //third_party/pkg, //third_party/dart/pkg, or

View File

@@ -5,7 +5,7 @@
name: engine_repo_tools name: engine_repo_tools
publish_to: none publish_to: none
environment: 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 # Do not add any dependencies that require more than what is provided in
# //third_party/pkg, //third_party/dart/pkg, or # //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 # Keep the SDK version range in sync with lib/web_ui/pubspec.yaml
environment: environment:
sdk: '>=3.0.0-0 <4.0.0' sdk: '>=3.2.0-0 <4.0.0'
dependencies: dependencies:
args: 2.3.1 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 # Keep the SDK version range in sync with lib/web_ui/pubspec.yaml
environment: environment:
sdk: '>=3.0.0-0 <4.0.0' sdk: '>=3.2.0-0 <4.0.0'
dependencies: dependencies:
js: 0.6.4 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 # Keep the SDK version range in sync with lib/web_ui/pubspec.yaml
environment: environment:
sdk: '>=3.0.0-0 <4.0.0' sdk: '>=3.2.0-0 <4.0.0'
dependencies: dependencies:
collection: 1.17.0 collection: 1.17.0