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
- Either the community edition (free) or Ultimate will work.
119
119
120
-
2. Create a `gradle.properties` file.
121
-
- In the root directory, create an empty `gradle.properties` file (`touch gradle.properties`)
122
-
- Add the following to the file:
123
-
```
124
-
flutterPluginVersion=SNAPSHOT
125
-
ideaVersion=2024.3.1.7
126
-
dartPluginVersion= 243.21565.120
127
-
sinceBuild=243
128
-
untilBuild=253.*
129
-
javaVersion=21
130
-
kotlin.stdlib.default.dependency=false
131
-
org.gradle.parallel=true
132
-
org.gradle.jvmargs=-Xms1024m -Xmx4048m
133
-
```
134
-
- **[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
-
136
120
3. Start IntelliJ IDEA with the `flutter-intellij` project.
137
121
- If you see a popup with "Gradle build scripts found",
138
122
**confirm loading the Gradle project, and wait until syncing is done.**
@@ -188,13 +172,14 @@ name and contact info to the [AUTHORS](AUTHORS) file.
188
172
189
173
5. Configure the modules for the Project
190
174
- Select "Project Settings > Modules"
191
-
- Select the `flutter-intellij> flutter-idea` module
175
+
- Select the `flutter-intellij` module
192
176
- Switch to the "Paths" window
193
177
- Select the **Inherit project compile output path** option, then apply.
178
+
- Do the same for the subdirectories, `main` and `test`.
194
179
195
180
6. Change the modules SDK to the Project SDK
196
181
- Select "Project Settings > Modules"
197
-
- Select all the sub-directories under the `flutter-intellij> flutter-idea` module
182
+
- Select all the subdirectories under the `flutter-intellij` module
198
183
- Switch to the "Dependencies" window
199
184
- Change the "Module SDK" selection to `Project SDK`.
200
185
@@ -297,7 +282,7 @@ To be able to debug a single test class or test method, you need to do the follo
297
282
The test configuration can be tricky due to the IntelliJ platform versioning.
298
283
The plugin tool (below) can be a more reliable way to run tests.
299
284
300
-
### Using the plugin tool on the command line
285
+
### Using the command line
301
286
302
287
To run unit tests on the command line:
303
288
@@ -322,31 +307,6 @@ Sometimes browsing the source code of IntelliJ helps understand platform details
322
307
Accept all the root folders found by the IDE after scanning.
323
308
- Do the same for the `intellij-plugins` repo to get Dart plugin sources. Sync to the same version as before.
324
309
325
-
## Working with Android Studio
326
-
327
-
Android Studio cannot use the Gradle-based project definition,
328
-
so it still needs the `flutter-intellij-community.iml` file.
329
-
Obviously, unit tests can only be run from the command line.
330
-
331
-
1. Initialize Android Studio sources.
332
-
2. Checkout Flutter plugin sources, tip of the tree.
333
-
3. Follow the directions for setting up the Dart plugin sources in
334
-
`intellij-plugins/Dart/README.md` with these changes:
335
-
- you do not need to clone the intellij-community repo
- ensure that the changelog in `CHANGELOG.md` is up-to-date (from the current milestone)
5
-
- edit `CHANGELOG.md` to update the release notes
6
-
- re-generate the plugin.xml files using `bin/plugin generate`
7
-
- commit these changes
8
-
- create a new branch locally from that commit (`git checkout -B release_<version> SHA`, replacing `<version>` and `SHA` as appropriate)
9
-
- in a terminal emulator, `bin/plugin --release=<version> build`, again replacing `<version>` with the current version number
10
-
- the plugin is created as three separate `flutter-studio.zip` products in `/project/root/releases/release_<version>` (all three will be uploaded separately)
- in a terminal emulator, `bin/plugin --release=<version> build`, again replacing `<version>` with the current version number
42
-
- the plugin is created as three separate `flutter-studio.zip` products in `/project/root/releases/release_<version>` (all three will be uploaded separately)
43
-
- 2017.3
44
-
- 2018.1
45
-
- 2018.2
46
-
- sign into https://plugins.jetbrains.com
47
-
- from https://plugins.jetbrains.com/plugin/9212?pr=idea, select `'update plugin'`
48
-
- upload the `flutter-studio.zip` created from the earlier step (note: the `.zip` file)
3
+
## Building the plugin zip file:
4
+
- Make changes to the repository for the version.
5
+
- Edit `CHANGELOG.md` to include the current milestone and associated release notes.
6
+
- Increment the version for the dev release in `tool/kokoro/deploy.sh` (e.g. if the release about to go out is M90, the dev release version will be 91.0).
7
+
- Commit these changes.
8
+
- Update `gradle.properties` with the release number.
9
+
- Run `./gradlew buildPlugin` - this will generate a `flutter-intellij.zip` file in `build/distributions`.
10
+
11
+
## Uploading the plugin:
12
+
- Sign in to https://plugins.jetbrains.com.
13
+
- From https://plugins.jetbrains.com/plugin/9212?pr=idea, select `'update plugin'`.
14
+
- Upload the `flutter-intellij.zip` file created from the earlier step (note: the `.zip` file).
0 commit comments