Skip to content

Commit

Permalink
Manual Roll of Flutter Engine from 67254d6e4b03 to 8d83b98c55b3 (#116…
Browse files Browse the repository at this point in the history
…635)

* Roll Flutter Engine from 67254d6e4b03 to 8d83b98c55b3

* Roll Dart SDK from 35a9facce191 to e517487c5679 (Dart 3.0) (#38105)

* Bump SDK versions.

* Bump Dart SDK version constraints

* Update shrine package to 2.0.1 (null safe version)

* Fix more tests.

* Include patches from Jason for min android sdk version

* Fix analyzer warning
  • Loading branch information
a-siva authored Dec 9, 2022
1 parent afdc484 commit 7c8e171
Show file tree
Hide file tree
Showing 104 changed files with 132 additions and 121 deletions.
2 changes: 1 addition & 1 deletion bin/internal/engine.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
67254d6e4b0369fa83418cf9e9ff68b21c529765
8d83b98c55b3d0839de0c4201f5a8d56dbf92d2f
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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.0-0 <4.0.0"

dependencies:
meta: 1.8.0
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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.0-0 <4.0.0"

dependencies:
flutter:
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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.0-0 <4.0.0"

dependencies:
args: 2.3.1
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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.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: '>=2.17.0-0 <3.0.0'
sdk: '>=2.17.0-0 <4.0.0'

dependencies:
args: 2.3.1
Expand Down
3 changes: 2 additions & 1 deletion dev/devicelab/bin/tasks/gradle_desugar_classes_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ Future<void> main() async {
try {
await runProjectTest((FlutterProject flutterProject) async {
section('APK contains plugin classes');
flutterProject.addPlugin('google_maps_flutter', value: '^1.0.10');
await flutterProject.setMinSdkVersion(20);
flutterProject.addPlugin('google_maps_flutter', value: '^2.2.1');

await inDirectory(flutterProject.rootPath, () async {
await flutter('build', options: <String>[
Expand Down
2 changes: 1 addition & 1 deletion dev/devicelab/bin/tasks/module_test_ios.dart
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Future<void> main() async {
'''
dependencies:
url_launcher: 6.0.20
android_alarm_manager: 0.4.5+11
android_alarm_manager: 2.0.2
google_sign_in_ios: 5.5.0
$dartPluginName:
path: ../$dartPluginName
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: ">=2.0.0-dev.28.0 <3.0.0"
sdk: ">=2.0.0-dev.28.0 <4.0.0"
flutter: ">=1.5.0"
''', flush: true);

Expand Down
14 changes: 14 additions & 0 deletions dev/devicelab/lib/framework/apk_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,20 @@ android {
pubspec.writeAsStringSync(content, flush: true);
}

Future<void> setMinSdkVersion(int sdkVersion) async {
final File buildScript = File(
path.join(androidPath, 'app', 'build.gradle'),
);

buildScript.openWrite(mode: FileMode.append).write('''
android {
defaultConfig {
minSdkVersion $sdkVersion
}
}
''');
}

Future<void> getPackages() async {
await inDirectory(Directory(rootPath), () async {
await flutter('pub', options: <String>['get']);
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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.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.17.0-0 <3.0.0"
sdk: ">=2.17.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.17.0-0 <3.0.0'
sdk: '>=2.17.0-0 <4.0.0'

dependencies:
args: 2.3.1
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.17.0-0 <3.0.0"
sdk: ">=2.17.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.17.0-0 <3.0.0"
sdk: ">=2.17.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.17.0-0 <3.0.0'
sdk: '>=2.17.0-0 <4.0.0'

dependencies:
flutter:
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.17.0-0 <3.0.0'
sdk: '>=2.17.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.17.0-0 <3.0.0"
sdk: ">=2.17.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: '>=2.17.0-0 <3.0.0'
sdk: '>=2.17.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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.0-0 <4.0.0"

dependencies:
flutter:
Expand Down
4 changes: 2 additions & 2 deletions 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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.0-0 <4.0.0"

dependencies:
flutter:
Expand All @@ -20,7 +20,7 @@ dependencies:
git:
url: https://github.com/kevmoo/scoped_model.git
ref: null_safety
shrine_images: 1.1.2
shrine_images: 2.0.1

# Also update dev/benchmarks/complex_layout/pubspec.yaml
# and dev/benchmarks/macrobenchmarks/pubspec.yaml
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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.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: '>=2.17.0-0 <3.0.0'
sdk: '>=2.17.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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.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: '>=2.18.0-149.0.dev <3.0.0'
sdk: '>=2.18.0-149.0.dev <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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.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: '>=2.17.0-0 <3.0.0'
sdk: '>=2.17.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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.0-0 <4.0.0"

flutter:
assets:
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: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.0-0 <4.0.0"

dependencies:
flutter:
Expand Down
Loading

0 comments on commit 7c8e171

Please sign in to comment.