Skip to content
Open
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
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = "com.dashwave"
version = "2.0.1"
version = "3.1.0"

repositories {
mavenCentral()
Expand All @@ -18,7 +18,7 @@ dependencies {
// Configure Gradle IntelliJ Plugin
// Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
intellij {
version.set("2022.2.5")
version.set("2024.1.1")
type.set("IC") // Target IDE Platform

plugins.set(listOf(/* Plugin Dependencies */))
Expand All @@ -35,8 +35,8 @@ tasks {
}

patchPluginXml {
sinceBuild.set("222")
untilBuild.set("232.*")
sinceBuild.set("222.*")
untilBuild.set("241.*")
}

signPlugin {
Expand Down
35 changes: 35 additions & 0 deletions src/main/kotlin/com/dashwave/plugin/PluginConfiguration.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package com.dashwave.plugin

import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.components.Service
import com.intellij.openapi.components.ServiceManager
import com.intellij.openapi.components.State
import com.intellij.openapi.components.Storage

@Service
@State(
name = "PluginSettings",
storages = [Storage("PluginSettings.xml")]
)
class PluginConfiguration: PersistentStateComponent<PluginConfiguration.State> {
data class State(
var pluginMode:String = "local",
var pluginEnv:String = ""
)

private var myState = State()

override fun getState(): State {
return myState
}

override fun loadState(state: State) {
myState = state
}

companion object {
fun getInstance(): PluginConfiguration {
return ServiceManager.getService(PluginConfiguration::class.java)
}
}
}
Loading