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.
This commit is contained in:
Adam Barth 2015-07-02 16:41:35 -07:00
parent f79a49bbf9
commit ac568866f1

View File

@ -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;