[#467] Persistence 레이어에서 Domain 레이어 의존성을 제거한다#472
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
이번 PR은 위젯 기능에서 DevLogDomain 의존성을 제거하기 위해 WidgetTodoSnapshot DTO를 도입하고, 기존 Todo 도메인 모델을 사용하던 위젯 관련 인터페이스와 구현을 해당 DTO로 교체했습니다. 리뷰에서는 DTO 생성 시 Swift 관용구에 따라 init 형태의 이니셜라이저를 사용할 것과, 동기화 작업 중 날짜 경계에서 발생할 수 있는 데이터 불일치를 방지하기 위해 now 시점을 한 번만 캡처하여 사용할 것을 권장했습니다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 연관된 이슈
🎯 의도
Persistence 레이어가 Domain 엔티티와 프레임워크를 직접 참조하던 구조를 제거하고, 외부 레이어인 Persistence가 Data/Core 계약만 바라보도록 의존 방향 정리
📝 작업 내용
📌 요약
ActivityKind를 Domain에서 Core로 이동Todo에서WidgetTodoSnapshotDTO로 분리DevLogDomain의존 제거DevLogDomain.framework참조 제거🔍 상세
WidgetTodoSnapshot을TodoDTO.swift에 추가하고,Todo -> WidgetTodoSnapshot변환은TodoMapping.swift로 분리WidgetSnapshotUpdater와 Persistence 구현체가 DomainTodo대신WidgetTodoSnapshot을 사용하도록 수정ActivityKind사용 지점을 Core import 기준으로 정리DevLogPersistence.xcodeproj의DevLogDomain.framework링크 및 orphan product reference 제거DevLogInfra.xcodeproj에 복구되어 있던DevLogDomain.framework링크 제거📸 영상 / 이미지 (Optional)