[go: nahoru, domu]

Skip to content

Commit

Permalink
Enable private field promotion (flutter#45722)
Browse files Browse the repository at this point in the history
New feature in upcoming Dart 3.2. See dart-lang/language#2020. Feature is enabled by bumping the min SDK version to 3.2.

Part of flutter/flutter#134476.
  • Loading branch information
goderbauer committed Sep 14, 2023
1 parent 669e912 commit 45bc430
Show file tree
Hide file tree
Showing 50 changed files with 50 additions and 51 deletions.
2 changes: 1 addition & 1 deletion ci/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion flutter_frontend_server/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion impeller/golden_tests_harvester/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion impeller/tessellator/dart/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion lib/gpu/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion lib/snapshot/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion lib/web_ui/dev/test_platform.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ class BrowserManager {
final String pathToTest = p.dirname(path);

final String mapPath = p.join(
_sourceMapDirectory!.path,
_sourceMapDirectory.path,
pathToTest,
sourceMapFileName
);
Expand Down
3 changes: 1 addition & 2 deletions lib/web_ui/lib/src/engine/canvaskit/layer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
});
Expand Down
2 changes: 1 addition & 1 deletion lib/web_ui/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/web_ui/test/common/fake_asset_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class FakeAssetScope {
return fetcher();
}
if (_parent != null) {
return _parent!.getAssetData(assetKey);
return _parent.getAssetData(assetKey);
}
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion shell/platform/fuchsia/dart-pkg/fuchsia/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion shell/platform/fuchsia/dart-pkg/zircon/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion shell/platform/fuchsia/dart-pkg/zircon_ffi/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion shell/platform/fuchsia/dart_runner/embedder/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

2 changes: 1 addition & 1 deletion shell/platform/fuchsia/dart_runner/vmservice/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

2 changes: 1 addition & 1 deletion shell/platform/fuchsia/flutter/kernel/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
name: child_view2

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
name: parent-view2

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Original file line number Diff line number Diff line change
Expand Up @@ -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>
2 changes: 1 addition & 1 deletion shell/vmservice/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion sky/packages/sky_engine/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion testing/android_background_image/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion testing/benchmark/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion testing/dart/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion testing/litetest/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion testing/scenario_app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion testing/skia_gold_client/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion testing/smoke_test_failure/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion testing/symbols/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion third_party/web_locale_keymap/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion third_party/web_test_fonts/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion third_party/web_unicode/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/android_lint/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/api_check/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/build_bucket_golden_scraper/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/clang_tidy/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/const_finder/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tools/gen_web_locale_keymap/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/githooks/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/licenses/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/path_ops/dart/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/pkg/engine_build_configs/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/pkg/engine_repo_tools/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion web_sdk/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit 45bc430

Please sign in to comment.