Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Unified Diff: sky/tools/skyx/bin/skyx.dart

Issue 1221203002: Add a flag for building skyx packages (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/sdk/example/mine_digger/sky.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tools/skyx/bin/skyx.dart
diff --git a/sky/tools/skyx/bin/skyx.dart b/sky/tools/skyx/bin/skyx.dart
index 1bc27b8aa19594045c90fe207e6cde9e15ca0edb..989b5c5d204957fcfdb922741df7ce0d93a6b64c 100644
--- a/sky/tools/skyx/bin/skyx.dart
+++ b/sky/tools/skyx/bin/skyx.dart
@@ -55,6 +55,8 @@ Iterable<MaterialAsset> generateMaterialAssets(Map assetDescriptor) sync* {
}
Iterable<MaterialAsset> 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;
« no previous file with comments | « sky/sdk/example/mine_digger/sky.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698