From ff25edd3ad38d8845df1e3905f193da7d9004d00 Mon Sep 17 00:00:00 2001 From: stevemessick Date: Wed, 14 Nov 2018 13:45:07 -0800 Subject: [PATCH] Update idea template files (#24311) * Update IntelliJ project template files * Add ignored file * Fix test * Restore comma --- .../libraries/KotlinJavaRuntime.xml.tmpl | 15 ++++++++++ .../templates/app/.idea/modules.xml.tmpl | 2 +- .../projectName_android.iml.tmpl | 27 +++++++++++++++++ .../projectName_android.iml.tmpl | 29 ++++++++++++++++++ .../app/projectName_android.iml.tmpl | 27 ----------------- .../templates/plugin/.idea/modules.xml.tmpl | 3 +- .../projectName_android.iml.tmpl | 27 +++++++++++++++++ .../projectName_android.iml.tmpl | 28 +++++++++++++++++ .../plugin/projectName_android.iml.tmpl | 30 ------------------- .../test/commands/create_test.dart | 1 + 10 files changed, 130 insertions(+), 59 deletions(-) create mode 100644 packages/flutter_tools/templates/app/.idea/libraries/KotlinJavaRuntime.xml.tmpl create mode 100644 packages/flutter_tools/templates/app/android-java.tmpl/projectName_android.iml.tmpl create mode 100644 packages/flutter_tools/templates/app/android-kotlin.tmpl/projectName_android.iml.tmpl delete mode 100644 packages/flutter_tools/templates/app/projectName_android.iml.tmpl create mode 100644 packages/flutter_tools/templates/plugin/android-java.tmpl/projectName_android.iml.tmpl create mode 100644 packages/flutter_tools/templates/plugin/android-kotlin.tmpl/projectName_android.iml.tmpl delete mode 100644 packages/flutter_tools/templates/plugin/projectName_android.iml.tmpl diff --git a/packages/flutter_tools/templates/app/.idea/libraries/KotlinJavaRuntime.xml.tmpl b/packages/flutter_tools/templates/app/.idea/libraries/KotlinJavaRuntime.xml.tmpl new file mode 100644 index 00000000000..2b96ac4b75c --- /dev/null +++ b/packages/flutter_tools/templates/app/.idea/libraries/KotlinJavaRuntime.xml.tmpl @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/packages/flutter_tools/templates/app/.idea/modules.xml.tmpl b/packages/flutter_tools/templates/app/.idea/modules.xml.tmpl index cd521752880..25d6f39bd38 100644 --- a/packages/flutter_tools/templates/app/.idea/modules.xml.tmpl +++ b/packages/flutter_tools/templates/app/.idea/modules.xml.tmpl @@ -3,7 +3,7 @@ - + diff --git a/packages/flutter_tools/templates/app/android-java.tmpl/projectName_android.iml.tmpl b/packages/flutter_tools/templates/app/android-java.tmpl/projectName_android.iml.tmpl new file mode 100644 index 00000000000..5729bef854b --- /dev/null +++ b/packages/flutter_tools/templates/app/android-java.tmpl/projectName_android.iml.tmpl @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + diff --git a/packages/flutter_tools/templates/app/android-kotlin.tmpl/projectName_android.iml.tmpl b/packages/flutter_tools/templates/app/android-kotlin.tmpl/projectName_android.iml.tmpl new file mode 100644 index 00000000000..f454a0805e0 --- /dev/null +++ b/packages/flutter_tools/templates/app/android-kotlin.tmpl/projectName_android.iml.tmpl @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/flutter_tools/templates/app/projectName_android.iml.tmpl b/packages/flutter_tools/templates/app/projectName_android.iml.tmpl deleted file mode 100644 index 861710e8389..00000000000 --- a/packages/flutter_tools/templates/app/projectName_android.iml.tmpl +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/packages/flutter_tools/templates/plugin/.idea/modules.xml.tmpl b/packages/flutter_tools/templates/plugin/.idea/modules.xml.tmpl index cd521752880..fa2d48f2220 100644 --- a/packages/flutter_tools/templates/plugin/.idea/modules.xml.tmpl +++ b/packages/flutter_tools/templates/plugin/.idea/modules.xml.tmpl @@ -3,7 +3,8 @@ - + + diff --git a/packages/flutter_tools/templates/plugin/android-java.tmpl/projectName_android.iml.tmpl b/packages/flutter_tools/templates/plugin/android-java.tmpl/projectName_android.iml.tmpl new file mode 100644 index 00000000000..a56f0d75d3c --- /dev/null +++ b/packages/flutter_tools/templates/plugin/android-java.tmpl/projectName_android.iml.tmpl @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + diff --git a/packages/flutter_tools/templates/plugin/android-kotlin.tmpl/projectName_android.iml.tmpl b/packages/flutter_tools/templates/plugin/android-kotlin.tmpl/projectName_android.iml.tmpl new file mode 100644 index 00000000000..5ab550e9e68 --- /dev/null +++ b/packages/flutter_tools/templates/plugin/android-kotlin.tmpl/projectName_android.iml.tmpl @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/packages/flutter_tools/templates/plugin/projectName_android.iml.tmpl b/packages/flutter_tools/templates/plugin/projectName_android.iml.tmpl deleted file mode 100644 index 09bc7b848c8..00000000000 --- a/packages/flutter_tools/templates/plugin/projectName_android.iml.tmpl +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/packages/flutter_tools/test/commands/create_test.dart b/packages/flutter_tools/test/commands/create_test.dart index 1c7207132f0..bdb26cd20bc 100644 --- a/packages/flutter_tools/test/commands/create_test.dart +++ b/packages/flutter_tools/test/commands/create_test.dart @@ -207,6 +207,7 @@ void main() { 'ios/Runner/AppDelegate.swift', 'ios/Runner/Runner-Bridging-Header.h', 'lib/main.dart', + '.idea/libraries/KotlinJavaRuntime.xml', ], unexpectedPaths: [ 'android/app/src/main/java/com/example/flutterproject/MainActivity.java',