Skip to content

Commit

Permalink
Enable private field promotion for dev (flutter#134480)
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#134476.
  • Loading branch information
goderbauer authored Sep 12, 2023
1 parent 4e7a07a commit b966b2b
Show file tree
Hide file tree
Showing 50 changed files with 52 additions and 54 deletions.
2 changes: 1 addition & 1 deletion dev/automated_tests/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: flutter_automated_tests

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion dev/benchmarks/complex_layout/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: complex_layout
description: A benchmark of a relatively complex layout.

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion dev/benchmarks/macrobenchmarks/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: macrobenchmarks
description: Performance benchmarks using flutter drive.

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion dev/benchmarks/microbenchmarks/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: microbenchmarks
description: Small benchmarks for very specific parts of the Flutter framework.

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
meta: 1.9.1
Expand Down
2 changes: 1 addition & 1 deletion dev/benchmarks/multiple_flutters/module/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A module that is embedded in the multiple_flutters benchmark test.
version: 1.0.0+1

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion dev/benchmarks/platform_channels_benchmarks/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion dev/benchmarks/platform_views_layout/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: platform_views_layout
description: A benchmark for platform views.

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: platform_views_layout_hybrid_composition
description: A benchmark for platform views, using hybrid composition on android.

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion dev/benchmarks/test_apps/stocks/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: stocks

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
8 changes: 4 additions & 4 deletions dev/bots/analyze_snippet_code.dart
Original file line number Diff line number Diff line change
Expand Up @@ -515,14 +515,14 @@ class _SnippetChecker {
/// Returns true if any errors are found, false otherwise.
Future<bool> checkSnippets() async {
final Map<String, _SnippetFile> snippets = <String, _SnippetFile>{};
if (_dartUiLocation != null && !_dartUiLocation!.existsSync()) {
stderr.writeln('Unable to analyze engine dart snippets at ${_dartUiLocation!.path}.');
if (_dartUiLocation != null && !_dartUiLocation.existsSync()) {
stderr.writeln('Unable to analyze engine dart snippets at ${_dartUiLocation.path}.');
}
final List<File> filesToAnalyze = <File>[
for (final Directory flutterPackage in _flutterPackages)
..._listDartFiles(flutterPackage, recursive: true),
if (_dartUiLocation != null && _dartUiLocation!.existsSync())
..._listDartFiles(_dartUiLocation!, recursive: true),
if (_dartUiLocation != null && _dartUiLocation.existsSync())
..._listDartFiles(_dartUiLocation, recursive: true),
];
final Set<Object> errors = <Object>{};
errors.addAll(await _extractSnippets(filesToAnalyze, snippetMap: snippets));
Expand Down
2 changes: 1 addition & 1 deletion dev/bots/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: tests_on_bots
description: Scripts which run on bots.

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
args: 2.4.2
Expand Down
2 changes: 1 addition & 1 deletion dev/conductor/core/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Flutter Automated Release Tool
publish_to: none

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
archive: 3.3.2
Expand Down
2 changes: 1 addition & 1 deletion dev/customer_testing/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: customer_testing
description: Tool to run the tests listed in the flutter/tests repository.

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
args: 2.4.2
Expand Down
2 changes: 1 addition & 1 deletion dev/devicelab/bin/tasks/plugin_dependencies_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ dependencies:
sdk: flutter
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
flutter: ">=1.5.0"
''', flush: true);

Expand Down
2 changes: 1 addition & 1 deletion dev/devicelab/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Flutter continuous integration performance and correctness tests.
homepage: https://github.com/flutter/flutter

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
archive: 3.3.2
Expand Down
2 changes: 1 addition & 1 deletion dev/docs/platform_integration/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: platform_integration

environment:
sdk: '>=2.19.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
2 changes: 1 addition & 1 deletion dev/docs/renderers/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: renderers

environment:
sdk: '>=2.19.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
2 changes: 1 addition & 1 deletion dev/forbidden_from_release_tests/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: forbidden_from_release_tests
publish_to: 'none'

environment:
sdk: '>=2.19.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
args: 2.4.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A new Flutter project.
version: 1.0.0+1

environment:
sdk: '>=2.19.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ description: A new Flutter project.
version: 1.0.0+1

environment:
sdk: '>=2.19.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: android_semantics_testing
description: Integration testing library for Android semantics
environment:
sdk: '>=2.19.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ class MotionEventsBodyState extends State<MotionEventsBody> {
flutterViewEvents.removeLast();
}
setState(() {});
break;
}
return Future<dynamic>.value();
}
Expand All @@ -250,7 +249,6 @@ class MotionEventsBodyState extends State<MotionEventsBody> {
embeddedViewEvents.removeLast();
}
setState(() {});
break;
}
return Future<dynamic>.value();
}
Expand Down
2 changes: 1 addition & 1 deletion dev/integration_tests/android_views/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ publish_to: none
description: An integration test for embedded platform views
version: 1.0.0+1
environment:
sdk: '>=2.19.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion dev/integration_tests/channels/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: channels
description: Integration test for platform channels.

environment:
sdk: '>=2.19.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Integration test application for basic deferred components function
publish_to: 'none'
version: 1.0.0+1
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion dev/integration_tests/external_ui/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: external_ui
description: A test of Flutter integrating external UIs.

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion dev/integration_tests/flavors/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: flavors
description: Integration test for build flavors.

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion dev/integration_tests/flutter_gallery/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: flutter_gallery

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: gradle_deprecated_settings
description: Integration test for the current settings.gradle.

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion dev/integration_tests/hybrid_android_views/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ publish_to: none
description: An integration test for hybrid composition on Android
version: 1.0.0+1
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ description: A new flutter module project.
version: 1.0.0+1

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion dev/integration_tests/ios_app_with_extensions/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ name: ios_app_with_extensions
version: 1.0.0+1

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion dev/integration_tests/ios_platform_view_tests/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: ios_platform_view_tests
version: 1.0.0+1

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion dev/integration_tests/non_nullable/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion dev/integration_tests/platform_interaction/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: platform_interaction
description: Integration test for platform interactions.

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion dev/integration_tests/release_smoke_test/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: release_smoke_test

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion dev/integration_tests/spell_check/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
Expand Down
2 changes: 1 addition & 1 deletion dev/integration_tests/ui/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: integration_ui
description: Flutter non-plugin UI integration tests.

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion dev/integration_tests/web/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: web_integration
description: Integration test for web compilation.

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

flutter:
assets:
Expand Down
2 changes: 1 addition & 1 deletion dev/integration_tests/web_compile_tests/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: web_compile_tests
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion dev/integration_tests/web_e2e_tests/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: web_e2e_tests
publish_to: none

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

flutter:
assets:
Expand Down
2 changes: 1 addition & 1 deletion dev/integration_tests/wide_gamut_test/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion dev/integration_tests/windows_startup_test/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: windows_startup_test
description: Integration test for Windows app's startup.

environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'

dependencies:
flutter:
Expand Down
Loading

0 comments on commit b966b2b

Please sign in to comment.