Skip to content

Commit

Permalink
Merge pull request #1265 from wakmusic/1263-deeplink-divide-condition
Browse files Browse the repository at this point in the history
  • Loading branch information
KangTaeHoon authored Aug 31, 2024
2 parents c690280 + 2d7181d commit 3c393b5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
3 changes: 1 addition & 2 deletions Projects/App/Sources/Application/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
}
}
10 changes: 5 additions & 5 deletions Projects/Modules/Utility/Sources/Utils/Secrets.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
return config(key: "WM_UNIVERSALLINK_TEST_DOMAIN")
#if DEBUG || QA
return config(key: "WM_UNIVERSALLINK_TEST_DOMAIN")
#else
return config(key: "WM_UNIVERSALLINK_DOMAIN")
#endif
}

0 comments on commit 3c393b5

Please sign in to comment.