From ac568866f17d8ba1a5919c6b99a657a11d44f94a Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Thu, 2 Jul 2015 16:41:35 -0700 Subject: [PATCH] Add a flag for building skyx packages This CL adds a build-time flag for building skyx packages, which make our example Sky applications work offline. We can't enable this flag by default yet because our build bots lack a few Dart packages, but landing this flag will let folks experiment with this feature locally. TBR=eseidel@google.com Review URL: https://codereview.chromium.org/1221203002. --- engine/src/flutter/tools/skyx/bin/skyx.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/src/flutter/tools/skyx/bin/skyx.dart b/engine/src/flutter/tools/skyx/bin/skyx.dart index 1bc27b8aa1..989b5c5d20 100644 --- a/engine/src/flutter/tools/skyx/bin/skyx.dart +++ b/engine/src/flutter/tools/skyx/bin/skyx.dart @@ -55,6 +55,8 @@ Iterable generateMaterialAssets(Map assetDescriptor) sync* { } Iterable parseMaterialAssets(Map manifestDescriptor) sync* { + if (manifestDescriptor == null || !manifestDescriptor.containsKey('material-design-icons')) + return; for (Map assetDescriptor in manifestDescriptor['material-design-icons']) { for (MaterialAsset asset in generateMaterialAssets(assetDescriptor)) { yield asset;