kchat/app/build.gradle.kts
kaixed d33e6b60c6 refactor: 重构WebsocketService
- 引入ConversationManager类进行管理主页消息列表,以解耦service
- 修复对方发送的同一条消息会出现在聊天界面两次问题
2024-12-13 12:30:29 +08:00

103 lines
2.6 KiB
Plaintext

plugins {
alias(libs.plugins.androidApplication)
alias(libs.plugins.jetbrainsKotlinAndroid)
id("com.google.devtools.ksp")
// id("therouter")
id("org.jetbrains.kotlin.plugin.serialization")
id("kotlin-kapt")
}
android {
namespace = "com.kaixed.kchat"
compileSdk = 34
viewBinding {
enable = true
}
defaultConfig {
applicationId = "com.kaixed.kchat"
minSdk = 28
targetSdk = 34
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
}
dependencies {
implementation(libs.androidx.core.ktx)
implementation(libs.appcompat)
implementation(libs.material)
implementation(libs.activity)
implementation(libs.constraintlayout)
testImplementation(libs.junit)
androidTestImplementation(libs.ext.junit)
androidTestImplementation(libs.espresso.core)
implementation(libs.window)
implementation(libs.emoji2)
implementation(libs.preference)
implementation(libs.okhttp)
implementation(libs.mmkv)
implementation(libs.gson)
implementation(libs.objectbox.kotlin)
debugImplementation(libs.objectbox.android.objectbrowser)
releaseImplementation(libs.objectbox.android)
implementation(libs.glide)
implementation(libs.lottie)
implementation(libs.kotlinx.serialization.json)
implementation(libs.kotlinx.coroutines.core)
implementation(libs.kotlinx.coroutines.android)
implementation(libs.pinyin4j)
implementation(libs.retrofit)
implementation(libs.retrofit2.converter.gson)
implementation(libs.okhttp3.logging.interceptor)
// 图片选择器
implementation(libs.pictureselector)
// 图片压缩
implementation(libs.compress)
// 图片裁剪
implementation(libs.ucrop)
implementation(libs.eventbus)
// 自定义spannable
implementation(libs.spannable)
// Navigation Component 依赖
implementation("androidx.navigation:navigation-fragment-ktx:2.8.4")
implementation("androidx.navigation:navigation-ui-ktx:2.8.4")
// implementation(libs.therouter)
// ksp(libs.therouter.ksp)
}
apply(plugin = "io.objectbox")