Skip to content

Commit

Permalink
Creates a new flutter command 'ide-config' and removes *.iml and .ide…
Browse files Browse the repository at this point in the history
…a from tree. (flutter#12958)

Creates a new (hidden) flutter command 'ide-config' that will create and/or update
existing .iml files and some files under the .idea directory, as well as
removing existing *.iml files and the .idea directory.

It also:

 * Adds *.iml to the .gitignore
 * Removes existing .iml files from the repo, and moves them to the
   packages/flutter_tools/ide_templates/intellij directory.
 * Adds a flag to ide-config ('--update-templates') that will take any new .iml
   files in the flutter tree and add them to the existing templates.
     - If --overwrite is also specified, then all existing templates will also
       be overwritten with the contents from the flutter tree, and any that have
       been deleted from the flutter tree will also be removed from the
       templates.
 * Added new run configurations for all existing app targets that will now also
   be automatically added to IntelliJ.
 * Setting up the environment also includes setting the coding style guidelines
   and the git VCS.
 * Note that after this PR lands, Flutter developers will need to run it once to
   re-create the .iml files and configuration files that have been removed.

After this PR lands, .iml files will no longer appear in the untracked files
section for git.
  • Loading branch information
gspencergoog authored Nov 13, 2017
1 parent 9be85b6 commit 797b39e
Show file tree
Hide file tree
Showing 82 changed files with 842 additions and 334 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
.history
.DS_Store
*.iml
11 changes: 7 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,17 @@ Getting the code and configuring your environment
* Run `flutter update-packages` This will fetch all the Dart packages that
Flutter depends on. You can replicate what this script does by running
`pub get` in each directory that contains a `pubspec.yaml` file.
* If you plan on using IntelliJ as your IDE, then also run
`flutter ide-config --overwrite` to create all of the IntelliJ configuration
files so you can open the main flutter directory as a project and run examples
from within the IDE.

Running the examples
--------------------

To run an example with a prebuilt binary from the cloud, switch to that
example's directory, run `pub get` to make sure its dependencies have been
downloaded, and use `flutter run`. Make sure you have a device connected over
USB and debugging enabled on that device.
To run an example, switch to that example's directory, and use `flutter run`.
Make sure you have an emulator running, or a device connected over USB and
debugging enabled on that device.

* `cd examples/hello_world`
* `flutter run`
Expand Down
26 changes: 0 additions & 26 deletions examples/flutter_gallery/.idea/libraries/Dart_SDK.xml

This file was deleted.

8 changes: 0 additions & 8 deletions examples/flutter_gallery/.idea/modules.xml

This file was deleted.

This file was deleted.

26 changes: 0 additions & 26 deletions examples/flutter_view/.idea/libraries/Dart_SDK.xml

This file was deleted.

8 changes: 0 additions & 8 deletions examples/flutter_view/.idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions examples/flutter_view/.idea/runConfigurations/main_dart.xml

This file was deleted.

26 changes: 0 additions & 26 deletions examples/hello_world/.idea/libraries/Dart_SDK.xml

This file was deleted.

8 changes: 0 additions & 8 deletions examples/hello_world/.idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions examples/hello_world/.idea/runConfigurations/main_dart.xml

This file was deleted.

26 changes: 0 additions & 26 deletions examples/layers/.idea/libraries/Dart_SDK.xml

This file was deleted.

8 changes: 0 additions & 8 deletions examples/layers/.idea/modules.xml

This file was deleted.

26 changes: 0 additions & 26 deletions examples/platform_channel/.idea/libraries/Dart_SDK.xml

This file was deleted.

8 changes: 0 additions & 8 deletions examples/platform_channel/.idea/modules.xml

This file was deleted.

This file was deleted.

26 changes: 0 additions & 26 deletions examples/platform_channel_swift/.idea/libraries/Dart_SDK.xml

This file was deleted.

8 changes: 0 additions & 8 deletions examples/platform_channel_swift/.idea/modules.xml

This file was deleted.

This file was deleted.

15 changes: 0 additions & 15 deletions examples/platform_view/full_platform_view.iml

This file was deleted.

26 changes: 0 additions & 26 deletions examples/stocks/.idea/libraries/Dart_SDK.xml

This file was deleted.

8 changes: 0 additions & 8 deletions examples/stocks/.idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions examples/stocks/.idea/runConfigurations/main_dart.xml

This file was deleted.

15 changes: 0 additions & 15 deletions examples/stocks/stocks.iml

This file was deleted.

File renamed without changes.
Loading

0 comments on commit 797b39e

Please sign in to comment.