Skip to content

Commit db8e963

Browse files
authored
Bump the plugin to work with 2025.1 (#58)
1 parent 9c67785 commit db8e963

File tree

9 files changed

+38
-25
lines changed

9 files changed

+38
-25
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
id("java")
77
alias(libs.plugins.kotlinJvm)
88
id("org.jetbrains.intellij.platform") version "2.2.1" // https://github.com/JetBrains/gradle-intellij-plugin/releases
9-
id("com.jetbrains.rdgen") version libs.versions.rdGen // https://www.myget.org/feed/rd-snapshots/package/maven/com.jetbrains.rd/rd-gen
9+
// id("com.jetbrains.rdgen") version libs.versions.rdGen // https://www.myget.org/feed/rd-snapshots/package/maven/com.jetbrains.rd/rd-gen
1010
id("me.filippov.gradle.jvm.wrapper") version "0.14.0"
1111
}
1212

gradle.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
DotnetPluginId=ReSharperPlugin.RimworldDev
55
DotnetSolution=ReSharperPlugin.RimworldDev.sln
66
RiderPluginId=com.jetbrains.rider.plugins.rimworlddev
7-
PluginVersion=2024.1.3
7+
PluginVersion=2024.1.4
88

99
BuildConfiguration=Release
1010

@@ -14,15 +14,15 @@ PublishToken="_PLACEHOLDER_"
1414
# Release: 2020.2
1515
# Nightly: 2020.3-SNAPSHOT
1616
# EAP: 2020.3-EAP2-SNAPSHOT
17-
ProductVersion=2024.3
17+
ProductVersion=2025.1
1818

1919
# Kotlin 1.4 will bundle the stdlib dependency by default, causing problems with the version bundled with the IDE
2020
# https://blog.jetbrains.com/kotlin/2020/07/kotlin-1-4-rc-released/#stdlib-default
2121
kotlin.stdlib.default.dependency=false
2222
org.gradle.jvmargs=-Xmx4g
2323

24-
rdVersion=2024.1.1
24+
rdVersion=2025.1
2525
rdKotlinVersion=2.1.0
2626
intellijPlatformGradlePluginVersion=2.2.1
2727
gradleJvmWrapperVersion=0.14.0
28-
riderBaseVersion=2024.3
28+
riderBaseVersion=2025.1

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[versions]
2-
kotlin = "1.9.24" # https://plugins.jetbrains.com/docs/intellij/using-kotlin.html#kotlin-standard-library
3-
rdGen = "2024.1.1" # https://github.com/JetBrains/rd/releases
2+
kotlin = "2.1.20" # https://plugins.jetbrains.com/docs/intellij/using-kotlin.html#kotlin-standard-library
3+
rdGen = "2025.1.1" # https://github.com/JetBrains/rd/releases
44

55
[libraries]
66
kotlinStdLib = { group = "org.jetbrains.kotlin", name = "kotlin-stdlib", version.ref = "kotlin" }

src/dotnet/Plugin.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22

33
<PropertyGroup>
4-
<SdkVersion>2024.3.0</SdkVersion>
4+
<SdkVersion>2025.1.0</SdkVersion>
55

66
<Title>Rimworld Development Environment</Title>
77
<Description>Bring the intelligence of your IDE to Rimworld XML files. Use information backed by Rimworlds DLL file to autocomplete your XML, Ctrl+Click into the C# that your XML gets translated into and see what options you have when adding items in your mods!</Description>

src/dotnet/ReSharperPlugin.RimworldDev.Tests/ReSharperPlugin.RimworldDev.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="JetBrains.ReSharper.SDK" Version="2024.3.0" PrivateAssets="all">
9+
<PackageReference Include="JetBrains.ReSharper.SDK" Version="2025.1.0" PrivateAssets="all">
1010
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1111
</PackageReference>
1212
<PackageReference Update="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" />

src/dotnet/ReSharperPlugin.RimworldDev/ReSharperPlugin.RimworldDev.Rider.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222

2323
<ItemGroup>
2424
<PackageReference Include="JetBrains.Annotations" Version="2024.3.0" />
25-
<PackageReference Include="JetBrains.Lifetimes" Version="2024.3.1" />
26-
<PackageReference Include="JetBrains.RdFramework" Version="2024.3.1" />
27-
<PackageReference Include="JetBrains.Rider.SDK" Version="2024.3.0">
25+
<PackageReference Include="JetBrains.Lifetimes" Version="2025.1.0" />
26+
<PackageReference Include="JetBrains.RdFramework" Version="2025.1.0" />
27+
<PackageReference Include="JetBrains.Rider.SDK" Version="2025.1.0">
2828
<PrivateAssets>all</PrivateAssets>
2929
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3030
</PackageReference>

