From 2b78675bd8c43be0fa8e669e80aec04cb204172a Mon Sep 17 00:00:00 2001 From: stevemessick Date: Thu, 5 Oct 2017 12:56:49 -0700 Subject: [PATCH] Update IDEA project files (#12391) * Generate Android framework config * Fix templates * Moar templates fixing * Minor tweaking --- .../templates/create/.idea/workspace.xml.tmpl | 7 +++++++ .../templates/create/projectName.iml.tmpl | 6 +++++- .../create/projectName_android.iml.tmpl | 14 ++++++++++++++ .../templates/package/.idea/modules.xml.tmpl | 1 - .../package/.idea/workspace.xml.tmpl | 7 +++++++ .../templates/package/projectName.iml.tmpl | 6 +++++- .../templates/plugin/.idea/workspace.xml.tmpl | 13 ++++++++++--- .../templates/plugin/projectName.iml.tmpl | 6 +++++- .../plugin/projectName_android.iml.tmpl | 19 ++++++++++++++++++- .../test/commands/create_test.dart | 4 +++- 10 files changed, 74 insertions(+), 9 deletions(-) diff --git a/packages/flutter_tools/templates/create/.idea/workspace.xml.tmpl b/packages/flutter_tools/templates/create/.idea/workspace.xml.tmpl index 1e7e0cd929..5b3388cc1a 100644 --- a/packages/flutter_tools/templates/create/.idea/workspace.xml.tmpl +++ b/packages/flutter_tools/templates/create/.idea/workspace.xml.tmpl @@ -20,10 +20,17 @@ + + + + + + + diff --git a/packages/flutter_tools/templates/create/projectName.iml.tmpl b/packages/flutter_tools/templates/create/projectName.iml.tmpl index dafb001137..d6ba21bef8 100644 --- a/packages/flutter_tools/templates/create/projectName.iml.tmpl +++ b/packages/flutter_tools/templates/create/projectName.iml.tmpl @@ -3,13 +3,17 @@ + + + + - \ No newline at end of file + diff --git a/packages/flutter_tools/templates/create/projectName_android.iml.tmpl b/packages/flutter_tools/templates/create/projectName_android.iml.tmpl index 8e9d155a82..faa8d0dc24 100644 --- a/packages/flutter_tools/templates/create/projectName_android.iml.tmpl +++ b/packages/flutter_tools/templates/create/projectName_android.iml.tmpl @@ -1,9 +1,23 @@ + + + + + + + diff --git a/packages/flutter_tools/templates/package/.idea/modules.xml.tmpl b/packages/flutter_tools/templates/package/.idea/modules.xml.tmpl index cd52175288..7488ebe80d 100644 --- a/packages/flutter_tools/templates/package/.idea/modules.xml.tmpl +++ b/packages/flutter_tools/templates/package/.idea/modules.xml.tmpl @@ -3,7 +3,6 @@ - diff --git a/packages/flutter_tools/templates/package/.idea/workspace.xml.tmpl b/packages/flutter_tools/templates/package/.idea/workspace.xml.tmpl index 1e7e0cd929..5b3388cc1a 100644 --- a/packages/flutter_tools/templates/package/.idea/workspace.xml.tmpl +++ b/packages/flutter_tools/templates/package/.idea/workspace.xml.tmpl @@ -20,10 +20,17 @@ + + + + + + + diff --git a/packages/flutter_tools/templates/package/projectName.iml.tmpl b/packages/flutter_tools/templates/package/projectName.iml.tmpl index dafb001137..f07144db36 100644 --- a/packages/flutter_tools/templates/package/projectName.iml.tmpl +++ b/packages/flutter_tools/templates/package/projectName.iml.tmpl @@ -3,13 +3,17 @@ + + + + - \ No newline at end of file + diff --git a/packages/flutter_tools/templates/plugin/.idea/workspace.xml.tmpl b/packages/flutter_tools/templates/plugin/.idea/workspace.xml.tmpl index 6310d69ac8..3b4f99b555 100644 --- a/packages/flutter_tools/templates/plugin/.idea/workspace.xml.tmpl +++ b/packages/flutter_tools/templates/plugin/.idea/workspace.xml.tmpl @@ -2,7 +2,7 @@ - + @@ -11,7 +11,7 @@ - + @@ -25,14 +25,21 @@ - + + + + + + + + diff --git a/packages/flutter_tools/templates/plugin/projectName.iml.tmpl b/packages/flutter_tools/templates/plugin/projectName.iml.tmpl index dafb001137..4fe26707b4 100644 --- a/packages/flutter_tools/templates/plugin/projectName.iml.tmpl +++ b/packages/flutter_tools/templates/plugin/projectName.iml.tmpl @@ -3,13 +3,17 @@ + + + + - \ No newline at end of file + diff --git a/packages/flutter_tools/templates/plugin/projectName_android.iml.tmpl b/packages/flutter_tools/templates/plugin/projectName_android.iml.tmpl index 8e9d155a82..03a3436c4c 100644 --- a/packages/flutter_tools/templates/plugin/projectName_android.iml.tmpl +++ b/packages/flutter_tools/templates/plugin/projectName_android.iml.tmpl @@ -1,9 +1,26 @@ + + + + + + - + + + + + diff --git a/packages/flutter_tools/test/commands/create_test.dart b/packages/flutter_tools/test/commands/create_test.dart index c0bd18d373..931a5bfc8a 100644 --- a/packages/flutter_tools/test/commands/create_test.dart +++ b/packages/flutter_tools/test/commands/create_test.dart @@ -46,7 +46,8 @@ void main() { 'ios/Runner/AppDelegate.m', 'ios/Runner/main.m', 'lib/main.dart', - 'test/widget_test.dart' + 'test/widget_test.dart', + 'flutter_project.iml', ], ); }, timeout: const Timeout.factor(2.0)); @@ -111,6 +112,7 @@ void main() { 'example/ios/Runner/AppDelegate.m', 'example/ios/Runner/main.m', 'example/lib/main.dart', + 'flutter_project.iml', ], plugin: true, );