mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-01 09:06:05 +08:00
Fix dependency
This commit is contained in:
parent
8cefb73033
commit
b62151ea6e
@ -106,6 +106,7 @@ kotlin {
|
||||
dependencies {
|
||||
runtimeOnly(files("build/classes/kotlin/jvm/main")) // classpath is not properly set by IDE
|
||||
api(kotlinx("serialization-runtime", serializationVersion))
|
||||
api(kotlinx("serialization-protobuf", serializationVersion))
|
||||
}
|
||||
}
|
||||
|
||||
@ -114,7 +115,6 @@ kotlin {
|
||||
api(kotlin("test", kotlinVersion))
|
||||
api(kotlin("test-junit", kotlinVersion))
|
||||
implementation("org.pcap4j:pcap4j-distribution:1.8.2")
|
||||
api(kotlinx("serialization-protobuf", serializationVersion))
|
||||
|
||||
runtimeOnly(files("build/classes/kotlin/jvm/main")) // classpath is not properly set by IDE
|
||||
runtimeOnly(files("build/classes/kotlin/jvm/test")) // classpath is not properly set by IDE
|
||||
|
@ -139,7 +139,9 @@ class Jce private constructor(private val charset: JceCharset, override val cont
|
||||
}
|
||||
serializer.descriptor == ByteArraySerializer() -> encodeTaggedByteArray(popTag(), value as ByteArray)
|
||||
serializer.descriptor.kind == StructureKind.LIST
|
||||
&& serializer.descriptor.elementDescriptors()[0].kind is PrimitiveKind -> {
|
||||
&& serializer.descriptor.elementDescriptors()[0].kind is PrimitiveKind
|
||||
&& value !is ArrayList<*>
|
||||
&& value !is Array<*> -> {
|
||||
serializer.serialize(
|
||||
ListWriter(
|
||||
when (value) {
|
||||
|
Loading…
Reference in New Issue
Block a user