From 1abc26648d8cea15877b0eb24bc223776aa40929 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8E=E1=85=AC=E1=84=8C=E1=85=A5=E1=86=BC=E1=84=8B?= =?UTF-8?q?=E1=85=B5=E1=86=AB?= Date: Thu, 4 Dec 2025 17:35:30 +0900 Subject: [PATCH] =?UTF-8?q?Feat:=20'=EB=82=98=EA=B0=80=EB=B4=90=EC=9A=94?= =?UTF-8?q?=5F=EC=A0=9C=EB=B3=B4=ED=95=98=EA=B8=B0'=20=EC=B9=B4=ED=85=8C?= =?UTF-8?q?=EA=B3=A0=EB=A6=AC=20=EC=B6=94=EC=B2=9C=20=EB=A3=A8=ED=8B=B4?= =?UTF-8?q?=EC=97=90=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Projects/DataSource/Sources/DTO/RecommendedRoutineDTO.swift | 3 +++ .../Presentation/Sources/Home/ViewModel/HomeViewModel.swift | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Projects/DataSource/Sources/DTO/RecommendedRoutineDTO.swift b/Projects/DataSource/Sources/DTO/RecommendedRoutineDTO.swift index a7f61ba..5a83286 100644 --- a/Projects/DataSource/Sources/DTO/RecommendedRoutineDTO.swift +++ b/Projects/DataSource/Sources/DTO/RecommendedRoutineDTO.swift @@ -30,6 +30,9 @@ extension RecommendedRoutineDTO { var routineCategory: RoutineCategoryType? if let category { routineCategory = RoutineCategoryType(rawValue: category) + if routineCategory == .outdoorReport { + routineCategory = .outdoor + } } var type: RoutineCategoryType? diff --git a/Projects/Presentation/Sources/Home/ViewModel/HomeViewModel.swift b/Projects/Presentation/Sources/Home/ViewModel/HomeViewModel.swift index e989180..a65d3d5 100644 --- a/Projects/Presentation/Sources/Home/ViewModel/HomeViewModel.swift +++ b/Projects/Presentation/Sources/Home/ViewModel/HomeViewModel.swift @@ -276,14 +276,14 @@ final class HomeViewModel: ViewModel { private func checkVersion() { let currentVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String - let major = currentVersion?.split(separator: ".").first + let majorVersion = Int(currentVersion?.components(separatedBy: ".").first ?? "0") ?? 0 Task { do { let appStoreAppVersion = try await appConfigRepository.fetchAppVersion() - let appStoreMajor = appStoreAppVersion?.split(separator: ".").first + let appStoreMajor = Int(appStoreAppVersion?.components(separatedBy: ".").first ?? "0") ?? 0 - if major != appStoreMajor { + if majorVersion < appStoreMajor { let url = URL(string: "itms-apps://itunes.apple.com/app/id6749437799") updateVersionSubject.send(url) } else {