From eb7543f1fe9f4b8d02c0eb6939f33bd760a0d780 Mon Sep 17 00:00:00 2001 From: Sangwoo Byeon Date: Sat, 1 Jun 2024 00:27:35 +0900 Subject: [PATCH] =?UTF-8?q?[Fix]=20#186=20-=203=EC=B0=A8=20QA=5F=EC=9E=90?= =?UTF-8?q?=EB=8F=99=20=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EB=8B=A8=EC=88=9C=ED=99=94=20=EB=B0=8F=202?= =?UTF-8?q?=EB=B2=88=20=ED=98=B8=EC=B6=9C=EB=90=98=EB=8A=94=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DontBe-iOS/Application/SceneDelegate.swift | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/DontBe-iOS/DontBe-iOS/Application/SceneDelegate.swift b/DontBe-iOS/DontBe-iOS/Application/SceneDelegate.swift index c4dd49d6..2b086bf5 100644 --- a/DontBe-iOS/DontBe-iOS/Application/SceneDelegate.swift +++ b/DontBe-iOS/DontBe-iOS/Application/SceneDelegate.swift @@ -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) { @@ -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("현재 최신버전입니다.") } } }