Update dependencies

This commit is contained in:
Him188 2020-08-31 22:30:28 +08:00
parent 0acc99ed42
commit 7b399bf8e9
3 changed files with 4 additions and 3 deletions

View File

@ -66,7 +66,7 @@ dependencies {
implementation(kotlinx("serialization-core", Versions.serialization))
implementation(kotlin("reflect"))
implementation("net.mamoe.yamlkt:yamlkt:0.5.0")
implementation("net.mamoe.yamlkt:yamlkt:${Versions.yamlkt}")
implementation("org.jetbrains.kotlinx:atomicfu:${Versions.atomicFU}")
api("org.jetbrains:annotations:19.0.0")
api(kotlinx("coroutines-jdk8", Versions.coroutines))

View File

@ -93,7 +93,7 @@ internal abstract class PluginDataImpl {
// val vSerializer = dataUpdaterSerializerTypeArguments[1] as KSerializer<Any?>
valueNodes.forEach { (valueName, _, valueSerializer) ->
encodeSerializableElement(descriptor, index++, String.serializer(), valueName)
encodeStringElement(descriptor, index++, valueName)
encodeSerializableElement(descriptor, index++, valueSerializer, Unit)
}
endStructure(descriptor)

View File

@ -36,5 +36,6 @@ object Versions {
const val bintray = "1.8.5"
const val blockingBridge = "1.0.3"
const val blockingBridge = "1.0.5"
const val yamlkt = "0.5.1"
}