-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT/#62] 스티커 API 연결 및 Entity에 맞게 일부 코드 수정 #65
Conversation
- 테스트 코드 수정 - Mock 객체 수정
- 테스트를 위한 Demo가 Data 의존을 하도록 추가함
Co-Authored-By: seuhong <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
PhotoGether/DataLayer/PhotoGetherData/PhotoGetherData/RemoteShapeDataSourceImpl.swift
Show resolved
Hide resolved
import PhotoGetherDomainInterface | ||
|
||
final public class ShapeRepositoryImpl: ShapeRepository { | ||
// TODO: local 먼저 확인 -> remote 데이터 확인하도록 수정 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이부분 다른 팀원분들 의견도 궁금합니다!
local에는 캐시가 있고 먼저 확인할 예정입니다.
...omainLayer/PhotoGetherDomain/FetchStickerListUseCaseTests/FetchStickerListUseCaseTests.swift
Outdated
Show resolved
Hide resolved
PhotoGether/DomainLayer/PhotoGetherDomain/PhotoGetherDomainInterface/Model/StickerEntity.swift
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
스티커 API 적용하시느라 고생하셨습니다!
} | ||
|
||
private func imageData(named: String) -> Data? { | ||
private func imageData(named: String) -> String { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Data 리턴에서 path 리턴으로 바뀌었군요! 그럼 메서드 이름도 imagePath로 바꾸는건 어떨까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
해당 커밋에서 수정하였습니다!
PhotoGether/DataLayer/PhotoGetherData/PhotoGetherData/RemoteShapeDataSourceImpl.swift
Show resolved
Hide resolved
- Repository에 LocalVideoView를 생성하면서 연관된 UseCase들을 수정했습니다. Co-Authored-By: Youngkyu Song <[email protected]>
- 딥링크를 통해 들어온 유저가 방 번호와 호스트 유저 아이디를 파싱할 수 있도록 구현 Co-Authored-By: Youngkyu Song <[email protected]>
🤔 배경
📃 작업 내역
✅ 리뷰 노트
3-layer-architechture에 기반하여 동작할 수 있도록 fetchSticker를 설계했습니다.
이 부분에서 조금 러닝 커브가 발생하였어서 후반 커밋은 @hsw1920 님과 같이 설계를 했습니다.
스스로 구현하면서도 부족함이 느껴져서 조금이라도 수정하거나,
좀 더 좋은 스타일이 있는지 봐주시며 피드백 해주시면 감사하겠습니다!
🎨 스크린샷
🚀 테스트 방법
EditPhotoRoomFeatureDemo 앱을 실행한 뒤 스티커 버튼을 누르면 랜덤한 스티커를 가져옵니다.