2dacf5fcd8d78379b88c77ee66a4c10834ec1e8f
- LocationUpdateService.kt pushLocation():
* 매 호출마다 생성되던 Executors.newSingleThreadScheduledExecutor() 제거 -> 공유 locationScope(Dispatchers.IO + SupervisorJob) + delay(5000L) 전환
* addresses.first() -> addresses.firstOrNull() ?: return@getFromLocation 으로 빈 목록 예외 방어
* Realm writeBlocking 호출부 try-catch 추가
* 공용 NetworkClient.client 및 Response.use {} 적용으로 OkHttp 커넥션 누수 제거
* lastWeather 갱신 시 synchronized(lastWeather) 적용
- TODO.md: 2-2, 3-1, 3-2, 4-2 항목 완료 처리
- 검증: ./gradlew :app:compileDebugKotlin 빌드 성공 확인 (1s)
Description
No description provided
222 MiB
Languages
HTML
69.3%
C
18.1%
Kotlin
5.7%
Shell
1.7%
Java
1.3%
Other
3.7%