6 Commits
3 changed files with 14 additions and 7 deletions

No files matched your search

+2 -2
View File
@@ -24,8 +24,8 @@ android {
applicationId = "com.hotdeal.alarm"
minSdk = 31
targetSdk = 35
versionCode = 32
versionName = "0.3.2"
versionCode = 33
versionName = "0.3.3"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
@@ -44,11 +44,18 @@ class MainViewModel @Inject constructor(
}
private fun initializeApp() {
// 1. 사이트 설정 초기화 후 DB Flow 구독 (별도 코루틴 — collect는 영원히 suspend)
viewModelScope.launch {
initializeDefaultSiteConfigs()
loadState()
loadState() // combine().collect — 이 코루틴은 영원히 살아있음
}
// 2. 백그라운드 폴링 등록 + 즉시 1회 스크래핑 (별도 코루틴)
viewModelScope.launch {
val savedInterval = appSettings.pollingInterval.first()
startPolling(savedInterval.toLong())
workerScheduler.schedulePeriodicPolling(savedInterval.toLong())
// 앱 시작 시 즉시 1회 실행하여 최신 데이터 갱신
workerScheduler.executeOnce()
}
}
+3 -3
View File
@@ -1,7 +1,7 @@
{
"version": "0.3.2",
"versionCode": 32,
"updateUrl": "https://git.webpluss.net/sanjeok77/hotdeal_alarm/releases/download/v0.3.2/app-release.apk",
"version": "0.3.3",
"versionCode": 33,
"updateUrl": "https://git.webpluss.net/sanjeok77/hotdeal_alarm/releases/download/v0.3.3/app-release.apk",
"changelog": [
"사이트 및 키워드 순서 조절을 터치 드래그 앤 드롭(Drag & Drop) 방식으로 전면 업그레이드",
"앱 내 업데이트 시 다운로드 완료 후 설치 화면으로 안 넘어가는 버그 수정",