forked from firka/flutter
Update IntelliJ template for new projects and existing samples (#7501)
* Disable 'Show Excluded' by default * Move .iml file inside .idea dir * Remove pub and build excludions as they are automatically set by the Dart plugin * Exclude .idea folder (new users will edit it through the IJ UI, not the file) * Move .iml files into .idea dir to be consistent with template changes * Add workspace.xml from new template to existing samples * Update current examples to match template changes for excluding folders * Add missing flutter.yaml to make sure there are no analysis errors * Add back .pub and build excludeFolder tags per https://github.com/flutter/flutter-intellij/issues/630#issuecomment-272887230 * Remove workspace.xml from example per review feedback
This commit is contained in:
4
.idea/modules.xml
generated
4
.idea/modules.xml
generated
@@ -5,11 +5,11 @@
|
||||
<module fileurl="file://$PROJECT_DIR$/dev/devicelab/devicelab.iml" filepath="$PROJECT_DIR$/dev/devicelab/devicelab.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/packages/flutter/flutter.iml" filepath="$PROJECT_DIR$/packages/flutter/flutter.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/packages/flutter_driver/flutter_driver.iml" filepath="$PROJECT_DIR$/packages/flutter_driver/flutter_driver.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/examples/flutter_gallery/flutter_gallery.iml" filepath="$PROJECT_DIR$/examples/flutter_gallery/flutter_gallery.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/examples/flutter_gallery/.idea/flutter_gallery.iml" filepath="$PROJECT_DIR$/examples/flutter_gallery/.idea/flutter_gallery.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/packages/flutter_markdown/flutter_markdown.iml" filepath="$PROJECT_DIR$/packages/flutter_markdown/flutter_markdown.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/packages/flutter_test/flutter_test.iml" filepath="$PROJECT_DIR$/packages/flutter_test/flutter_test.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/packages/flutter_tools/flutter_tools.iml" filepath="$PROJECT_DIR$/packages/flutter_tools/flutter_tools.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/examples/hello_world/hello_world.iml" filepath="$PROJECT_DIR$/examples/hello_world/hello_world.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/examples/hello_world/.idea/hello_world.iml" filepath="$PROJECT_DIR$/examples/hello_world/.idea/hello_world.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
@@ -3,6 +3,7 @@
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.idea" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/.pub" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/packages" />
|
||||
2
examples/flutter_gallery/.idea/modules.xml
generated
2
examples/flutter_gallery/.idea/modules.xml
generated
@@ -2,7 +2,7 @@
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/flutter_gallery.iml" filepath="$PROJECT_DIR$/flutter_gallery.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/flutter_gallery.iml" filepath="$PROJECT_DIR$/.idea/flutter_gallery.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
@@ -3,6 +3,7 @@
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.idea" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/.pub" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/packages" />
|
||||
2
examples/hello_services/.idea/modules.xml
generated
2
examples/hello_services/.idea/modules.xml
generated
@@ -2,7 +2,7 @@
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/hello_services.iml" filepath="$PROJECT_DIR$/hello_services.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/hello_services.iml" filepath="$PROJECT_DIR$/.idea/hello_services.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
@@ -3,6 +3,7 @@
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.idea" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/.pub" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/packages" />
|
||||
2
examples/hello_world/.idea/modules.xml
generated
2
examples/hello_world/.idea/modules.xml
generated
@@ -2,7 +2,7 @@
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/hello_world.iml" filepath="$PROJECT_DIR$/hello_world.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/hello_world.iml" filepath="$PROJECT_DIR$/.idea/hello_world.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
2
examples/hello_world/flutter.yaml
Normal file
2
examples/hello_world/flutter.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
name: hello_world
|
||||
uses-material-design: true
|
||||
@@ -3,6 +3,7 @@
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.idea" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/.pub" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/packages" />
|
||||
2
examples/layers/.idea/modules.xml
generated
2
examples/layers/.idea/modules.xml
generated
@@ -2,7 +2,7 @@
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/layers.iml" filepath="$PROJECT_DIR$/layers.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/layers.iml" filepath="$PROJECT_DIR$/.idea/layers.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
2
examples/stocks/.idea/modules.xml
generated
2
examples/stocks/.idea/modules.xml
generated
@@ -2,7 +2,7 @@
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/stocks.iml" filepath="$PROJECT_DIR$/stocks.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/stocks.iml" filepath="$PROJECT_DIR$/.idea/stocks.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
@@ -3,6 +3,7 @@
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.idea" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/.pub" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/packages" />
|
||||
@@ -2,7 +2,7 @@
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/{{projectName}}.iml" filepath="$PROJECT_DIR$/{{projectName}}.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/{{projectName}}.iml" filepath="$PROJECT_DIR$/.idea/{{projectName}}.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.idea" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/.pub" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/packages" />
|
||||
@@ -19,4 +19,11 @@
|
||||
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
||||
</layout>
|
||||
</component>
|
||||
<component name="ProjectView">
|
||||
<panes>
|
||||
<pane id="ProjectPane">
|
||||
<option name="show-excluded-files" value="false" />
|
||||
</pane>
|
||||
</panes>
|
||||
</component>
|
||||
</project>
|
||||
|
||||
Reference in New Issue
Block a user