feat(init): 初始化健康专家客户端 Android 项目
- 搭建项目基础架构,包含 Activity/Fragment/ViewModel 层 - 添加登录、主页、AI聊天、工作台、消息、知识库等核心模块 - 配置 Gradle 构建脚本及依赖管理 - 添加基础 UI 组件:自定义密码输入框、标题栏、Tab 布局等 - 添加图标、主题、drawable 等资源文件
This commit is contained in:
@@ -0,0 +1,104 @@
|
||||
plugins {
|
||||
id 'com.android.application'
|
||||
id 'kotlin-android'
|
||||
id 'kotlin-kapt'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
id 'org.jetbrains.kotlin.plugin.compose'
|
||||
id 'kotlin-parcelize'
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdk rootProject.ext.compileSdkVersion
|
||||
namespace "com.sw.healthexpertclient"
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.sw.healthexpertclient"
|
||||
minSdk rootProject.ext.minSdkVersion
|
||||
targetSdk rootProject.ext.targetSdkVersion
|
||||
versionCode rootProject.ext.versionCode
|
||||
versionName rootProject.ext.versionName
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
ndk {
|
||||
abiFilters 'armeabi-v7a', 'arm64-v8a'
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
debug {
|
||||
minifyEnabled false
|
||||
}
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_17
|
||||
targetCompatibility JavaVersion.VERSION_17
|
||||
}
|
||||
|
||||
kotlinOptions {
|
||||
jvmTarget = '17'
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
resources {
|
||||
excludes += ['META-INF/gradle/incremental.annotation.processors', 'DebugProbesKt.bin']
|
||||
}
|
||||
}
|
||||
|
||||
testOptions {
|
||||
unitTests.returnDefaultValues = true
|
||||
}
|
||||
|
||||
dataBinding {
|
||||
enabled = true
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
buildConfig true
|
||||
compose true
|
||||
}
|
||||
|
||||
kapt {
|
||||
generateStubs = true
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
jniLibs.srcDirs = ['libs']
|
||||
res.srcDirs = ['src/main/res']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
configurations {
|
||||
all*.exclude group: 'org.jetbrains', module: 'annotations-java5'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
implementation project(path: ':core')
|
||||
|
||||
// implementation project(':tuichat')
|
||||
// implementation project(':tuicontact')
|
||||
// implementation project(':tuiconversation')
|
||||
// implementation project(':tuigroup')
|
||||
// implementation project(':tuicallkit')
|
||||
|
||||
// api project(':fluid-markdown')
|
||||
|
||||
implementation("com.squareup.okhttp3:okhttp-sse:4.12.0")
|
||||
|
||||
/*Compose*/
|
||||
implementation platform(rootProject.ext.composeDeps["compose-bom"])
|
||||
implementation rootProject.ext.composeLibs
|
||||
// Compose 调试工具(仅 debug 包含)
|
||||
debugImplementation rootProject.ext.composeDebugLibs
|
||||
|
||||
// Coil:Compose 网络图片加载
|
||||
implementation "io.coil-kt:coil-compose:2.6.0"
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user