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.
71 lines
1.6 KiB
71 lines
1.6 KiB
group = "com.yunqiinnovation.open_ai"
|
|
version = "1.0"
|
|
|
|
buildscript {
|
|
val kotlinVersion by extra("1.8.0")
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
classpath("com.android.tools.build:gradle:7.3.0")
|
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id("com.android.library")
|
|
id("kotlin-android")
|
|
}
|
|
|
|
android {
|
|
compileSdk = 33
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
|
|
defaultConfig {
|
|
minSdk = 21
|
|
}
|
|
|
|
namespace = "com.yunqiinnovation.open_ai"
|
|
}
|
|
|
|
dependencies {
|
|
val kotlinVersion: String by project
|
|
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion")
|
|
implementation("androidx.annotation:annotation:1.6.0")
|
|
implementation("androidx.appcompat:appcompat:1.6.1")
|
|
|
|
// Kotlin协程
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1")
|
|
|
|
// OkHttp 依赖项
|
|
implementation("com.squareup.okhttp3:okhttp:4.11.0")
|
|
implementation("com.squareup.okhttp3:okhttp-sse:4.11.0")
|
|
|
|
// Jackson JSON解析器
|
|
implementation("com.fasterxml.jackson.core:jackson-databind:2.14.2")
|
|
|
|
// OpenAI Java库依赖
|
|
implementation("com.aallam.openai:openai-client:3.6.0")
|
|
implementation("io.ktor:ktor-client-okhttp:2.3.3")
|
|
|
|
// MCP官方Kotlin SDK依赖
|
|
implementation("io.modelcontextprotocol:kotlin-sdk:0.5.0")
|
|
}
|