Add version information to dartdoc footer (#10844)

* Add version information to dartdoc footer

* Add final to variable declaration

* Drop toString()
This commit is contained in:
jcollins-g 2017-06-20 11:27:37 -07:00 committed by GitHub
parent 0e1b652d53
commit 5fee9789e2

View File

@ -8,6 +8,7 @@ import 'dart:io';
import 'package:intl/intl.dart';
import 'package:path/path.dart' as path;
import 'update_versions.dart';
const String kDocRoot = 'dev/docs/doc';
@ -29,9 +30,12 @@ Future<Null> main(List<String> args) async {
if (path.basename(Directory.current.path) == 'tools')
Directory.current = Directory.current.parent.parent;
final RawVersion version = new RawVersion('VERSION');
// Create the pubspec.yaml file.
final StringBuffer buf = new StringBuffer('''
name: Flutter
version: $version
dependencies:
''');
for (String package in findPackageNames()) {