diff --git a/mirai-core-qqandroid/build.gradle.kts b/mirai-core-qqandroid/build.gradle.kts index 3bf29651c..26b263670 100644 --- a/mirai-core-qqandroid/build.gradle.kts +++ b/mirai-core-qqandroid/build.gradle.kts @@ -105,7 +105,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)) + //api(kotlinx("serialization-protobuf", serializationVersion)) } } diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/ExternalImage.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/ExternalImage.kt index b14b5b137..527c76ec5 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/ExternalImage.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/ExternalImage.kt @@ -15,7 +15,6 @@ import io.ktor.utils.io.ByteReadChannel import io.ktor.utils.io.core.ByteReadPacket import io.ktor.utils.io.core.Input import kotlinx.io.InputStream -import kotlinx.serialization.InternalSerializationApi import net.mamoe.mirai.contact.Contact import net.mamoe.mirai.contact.Group import net.mamoe.mirai.contact.QQ @@ -70,7 +69,6 @@ class ExternalImage private constructor( filename: String ) : this(width, height, md5, imageFormat, input as Any, input.remaining, filename) - @OptIn(InternalSerializationApi::class) constructor( width: Int, height: Int,