[flutter_tool] fix ide-config crash because of no android key (#60617)

This commit is contained in:
Chris Yang 2020-06-30 13:01:47 -07:00 committed by GitHub
parent c639c93f11
commit 07e24f6dad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -236,6 +236,7 @@ class IdeConfigCommand extends FlutterCommand {
int generatedCount = 0;
generatedCount += _renderTemplate(_ideName, dirPath, <String, dynamic>{
'withRootModule': boolArg('with-root-module'),
'android': true,
});
globals.printStatus('Wrote $generatedCount files.');

View File

@ -52,6 +52,7 @@ void main() {
globals.fs.path.join(basePath, '.idea', 'runConfigurations', 'hello_world.xml$suffix'): 'hello_world $marker',
globals.fs.path.join(basePath, 'flutter.iml$suffix'): 'flutter $marker',
globals.fs.path.join(basePath, 'packages', 'new', 'deep.iml$suffix'): 'deep $marker',
globals.fs.path.join(basePath, 'example', 'gallery', 'android.iml$suffix'): 'android $marker',
};
}