-
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
Feature/refactoring #119
Feature/refactoring #119
Conversation
… 이동 & 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을 사용하는 것 같아서요!)
수고하셨습니다!! 근데 첫 커밋에 파일을 빠뜨린게 뭐에요?? |
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.
수고하셨습니다!!
MainActivity를 HouseActivity로 바꾼거를 commit 안했었어요 |
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.
수고하셨습니다!!
다음에 RemoteDatasourceImpl 하고 RemoteReposity 역할에 대해 질문 드리겠습니다,, ㅠㅠ 저도 요즘 클린아키텍처 공부하는데 어렵네용,,, 고생하셨어요😀
Refactor : ui folder 기능별로 organize & data와 관련된 folder 정리