From 08d778df1e8538001cf91c9453778c02b5fb9bbc Mon Sep 17 00:00:00 2001 From: KTH Date: Sat, 31 Aug 2024 15:47:07 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9C=A8=20::=20[#1263]=20=EB=94=A5?= =?UTF-8?q?=EB=A7=81=ED=81=AC=20=EB=8F=84=EB=A9=94=EC=9D=B8=20=EB=B6=84?= =?UTF-8?q?=EA=B8=B0=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Projects/App/Sources/Application/SceneDelegate.swift | 3 +-- .../Utility/Sources/DeepLink/DeepLinkGenerator.swift | 3 +-- Projects/Modules/Utility/Sources/Utils/Secrets.swift | 8 ++++---- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Projects/App/Sources/Application/SceneDelegate.swift b/Projects/App/Sources/Application/SceneDelegate.swift index 17be8fd5c..42cc4a2b5 100644 --- a/Projects/App/Sources/Application/SceneDelegate.swift +++ b/Projects/App/Sources/Application/SceneDelegate.swift @@ -65,8 +65,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate { } LogManager.printDebug("URL: \(webpageURL.absoluteString)") - guard webpageURL.host == WM_UNIVERSALLINK_DOMAIN() || - webpageURL.host == WM_UNIVERSALLINK_TEST_DOMAIN() else { + guard webpageURL.host == WM_UNIVERSALLINK_DOMAIN() else { return } handleUniversalLink(url: webpageURL) diff --git a/Projects/Modules/Utility/Sources/DeepLink/DeepLinkGenerator.swift b/Projects/Modules/Utility/Sources/DeepLink/DeepLinkGenerator.swift index 53bee103c..e31a2a0d8 100644 --- a/Projects/Modules/Utility/Sources/DeepLink/DeepLinkGenerator.swift +++ b/Projects/Modules/Utility/Sources/DeepLink/DeepLinkGenerator.swift @@ -8,7 +8,6 @@ public final class WMDeepLinkGenerator: WMDeepLinkGeneratable { public init() {} public func generatePlaylistDeepLink(key: String) -> String { - #warning("나중에 딥링크 변경하기") - return "https://\(WM_UNIVERSALLINK_TEST_DOMAIN())/playlist/\(key)" + return "https://\(WM_UNIVERSALLINK_DOMAIN())/playlist/\(key)" } } diff --git a/Projects/Modules/Utility/Sources/Utils/Secrets.swift b/Projects/Modules/Utility/Sources/Utils/Secrets.swift index 5f8c4115f..324578e22 100644 --- a/Projects/Modules/Utility/Sources/Utils/Secrets.swift +++ b/Projects/Modules/Utility/Sources/Utils/Secrets.swift @@ -89,9 +89,9 @@ public func WM_URI_SCHEME() -> String { } public func WM_UNIVERSALLINK_DOMAIN() -> String { - return config(key: "WM_UNIVERSALLINK_DOMAIN") -} - -public func WM_UNIVERSALLINK_TEST_DOMAIN() -> String { + #if DEBUG || QA return config(key: "WM_UNIVERSALLINK_TEST_DOMAIN") + #else + return config(key: "WM_UNIVERSALLINK_DOMAIN") + #endif } From 2d7181d9be4d0c4bdb087b66ffc699d4ef9501fe Mon Sep 17 00:00:00 2001 From: "pikagreen@nate.com" Date: Sat, 31 Aug 2024 15:47:12 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=8E=A8=20::=20=EC=BD=94=EB=93=9C=20Fo?= =?UTF-8?q?rmatting=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Projects/Modules/Utility/Sources/Utils/Secrets.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Projects/Modules/Utility/Sources/Utils/Secrets.swift b/Projects/Modules/Utility/Sources/Utils/Secrets.swift index 324578e22..c063680c1 100644 --- a/Projects/Modules/Utility/Sources/Utils/Secrets.swift +++ b/Projects/Modules/Utility/Sources/Utils/Secrets.swift @@ -90,8 +90,8 @@ public func WM_URI_SCHEME() -> String { public func WM_UNIVERSALLINK_DOMAIN() -> String { #if DEBUG || QA - return config(key: "WM_UNIVERSALLINK_TEST_DOMAIN") + return config(key: "WM_UNIVERSALLINK_TEST_DOMAIN") #else - return config(key: "WM_UNIVERSALLINK_DOMAIN") + return config(key: "WM_UNIVERSALLINK_DOMAIN") #endif }