DeveloperAcademy-POSTECH / DeveloperAcademy-POSTECH/2025-C4-M3-XcodeBlue

[MAINTENANCE] LocationManager 리팩토링

Open
#72 0 comments 0 reactions 1 assignee Claimed by @wnsgur4092 View on GitHub
🫧 refactor
Dominant language
Swift
Stars
7
Forks
2
PR merge metrics
No merged PRs in 30d

Description

## #️⃣ 작업 내용

> 수행해야 할 작업 내용을 간략하게 설명해주세요.
현재 3개의 LocationManager(LocationManager, LocationAuthorizationManager, LocationUpdateManager)가 각각 CLLocationManager를 생성하여 충돌 발생.
통합된 싱글톤 LocationManager로 리팩토링하여 권한 관리와 위치 업데이트를 하나의 클래스에서 처리.

## #️⃣ 작업이 필요한 이유

> 왜 이 작업이 필요한지 설명해주세요. 유지 보수 작업의 목적과 기대 효과를 기술해주세요.
- 3개의 CLLocationManager 인스턴스가 동시에 실행되어 리소스 낭비 및 충돌 발생
- 권한 상태와 위치 업데이트 로직이 분산되어 있어 상태 동기화 어려움
- LocationManager.swift는 비즈니스 로직(Published 프로퍼티)을 포함하고 있음

## #️⃣ 작업 상세 내용

- [ ] 통합 LocationManager 클래스 설계 (권한 + 위치 업데이트)
- [ ] 비즈니스 로직 제거
- [ ] async/await 패턴으로 현재 위치 조회 메서드 구현
- [ ] WeatherManagerError와 연동되는 에러 처리 구현
- [ ] 기존 3개 파일을 하나의 통합 파일로 대체

## 📎 참고 자료 (선택)

> 관련 문서, 스크린샷, 또는 예시 등이 있다면 여기에 첨부해주세요

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.