// prepare a Dart file that references all the above Dart files
StringBuffermainBody=newStringBuffer();
for(intindex=0;index<dartFiles.length;index+=1)
mainBody.writeln('import \'${path.normalize(path.absolute(dartFiles[index]))}\' as file$index;');
mainBody.writeln('import \'${dartFiles[index]}\' as file$index;');
mainBody.writeln('void main() { }');
// prepare a union of all the .packages files
...
...
@@ -220,7 +247,7 @@ class AnalyzeCommand extends FlutterCommand {
}
if(hadInconsistentRequirements){
if(foundAnyInFlutterRepo)
printError('You may need to run "dart ${path.normalize(path.relative(path.join(ArtifactStore.flutterRoot, 'dev/update_packages.dart')))} --upgrade".');
printError('You may need to run "flutter update-packages --upgrade".');