Skip to content

Commit 3c393b5

Browse files
authored
Merge pull request #1265 from wakmusic/1263-deeplink-divide-condition
2 parents c690280 + 2d7181d commit 3c393b5

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

Projects/App/Sources/Application/SceneDelegate.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
6565
}
6666
LogManager.printDebug("URL: \(webpageURL.absoluteString)")
6767

68-
guard webpageURL.host == WM_UNIVERSALLINK_DOMAIN() ||
69-
webpageURL.host == WM_UNIVERSALLINK_TEST_DOMAIN() else {
68+
guard webpageURL.host == WM_UNIVERSALLINK_DOMAIN() else {
7069
return
7170
}
7271
handleUniversalLink(url: webpageURL)

Projects/Modules/Utility/Sources/DeepLink/DeepLinkGenerator.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ public final class WMDeepLinkGenerator: WMDeepLinkGeneratable {
88
public init() {}
99

1010
public func generatePlaylistDeepLink(key: String) -> String {
11-
#warning("나중에 딥링크 변경하기")
12-
return "https://\(WM_UNIVERSALLINK_TEST_DOMAIN())/playlist/\(key)"
11+
return "https://\(WM_UNIVERSALLINK_DOMAIN())/playlist/\(key)"
1312
}
1413
}

Projects/Modules/Utility/Sources/Utils/Secrets.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ public func WM_URI_SCHEME() -> String {
8989
}
9090

9191
public func WM_UNIVERSALLINK_DOMAIN() -> String {
92-
return config(key: "WM_UNIVERSALLINK_DOMAIN")
93-
}
94-
95-
public func WM_UNIVERSALLINK_TEST_DOMAIN() -> String {
96-
return config(key: "WM_UNIVERSALLINK_TEST_DOMAIN")
92+
#if DEBUG || QA
93+
return config(key: "WM_UNIVERSALLINK_TEST_DOMAIN")
94+
#else
95+
return config(key: "WM_UNIVERSALLINK_DOMAIN")
96+
#endif
9797
}

0 commit comments

Comments
 (0)