From 921e2e35ae98ac1bff3d58119ec2c12b22a74147 Mon Sep 17 00:00:00 2001 From: "pikagreen@nate.com" Date: Tue, 3 Sep 2024 01:43:08 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20::=20[#1287]=20privacy,=20terms=20?= =?UTF-8?q?=EC=A3=BC=EC=86=8C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Projects/App/Support/Info.plist | 29 ++------------ .../ContractViewController.swift | 4 +- .../Utility/Sources/Utils/Secrets.swift | 39 ++----------------- 3 files changed, 9 insertions(+), 63 deletions(-) diff --git a/Projects/App/Support/Info.plist b/Projects/App/Support/Info.plist index 691640fe1..7af6360f7 100644 --- a/Projects/App/Support/Info.plist +++ b/Projects/App/Support/Info.plist @@ -55,8 +55,8 @@ LSApplicationQueriesSchemes - naversearchapp - naversearchthirdlogin + youtube + youtubemusic LSRequiresIPhoneOS @@ -70,10 +70,10 @@ BASE_DEV_URL $(BASE_DEV_URL) - BASE_IMAGE_URL - $(BASE_IMAGE_URL) BASE_PROD_URL $(BASE_PROD_URL) + CDN_DOMAIN_URL + $(CDN_DOMAIN_URL) GOOGLE_CLIENT_ID $(GOOGLE_CLIENT_ID) GOOGLE_URL_SCHEME @@ -100,22 +100,6 @@ $(WMDOMAIN_FAQ) WMDOMAIN_IMAGE $(WMDOMAIN_IMAGE) - WMDOMAIN_IMAGE_ARTIST_ROUND - $(WMDOMAIN_IMAGE_ARTIST_ROUND) - WMDOMAIN_IMAGE_ARTIST_SQUARE - $(WMDOMAIN_IMAGE_ARTIST_SQUARE) - WMDOMAIN_IMAGE_NEWS - $(WMDOMAIN_IMAGE_NEWS) - WMDOMAIN_IMAGE_NOTICE - $(WMDOMAIN_IMAGE_NOTICE) - WMDOMAIN_IMAGE_PLAYLIST - $(WMDOMAIN_IMAGE_PLAYLIST) - WMDOMAIN_IMAGE_PROFILE - $(WMDOMAIN_IMAGE_PROFILE) - WMDOMAIN_IMAGE_RECOMMEND_PLAYLIST_ROUND - $(WMDOMAIN_IMAGE_RECOMMEND_PLAYLIST_ROUND) - WMDOMAIN_IMAGE_RECOMMEND_PLAYLIST_SQUARE - $(WMDOMAIN_IMAGE_RECOMMEND_PLAYLIST_SQUARE) WMDOMAIN_LIKE $(WMDOMAIN_LIKE) WMDOMAIN_NOTICE @@ -185,10 +169,5 @@ UIUserInterfaceStyle Light - LSApplicationQueriesSchemes - - youtube - youtubemusic - diff --git a/Projects/Features/BaseFeature/Sources/ViewControllers/ContractViewController.swift b/Projects/Features/BaseFeature/Sources/ViewControllers/ContractViewController.swift index e7ef1643f..0e8fe94d8 100644 --- a/Projects/Features/BaseFeature/Sources/ViewControllers/ContractViewController.swift +++ b/Projects/Features/BaseFeature/Sources/ViewControllers/ContractViewController.swift @@ -34,9 +34,9 @@ extension ContractType { var url: String { switch self { case .privacy: - return "\(BASE_IMAGE_URL())/static/document/privacy.pdf" + return "\(CDN_DOMAIN_URL())/document/privacy.pdf" case .service: - return "\(BASE_IMAGE_URL())/static/document/terms.pdf" + return "\(CDN_DOMAIN_URL())/document/terms.pdf" } } } diff --git a/Projects/Modules/Utility/Sources/Utils/Secrets.swift b/Projects/Modules/Utility/Sources/Utils/Secrets.swift index c063680c1..40433ff46 100644 --- a/Projects/Modules/Utility/Sources/Utils/Secrets.swift +++ b/Projects/Modules/Utility/Sources/Utils/Secrets.swift @@ -15,42 +15,9 @@ public func config(key: String) -> String { return secrets[key] as? String ?? "not found key" } -// MARK: - BASE_IMAGE_URL -public func BASE_IMAGE_URL() -> String { - return config(key: "BASE_IMAGE_URL") -} - -// MARK: - WMDomain > Image -public func WMDOMAIN_IMAGE_NEWS() -> String { - return config(key: "WMDOMAIN_IMAGE_NEWS") -} - -public func WMDOMAIN_IMAGE_ARTIST_ROUND() -> String { - return config(key: "WMDOMAIN_IMAGE_ARTIST_ROUND") -} - -public func WMDOMAIN_IMAGE_ARTIST_SQUARE() -> String { - return config(key: "WMDOMAIN_IMAGE_ARTIST_SQUARE") -} - -public func WMDOMAIN_IMAGE_PROFILE() -> String { - return config(key: "WMDOMAIN_IMAGE_PROFILE") -} - -public func WMDOMAIN_IMAGE_PLAYLIST() -> String { - return config(key: "WMDOMAIN_IMAGE_PLAYLIST") -} - -public func WMDOMAIN_IMAGE_RECOMMEND_PLAYLIST_SQUARE() -> String { - return config(key: "WMDOMAIN_IMAGE_RECOMMEND_PLAYLIST_SQUARE") -} - -public func WMDOMAIN_IMAGE_RECOMMEND_PLAYLIST_ROUND() -> String { - return config(key: "WMDOMAIN_IMAGE_RECOMMEND_PLAYLIST_ROUND") -} - -public func WMDOMAIN_IMAGE_NOTICE() -> String { - return config(key: "WMDOMAIN_IMAGE_NOTICE") +// MARK: - CDN Domain +public func CDN_DOMAIN_URL() -> String { + return config(key: "CDN_DOMAIN_URL") } // MARK: - NAVER