Skip to content

Commit

Permalink
[DIA-2101] remove unnecessary version variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevazhnovu committed Apr 28, 2023
1 parent e7783ed commit 1181a26
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ConsentViewController/Classes/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ let prod = (Bundle.framework.object(forInfoDictionaryKey: "SPEnv") as? String) !
struct Constants {
struct Urls {
static let envParam = prod ? "prod" : "stage"
static let version = SPConsentManager.VERSION
static let additionalData: String = "scriptType=ios&scriptVersion=\(version)"
static let additionalData: String = "scriptType=ios&scriptVersion=\(SPConsentManager.VERSION)"
static let SP_ROOT = URL(string: prod ? "https://cdn.privacy-mgmt.com/" : "https://cdn.sp-stage.net/")!
static let WRAPPER_API = URL(string: "./wrapper/?env=\(envParam)", relativeTo: SP_ROOT)!
static let GDPR_MESSAGE_URL = URL(string: "./v2/message/gdpr?\(additionalData)", relativeTo: WRAPPER_API)!
Expand Down

0 comments on commit 1181a26

Please sign in to comment.