Merge pull request #1649 from devoncarew/checked_mode_fixes

two fixes for checked mode
This commit is contained in:
Devon Carew
2016-02-05 22:31:36 -08:00
2 changed files with 7 additions and 5 deletions

View File

@@ -439,7 +439,7 @@ bool _needsRebuild(String apkPath, String manifest) {
// Note: This list of dependencies is imperfect, but will do for now. We
// purposely don't include the .dart files, because we can load those
// over the network without needing to rebuild (at least on Android).
List<FileStat> dependenciesStat = [
Iterable<FileStat> dependenciesStat = [
manifest,
_kFlutterManifestPath,
_kPackagesStatusPath

View File

@@ -99,10 +99,12 @@ class _MaterialAsset extends _Asset {
}
}
List _generateValues(Map assetDescriptor, String key, List defaults) {
if (assetDescriptor.containsKey(key))
return [assetDescriptor[key]];
return defaults;
Iterable/*<T>*/ _generateValues/*<T>*/(
Map/*<String, T>*/ assetDescriptor,
String key,
Iterable/*<T>*/ defaults
) {
return assetDescriptor.containsKey(key) ? /*<T>*/[assetDescriptor[key]] : defaults;
}
void _accumulateMaterialAssets(Map<_Asset, List<_Asset>> result, Map assetDescriptor, String assetBase) {