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

Feature/mz 199 마이페이지 - 내정보 편집, 앱 버전, 개인정보처리방침 #91

Merged
merged 10 commits into from
Jan 25, 2024

Conversation

yangsooplus
Copy link
Member

@yangsooplus yangsooplus commented Jan 25, 2024

💡 Issue

🌱 Key changes

  • 내 정보 편집 수정사항 반영
    • 이름이 형식에 맞지 않는 경우 빨간 점 표시
    • 이름이 형식에 맞지 않고 등록을 누르면 스낵바 표시
    • 출생년도 '미선택' 옵션 추가
  • 현재 앱 버전 표시
  • 기타 소소한 수정사항
    • 연동된 소셜계정의 네이버, 구글 아이콘 삭제
    • 기획 삭제에 따른 상단 앱바 알림 아이콘 삭제

✅ To Reviewers

  • 개인정보처리방침은 노션 웹뷰 이슈로 추후 따로 작업 예정
    • 개인정보처리방침 웹 페이지 변경 후 이번 PR에 반영했습니다!
  • 앱 최신버전 확인, 업데이트 하러가기는 서버에서 내려주면 작업 예정

📸 스크린샷

-.mp4

@yangsooplus yangsooplus self-assigned this Jan 25, 2024
Comment on lines 251 to 253
if (packageInfo != null) {
return packageInfo.versionName
}
Copy link
Member

Choose a reason for hiding this comment

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

packageInfo는 non-null 아닌가용??

Copy link
Member Author

Choose a reason for hiding this comment

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

엇 맞네요
긁어오고 확인 안한거 딱 걸렸네요 머슥

Comment on lines 245 to 258
private fun getAppVersion(context: Context): String {
try {
val packageInfo = context.packageManager.getPackageInfo(
context.packageName, 0,
)

if (packageInfo != null) {
return packageInfo.versionName
}
} catch (e: Exception) {
e.printStackTrace()
}
return ""
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
private fun getAppVersion(context: Context): String {
try {
val packageInfo = context.packageManager.getPackageInfo(
context.packageName, 0,
)
if (packageInfo != null) {
return packageInfo.versionName
}
} catch (e: Exception) {
e.printStackTrace()
}
return ""
}
private fun getAppVersion(context: Context): String = runCatching {
val packageInfo = context.packageManager.getPackageInfo(
context.packageName, 0,
)
packageInfo.versionName
}.getOrNull() ?: ""

모든 예외를 catch 할거면 runCatching이 더 가독성이 좋을거같아요

또 이 함수는 리컴포지션이 발생할 때마다 실행되서 별로인거같습니다. remember 쓰는거 어때요?

Copy link
Member Author

Choose a reason for hiding this comment

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

@yangsooplus yangsooplus requested a review from jinukeu January 25, 2024 08:36
@yangsooplus
Copy link
Member Author

개인정보처리방침까지 포함시켰습니다!

Copy link
Member

@jinukeu jinukeu left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@yangsooplus yangsooplus merged commit 8cfa319 into develop Jan 25, 2024
1 check passed
@yangsooplus yangsooplus deleted the feature/MZ-199-mypage-additional branch January 25, 2024 08:43
@yangsooplus yangsooplus changed the title Feature/mz 199 마이페이지 - 내정보 편집, 앱 버전 Feature/mz 199 마이페이지 - 내정보 편집, 앱 버전, 개인정보처리방침 Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat] 마이페이지 추가 작업
2 participants