-
Notifications
You must be signed in to change notification settings - Fork 0
feature#52 장바구니 Redirect 구현 #63
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
Merged
The head ref may contain hidden characters: "feature/feature#52_\uC7A5\uBC14\uAD6C\uB2C8_\uC88B\uC544\uC694"
Merged
Changes from 5 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
e7b8949
feat: 공통 유저 세션 관리 UseCase
soochan8 ab6d3d3
feat: 공통 세션 State 추가
soochan8 28a217c
feat: ViewModel 세션 확인 로직 추가
soochan8 2d82c43
feat: Cart 화면 진입 시 세션 확인 로직 추가
soochan8 869c4b4
chore: gradle kapt plugins 수정
soochan8 433dca8
feat: getUserIdUseCase 추가
soochan8 2bfd324
feat: 사용자별 장바구니 DataStore관리 기능 추가
soochan8 f298b8d
refactor: CartDataStore 접근을 User기반으로 개선
soochan8 1a0ab4b
feat: 로그인 성공 시, 장바구니 목록 불러오도록 수정
soochan8 3a0a19e
feat: 로그인 성공 시, 장바구니 목록 불러오도록 수정
soochan8 cc695cf
feat: 로그아웃 시, 사용자 ID도 함께 제거
soochan8 28c9f72
feat: Cart 리다이렉트 시 popUpTo 제거 및 복귀 흐름 개선
soochan8 83bab2d
feat: CartDataStoreManager storeCache를 ConcurrentHashMap으로 변경
soochan8 4243853
feat: 로그아웃 시 CartDataStoreManager clear
soochan8 90a818b
feat: flowUserIdUseCase를 통해 userId 변경 시, DataStore 전환되도록 수정
soochan8 a9f6f29
feat: dataStoreScope Module 설정
soochan8 95c9189
feat: cartDataStoreManager 내부에서 외부 코루틴 스코프 사용
soochan8 0b1eb90
feat: 로그아웃 시, CartDataStoreManager 리소스 정리
soochan8 a3f0444
feat: 미사용 코루틴 스코프 Module 제거
soochan8 056626d
feat: UseCase 미사용 context제거
soochan8 bfcc7ab
change: 경로 변경, 기존 cart -> core:database
soochan8 7468c77
change: 경로 변경 , core:auth
soochan8 3677e47
chore: build dependency 추가
soochan8 5239f72
feat: 기본 MyPage 구성
soochan8 e0fda36
feat: 로그아웃 시, CartDataStoreManager.clearAll 제거
soochan8 e84062c
feat: 마이페이지 NavGraph 설정
soochan8 39c3010
change: import 경로 수정
soochan8 9280e92
feat: 고유 cartStore 생성
soochan8 613b028
feat: 로그인 NavGraph 수정
soochan8 bf59022
Merge pull request #64 from f-lab-edu/feature/feature#52-cart-handle-…
soochan8 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
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
5 changes: 5 additions & 0 deletions
5
core/android/src/main/java/com/chan/android/state/SessionState.kt
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| package com.chan.android.state | ||
|
|
||
| interface SessionState { | ||
| val isSessionCheckCompleted: Boolean | ||
| } |
12 changes: 12 additions & 0 deletions
12
core/auth/src/main/java/com/chan/auth/domain/CheckSessionUseCase.kt
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| package com.chan.auth.domain | ||
|
|
||
| import kotlinx.coroutines.flow.firstOrNull | ||
| import javax.inject.Inject | ||
|
|
||
| class CheckSessionUseCase @Inject constructor( | ||
| private val authRepository: AuthRepository | ||
| ) { | ||
| suspend operator fun invoke() : Boolean { | ||
| return authRepository.getSessionFlow().firstOrNull() != null | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.