Commit d8155347 authored by Devon Carew's avatar Devon Carew

Merge pull request #3041 from devoncarew/pubspec_changes

pubspec normalization; remove den
parents 4cc9416b 18d29583
...@@ -17,6 +17,6 @@ dependencies: ...@@ -17,6 +17,6 @@ dependencies:
path: '../flutter_test' path: '../flutter_test'
dev_dependencies: dev_dependencies:
test: '>=0.12.6 <1.0.0' test: 0.12.13
mockito: ^0.11.0 mockito: ^0.11.0
quiver: '>=0.21.4 <0.22.0' quiver: ^0.21.4
...@@ -98,11 +98,18 @@ Future<Null> main(List<String> args) async { ...@@ -98,11 +98,18 @@ Future<Null> main(List<String> args) async {
stderr.writeln(); stderr.writeln();
stderr.writeln('Oops; flutter has exited unexpectedly: "$error"'); stderr.writeln('Oops; flutter has exited unexpectedly: "$error"');
File file = _createCrashReport(args, error, chain);
stderr.writeln(); stderr.writeln();
stderr.writeln('Crash report written to ${path.relative(file.path)}.');
stderr.writeln('Please let us know at https://github.com/flutter/flutter/issues!'); if (Platform.environment.containsKey('FLUTTER_DEV')) {
// If we're working in the tools themselves, just print the stack trace.
stderr.writeln(chain.terse.toString());
} else {
File file = _createCrashReport(args, error, chain);
stderr.writeln('Crash report written to ${path.relative(file.path)}.');
stderr.writeln('Please let us know at https://github.com/flutter/flutter/issues!');
}
exit(1); exit(1);
} }
}); });
......
...@@ -7,7 +7,7 @@ import 'dart:collection'; ...@@ -7,7 +7,7 @@ import 'dart:collection';
import 'dart:convert'; import 'dart:convert';
import 'dart:io'; import 'dart:io';
import 'package:den_api/den_api.dart'; import 'package:yaml/yaml.dart' as yaml;
import 'package:path/path.dart' as path; import 'package:path/path.dart' as path;
import '../artifacts.dart'; import '../artifacts.dart';
...@@ -123,9 +123,7 @@ class AnalyzeCommand extends FlutterCommand { ...@@ -123,9 +123,7 @@ class AnalyzeCommand extends FlutterCommand {
bool get requiresProjectRoot => false; bool get requiresProjectRoot => false;
@override @override
Future<int> runInProject() async { Future<int> runInProject() => argResults['watch'] ? _analyzeWatch() : _analyzeOnce();
return argResults['watch'] ? _analyzeWatch() : _analyzeOnce();
}
List<String> flutterRootComponents; List<String> flutterRootComponents;
bool isFlutterLibrary(String filename) { bool isFlutterLibrary(String filename) {
...@@ -243,8 +241,8 @@ class AnalyzeCommand extends FlutterCommand { ...@@ -243,8 +241,8 @@ class AnalyzeCommand extends FlutterCommand {
// we are analyzing the actual canonical source for this package; // we are analyzing the actual canonical source for this package;
// make sure we remember that, in case all the packages are actually // make sure we remember that, in case all the packages are actually
// pointing elsewhere somehow. // pointing elsewhere somehow.
Pubspec pubSpecYaml = await Pubspec.load(pubSpecYamlPath); yaml.YamlMap pubSpecYaml = yaml.loadYaml(new File(pubSpecYamlPath).readAsStringSync());
String packageName = pubSpecYaml.name; String packageName = pubSpecYaml['name'];
String packagePath = path.normalize(path.absolute(path.join(directory.path, 'lib'))); String packagePath = path.normalize(path.absolute(path.join(directory.path, 'lib')));
dependencies.addCanonicalCase(packageName, packagePath, pubSpecYamlPath); dependencies.addCanonicalCase(packageName, packagePath, pubSpecYamlPath);
} }
......
...@@ -12,7 +12,6 @@ dependencies: ...@@ -12,7 +12,6 @@ dependencies:
archive: ^1.0.20 archive: ^1.0.20
args: ^0.13.4 args: ^0.13.4
crypto: 0.9.2 crypto: 0.9.2
den_api: ^0.1.0
file: ^0.1.0 file: ^0.1.0
json_schema: ^1.0.3 json_schema: ^1.0.3
mustache4dart: ^1.0.0 mustache4dart: ^1.0.0
......
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