fix(logs): §C+E · purge dead code 활성화 + record() 통합 관문 (cloud-mvp d8425d0 이식)
This commit is contained in:
@@ -63,6 +63,18 @@ class MainActivity : ComponentActivity() {
|
||||
com.medithings.vesiscan.telemetry.AlarmAggregator.start()
|
||||
com.medithings.vesiscan.telemetry.NotificationSubscriber.start(this)
|
||||
|
||||
// 2026-08-04: LOG_STORAGE_ANALYSIS §C fix — 앱 시작 시 오래된 로그 자동 정리.
|
||||
// 실패해도 필수기능 영향 없음 (silent · UC-05).
|
||||
try {
|
||||
val app = applicationContext
|
||||
com.medithings.vesiscan.services.MeasurementLogService.getInstance(app)
|
||||
.purgeOldLogs(keepDays = 365)
|
||||
com.medithings.vesiscan.services.BleDebugLogger.getInstance(app)
|
||||
.purgeOldLogs(keepDays = 7)
|
||||
com.medithings.vesiscan.services.AdcCsvLogger.purgeOldSessions(keepDays = 30)
|
||||
com.medithings.vesiscan.services.ClinicalSessionStore.purgeOldSessions(keepDays = 90)
|
||||
} catch (_: Exception) { }
|
||||
|
||||
enableEdgeToEdge()
|
||||
window.addFlags(android.view.WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
|
||||
setContent {
|
||||
|
||||
Reference in New Issue
Block a user