[Refactor] NetworkKit 모듈 분리 #62
Merged
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.



#️⃣ 연관된 이슈
📝 작업 내용
Network 관련 로직을 NetworkKit 모듈로 분리하고 추상화하였습니다.
🎨 스크린샷
💬 추가 설명
NetworkKit 모듈에 xcconfig 파일 추가
네트워크 요청을 위한 base url을 시크릿 값으로 관리하기 위해 xcconfig에 정의해두었습니다.
이때, 시크릿 값을 메인 앱 타겟에서 관리할지, NetworkKit 모듈에서 관리할지를 고민했습니다.
메인 앱 타겟이 아닌 모듈 내에서 관리될 경우, 모듈이 다른 프로젝트에서 재사용 될 때 시크릿 값이 해당 프로젝트에서도 시크릿 값에 접근할 수 있다는 문제가 있었습니다.
다만, 현재 구조는 이 프로젝트 내에서만 사용될 모듈이기 때문에 좀 더 쉽게 접근하고 관리하기 위해 해당 모듈 내에 설정 파일을 포함시키는 방향으로 구현하였습니다.