From ae14ea248abd6463910c1b3aa3a1f328d8cc0b74 Mon Sep 17 00:00:00 2001 From: Siva Date: Thu, 17 Dec 2020 09:45:26 -0800 Subject: [PATCH] Add missing sdk constriant in pubspec.yaml files. (flutter/engine#23124) * Add missing sdk constriants in pubspec.yaml files. * Update tools/android_lint/pubspec.yaml Co-authored-by: Zachary Anderson --- engine/src/flutter/lib/snapshot/pubspec.yaml | 3 +++ .../shell/platform/fuchsia/dart-pkg/fuchsia/pubspec.yaml | 3 +++ .../shell/platform/fuchsia/dart-pkg/zircon/pubspec.yaml | 3 +++ .../platform/fuchsia/dart_runner/embedder/pubspec.yaml | 4 ++++ .../platform/fuchsia/dart_runner/vmservice/pubspec.yaml | 4 ++++ .../shell/platform/fuchsia/flutter/kernel/pubspec.yaml | 6 ++++++ .../fuchsia/runtime/dart/profiler_symbols/pubspec.yaml | 2 ++ engine/src/flutter/testing/smoke_test_failure/pubspec.yaml | 2 ++ engine/src/flutter/testing/symbols/pubspec.yaml | 2 ++ engine/src/flutter/tools/android_lint/pubspec.yaml | 3 +++ engine/src/flutter/web_sdk/pubspec.yaml | 2 ++ 11 files changed, 34 insertions(+) diff --git a/engine/src/flutter/lib/snapshot/pubspec.yaml b/engine/src/flutter/lib/snapshot/pubspec.yaml index 54585c8cac..5e4d2c6a08 100644 --- a/engine/src/flutter/lib/snapshot/pubspec.yaml +++ b/engine/src/flutter/lib/snapshot/pubspec.yaml @@ -3,3 +3,6 @@ # found in the LICENSE file. # This file is needed by Fuchsia's dart_library template. + +environment: + sdk: '>=2.11.0 <3.0.0' diff --git a/engine/src/flutter/shell/platform/fuchsia/dart-pkg/fuchsia/pubspec.yaml b/engine/src/flutter/shell/platform/fuchsia/dart-pkg/fuchsia/pubspec.yaml index 5e8ae01a4e..4fb6995fba 100644 --- a/engine/src/flutter/shell/platform/fuchsia/dart-pkg/fuchsia/pubspec.yaml +++ b/engine/src/flutter/shell/platform/fuchsia/dart-pkg/fuchsia/pubspec.yaml @@ -1,3 +1,6 @@ # Copyright 2013 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. + +environment: + sdk: '>=2.11.0 <3.0.0' diff --git a/engine/src/flutter/shell/platform/fuchsia/dart-pkg/zircon/pubspec.yaml b/engine/src/flutter/shell/platform/fuchsia/dart-pkg/zircon/pubspec.yaml index 5e8ae01a4e..4fb6995fba 100644 --- a/engine/src/flutter/shell/platform/fuchsia/dart-pkg/zircon/pubspec.yaml +++ b/engine/src/flutter/shell/platform/fuchsia/dart-pkg/zircon/pubspec.yaml @@ -1,3 +1,6 @@ # Copyright 2013 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. + +environment: + sdk: '>=2.11.0 <3.0.0' diff --git a/engine/src/flutter/shell/platform/fuchsia/dart_runner/embedder/pubspec.yaml b/engine/src/flutter/shell/platform/fuchsia/dart_runner/embedder/pubspec.yaml index eaea68b269..fc92b573ad 100644 --- a/engine/src/flutter/shell/platform/fuchsia/dart_runner/embedder/pubspec.yaml +++ b/engine/src/flutter/shell/platform/fuchsia/dart_runner/embedder/pubspec.yaml @@ -4,3 +4,7 @@ # The presence of this file is necessary in order to use the dart_library # template in BUILD.gn. + +environment: + sdk: '>=2.11.0 <3.0.0' + diff --git a/engine/src/flutter/shell/platform/fuchsia/dart_runner/vmservice/pubspec.yaml b/engine/src/flutter/shell/platform/fuchsia/dart_runner/vmservice/pubspec.yaml index 5e8ae01a4e..4c6b70671d 100644 --- a/engine/src/flutter/shell/platform/fuchsia/dart_runner/vmservice/pubspec.yaml +++ b/engine/src/flutter/shell/platform/fuchsia/dart_runner/vmservice/pubspec.yaml @@ -1,3 +1,7 @@ # Copyright 2013 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. + +environment: + sdk: '>=2.11.0 <3.0.0' + diff --git a/engine/src/flutter/shell/platform/fuchsia/flutter/kernel/pubspec.yaml b/engine/src/flutter/shell/platform/fuchsia/flutter/kernel/pubspec.yaml index e69de29bb2..4fb6995fba 100644 --- a/engine/src/flutter/shell/platform/fuchsia/flutter/kernel/pubspec.yaml +++ b/engine/src/flutter/shell/platform/fuchsia/flutter/kernel/pubspec.yaml @@ -0,0 +1,6 @@ +# Copyright 2013 The Flutter Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +environment: + sdk: '>=2.11.0 <3.0.0' diff --git a/engine/src/flutter/shell/platform/fuchsia/runtime/dart/profiler_symbols/pubspec.yaml b/engine/src/flutter/shell/platform/fuchsia/runtime/dart/profiler_symbols/pubspec.yaml index 8939a55d12..3799c6c944 100644 --- a/engine/src/flutter/shell/platform/fuchsia/runtime/dart/profiler_symbols/pubspec.yaml +++ b/engine/src/flutter/shell/platform/fuchsia/runtime/dart/profiler_symbols/pubspec.yaml @@ -3,6 +3,8 @@ # found in the LICENSE file. name: profiler_symbols +environment: + sdk: '>=2.11.0 <3.0.0' version: 0 description: Extracts a minimal symbols table for the Dart VM profiler author: Dart Team diff --git a/engine/src/flutter/testing/smoke_test_failure/pubspec.yaml b/engine/src/flutter/testing/smoke_test_failure/pubspec.yaml index 9eb330ef6f..52402200f4 100644 --- a/engine/src/flutter/testing/smoke_test_failure/pubspec.yaml +++ b/engine/src/flutter/testing/smoke_test_failure/pubspec.yaml @@ -1,4 +1,6 @@ name: smoke_test_failure +environment: + sdk: '>=2.11.0 <3.0.0' dependencies: test: 1.3.0 path: 1.6.2 diff --git a/engine/src/flutter/testing/symbols/pubspec.yaml b/engine/src/flutter/testing/symbols/pubspec.yaml index a45a4a0b79..eb59cfa981 100644 --- a/engine/src/flutter/testing/symbols/pubspec.yaml +++ b/engine/src/flutter/testing/symbols/pubspec.yaml @@ -1,4 +1,6 @@ name: verify_exported +environment: + sdk: '>=2.11.0 <3.0.0' dependencies: path: 1.6.2 collection: 1.14.11 diff --git a/engine/src/flutter/tools/android_lint/pubspec.yaml b/engine/src/flutter/tools/android_lint/pubspec.yaml index b27131c37c..1fb8a75441 100644 --- a/engine/src/flutter/tools/android_lint/pubspec.yaml +++ b/engine/src/flutter/tools/android_lint/pubspec.yaml @@ -1,4 +1,7 @@ name: android_lint +environment: + sdk: '>=2.12.0-0.0.dev <3.0.0' + dependencies: args: 1.5.0 path: ^1.6.2 diff --git a/engine/src/flutter/web_sdk/pubspec.yaml b/engine/src/flutter/web_sdk/pubspec.yaml index f25f7ccb2f..ad2b335e8b 100644 --- a/engine/src/flutter/web_sdk/pubspec.yaml +++ b/engine/src/flutter/web_sdk/pubspec.yaml @@ -1,5 +1,7 @@ name: web_sdk_tests author: Flutter Authors +environment: + sdk: '>=2.11.0 <3.0.0' dev_dependencies: analyzer: ^0.40.6