⁠
kyle wood: Use Modrinth API for Architectury creator
This also improves handling of coroutines in some places, and it also
fixes weird Minecraft version strings being URL encoded from
DataProvider for Fabric, which is what fixes #1847 .
I wanted to use a coroutine-compatible HTTP library, so I pulled in fuel
and it seems to work fine. I kept support for configured proxies as
well, but I don't really have a way of testing that.
Fixes #1892
Fixes #1847
This also improves handling of coroutines in some places, and it also
fixes weird Minecraft version strings being URL encoded from
DataProvider for Fabric, which is what fixes #1847 .
I wanted to use a coroutine-compatible HTTP library, so I pulled in fuel
and it seems to work fine. I kept support for configured proxies as
well, but I don't really have a way of testing that.
Fixes #1892
Fixes #1847
- /*
- * Minecraft Dev for IntelliJ
- *
- * https://minecraftdev.org
- *
- * Copyright (c) 2022 minecraft-dev
- *
- * MIT License
- */
- package com.demonwav.mcdev.update
- import com.intellij.ide.plugins.IdeaPluginDescriptor
- import com.intellij.ide.plugins.PluginManagerCore
- import com.intellij.openapi.extensions.PluginId
- object PluginUtil {
- val PLUGIN_ID = PluginId.getId("com.demonwav.minecraft-dev")
- val plugin: IdeaPluginDescriptor
- get() {
- return PluginManagerCore.getPlugin(PLUGIN_ID)
- ?: error("Minecraft Development plugin not found: " + PluginManagerCore.getPlugins().contentToString())
- }
- val pluginVersion: String
- get() = plugin.version
- }
- /*
- * Minecraft Dev for IntelliJ
- *
- * https://minecraftdev.org
- *
- * Copyright (c) 2022 minecraft-dev
- *
- * MIT License
- */
- package com.demonwav.mcdev.update
- import com.intellij.ide.plugins.IdeaPluginDescriptor
- import com.intellij.ide.plugins.PluginManagerCore
- import com.intellij.openapi.extensions.PluginId
- object PluginUtil {
- val PLUGIN_ID = PluginId.getId("com.demonwav.minecraft-dev")
- val plugin: IdeaPluginDescriptor
- get() {
- return PluginManagerCore.getPlugin(PLUGIN_ID)
- ?: error("Minecraft Development plugin not found: " + PluginManagerCore.getPlugins().contentToString())
- }
- val pluginVersion: String
- get() = plugin.version
- val useragent: String
- get() = "github_org/minecraft-dev/$pluginVersion"
- }