Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

val dartVersion: String by project
val flutterVersion: String by project
val sinceBuildVersion: String by project
Expand Down Expand Up @@ -83,6 +82,14 @@ tasks {
untilBuild.set(untilBuildVersion)
changeNotes.set(
"""
<div>
<h1>3.8.0</h1>
<ul>
<li>Add compact mode layout to the Dio url list</li>
<li>Add Hive tool, document:<a src='https://github.com/mdddj/dd_flutter_idea_plugin/blob/master/hive.md' alt='hive doc'>document</a> (Bete))</li>
<li>Optimize partial connection logic</li>
</ul>
</div>
<div>
<h1>3.7.0</h1>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
kotlin.stdlib.default.dependency=true
kotlin.incremental.useClasspathSnapshot=false
kotlin.experimental.tryK2=true
pluginVersion=3.7.3
pluginVersion=3.8.0
# AS release version : https://plugins.jetbrains.com/docs/intellij/android-studio-releases-list.html
dartVersion=223.8950
flutterVersion=75.1.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import shop.itbug.fluttercheckversionx.config.GenerateAssetsClassConfig
import shop.itbug.fluttercheckversionx.icons.MyIcons
import shop.itbug.fluttercheckversionx.services.FlutterService
import shop.itbug.fluttercheckversionx.services.Release
import shop.itbug.fluttercheckversionx.util.CacheUtil
import shop.itbug.fluttercheckversionx.util.MyDartPsiElementUtil
import shop.itbug.fluttercheckversionx.util.RunUtil

Expand Down Expand Up @@ -57,6 +56,9 @@ class FlutterProjectOpenActivity : StartupActivity.Background, Disposable {

fun run(project: Project) {
///监听assets资源目录更改事件
if (project.isDisposed) {
return
}
connect = project.messageBus.connect(this)
connect.subscribe(VirtualFileManager.VFS_CHANGES, object :
BulkFileListener {
Expand All @@ -78,15 +80,6 @@ class FlutterProjectOpenActivity : StartupActivity.Background, Disposable {
}
})

cleanPubPluginsCache()

CacheUtil.clean()
}


///清理插件的数据缓存
private fun cleanPubPluginsCache() {
CacheUtil.clean()
}


Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
package shop.itbug.fluttercheckversionx.hive.action

import com.intellij.ide.BrowserUtil
import com.intellij.openapi.actionSystem.ActionUpdateThread
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent


//hive使用文档 // todo 编写使用文档
class HiveTutorialHelp : AnAction() {
val url = "https://github.com/mdddj/dd_flutter_idea_plugin/blob/master/hive.md"
override fun actionPerformed(e: AnActionEvent) {
println("前往文档")
BrowserUtil.browse(url)
}

override fun getActionUpdateThread(): ActionUpdateThread {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import io.flutter.sdk.FlutterSdkUtil
import shop.itbug.fluttercheckversionx.dialog.SearchDialog
import shop.itbug.fluttercheckversionx.i18n.PluginBundle
import shop.itbug.fluttercheckversionx.icons.MyIcons
import shop.itbug.fluttercheckversionx.util.CacheUtil
import shop.itbug.fluttercheckversionx.util.getPubspecYAMLFile
import shop.itbug.fluttercheckversionx.window.AllPluginsCheckVersion
import java.util.function.Function
Expand All @@ -37,7 +36,7 @@ class PubPluginVersionCheckNotification : EditorNotificationProvider {
if (filename != "pubspec.yaml") {
return@Function null
}
if(!FlutterSdkUtil.hasFlutterModules(project)){
if (!FlutterSdkUtil.hasFlutterModules(project)) {
return@Function null
}
YamlFileNotificationPanel(it, project)
Expand All @@ -64,13 +63,6 @@ class YamlFileNotificationPanel(private val fileEditor: FileEditor, val project:
myLinksPanel.add(searchPluginLabel)


//清理缓存
val cleanCacheBtn = createActionLabel(PluginBundle.get("clean.cache")) {
CacheUtil.clean()
}
myLinksPanel.add(cleanCacheBtn)


//重新索引
// val reIndex = createActionLabel("扫描未使用的包") {
// ApplicationManager.getApplication().run {
Expand Down
34 changes: 0 additions & 34 deletions src/main/kotlin/shop/itbug/fluttercheckversionx/util/CacheUtil.kt

This file was deleted.