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

[FEAT/#466] 인앱 업데이트 자체 구현 #467

Merged
merged 5 commits into from
Aug 20, 2024

Conversation

b1urrrr
Copy link
Member

@b1urrrr b1urrrr commented Aug 15, 2024

⛳️ Work Description

  • Firebase Realtime Database 연동
  • 버전 데이터베이스 구축
  • 강제 업데이트 분기 처리

📸 Screenshot

Screen_Recording_20240816_001107_Google.Play.Store.mp4

📢 To Reviewers

  • 저희 버전이 항상 X.X 형식이라고 생각하고 Float로 처리했슴다
  • 강업 버전이 바뀔 때마다 FirebaseReatime에 설정해줘야합니다!
  • 회사 앱 생각해보면 강업 때리면 사용자들이 되게 싫어하던데 꼭 필요한 경우에만 강업을 진행해도 조을 것 같다는 생각도 듭니당... 리텐션에 조금이나마 도움이 될수도...?
  • 나중에 시간 나면 data 모듈에서 FirebaseRealtime 처리하는 클래스 하나 만들어서 주입해서 쓰게 바꿔볼게요!

@b1urrrr b1urrrr added the FEAT ✨ 새로운 기능 구현 label Aug 15, 2024
@b1urrrr b1urrrr self-assigned this Aug 15, 2024
@b1urrrr b1urrrr requested a review from a team as a code owner August 15, 2024 15:20
@b1urrrr b1urrrr force-pushed the feat/#466-custom-in-app-update branch from 5089f0c to 2dd57c7 Compare August 15, 2024 15:47
Copy link
Member

@Marchbreeze Marchbreeze left a comment

Choose a reason for hiding this comment

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

최고티비~

Comment on lines +26 to +33
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())
Copy link
Member

Choose a reason for hiding this comment

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

isLatestVersion 변수는 한번밖에 안쓰여서 변수 3개를 한번에 처리할 수 있을 것 같은데, 지금은 코드를 가독성 좋게 만드는 과정일까요?
(옐로 쌤들한테 불필요한 변수 설정 최소화하라고 배웠던 기억이 있어서 .. ㅋ ㅋ)

Copy link
Member Author

Choose a reason for hiding this comment

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

넹 어떤 조건인지 써주는 느낌으로 변수 만들었슴다

@b1urrrr b1urrrr merged commit 1c0195f into develop Aug 20, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FEAT ✨ 새로운 기능 구현
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[FEAT] Splash / 인앱 업데이트 자체 구현
2 participants