7be3f0b096
다중 기기 페어링 작업과 짝 — known 기기로 빠른 스위치 시 완전 해제(Delete Pairing) 말고 소프트 끊기(Disconnect) 옵션 필요. demo-final 에는 통합 설정 탭이 없으므로 기존 overlay 의 Delete Pairing 위에 Disconnect 버튼을 같이 배치. - Disconnect (회색): bond 유지, 다음 측정 빠른 재연결 - Delete Pairing (빨강): 기존 확인 다이얼로그 그대로 버전: 1.1.0-design (vc25) → 1.1.1-design (vc27) vc26은 master 의 v1.2.0 이라 충돌 피해 27 로 jump.
99 lines
3.7 KiB
Kotlin
99 lines
3.7 KiB
Kotlin
plugins {
|
|
alias(libs.plugins.android.application)
|
|
alias(libs.plugins.kotlin.android)
|
|
alias(libs.plugins.kotlin.compose)
|
|
}
|
|
|
|
android {
|
|
namespace = "com.example.medilightv2android"
|
|
compileSdk {
|
|
version = release(36)
|
|
}
|
|
|
|
defaultConfig {
|
|
applicationId = "com.example.medilightv2android"
|
|
minSdk = 24
|
|
targetSdk = 36
|
|
versionCode = 27
|
|
versionName = "1.1.1-design"
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
|
|
// Product flavors — demo(동결 안정판) / dev(개발 진행).
|
|
// 자세한 운영 정책은 docs/FLAVOR_DEMO_STABLE.md 참고.
|
|
flavorDimensions += "channel"
|
|
productFlavors {
|
|
create("demo") {
|
|
dimension = "channel"
|
|
applicationIdSuffix = ".demo"
|
|
versionNameSuffix = "-demo"
|
|
buildConfigField("Boolean", "IS_DEMO", "true")
|
|
buildConfigField("String", "FLAVOR_LABEL", "\"demo\"")
|
|
// 시연/안정 검증용 — 방광 모형 테스트가 100% 통과하는 시점을 git tag로 동결.
|
|
// src/demo/* 하위에 동결 시점의 알고리즘/파라미터를 격리해 두면 main 변경에 영향받지 않음.
|
|
}
|
|
create("dev") {
|
|
dimension = "channel"
|
|
buildConfigField("Boolean", "IS_DEMO", "false")
|
|
buildConfigField("String", "FLAVOR_LABEL", "\"dev\"")
|
|
// 개발 진행 — 모든 신규 기능/실험/리팩토링은 dev에서만.
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = "11"
|
|
}
|
|
buildFeatures {
|
|
compose = true
|
|
buildConfig = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.androidx.core.ktx)
|
|
implementation(libs.androidx.lifecycle.runtime.ktx)
|
|
implementation(libs.androidx.lifecycle.viewmodel.compose)
|
|
implementation(libs.androidx.activity.compose)
|
|
implementation(platform(libs.androidx.compose.bom))
|
|
implementation(libs.androidx.compose.ui)
|
|
implementation(libs.androidx.compose.ui.graphics)
|
|
implementation(libs.androidx.compose.ui.tooling.preview)
|
|
implementation(libs.androidx.compose.material3)
|
|
implementation(libs.androidx.compose.material.icons)
|
|
implementation(libs.androidx.compose.foundation)
|
|
implementation(libs.gson)
|
|
implementation(libs.androidx.security.crypto)
|
|
implementation(libs.rive.android)
|
|
implementation(libs.androidx.startup.runtime)
|
|
|
|
// 소변컵 측정 모듈
|
|
implementation("com.microsoft.onnxruntime:onnxruntime-android:1.17.0") // YOLO
|
|
implementation("com.google.mlkit:text-recognition:16.0.1") // OCR
|
|
implementation("androidx.camera:camera-core:1.3.4") // CameraX
|
|
implementation("androidx.camera:camera-camera2:1.3.4")
|
|
implementation("androidx.camera:camera-lifecycle:1.3.4")
|
|
implementation("androidx.camera:camera-view:1.3.4")
|
|
implementation("com.squareup.okhttp3:okhttp:4.12.0") // HF API
|
|
|
|
testImplementation(libs.junit)
|
|
androidTestImplementation(libs.androidx.junit)
|
|
androidTestImplementation(libs.androidx.espresso.core)
|
|
androidTestImplementation(platform(libs.androidx.compose.bom))
|
|
androidTestImplementation(libs.androidx.compose.ui.test.junit4)
|
|
debugImplementation(libs.androidx.compose.ui.tooling)
|
|
debugImplementation(libs.androidx.compose.ui.test.manifest)
|
|
} |