From 66d00dddf89b21ceea877314998deac3a9d36c74 Mon Sep 17 00:00:00 2001 From: Matan Lurey Date: Wed, 31 Jul 2024 09:51:27 -0700 Subject: [PATCH] Migrate the remaining real pub packages to pub workspaces. (flutter/engine#54232) Closes https://github.com/flutter/flutter/issues/147883. --- .../flutter/ci/licenses_golden/excluded_files | 2 -- .../flutter_frontend_server/pubspec.yaml | 32 +++---------------- .../impeller/tessellator/dart/pubspec.yaml | 9 +++--- engine/src/flutter/pubspec.yaml | 3 ++ engine/src/flutter/shell/vmservice/BUILD.gn | 1 - .../src/flutter/shell/vmservice/pubspec.yaml | 8 ++++- 6 files changed, 20 insertions(+), 35 deletions(-) diff --git a/engine/src/flutter/ci/licenses_golden/excluded_files b/engine/src/flutter/ci/licenses_golden/excluded_files index 20ea853f64..6277a94c27 100644 --- a/engine/src/flutter/ci/licenses_golden/excluded_files +++ b/engine/src/flutter/ci/licenses_golden/excluded_files @@ -211,7 +211,6 @@ ../../../flutter/impeller/scene/scene_unittests.cc ../../../flutter/impeller/shader_archive/shader_archive_unittests.cc ../../../flutter/impeller/tessellator/dart/.dart_tool -../../../flutter/impeller/tessellator/dart/pubspec.lock ../../../flutter/impeller/tessellator/dart/pubspec.yaml ../../../flutter/impeller/tessellator/tessellator_unittests.cc ../../../flutter/impeller/toolkit/android/README.md @@ -423,7 +422,6 @@ ../../../flutter/shell/profiling/sampling_profiler_unittest.cc ../../../flutter/shell/testing ../../../flutter/shell/vmservice/.dart_tool -../../../flutter/shell/vmservice/pubspec.lock ../../../flutter/shell/vmservice/pubspec.yaml ../../../flutter/sky/packages/sky_engine/.gitignore ../../../flutter/sky/packages/sky_engine/LICENSE diff --git a/engine/src/flutter/flutter_frontend_server/pubspec.yaml b/engine/src/flutter/flutter_frontend_server/pubspec.yaml index d4aac02c4f..e871ad59ab 100644 --- a/engine/src/flutter/flutter_frontend_server/pubspec.yaml +++ b/engine/src/flutter/flutter_frontend_server/pubspec.yaml @@ -4,36 +4,14 @@ name: flutter_frontend_server publish_to: none -version: 0.1.1-dev -description: Communication pipe to Dart Frontend -homepage: https://flutter.dev - -# Do not add any dependencies that require more than what is provided in -# //third_party/pkg, //third_party/dart/pkg or -# //third_party/dart/third_party/pkg. In particular, package:test is not usable -# here. - -# If you do add packages here, make sure you can run `pub get --offline`, and -# check the .packages and .package_config to make sure all the paths are -# relative to this directory into //third_party/dart +# Required for workspace support. environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.5.0-294.0.dev + +# This package is managed as part of the engine workspace. +resolution: workspace dev_dependencies: litetest: any path: any - -dependency_overrides: - async_helper: - path: ../third_party/dart/pkg/async_helper - expect: - path: ../third_party/dart/pkg/expect - litetest: - path: ../testing/litetest - meta: - path: ../third_party/dart/pkg/meta - path: - path: ../third_party/dart/third_party/pkg/path - smith: - path: ../third_party/dart/pkg/smith diff --git a/engine/src/flutter/impeller/tessellator/dart/pubspec.yaml b/engine/src/flutter/impeller/tessellator/dart/pubspec.yaml index 12ec6ec21b..ef84e428bd 100644 --- a/engine/src/flutter/impeller/tessellator/dart/pubspec.yaml +++ b/engine/src/flutter/impeller/tessellator/dart/pubspec.yaml @@ -2,10 +2,11 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. name: tessellator -description: A Dart FFI wrapper for Impeller's tessellator. -version: 0.0.0 publish_to: none -homepage: https://github.com/flutter/impeller/tree/main/tessellator/dart +# Required for workspace support. environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.5.0-294.0.dev + +# This package is managed as part of the engine workspace. +resolution: workspace diff --git a/engine/src/flutter/pubspec.yaml b/engine/src/flutter/pubspec.yaml index f435f5ba1d..171e51258b 100644 --- a/engine/src/flutter/pubspec.yaml +++ b/engine/src/flutter/pubspec.yaml @@ -81,6 +81,9 @@ environment: # Declare all packages that are part of the workspace. workspace: - ci + - flutter_frontend_server + - impeller/tessellator/dart + - shell/vmservice - testing/benchmark - testing/dart - testing/litetest diff --git a/engine/src/flutter/shell/vmservice/BUILD.gn b/engine/src/flutter/shell/vmservice/BUILD.gn index becc886597..aada8b7180 100644 --- a/engine/src/flutter/shell/vmservice/BUILD.gn +++ b/engine/src/flutter/shell/vmservice/BUILD.gn @@ -7,6 +7,5 @@ import("//flutter/build/dart/rules.gni") # Build a minimal snapshot that can be used to launch the VM service isolate. flutter_snapshot("vmservice_snapshot") { main_dart = "empty.dart" - package_config = ".dart_tool/package_config.json" output_aot_lib = "libvmservice_snapshot.so" } diff --git a/engine/src/flutter/shell/vmservice/pubspec.yaml b/engine/src/flutter/shell/vmservice/pubspec.yaml index c3cffd9d83..0580a7281b 100644 --- a/engine/src/flutter/shell/vmservice/pubspec.yaml +++ b/engine/src/flutter/shell/vmservice/pubspec.yaml @@ -4,5 +4,11 @@ name: vmservice_snapshot publish_to: none + +# Required for workspace support. environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.5.0-294.0.dev + +# This package is managed as part of the engine workspace. +resolution: workspace +