[flutter_tool] fix ide-config crash because of no android key (#60617)
This commit is contained in:
parent
c639c93f11
commit
07e24f6dad
@ -236,6 +236,7 @@ class IdeConfigCommand extends FlutterCommand {
|
|||||||
int generatedCount = 0;
|
int generatedCount = 0;
|
||||||
generatedCount += _renderTemplate(_ideName, dirPath, <String, dynamic>{
|
generatedCount += _renderTemplate(_ideName, dirPath, <String, dynamic>{
|
||||||
'withRootModule': boolArg('with-root-module'),
|
'withRootModule': boolArg('with-root-module'),
|
||||||
|
'android': true,
|
||||||
});
|
});
|
||||||
|
|
||||||
globals.printStatus('Wrote $generatedCount files.');
|
globals.printStatus('Wrote $generatedCount files.');
|
||||||
|
@ -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, '.idea', 'runConfigurations', 'hello_world.xml$suffix'): 'hello_world $marker',
|
||||||
globals.fs.path.join(basePath, 'flutter.iml$suffix'): 'flutter $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, 'packages', 'new', 'deep.iml$suffix'): 'deep $marker',
|
||||||
|
globals.fs.path.join(basePath, 'example', 'gallery', 'android.iml$suffix'): 'android $marker',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user