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] #225 - 강제업데이트 추가 및 로그인 오류 개선 #228

Merged
merged 2 commits into from
Jan 28, 2024

Conversation

hyesuuou
Copy link
Member

@hyesuuou hyesuuou commented Jan 25, 2024

🫧 작업한 내용

  • 강제업데이트 추가 (파이어베이스 remoteConfig 에서 최소지원버전을 minimum_version이라는 키값으로 관리합니다!!)
  • 앱스토어에서 버전을 가져오거나, 파베에서 최소 버전을 가져오는 동작은 좀 시간이 걸릴 수 있는 async 한 작업이기도 하고, AppDelegate, SceneDelegate에서 작업하기 보다는 진입 뷰컨을 새로 만들고, 해당 뷰컨에서 alert를 띄워주는 방식이 좋을것 같아서 수정했습니다!

진입 로직은
앱 실행 -> CheckUpdate뷰컨(업데이트 체크 및 alert띄우기) -> 토큰정보 있으면 홈으로, 없으면 온보딩으로
입니다!!!!

  • 업데이트 URL이 자꾸 유효하지 않은 URL로 떠서 원래는 사파리 실행 URL이었지만 앱스토어 앱이 바로 열리도록 스킴(itms-어쩌구로)을 바꿨습니다! 근데 이게 시뮬에는 앱스토어 앱이 없어서 테스트가 안돼서.. 윤서가 여행에서 돌아오면 인증서 파일을 받아서 테스트해볼게여. . 저번에 프로비저닝만 받고.. 인증서를 안받음 ㅎ

  • 테스트하다보니까 로그인 안되는 부분을 찾아서 추가했습니다~ 저 알림이 첨에는 잘 뜨는데 그 이상은 break로 빠져버려서 홈으로 진입하는 루트가 없어서 그랬던 거였어요~ 추가해놧슴당

  • 컨벤션은 다른 파일들보고 최대한 맞게 한다고 해놓긴 했는데 완벽숙지가 된 상태는 아니라.. 혹시 틀린부분ㄴ 있으면 알려주세열..ㅎ.ㅎ

🔫 PR Point

📸 스크린샷

구현 내용 스크린샷
GIF image

근데 갠적으로 문구가 뭔가 강제로 하는 느낌이 아니라서 "더이상 지원되지 않는 버전입니다" 이런게 들어가야 할것 같긴 하네여.. 담에 기획에게 물어보겟슴다..

📮 관련 이슈

@hyesuuou hyesuuou added this to the SP6 milestone Jan 25, 2024
@hyesuuou hyesuuou self-assigned this Jan 25, 2024
Copy link
Member

@jeongdung-eo jeongdung-eo left a comment

Choose a reason for hiding this comment

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

고생하셨습니돵 ><
async/await도 공부해서 적용해봐야겠어욤!!!

Comment on lines +40 to +55
Task {
do {
let updateType = try await checkUpdateType()
switch updateType {
case .force(let newVersion):
self.showForceUpdateAlert(newVersion: newVersion)
case .optional:
self.showUpdateAlert()
case .none:
self.changeMainViewController()
}
} catch {
self.changeMainViewController()
}
}
}
Copy link
Member

Choose a reason for hiding this comment

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

🤩 우왕 🤩

@hyesuuou hyesuuou merged commit f0222e9 into develop Jan 28, 2024
1 check passed
@hyesuuou hyesuuou deleted the feat/#225 branch January 28, 2024 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Feat] 강제업데이트 추가
2 participants