Skip to content

Commit 07e24f6

Browse files
author
Chris Yang
authored
[flutter_tool] fix ide-config crash because of no android key (flutter#60617)
1 parent c639c93 commit 07e24f6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/flutter_tools/lib/src/commands/ide_config.dart

+1
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ class IdeConfigCommand extends FlutterCommand {
236236
int generatedCount = 0;
237237
generatedCount += _renderTemplate(_ideName, dirPath, <String, dynamic>{
238238
'withRootModule': boolArg('with-root-module'),
239+
'android': true,
239240
});
240241

241242
globals.printStatus('Wrote $generatedCount files.');

packages/flutter_tools/test/commands.shard/hermetic/ide_config_test.dart

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ void main() {
5252
globals.fs.path.join(basePath, '.idea', 'runConfigurations', 'hello_world.xml$suffix'): 'hello_world $marker',
5353
globals.fs.path.join(basePath, 'flutter.iml$suffix'): 'flutter $marker',
5454
globals.fs.path.join(basePath, 'packages', 'new', 'deep.iml$suffix'): 'deep $marker',
55+
globals.fs.path.join(basePath, 'example', 'gallery', 'android.iml$suffix'): 'android $marker',
5556
};
5657
}
5758

0 commit comments

Comments
 (0)