-
Notifications
You must be signed in to change notification settings - Fork 3
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
[FEAT/#466] 인앱 업데이트 자체 구현 #467
Conversation
5089f0c
to
2dd57c7
Compare
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.
최고티비~
val updateVersion = snapshot.value.toString().toFloat() | ||
val currentVersion = VERSION_NAME.toFloat() | ||
|
||
val isLatestVersion = currentVersion >= updateVersion | ||
_isLatestVersion.value = UiState.Success(isLatestVersion) | ||
} | ||
.addOnFailureListener { e -> | ||
_isLatestVersion.value = UiState.Failure(e.toString()) |
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.
isLatestVersion 변수는 한번밖에 안쓰여서 변수 3개를 한번에 처리할 수 있을 것 같은데, 지금은 코드를 가독성 좋게 만드는 과정일까요?
(옐로 쌤들한테 불필요한 변수 설정 최소화하라고 배웠던 기억이 있어서 .. ㅋ ㅋ)
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.
넹 어떤 조건인지 써주는 느낌으로 변수 만들었슴다
⛳️ Work Description
📸 Screenshot
Screen_Recording_20240816_001107_Google.Play.Store.mp4
📢 To Reviewers