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
*[Working with Android Studio](#working-with-android-studio)
16
16
*[Working with Embedded DevTools (JxBrowser)](#working-with-embedded-devtools-jxbrowser)
17
-
*[Signing commits](#signing-commits)
18
17
<!-- TOC -->
19
18
20
19
## Contributing code
@@ -116,7 +115,7 @@ name and contact info to the [AUTHORS](AUTHORS) file.
116
115
- In the root directory, create an empty `gradle.properties` file (`touch gradle.properties`)
117
116
- Add the following to the file:
118
117
```
119
-
name = "flutter-intellij
118
+
name = "flutter-intellij"
120
119
buildSpec=2024.3
121
120
flutterPluginVersion=1
122
121
ideaProduct=android-studio
@@ -129,7 +128,7 @@ name and contact info to the [AUTHORS](AUTHORS) file.
129
128
testing=true
130
129
kotlin.stdlib.default.dependency=false
131
130
org.gradle.parallel=true
132
-
org.gradle.jvmargs=-Xms1024m -Xmx4048m`
131
+
org.gradle.jvmargs=-Xms1024m -Xmx4048m
133
132
```
134
133
- **[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.
135
134
@@ -380,7 +379,9 @@ Obviously, unit tests can only be run from the command line.
380
379
then adjust it to point to `flutter-intellij/third_party/lib/dart-plugin/xxx.yyyy/Dart.jar`.
381
380
Delete the Dart module from the Project Structure modules list.
382
381
383
-
## Working with Embedded DevTools (JxBrowser)
382
+
## Flutter DevTools Integration
383
+
384
+
### Working with Embedded DevTools (JxBrowser)
384
385
385
386
We use [JxBrowser](https://www.teamdev.com/jxbrowser),
386
387
a commercial product, to embed DevTools within IntelliJ.
@@ -399,3 +400,17 @@ To set up the license key:
399
400
1. Copy the template at resources/jxbrowser/jxbrowser.properties.template
400
401
and save it as resources/jxbrowser/jxbrowser.properties.
401
402
2. Replace `<KEY>` with the actual key.
403
+
404
+
### Developing with local DevTools
405
+
406
+
By default, the DevTools version in IntelliJ will match the DevTools version shipped with Flutter. To instead use a local DevTools version (which will be launched with `dt serve`), the following steps are required:
407
+
408
+
1. Make sure you have `dt` installed
409
+
- Follow instructions in the [DevTools set-up guide](https://github.com/flutter/devtools/blob/master/CONTRIBUTING.md#set-up-your-devtools-environment)
410
+
2. Set the registry key to your DevTools directory
411
+
- Go to Help > Find action > Registry > Find "flutter.local.devtools.dir" and set to your DevTools directory. (e.g. Users/user/dev/devtools)
412
+
- Optional: If you want to pass additional arguments to `dt serve`, put these in the option "flutter.local.devtools.args"
413
+
3. Restart IntelliJ
414
+
4. Open Help > Show log in finder > Open idea.log
415
+
- Verify you see output like see output `"DevTools startup: <various messages that come from running dt serve>"`
416
+
5. To stop using local DevTools, go back to the registry key set in step 2 and remove it
// The warning that "instrumentationTools()" is deprecated might be valid, however, this error is produced by Gradle IJ plugin version
109
-
// 2.1.0 if this isn't included:
110
-
// Caused by: org.gradle.api.GradleException: No Java Compiler dependency found.
111
-
// Please ensure the `instrumentationTools()` entry is present in the project dependencies section along with the `intellijDependencies()` entry in the repositories section.
Copy file name to clipboardExpand all lines: docs/building.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Update the [product-matrix.json](../product-matrix.json):
8
8
- IntelliJ IDEA versions can be found here: https://www.jetbrains.com/idea/download/other.html
9
9
- Version numbers for the `product-matrix.json` should be taken from the name of the downloaded file, not versions listed on the website.
10
10
- Dart Plugin versions can be found here: https://plugins.jetbrains.com/plugin/6351-dart
11
-
- Android Studio versions can be found here: https://plugins.jetbrains.com/docs/intellij/android-studio-releases-list.html
11
+
- Android Studio versions can be found here: https://developer.android.com/studio/archive & https://plugins.jetbrains.com/docs/intellij/android-studio-releases-list.html
12
12
- To view the current sources from Android Studio, use https://cs.android.com/android-studio
13
13
- To get versions of the Android plugin for IntelliJ, versions can be pulled from https://plugins.jetbrains.com/plugin/22989-android
0 commit comments