You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.9 KiB

plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
kotlin("plugin.serialization") version "1.9.24"
}
android {
namespace = "com.yunqiinnovation.chat_api"
compileSdk = 35
defaultConfig {
minSdk = 21
targetSdk = 35
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = "11"
}
packaging {
resources {
excludes.add("META-INF/DEPENDENCIES")
excludes.add("META-INF/LICENSE")
excludes.add("META-INF/LICENSE.txt")
excludes.add("META-INF/license.txt")
excludes.add("META-INF/NOTICE")
excludes.add("META-INF/NOTICE.txt")
excludes.add("META-INF/notice.txt")
excludes.add("META-INF/*.kotlin_module")
}
}
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
// OpenAI Kotlin 4.0.1
implementation("com.aallam.openai:openai-client:4.0.1")
// MCP Kotlin SDK - 0.5.0官方版本,包含所有必要的传输层支持
implementation("io.modelcontextprotocol:kotlin-sdk:0.5.0")
// Ktor HTTP Client with OkHttp engine - 升级到3.1.2版本
implementation("io.ktor:ktor-client-core:3.1.2")
implementation("io.ktor:ktor-client-okhttp:3.1.2")
// OkHttp
implementation("com.squareup.okhttp3:okhttp:4.11.0")
implementation("com.squareup.okhttp3:logging-interceptor:4.11.0")
// JSON处理
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0")
implementation("com.google.code.gson:gson:2.10.1")
add("compileOnly", project(":location_service"))
add("compileOnly", project(":music_service"))
add("compileOnly", project(":qq_music"))
}