Skip to content

Commit c45d856

Browse files
jcollins-ggspencergoog
authored andcommitted
Add version information to dartdoc footer (flutter#10844)
* Add version information to dartdoc footer * Add final to variable declaration * Drop toString()
1 parent 45b2397 commit c45d856

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dev/tools/dartdoc.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import 'dart:io';
88

99
import 'package:intl/intl.dart';
1010
import 'package:path/path.dart' as path;
11+
import 'update_versions.dart';
1112

1213
const String kDocRoot = 'dev/docs/doc';
1314

@@ -29,9 +30,12 @@ Future<Null> main(List<String> args) async {
2930
if (path.basename(Directory.current.path) == 'tools')
3031
Directory.current = Directory.current.parent.parent;
3132

33+
final RawVersion version = new RawVersion('VERSION');
34+
3235
// Create the pubspec.yaml file.
3336
final StringBuffer buf = new StringBuffer('''
3437
name: Flutter
38+
version: $version
3539
dependencies:
3640
''');
3741
for (String package in findPackageNames()) {

0 commit comments

Comments
 (0)