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 #2248
This commit is contained in:
parent
bfbc6bcb02
commit
c804bbda13
mirai-core-api
@ -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`)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user