Skip to content

Commit 7714f8e

Browse files
authored
合并拉取请求 #43
4.3.1
2 parents b9de94f + 7c6e671 commit 7714f8e

61 files changed

Lines changed: 484 additions & 731 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Changelog
2+
3+
## Unreleased
4+
5+
## [4.3.1] - 2024-05-24
6+
7+
- Optimize dart package version replacement logic
8+
- Fix the bug that modifying the file pubspec.yaml may cause unresponsiveness
9+
10+
## [4.2.5] - 2024-05-23
11+
12+
- Fix the problem of `flutter upgrade` and `flutter pub run build_runner build` command execution failure(idea **241+**)
13+
- New terminal adapted to `IDEA 2024.1+`
14+
- Fix some operation error reports. <code>Slow operations are prohibited on EDT. See
15+
SlowOperations.assertSlowOperationsAreAllowed javadoc.</code>
16+
- Adaptation 2024.2
17+
- Remove some deprecated functions
18+
- Replace flutter update log `What's New` Url Link
19+
20+
## [4.2.1] - 2024-05-17
21+
22+
- Adaptation 2024.2
23+
- Fix performance issues caused by iOS privacy scanning window
24+
25+
## [4.2.0] - 2024-05-15
26+
27+
- Fixed the problem of IP type URI being accessed and parsed incorrectly in the dio panel
28+
- Fixed the issue where the <code><b>&</b></code> symbol in parameters in Dio URL is displayed as blank
29+
- Optimize the font display of json editor and dart editor
30+
- Optimize dart document display format (<b><a href='https://github.com/mdddj/dd_flutter_idea_plugin/issues/41'>
31+
#41</a></b>)
32+
- Fixed an error in automatic completion of yaml version
33+
number(<b><a href='https://github.com/mdddj/dd_flutter_idea_plugin/issues/42'>#42</a></b>)

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ beautification of Dart documents and other tools, documents are under preparatio
2222

2323
More tools in development...
2424

25-
# Screenshot
25+
## Sponsor
26+
27+
Thanks to **JETBRAINS** for the free open source license
28+
29+
<a href='https://www.jetbrains.com'><img src='https://resources.jetbrains.com/storage/products/company/brand/logos/jetbrains.png' width='320px' /></a>
30+
31+
## Screenshot
2632

2733
<img width="705" alt="image" src="https://user-images.githubusercontent.com/29020213/169470371-182f38a0-33b1-49c3-8414-c80b232c6865.png">
2834
<img width="774" alt="image" src="https://user-images.githubusercontent.com/29020213/169472140-c0f76ae3-960f-4b02-838c-1365d23dbb59.png">
@@ -34,6 +40,7 @@ More tools in development...
3440
<img width="1076" alt="image" src="https://user-images.githubusercontent.com/29020213/169471759-491bbb6b-2ae1-4f57-ad4d-d8ef41a728ad.png">
3541
<img width="571" alt="image" src="https://user-images.githubusercontent.com/29020213/169472033-689819e6-ac05-46bd-a72b-e048c6c7b589.png">
3642

37-
### 打赏
43+
## 打赏
3844

3945
![IMG_1839](https://user-images.githubusercontent.com/29020213/169472413-8dad4bf8-a2bb-4eda-bfda-c05b95877b78.JPG)
46+

build.gradle.kts

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import java.time.LocalDateTime
2-
import java.time.format.DateTimeFormatter
1+
import org.jetbrains.changelog.Changelog
32

43
val dartVersion: String by project
54
val sinceBuildVersion: String by project
@@ -13,10 +12,12 @@ plugins {
1312
id("org.jetbrains.kotlin.jvm") version "1.9.20"
1413
id("org.jetbrains.intellij") version "1.16.1"
1514
idea
15+
id("org.jetbrains.changelog") version "2.2.0"
1616
}
1717
group = "shop.itbug"
1818
version = pluginVersion + type
1919

20+
println(project.version)
2021
repositories {
2122
mavenLocal()
2223
mavenCentral()
@@ -62,12 +63,17 @@ val pushToken: String? = System.getenv("idea_push_token")
6263
var javaVersion = "17"
6364

6465

65-
val currentTime: LocalDateTime = LocalDateTime.now()
66-
val formatter: DateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm")
67-
val formattedNow: String = currentTime.format(formatter)
68-
6966
tasks {
7067

68+
val myChangeLog = provider {
69+
changelog.renderItem(
70+
changelog
71+
.getOrNull(pluginVersion.removeSuffix(".")) ?: changelog.getUnreleased()
72+
.withHeader(false)
73+
.withEmptySections(false),
74+
Changelog.OutputType.HTML
75+
)
76+
}
7177
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
7278
kotlinOptions.jvmTarget = javaVersion
7379
kotlinOptions.freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
@@ -83,19 +89,7 @@ tasks {
8389
patchPluginXml {
8490
sinceBuild.set(sinceBuildVersion)
8591
untilBuild.set(untilBuildVersion)
86-
changeNotes.set(
87-
"""
88-
<div>
89-
<h1>4.1.5 (${formattedNow})</h1>
90-
<p>1. Added third-party dependency package privacy file scanning tool(IOS)</p>
91-
<p>2. Added reindex shortcut button (pubspec.yaml)</p>
92-
<div />
93-
<h1>4.1.3</h1>
94-
<p>1. Improved floating panel documentation</p>
95-
<p>2. Added constructor to convert into <code>freezed</code> object</p>
96-
</div>
97-
""".trimIndent()
98-
)
92+
changeNotes.set(myChangeLog)
9993
}
10094

10195
signPlugin {
@@ -126,10 +120,6 @@ tasks {
126120
kotlinOptions.jvmTarget = javaVersion
127121
}
128122

129-
verifyPluginConfiguration {
130-
131-
}
132-
133123
test {
134124
useJUnitPlatform()
135125
}
@@ -138,6 +128,18 @@ tasks {
138128

139129
}
140130

131+
verifyPlugin {
132+
133+
}
134+
135+
verifyPluginConfiguration {
136+
}
137+
141138
}
142139

143140

141+
changelog {
142+
version = pluginVersion.removeSuffix(".")
143+
path = file("CHANGELOG.md").canonicalPath
144+
groups.empty()
145+
}

gradle.properties

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
kotlin.stdlib.default.dependency=true
22
kotlin.incremental.useClasspathSnapshot=false
3-
kotlin.experimental.tryK2=true
3+
#kotlin.experimental.tryK2=true
44
kapt.use.k2=true
5-
pluginVersion=4.1.5.
5+
pluginVersion=4.3.1.
66
#===============================> 231
77
#dartVersion=231.9411
88
#sinceBuildVersion=231
@@ -25,9 +25,16 @@ pluginVersion=4.1.5.
2525
#ideaType=
2626
#type=233
2727
#=============================================== 241 idea
28-
dartVersion=241.14768
29-
sinceBuildVersion=241
30-
untilBuildVersion=241.*
31-
ideaVersion=LATEST-EAP-SNAPSHOT
28+
#dartVersion=241.17502
29+
#sinceBuildVersion=241
30+
#untilBuildVersion=241.*
31+
#ideaVersion=2024.1
32+
#ideaType=
33+
#type=241
34+
#========================================242 idea
35+
dartVersion=242.10180.28
36+
sinceBuildVersion=242
37+
untilBuildVersion=242.*
38+
ideaVersion=242-EAP-SNAPSHOT
3239
ideaType=
33-
type=241
40+
type=242

hedgehog.properties

Lines changed: 0 additions & 13 deletions
This file was deleted.

iguana.properties

Lines changed: 0 additions & 12 deletions
This file was deleted.

iu.properties

Lines changed: 0 additions & 12 deletions
This file was deleted.

rebel.xml

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/main/kotlin/shop/itbug/fluttercheckversionx/actions/DartDocumentGenerateAction.kt

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/main/kotlin/shop/itbug/fluttercheckversionx/actions/components/MyButtonAnAction.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
package shop.itbug.fluttercheckversionx.actions.components
22

33
import com.intellij.openapi.actionSystem.ActionUpdateThread
4+
import com.intellij.openapi.actionSystem.AnAction
45
import com.intellij.openapi.actionSystem.ex.CustomComponentAction
5-
import com.intellij.util.ui.JButtonAction
6-
7-
abstract class MyButtonAnAction(val text: String) : JButtonAction(text), CustomComponentAction {
86

7+
abstract class MyButtonAnAction(val text: String) : AnAction(text), CustomComponentAction {
98

109
override fun getActionUpdateThread(): ActionUpdateThread {
1110
return ActionUpdateThread.BGT

0 commit comments

Comments
 (0)