Conversation
- 기존에 Service를 이용하던 곳은 UseCase를 이용하도록 수정 - UseCase를 이용하면서 필요한 의존성 주입 진행 - UseCase는 Repository를 이용하도록 수정 - AppleLogin 객체를 재생성하는 부분을 제거 - Data에 KakaoSDK 추가 및 Presentation에서 KakaoSDK 제거
- 로그인에 필요한 KakaoSDKUser가 빠져서 생긴 문제
- AppleLogin 재시도 시 발생하는 에러로 인해 Service를 재할당 해주던 로직 - 제거 후 별다른 이상이 없어 관련 Flow 제거
dongglehada
approved these changes
Apr 27, 2025
Member
dongglehada
left a comment
There was a problem hiding this comment.
수고 많으셨습니다 !! 기존 코드에서 레이어 이사 및 프로토콜이 모두 분리가 되었군요..! 다른 플랫폼의 확장될 경우 불리할 것 같은데 따로 생각해보신 부분이 있는지 궁금합니다!!
Member
Author
@dongglehada 말씀주신 부분 제가 놓친 부분인것 같아요!! 그래서 고민을 해봤었는데 LoginService를 레포지토리에서 AuthServiceable로 생성자에서 받도록 한 뒤 주입해주는 방식이 가능할것 같긴 합니다. 문제는 현재의 DI에서 하나의 인터페이스로 여러개의 구현체를 특정하는 방식이 별도로 정의되어 있지 않아서 지금과 같이 UseCase, Repository를 각 서비스마다 두는 방식으로 진행하는것이 현재로서는 맞는것 같다 생각합니다. 추후 하나의 인터페이스에 다중 구현체가 맞물리는 경우에 DI에서 이를 컨트롤할 수 있는 방법을 디벨롭한뒤 LoginService도 상황에따라 주입받도록 해서 처리가 가능할것 같습니다 👍🏻 |
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.
📌 이슈
✅ 작업 사항
🚀 테스트 방식
Apple Login Service
Kakao Login Service