1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-04-24 20:43:33 +08:00

[core] Remove dependency on ktor-client for mirai-core-api. Fix duplicated class errors on Android, close

This commit is contained in:
Him188 2022-09-11 19:47:44 +08:00
parent bfbc6bcb02
commit c804bbda13
No known key found for this signature in database
GPG Key ID: BA439CDDCF652375
2 changed files with 0 additions and 4 deletions
mirai-core-api
build.gradle.kts
src/commonMain/kotlin

View File

@ -39,7 +39,6 @@ kotlin {
api(`kotlinx-serialization-core`)
api(`kotlinx-serialization-json`)
api(`kotlinx-coroutines-core`) // don't remove it, otherwise IDE will complain
implementation(`ktor-client-core`)
implementation(project(":mirai-core-utils"))
implementation(project(":mirai-console-compiler-annotations"))
@ -69,7 +68,6 @@ kotlin {
dependsOn(commonMain)
dependencies {
compileOnly(`android-runtime`)
// api(`ktor-client-android`)
}
}

View File

@ -9,12 +9,10 @@
@file:Suppress("INTERFACE_NOT_SUPPORTED", "PropertyName")
@file:JvmName("Mirai")
@file:OptIn(LowLevelApi::class, MiraiExperimentalApi::class, MiraiInternalApi::class)
@file:JvmBlockingBridge
package net.mamoe.mirai
import io.ktor.client.*
import me.him188.kotlin.jvm.blocking.bridge.JvmBlockingBridge
import net.mamoe.mirai.contact.*
import net.mamoe.mirai.data.UserProfile