You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -59,13 +59,13 @@ name and contact info to the [AUTHORS](AUTHORS) file.
59
59
60
60
## Environment set-up
61
61
62
-
1. Install the lastest[Java Development Kit](https://www.java.com/en/download/).
62
+
1. Install the latest[Java Development Kit](https://www.java.com/en/download/).
63
63
- The current Java Development Kit version is: **23**.
64
64
-**[Googlers only]** Install Java from go/softwarecenter instead.
65
65
66
66
2. Set your `JAVA_HOME` directory in the configuration file for your shell environment.
67
67
- For example, on macOS, the following works:
68
-
Check what version of java you have:
68
+
Check what version of Java you have:
69
69
```shell
70
70
/usr/libexec/java_home -V
71
71
```
@@ -86,7 +86,7 @@ name and contact info to the [AUTHORS](AUTHORS) file.
86
86
```shell
87
87
which flutter
88
88
```
89
-
This should print out a path to the Flutter SDK such as:
89
+
This should print out a path to the Flutter SDK, such as:
90
90
```shell
91
91
home/path/to/flutter/bin/flutter
92
92
```
@@ -95,8 +95,8 @@ name and contact info to the [AUTHORS](AUTHORS) file.
95
95
export FLUTTER_SDK="$HOME/path/to/flutter"
96
96
```
97
97
98
-
4. Set your `DARK_SDK` path in the configuration file for your shell environment.
99
-
- In your shell configuration file (e.g. `.bashrc` or `.zshrc`), set your `DART_SDK` env variable to match the Dart SDK in your Flutter SDK. This should look like the `FLUTTER_SDK` path (added above) with `/bin/cache/dart-sdk`appened to the end.
98
+
4. Set your `DART_SDK` path in the configuration file for your shell environment.
99
+
- In your shell configuration file (e.g. `.bashrc` or `.zshrc`), set your `DART_SDK` env variable to match the Dart SDK in your Flutter SDK. This should look like the `FLUTTER_SDK` path (added above) with `/bin/cache/dart-sdk`appended to the end.
@@ -108,7 +108,7 @@ name and contact info to the [AUTHORS](AUTHORS) file.
108
108
```
109
109
110
110
6. Update your current `PATH`.
111
-
- Either re-start your terminal or run `source ~/.zshrc` / `source ~/.bashrc` to add the new environment variables to your `PATH`.
111
+
- Either restart your terminal or run `source ~/.zshrc` / `source ~/.bashrc` to add the new environment variables to your `PATH`.
112
112
113
113
## IntelliJ set-up
114
114
@@ -138,7 +138,7 @@ name and contact info to the [AUTHORS](AUTHORS) file.
138
138
```
139
139
- **[Note]** If you want, you can manually change these properties to target different versions of IntelliJ. See `product-matrix.json` to find which configurations are supported.
140
140
141
-
3. Start the IntelliJ IDEA with the `flutter-intellij` project.
141
+
3. Start IntelliJ IDEA with the `flutter-intellij` project.
142
142
- If you see a popup with "Gradle build scripts found",
143
143
**confirm loading the Gradle project, and wait until syncing is done.**
144
144
- If you didn't see the popup at the first start, **delete & re-clone the repo** and try again.
@@ -158,7 +158,7 @@ name and contact info to the [AUTHORS](AUTHORS) file.
158
158
159
159
2. Add the IntelliJ JBR from disk:
160
160
- Select "Platform Settings > SDKs"
161
-
- Click the "+" sign at the top "Add New SDK (Alt+Insert)", thenselect"Add JDK from disk...".
161
+
- Click the "+" sign at the top, click"Add New SDK (Alt+Insert)", thenselect"Add JDK from disk...".
162
162
- Select your IntelliJ application (most likely under `Applications`) and from there, select the `Contents/jbr/Contents/Home` directory
163
163
- **[For macos]** You won't be able to select the `Contents` directory from Finder without right-clicking on the IntelliJ application, and selecting "Quick Look" from the dropdown that opens. From there, you can select the `Contents` directory.
164
164
- Change the name so that you can easily identify it, e.g. `IDEA JBR 21`.
@@ -170,11 +170,11 @@ name and contact info to the [AUTHORS](AUTHORS) file.
170
170
171
171
3. Add the IntelliJ Platform Plugin SDK
172
172
- Select "Platform Settings > SDKs"
173
-
- Click the "+" sign at the top "Add New SDK (Alt+Insert)", then select "Add IntelliJ Platform Plugin SDK...".
173
+
- Click the "+" sign at the top, click"Add New SDK (Alt+Insert)", then select "Add IntelliJ Platform Plugin SDK...".
174
174
- **[Note]** If you don't see this option, ensure you have the DevKit plugin installed.
175
175
- Select your IntelliJ application (most likely under `Applications`) and from there, select the `Contents` directory
176
176
- **[For macos]** You won't be able to select the `Contents` directory from Finder without right-clicking on the IntelliJ application, and selecting "Quick Look" from the dropdown that opens.
177
-
- Remember the generated name (probably `IntelliJ IDEA IU-231.8109.175`) or change to name to format like this.
177
+
- Remember the generated name (probably `IntelliJ IDEA IU-231.8109.175`) or change to name to a format like this.
178
178
- Change the **Internal Java Platform** to the JBR you added in step 2. (e.g. `IDEA JBR 21`).
179
179
- When you are done, your settings should look something like:
180
180
```
@@ -195,7 +195,7 @@ name and contact info to the [AUTHORS](AUTHORS) file.
195
195
- Select "Project Settings > Modules"
196
196
- Select the `flutter-intellij > flutter-idea` module
197
197
- Switch to the "Paths" window
198
-
- Select the **Inherit project compile output path** option then apply.
198
+
- Select the **Inherit project compile output path** option, then apply.
199
199
200
200
6. Change the modules SDK to the Project SDK
201
201
- Select "Project Settings > Modules"
@@ -205,7 +205,7 @@ name and contact info to the [AUTHORS](AUTHORS) file.
205
205
206
206
### Configure the Gradle settings
207
207
208
-
1. From IntelliJ, Open the "Settings" dialog (`IntelliJ IDEA | Settings`).
208
+
1. From IntelliJ, open the "Settings" dialog (`IntelliJ IDEA | Settings`).
- Sync it to the same version of IntelliJ as given by `baseVersion` in gradle.properties (`git checkout 211.7628`).
358
358
It will be in "detached HEAD" mode.
359
-
- Open the Project Structure dialog (`File > Project Structure`). In the `IntelliJ IDEA Community Edition`sdk,
359
+
- Open the Project Structure dialog (`File > Project Structure`). In the `IntelliJ IDEA Community Edition`SDK,
360
360
head over to the `Sourcepaths` tab and add the path to `intellij-community`.
361
361
Accept all the root folders found by the IDE after scanning.
362
-
- Do the same for the intellij-plugins repo to get Dart plugin sources. Sync to the same version as before.
362
+
- Do the same for the `intellij-plugins` repo to get Dart plugin sources. Sync to the same version as before.
363
363
364
364
## Working with Android Studio
365
365
@@ -368,7 +368,7 @@ so it still needs the `flutter-intellij-community.iml` file.
368
368
Obviously, unit tests can only be run from the command line.
369
369
370
370
1. Initialize Android Studio sources.
371
-
2. Checkout Flutter plugin sources, tip of tree.
371
+
2. Checkout Flutter plugin sources, tip of the tree.
372
372
3. Follow the directions for setting up the Dart plugin sources in
373
373
`intellij-plugins/Dart/README.md` with these changes:
374
374
- you do not need to clone the intellij-community repo
@@ -379,10 +379,10 @@ Obviously, unit tests can only be run from the command line.
379
379
- intellij-plugins/Dart/Dart-community.iml (if there are lots of errors, see step 7)
380
380
- flutter-intellij/flutter-intellij-community.iml
381
381
6. Using the Project Structure editor, expand the tree to show `intellij > android > adt > ui`.
382
-
Select the `ui` module then add a module dependency from it to `flutter-intellij-community`.
383
-
Also add a dependency on the Dart module unless using step 7.
382
+
Select the `ui` module, then add a module dependency from it to `flutter-intellij-community`.
383
+
Also, add a dependency on the Dart module unless using step 7.
384
384
7. (Optional, when Dart sources are not usable.) Make sure the `flutter-intellij-community` module
385
-
has a dependency on a library named `Dart`. It should be pre-defined, but if it is out-of-date
385
+
has a dependency on a library named `Dart`. It should be pre-defined, but if it is out of date,
386
386
then adjust it to point to `flutter-intellij/third_party/lib/dart-plugin/xxx.yyyy/Dart.jar`.
387
387
Delete the Dart module from the Project Structure modules list.
388
388
@@ -415,9 +415,9 @@ By default, the DevTools version in IntelliJ will match the DevTools version shi
415
415
1. Make sure you have `dt` installed
416
416
- Follow instructions in the [DevTools set-up guide](https://github.com/flutter/devtools/blob/master/CONTRIBUTING.md#set-up-your-devtools-environment)
417
417
2. Set the registry key to your DevTools directory
418
-
- Go to Help > Find action > Registry > Find "flutter.local.devtools.dir" and set to your DevTools directory. (e.g. Users/user/dev/devtools)
418
+
- Go to Help > Find action > Registry > Find "flutter.local.devtools.dir" and set it to your DevTools directory. (e.g. Users/user/dev/devtools)
419
419
- Optional: If you want to pass additional arguments to `dt serve`, put these in the option "flutter.local.devtools.args"
420
420
3. Restart IntelliJ
421
421
4. Open Help > Show log in finder > Open idea.log
422
422
- Verify you see output like see output `"DevTools startup: <various messages that come from running dt serve>"`
423
-
5. To stop using local DevTools, go back to the registry key set in step 2 and remove it
423
+
5. To stop using local DevTools, go back to the registry key set in step 2 and remove it
0 commit comments