src/rider/main/kotlin/run/RunConfiguration.kt

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,30 @@ import com.jetbrains.rd.platform.util.lifetime
1515
import com.jetbrains.rider.debugger.IRiderDebuggable
1616
import com.jetbrains.rider.plugins.unity.run.configurations.UnityAttachToPlayerFactory
1717
import com.jetbrains.rider.plugins.unity.run.configurations.UnityPlayerDebugConfigurationOptions
18-
import com.jetbrains.rider.plugins.unity.run.configurations.UnityPlayerDebugConfigurationType
1918
import com.jetbrains.rider.run.configurations.AsyncRunConfiguration
2019
import com.jetbrains.rider.run.getProcess
2120
import kotlinx.coroutines.ExperimentalCoroutinesApi
2221
import org.jetbrains.concurrency.Promise
22+
import com.jetbrains.rider.plugins.unity.UnityBundle
23+
import icons.UnityIcons
24+
25+
26+
internal class UnityPlayerDebugConfigurationTypeInternal : ConfigurationTypeBase(
27+
ID,
28+
UnityBundle.message("configuration.type.name.attach.to.unity.player"),
29+
UnityBundle.message("configuration.type.description.attach.to.unity.player.and.debug"),
30+
UnityIcons.RunConfigurations.AttachToPlayer
31+
), VirtualConfigurationType {
32+
val attachToPlayerFactory = UnityAttachToPlayerFactory(this)
33+
34+
init {
35+
addFactory(attachToPlayerFactory)
36+
}
37+
38+
companion object {
39+
const val ID = "UnityPlayer"
40+
}
41+
}
2342

2443

2544
class RunConfiguration(project: Project, factory: ConfigurationFactory, name: String) :
@@ -60,7 +79,7 @@ class RunConfiguration(project: Project, factory: ConfigurationFactory, name: St
6079
@Deprecated("Please, override 'getRunProfileStateAsync' instead")
6180
@OptIn(ExperimentalCoroutinesApi::class)
6281
override fun getStateAsync(executor: Executor, environment: ExecutionEnvironment): Promise<RunProfileState> {
63-
val attachToDebugFactory = UnityAttachToPlayerFactory(UnityPlayerDebugConfigurationType())
82+
val attachToDebugFactory = UnityAttachToPlayerFactory(UnityPlayerDebugConfigurationTypeInternal())
6483
val attachToDebug = attachToDebugFactory.createTemplateConfiguration(project)
6584
attachToDebug.name = "Custom Player"
6685

src/rider/main/kotlin/run/SettingsEditor.kt

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,18 @@ class SettingsEditor(project: Project) : SettingsEditor<RunConfiguration>() {
2121

2222
init {
2323
exePath.addBrowseFolderListener(
24-
"Executable Path",
25-
"",
2624
null,
27-
FileChooserDescriptorFactory.createSingleFileDescriptor()
25+
FileChooserDescriptorFactory.singleFile().withTitle("Executable Path").withDescription("")
2826
)
2927

3028
modListPath.addBrowseFolderListener(
31-
"Modlist Path",
32-
"",
3329
project,
34-
FileChooserDescriptorFactory.createSingleFileDescriptor()
30+
FileChooserDescriptorFactory.singleFile().withTitle("Modlist Path").withDescription("")
3531
)
3632

3733
saveFilePath.addBrowseFolderListener(
38-
"Save File Path",
39-
"",
4034
project,
41-
FileChooserDescriptorFactory.createSingleFileDescriptor()
35+
FileChooserDescriptorFactory.singleFile().withTitle("Save File Path").withDescription("")
4236
)
4337

4438
myPanel = FormBuilder

src/rider/main/resources/META-INF/plugin.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<idea-plugin require-restart="true">
22
<id>com.jetbrains.rider.plugins.rimworlddev</id>
33
<name>Rimworld Development Environment</name>
4-
<version>2024.1.2</version>
4+
<version>2024.1.4</version>
55
<vendor url="https://github.com/Garethp/Rider-RimworldDevelopment">Garethp</vendor>
6-
<idea-version since-build="243" />
6+
<idea-version since-build="251" />
77
<depends>com.intellij.modules.rider</depends>
88
<depends>com.intellij.resharper.unity</depends>
99

0 commit comments

Comments
 (0)