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

로띠 스플래시 액티비티 추가 #231

Merged
merged 4 commits into from
Oct 2, 2024
Merged

로띠 스플래시 액티비티 추가 #231

merged 4 commits into from
Oct 2, 2024

Conversation

ddyeon
Copy link
Member

@ddyeon ddyeon commented Sep 23, 2024

개요

이슈 링크 혹은 PR 내용 요약

  • 드디어 도라방스에 스플래시 로띠가....

작업 내용

실제 작업 내용

  • 스플래시 액티비티 만들었어용
  • 기존 MainActivity에 있던 체크로직들 전부 옮기고 Main에서는 splashViewModel 제거 했슴당
  • 테스트 결과 온보딩/홈, 클립보드 url있을 때 전부 잘되는 것 같아유

시연 화면 (option)

실행 스크린샷 혹은 영상 첨부

2024-09-23.11.20.03.mov

To Reviers

리뷰어들에게 전할 말

  • 도라방방구구구리 화이띵

Close

close #

Comment on lines 35 to 48
val url = intent.data?.path?.substring(1).orEmpty()

installSplashScreen().apply {
setKeepOnScreenCondition {
(splashViewModel.isSplashShow.value || splashViewModel.firstEntryScreen.value == FirstEntryScreen.Splash) &&
url.isBlank()
}
Copy link
Member Author

Choose a reason for hiding this comment

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

여기 기존에 url받아와서 그냥 비어있는지만 체크하던데,,무슨 기능인지 아는사람?

Copy link
Collaborator

Choose a reason for hiding this comment

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

나는 몰라!

Copy link
Collaborator

Choose a reason for hiding this comment

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

스플래시 만든 사람이 모르면 우리도 몰라 !

Copy link
Collaborator

Choose a reason for hiding this comment

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

@ddyeon @Ahn-seokjoo
image
억울하오 억울하오

Copy link
Collaborator

@fbghgus123 fbghgus123 left a comment

Choose a reason for hiding this comment

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

@ddyeon
수고했음 ~~
액티비티 전환시 애니메이션 없애는게 더 나을 것 같음

val firstEntryScreen = splashViewModel.firstEntryScreen.collectAsState()
if (firstEntryScreen.value != FirstEntryScreen.Splash) {
val imm = getSystemService(Context.INPUT_METHOD_SERVICE) as? InputMethodManager
firstEntryScreen?.let {
Copy link
Collaborator

Choose a reason for hiding this comment

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

이거 firstEntryScreen null인 케이스가 있음? 있다면 빈 화면만 나올 것 같은뎅

val userId = Settings.Secure.getString(contentResolver, Settings.Secure.ANDROID_ID)
splashViewModel.checkUserToken(userId)

val url = intent.data?.path?.substring(1).orEmpty()
Copy link
Collaborator

Choose a reason for hiding this comment

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

쓰는데가 없는뎅 ??

Copy link
Member Author

Choose a reason for hiding this comment

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

웅 그래서 지우려고햇는데,, 기존에 main에 있떤 코드여서 위에서 물어본건데 아무도 모르면
지웁니다?

splashShowFlow.value = false
_firstEntryScreen.value = if (getIsFirstEntryUseCase().firstOrNull() != false) FirstEntryScreen.Onboarding else FirstEntryScreen.Home
} else {
// Todo :: 유저 토큰 가져오기 실패에 대한 처리 해줘야함 (Like 토스트 메시지)
Copy link
Collaborator

Choose a reason for hiding this comment

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

이거도 같이할 생각 없나~

Copy link
Member Author

Choose a reason for hiding this comment

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

ㅋㅋ이건 호현오빠한테 토스~

@@ -7,7 +7,7 @@ import com.mashup.dorabangs.domain.model.Folder
import com.mashup.dorabangs.domain.utils.isValidUrl

data class HomeState(
val isLoading: Boolean = false,
val isLoading: Boolean = true,
Copy link
Collaborator

Choose a reason for hiding this comment

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

why???

Copy link
Member Author

Choose a reason for hiding this comment

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

false로 했더니 액티비티 전환 시 컴포저블 보이고 로딩 도는 이슈가 있어서 바꿨므당

@ddyeon ddyeon merged commit 6380fb6 into develop Oct 2, 2024
3 checks passed
@ddyeon ddyeon deleted the feature/splash branch October 2, 2024 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants