Skip to content

Commit

Permalink
[Fix] #186 - 3차 QA_자동 업데이트 코드 단순화 및 2번 호출되는 코드 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
boogios committed May 31, 2024
1 parent 5b7925f commit eb7543f
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions DontBe-iOS/DontBe-iOS/Application/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
func sceneWillEnterForeground(_ scene: UIScene) {
// Called as the scene transitions from the background to the foreground.
// Use this method to undo the changes made on entering the background.
self.checkAndUpdateIfNeeded()
}

func sceneDidEnterBackground(_ scene: UIScene) {
Expand All @@ -90,17 +89,10 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {

let splitCurrentProjectVersion = currentProjectVersion.split(separator: ".").map { $0 }

if splitCurrentProjectVersion.count > 0 && splitMarketingVersion.count > 0 {

if splitCurrentProjectVersion[0] < splitMarketingVersion[0] {
self.showUpdateAlert(version: marketingVersion)

} else if splitCurrentProjectVersion[1] < splitMarketingVersion[1] {
self.showUpdateAlert(version: marketingVersion)

} else {
print("현재 최신버전입니다.")
}
if currentProjectVersion < marketingVersion {
self.showUpdateAlert(version: marketingVersion)
} else {
print("현재 최신버전입니다.")
}
}
}
Expand Down

0 comments on commit eb7543f

Please sign in to comment.