Skip to content
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

Feature/refactoring #119

Merged
merged 7 commits into from
Aug 17, 2022
Merged

Feature/refactoring #119

merged 7 commits into from
Aug 17, 2022

Conversation

mjkim1019
Copy link
Collaborator

Refactor : ui folder 기능별로 organize & data와 관련된 folder 정리

  • ui 폴더 제가 생각하는 기능별로 분류했습니다! 다른 의견도 언제나 환영입니다!
  • 기존 MainActivity 이름에 혼잡성이 있다고 판단하여 HouseKeeperActivity로 이름 변경하였습니다.
  • network -> data로 변경하였고 이 안에서 local/remote/repository로 나누었습니다.
  • PrefsManager는 util 폴더로 이동하였습니다. (보통 local에서는 local database인 room을 사용하는 것 같아서요)
  • 추후에 repository는 나눠서 관리해도 좋을 것 같습니다.

… 이동 & PrefsManager.kt util 폴더 내로 이동

MainFragment.kt와 연결된 MainViewModel과 MainActivity.kt와 연결된 MainViewModel이 존재하여 중복된 이름 피하고자 이름 변경
…taSourceImpl와 RemoteRepository 생성

app architecture guide(https://developer.android.com/topic/architecture/data-layer#in-memory-cache)에 따라 변경
- repository는 데이터 영역의 진입점 (ui와 왔다 갔다 하는 클래스)
- dataSource는 Room이나 API 받아 오는 곳
- todo 및 구현은 Hilt 사용하면서 진행할 예정
- ui 폴더 제가 생각하는 기능별로 분류했습니다! 의견은 언제나 환영입니다!
- 기존 MainActivity 이름에 혼잡성이 있다고 판단하여 HouseKeeperActivity로 이름 변경하였습니다.
- network -> data로 변경하였고 이 안에서 local/remote/repository로 나누었습니다.
- PrefsManager는 util 폴더로 이동하였습니다. (보통 local에서는 local database인 room을 사용하는 것 같아서요!)
@mjkim1019 mjkim1019 requested review from wjdwns and sujin-kk and removed request for wjdwns August 17, 2022 10:40
@mjkim1019 mjkim1019 added the feature develop view or function label Aug 17, 2022
@mjkim1019 mjkim1019 requested review from wjdwns and removed request for sujin-kk August 17, 2022 10:54
@wjdwns
Copy link
Collaborator

wjdwns commented Aug 17, 2022

수고하셨습니다!! 근데 첫 커밋에 파일을 빠뜨린게 뭐에요??

Copy link
Collaborator

@wjdwns wjdwns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다!!

@mjkim1019
Copy link
Collaborator Author

수고하셨습니다!! 근데 첫 커밋에 파일을 빠뜨린게 뭐에요??

MainActivity를 HouseActivity로 바꾼거를 commit 안했었어요

Copy link
Member

@sujin-kk sujin-kk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다!!
다음에 RemoteDatasourceImpl 하고 RemoteReposity 역할에 대해 질문 드리겠습니다,, ㅠㅠ 저도 요즘 클린아키텍처 공부하는데 어렵네용,,, 고생하셨어요😀

@mjkim1019 mjkim1019 merged commit af205e0 into develop Aug 17, 2022
@mjkim1019 mjkim1019 deleted the feature/refactoring branch August 17, 2022 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature develop view or function
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants