Unverified Commit b966b2be authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

Enable private field promotion for dev (#134480)

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.
parent 4e7a07af
name: flutter_automated_tests
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
flutter:
......
......@@ -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:
......
......@@ -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:
......
......@@ -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
......
......@@ -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:
......
......@@ -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:
......
......@@ -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:
......
......@@ -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:
......
name: stocks
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
flutter:
......
......@@ -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));
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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);
......
......@@ -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
......
name: platform_integration
environment:
sdk: '>=2.19.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
name: renderers
environment:
sdk: '>=2.19.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
......@@ -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
......
......@@ -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:
......
......@@ -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:
......
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:
......
......@@ -236,7 +236,6 @@ class MotionEventsBodyState extends State<MotionEventsBody> {
flutterViewEvents.removeLast();
}
setState(() {});
break;
}
return Future<dynamic>.value();
}
......@@ -250,7 +249,6 @@ class MotionEventsBodyState extends State<MotionEventsBody> {
embeddedViewEvents.removeLast();
}
setState(() {});
break;
}
return Future<dynamic>.value();
}
......
......@@ -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:
......
......@@ -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:
......
......@@ -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:
......
......@@ -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:
......
......@@ -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:
......
name: flutter_gallery
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
flutter:
......
......@@ -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:
......
......@@ -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:
......
......@@ -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:
......
......@@ -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:
......
......@@ -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:
......
......@@ -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:
......
......@@ -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:
......
name: release_smoke_test
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
flutter:
......
......@@ -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
......
......@@ -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:
......
......@@ -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:
......
name: web_compile_tests
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
flutter:
......
......@@ -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:
......
......@@ -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:
......
......@@ -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:
......
name: manual_tests
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
flutter:
......
name: missing_dependency_tests
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
flutter:
......
......@@ -250,7 +250,7 @@ class Configurator {
'homepage: https://flutter.dev',
'version: 0.0.0',
'environment:',
" sdk: '>=3.0.0-0 <4.0.0'",
" sdk: '>=3.2.0-0 <4.0.0'",
'dependencies:',
for (final String package in findPackageNames(filesystem)) ' $package:\n sdk: flutter',
' $kPlatformIntegrationPackageName: 0.0.1',
......
......@@ -3,7 +3,7 @@ description: A command line script to generate Material component defaults from
version: 1.0.0
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
args: 2.4.2
......
......@@ -2,7 +2,7 @@ name: gen_keycodes
description: Generates keycode source files from various resources.
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
args: 2.4.2
......
......@@ -2,7 +2,7 @@ name: dev_tools
description: Various repository development tools for flutter.
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
archive: 3.3.2
......
......@@ -4,7 +4,7 @@ version: 0.0.1
homepage: https://flutter.dev
environment:
sdk: '>=3.0.0-0 <4.0.0'
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
flutter:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment