- 新增 ApiServiceV2 接口,支持人脸缓存、增量数据、设备配置等接口 - ApiClient 中新增 apiServiceV2 对象,复用 Retrofit 实例,调整超时时间至60秒 - DeviceInitActivity 改用 netViewModelV2 进行人脸缓存全量拉取及设备配置读取 - BaseActivity 新增对人脸增量同步接口调用,调用成功后刷新本地识别缓存 - BaseActivity 新增清空本地人脸库功能,异步清理数据库并刷新识别缓存 - FaceApi 增加清空本地人脸库接口,重写数据库操作逻辑 - 升级 lib_face 模块 Room 数据库版本,新增字段以支持多标识人脸实体扩展 - FaceEntity 实体扩展会员编号、用户ID、人脸ID、会员标识、更新时间等字段 - FaceDao 新增按人脸ID查询和删除接口,支持多重人脸数据操作 - 优化网络层 OkHttpClient 配置,简化拦截器写法及日志级别判断 - 升级 lib_face 模块支持 arm64-v8a 架构,增强兼容性 - 规范模块间依赖关系,统一版本管理及包路径声明 - 完善 CLAUDE.md 文档,补充项目架构、模块划分与开发流程说明
67 lines
1.7 KiB
Kotlin
67 lines
1.7 KiB
Kotlin
plugins {
|
|
alias(libs.plugins.android.library)
|
|
}
|
|
|
|
android {
|
|
namespace = "com.sw.plate"
|
|
compileSdk = 35
|
|
|
|
defaultConfig {
|
|
minSdk = 24
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles("consumer-rules.pro")
|
|
|
|
ndk {
|
|
abiFilters.addAll(listOf("armeabi-v7a", "arm64-v8a"))
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
sourceSets {
|
|
named("main") {
|
|
jniLibs.srcDirs("libs")
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api(
|
|
fileTree(
|
|
mapOf(
|
|
"dir" to "libs",
|
|
"include" to listOf("*.aar", "*.jar")
|
|
)
|
|
)
|
|
)
|
|
implementation(libs.androidx.appcompat)
|
|
implementation(libs.material)
|
|
testImplementation(libs.junit)
|
|
androidTestImplementation(libs.androidx.junit)
|
|
androidTestImplementation(libs.androidx.espresso.core)
|
|
|
|
implementation("com.licheedev:android-serialport:2.1.5")
|
|
|
|
val roomVersion = "2.2.5"
|
|
api("androidx.room:room-runtime:$roomVersion")
|
|
annotationProcessor("androidx.room:room-compiler:$roomVersion")
|
|
|
|
implementation("io.reactivex.rxjava2:rxandroid:2.0.1")
|
|
implementation("com.google.code.gson:gson:2.8.6")
|
|
|
|
val glideVersion = "4.12.0"
|
|
api("com.github.bumptech.glide:glide:$glideVersion")
|
|
annotationProcessor("com.github.bumptech.glide:compiler:$glideVersion")
|
|
} |