Skip to content

Commit 6ff3f7f

Browse files
committed
feat: add http engine
1 parent 3a8baf3 commit 6ff3f7f

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

gradle/libs.versions.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ ktor-client-java = { module = "io.ktor:ktor-client-java", version.ref = "ktor" }
4242
ktor-client-winhttp = { module = "io.ktor:ktor-client-winhttp", version.ref = "ktor" }
4343
ktor-client-darwin = { module = "io.ktor:ktor-client-darwin", version.ref = "ktor" }
4444
ktor-client-curl = { module = "io.ktor:ktor-client-curl", version.ref = "ktor" }
45+
ktor-client-okhttp = { module = "io.ktor:ktor-client-okhttp", version.ref = "ktor" }
4546

4647
ktor-network = { module = "io.ktor:ktor-network", version.ref = "ktor" }
4748

yogurt/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ kotlin {
5656
posixMain.dependencies {
5757
implementation(libs.acidify.codec)
5858
}
59+
androidMain.dependencies {
60+
implementation(libs.ktor.client.okhttp)
61+
}
5962
}
6063

6164
targets.withType<KotlinNativeTarget> {

yogurt/src/commonMain/kotlin/org/ntqqrev/yogurt/Initialization.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ suspend fun Application.initializePC(): Bot = withFs {
4242
"使用 Lagrange Sign API 时,请在配置文件中填写 uin 字段"
4343
}
4444
val launcherSignature = readEnvironmentVariable("APP_LAUNCHER_SIG")
45-
t.println("读取到的launcherSignature: $launcherSignature")
4645
val jwtToken = readEnvironmentVariable("APP_JWT_TOKEN")
4746
appInfo = when (config.protocol.version) {
4847
"fetched" -> throw IllegalStateException("在使用 Lagrange Sign API 时,必须显式指定 AppInfo 版本或自行提供 AppInfo 文件,无法使用 fetched 版本")

0 commit comments

Comments
 (0)