-
Notifications
You must be signed in to change notification settings - Fork 0
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
리워드 홈 배너 및 팝업 기능 추가 #114
리워드 홈 배너 및 팝업 기능 추가 #114
Conversation
nohjunh
commented
Jul 24, 2024
- 홈화면에 카카오 공유하기 버튼 추가 (divider deco 제거)
- 비로그인 상태에서 보이는 리워드 배너 추가
- 로그인 상태에서 보이는 리워드 팝업 추가
- 프리텐다드 negative space로 인한 타이머 좌우 움직임 해결을 위해 타이머 부분에만 프리텐다드 제거
rewardRepository.getHomeRewardBanner() | ||
.shareIn( | ||
scope = viewModelScope, | ||
started = SharingStarted.WhileSubscribed(1000L), |
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.
[질문]
여기에 WhileSubscribed를 주어야 하는 이유가 있는거야?? (궁금)
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.
HomeScreen에 진입했을 때 수집하고 다른 화면으로 이동했을 때는 수집을 중지하기 위함이라고 생각했어!
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.
이 플로우를 구독하고 있는 곳(fragment)에서
flowWithLifecycle(viewLifecycleOwner.lifecycle, Lifecycle.State.STARTED) 하고 있으니까
화면 이동할때(onStop)는 collect가 중단되지 않아?
(= WhileSubscribed가 굳이 필요 없을 것 같다는 뜻)
...c/main/kotlin/com/silvertown/android/dailyphrase/domain/usecase/GetHomeRewardStateUseCase.kt
Outdated
Show resolved
Hide resolved
data/src/main/kotlin/com/silvertown/android/dailyphrase/data/repository/MemberRepositoryImpl.kt
Outdated
Show resolved
Hide resolved
이거 바로 develop에 넣지 말구 내꺼까지 /reward에 들어가면 그때 develop에 넣자! |
응모하고 xx 받기나 그래야 이거 머지되면 내가 safeNavigate만 작성해서 바로 동작하게 할 수 있을 것 같아! |