Roll engine and fix pubspecs that do not have a Dart SDK constraint (#70078)

This commit is contained in:
Michael Thomsen
2020-11-09 19:02:10 +01:00
committed by GitHub
parent d18bd9a5bb
commit 168ad5dc4d
8 changed files with 23 additions and 4 deletions

View File

@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file uses Dart 2.12 semantics. This is needed as we can't upgrade
// the SDK constraint to `>=2.12.0-0` before the deps are ready.
// @dart=2.12
import 'dart:convert';
import 'dart:io';

View File

@@ -1,5 +1,8 @@
name: metrics_center
environment:
sdk: '>=2.10.0 <3.0.0'
dependencies:
args: 1.6.0
crypto: 2.1.5

View File

@@ -491,6 +491,8 @@ class SampleChecker {
final File analysisOptions = File(path.join(directory.path, 'analysis_options.yaml'))..createSync(recursive: true);
pubSpec.writeAsStringSync('''
name: analyze_sample_code
environment:
sdk: '>=2.10.0 <3.0.0'
dependencies:
flutter:
sdk: flutter

View File

@@ -56,6 +56,8 @@ Future<void> main(List<String> arguments) async {
buf.writeln('homepage: https://flutter.dev');
// TODO(dnfield): Re-factor for proper versioning, https://github.com/flutter/flutter/issues/55409
buf.writeln('version: 0.0.0');
buf.writeln('environment:');
buf.writeln(" sdk: '>=2.10.0 <3.0.0'");
buf.writeln('dependencies:');
for (final String package in findPackageNames()) {
buf.writeln(' $package:');