Skip to content

Commit

Permalink
build: 1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Sep 22, 2022
1 parent 23a5687 commit bbcd4ac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = "xyz.cssxsh.mirai"
version = "1.1.2"
version = "1.1.3"

mavenCentralPublish {
useCentralS01()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ public class MiraiDeviceGenerator {
internal var addr: Map<String, List<String>>

init {
val classLoader = MiraiDeviceGenerator::class.java.classLoader
val clazz = MiraiDeviceGenerator::class.java
models = Json.decodeFromString(
ListSerializer(Model.serializer()),
classLoader.getResource("models.json")!!.readText()
clazz.getResource("models.json")!!.readText()
)
sdks = Json.decodeFromString(
ListSerializer(SdkVersion.serializer()),
classLoader.getResource("sdks.json")!!.readText()
clazz.getResource("sdks.json")!!.readText()
)
addr = Json.decodeFromString(
MapSerializer(String.serializer(), ListSerializer(String.serializer())),
classLoader.getResource("mac.json")!!.readText()
clazz.getResource("mac.json")!!.readText()
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public object MiraiDevicePlugin : KotlinPlugin(
JvmPluginDescription(
id = "xyz.cssxsh.mirai.mirai-device-generator",
name = "mirai-device-generator",
version = "1.1.2",
version = "1.1.3",
) {
author("cssxsh")
}
Expand Down

0 comments on commit bbcd4ac

Please sign in to comment.