From 4007ff6ee2d6bbc57962678b459c66540346aff0 Mon Sep 17 00:00:00 2001 From: Janice Collins Date: Mon, 14 Jan 2019 16:18:17 -0800 Subject: [PATCH] Update dartdoc to 0.28.0 and add flags to constrain warnings (#26546) --- dev/bots/docs.sh | 2 +- dev/tools/dartdoc.dart | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/dev/bots/docs.sh b/dev/bots/docs.sh index 52306c3095..17d35afa3a 100755 --- a/dev/bots/docs.sh +++ b/dev/bots/docs.sh @@ -103,7 +103,7 @@ if [[ -d "$FLUTTER_PUB_CACHE" ]]; then fi # Install and activate dartdoc. -"$PUB" global activate dartdoc 0.27.0 +"$PUB" global activate dartdoc 0.28.0 # This script generates a unified doc set, and creates # a custom index.html, placing everything into dev/docs/doc. diff --git a/dev/tools/dartdoc.dart b/dev/tools/dartdoc.dart index de3751c2be..dd2996224f 100644 --- a/dev/tools/dartdoc.dart +++ b/dev/tools/dartdoc.dart @@ -137,6 +137,14 @@ Future main(List arguments) async { '--header', 'snippets.html', '--header', 'opensearch.html', '--footer-text', 'lib/footer.html', + '--allow-warnings-in-packages', [ + 'Flutter', + 'flutter', + 'platform_integration', + 'flutter_test', + 'flutter_driver', + 'flutter_localizations', + ].join(','), '--exclude-packages', [ 'analyzer',