Skip to content

Commit 5b58533

Browse files
committed
Remove legacy creator
1 parent b568d06 commit 5b58533

246 files changed

Lines changed: 7 additions & 17289 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.

src/main/kotlin/creator/MinecraftModuleBuilder.kt

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

src/main/kotlin/creator/ParchmentStep.kt

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

src/main/kotlin/creator/PlatformVersion.kt

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* https://mcdev.io/
55
*
6-
* Copyright (C) 2025 minecraft-dev
6+
* Copyright (C) 2026 minecraft-dev
77
*
88
* This program is free software: you can redistribute it and/or modify
99
* it under the terms of the GNU Lesser General Public License as published
@@ -18,19 +18,20 @@
1818
* along with this program. If not, see <https://www.gnu.org/licenses/>.
1919
*/
2020

21+
@file:JvmName("PlatformVersion")
22+
2123
package com.demonwav.mcdev.creator
2224

23-
import com.demonwav.mcdev.platform.PlatformType
2425
import com.demonwav.mcdev.update.PluginUtil
2526
import com.demonwav.mcdev.util.fromJson
27+
import com.demonwav.mcdev.util.loggerForTopLevel
2628
import com.demonwav.mcdev.util.mapFirstNotNull
2729
import com.demonwav.mcdev.util.withSuppressed
2830
import com.github.kittinunf.fuel.core.FuelManager
2931
import com.github.kittinunf.fuel.core.requests.suspendable
3032
import com.github.kittinunf.fuel.coroutines.awaitString
3133
import com.google.gson.Gson
3234
import com.intellij.openapi.diagnostic.Attachment
33-
import com.intellij.openapi.diagnostic.logger
3435
import com.intellij.util.net.JdkProxyProvider
3536
import java.io.IOException
3637
import java.net.Proxy
@@ -52,12 +53,7 @@ private const val OVH_BASE_URL = "https://versions.denwav.com/versions/"
5253

5354
private val URLS = listOf(CLOUDFLARE_BASE_URL, GITHUB_BASE_URL, OVH_BASE_URL)
5455

55-
val PLATFORM_VERSION_LOGGER = logger<PlatformVersion>()
56-
57-
suspend fun getVersionSelector(type: PlatformType): PlatformVersion {
58-
val versionJson = type.versionJson ?: throw UnsupportedOperationException("Incorrect platform type: $type")
59-
return getVersionJson(versionJson)
60-
}
56+
val PLATFORM_VERSION_LOGGER = loggerForTopLevel()
6157

6258
suspend inline fun <reified T : Any> getVersionJson(path: String): T {
6359
return getVersionJson(path, T::class)
@@ -112,5 +108,3 @@ fun selectProxy(urlText: String): Proxy? {
112108
}
113109
return null
114110
}
115-
116-
data class PlatformVersion(var versions: List<String>, var selectedIndex: Int)

0 commit comments

Comments
 (0)