-
Notifications
You must be signed in to change notification settings - Fork 47
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
[둘리] 3, 4단계 쇼핑 장바구니 제출합니다. #33
Merged
Merged
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
6f04e7e
refactor: 함수 간소화
hyemdooly e7af72c
refactor: supportActionBar Label 설정 삭제, manifest 이용
hyemdooly 6977e5f
refactor: test 코드 수정
hyemdooly 8c85cf2
feat: ProductList 상품 장바구니 추가 뷰 수정
hyemdooly 723c091
docs: 3단계 요구사항 정리
hyemdooly b528d57
feat: 장바구니 버튼 생성
hyemdooly fd660c5
feat: ProductDetail 수량 선택 Dialog 구현
hyemdooly e9a1b6c
feat: CartActivity 하단 뷰 구현
hyemdooly 7181e9b
feat: CartActivity Item layout 변경사항 수정
hyemdooly 27b2a1b
feat: cart badge 생성
hyemdooly dd70d3b
feat: ProductListActivity List Count 구현
hyemdooly e230169
feat: ProductListActivity AppBar Cart Badge 구현
hyemdooly 15dc571
feat: ProductDetailActivity 마지막으로 본 상품 startActivity
hyemdooly 588a1ee
feat: ProductDetailActivity 다른 액티비티 실행 시 Stack 조절
hyemdooly dc79515
feat: Cart 아이콘 장바구니 비었으면 Gone으로 수정
hyemdooly 7d0a2e3
feat: Cart 아이콘 장바구니 비었으면 Gone으로 수정
hyemdooly 8f145f4
Merge remote-tracking branch 'origin/step4' into step4
hyemdooly 9370658
feat: ProductListPresenter에서 삭제했던 최근 본 상품 복구
hyemdooly 0337194
refactor: domain 코드 이동, ktlintformat
hyemdooly 3e7fc30
feat: CartActivity 상품 개수 업데이트 구현
hyemdooly 1c419ad
feat: CartActivity, CartSystem 선택 구현 (리팩토링 필수)
hyemdooly 49e6293
feat: ProductListActivity <-> CartActivity 데이터 동일하게 연동
hyemdooly 3200e3a
refactor: CartActivity LiveData 활용 리팩터링
hyemdooly cbcd2f4
refactor: DataBinding format 수정
hyemdooly 01b5db9
fix: CartActivity 버그 수정
hyemdooly 57a2b4d
refactor: ProductListActivity Presenter 리팩터링
hyemdooly f6d3645
fix: ProductListActivity Presenter 리팩터링 및 버그 수정
hyemdooly b5e1269
refactor: CartPresenterTest 코드 수정에 맞게 리팩터링 및 수정
hyemdooly dc3106f
refactor: ProductDetailPresenterTest 리팩터링 및 수정
hyemdooly 47cb4a5
refactor: ProductListPresenterTest 수정, CartPresenterTest 테스트 통과 안되는 …
hyemdooly e23cdba
refactor: formatting
hyemdooly 65cade1
feat: 4단계 MockServer 구현 및 적용
hyemdooly b3e732f
refactor: 강제종료 버그 수정, 패키지 정리
hyemdooly 6869b1f
fix: 최근 본 상품 반대로 나오는 버그 수정, ProductDetialActivity 다이얼로그 dismiss 추가
hyemdooly ebdc9bd
docs: README 업데이트
hyemdooly ba1d77f
fix: 갯수 제한 걸리는 버그 수정
hyemdooly 2797d74
Merge remote-tracking branch 'origin/step4' into step4
hyemdooly 5cf4f06
refactor: CartProductModel의 isChecked, count variable -> valuable로 변경
hyemdooly c291ea5
refactor: ProductModel variable -> valuable로 수정
hyemdooly 508e204
refactor: backing property 변수 위치 수정
hyemdooly b04a4af
refactor: lateinit var -> by lazy로 최대한 수정
hyemdooly 8d09837
refactor: presenter에서 데이터를 내려주도록 수정
hyemdooly a9268da
refactor: AppCompatButton -> Button으로 수정
hyemdooly 9bac38d
refactor: 요구사항에 없는 내용 삭제
hyemdooly 261e924
refactor: 테스트코드 로직 최대한 삭제
hyemdooly 9ec4930
refactor: ProductViewHolder 생성자에서 onClick 등록
hyemdooly 1227d57
refactor: plus, minus 한계치 수정
hyemdooly File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: CartActivity 버그 수정
- Loading branch information
commit 01b5db96cd32ce597d7fa1b2282843041f411690
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
3 changes: 2 additions & 1 deletion
3
app/src/main/java/woowacourse/shopping/view/productdetail/ProductDetailContract.kt
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
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.
count를 LiveData 타입으로 정의하셨네요. 👍
count를 Presenter 인터페이스에 꼭 정의할 필요가 있을까요?
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.
액티비티에서는 추상화된 presenter를 타입으로 받고 있는데 인터페이스에 정의하지 않더라도 count를 사용할 수 있나요?
xml에 LiveData type의 count variable을 선언해주고 프레젠터에서 LiveData타입의 count를 넘기도록 한 후, TextView에서 쓰도록 수정했는데,
error: cannot find symbol
에러가 나왔습니다.ㅠㅠ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.
지금 구조에서는 Presenter에서 LiveData를 쓰다보니 인터페이스에 꼭 정의를 해야겠군요. 😅
Presenter에서의 LiveData는 익숙지 않네요.
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.
MVVM 구조를 배운다면 이런 경우가 발생하지 않을까요?
LiveData를 사용하면서 어쩔 수 없이 구조가 이렇게 되는데, 이 구조는 MVP가 아닌 것 같다는 생각이 들면서도 방법이 영 떠오르지 않았습니다...
아키텍처란 어렵네요🥲
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.
MVVM 구조에서는 Contract를 사용하지 않습니다. 😄