diff --git a/Sources/VGSShowSDK/Core/APIClient/APIClient.swift b/Sources/VGSShowSDK/Core/APIClient/APIClient.swift index ab2562ff..be33ded6 100644 --- a/Sources/VGSShowSDK/Core/APIClient/APIClient.swift +++ b/Sources/VGSShowSDK/Core/APIClient/APIClient.swift @@ -260,21 +260,22 @@ internal class APIClient { private func updateHost(with hostname: String, completion: ((URL) -> Void)? = nil) { - dataSyncQueue.async { + dataSyncQueue.async {[weak self] in + guard let strongSelf = self else {return} // Enter sync zone. - self.syncSemaphore.wait() + strongSelf.syncSemaphore.wait() // Check if we already have URL. If yes, don't fetch it the same time. - if let url = self.hostURLPolicy.url { + if let url = strongSelf.hostURLPolicy.url { completion?(url) // Exit sync zone. - self.syncSemaphore.signal() + strongSelf.syncSemaphore.signal() return } // Resolve hostname. - APIHostnameValidator.validateCustomHostname(hostname, tenantId: self.vaultId) {[weak self](url) in + APIHostnameValidator.validateCustomHostname(hostname, tenantId: strongSelf.vaultId) {[weak self](url) in if var validUrl = url { // Update url scheme if needed. diff --git a/Sources/VGSShowSDK/Utils/Helpers/VGSUtils.swift b/Sources/VGSShowSDK/Utils/Helpers/VGSUtils.swift index 7587b095..86a5b022 100644 --- a/Sources/VGSShowSDK/Utils/Helpers/VGSUtils.swift +++ b/Sources/VGSShowSDK/Utils/Helpers/VGSUtils.swift @@ -22,5 +22,5 @@ internal class Utils { /// VGS Show SDK Version. /// Necessary since SPM doesn't track info plist correctly: https://forums.swift.org/t/add-info-plist-on-spm-bundle/40274/5 - static let vgsShowVersion = "1.1.1" + static let vgsShowVersion = "1.1.2" } diff --git a/VGSShowSDK.podspec b/VGSShowSDK.podspec index 4bf5fe86..889e4403 100644 --- a/VGSShowSDK.podspec +++ b/VGSShowSDK.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = "VGSShowSDK" - spec.version = "1.1.1" + spec.version = "1.1.2" spec.summary = "VGS Show - is a product suite that allows customers to reveal and show information securely without possession of it." spec.swift_version = '5.0' spec.description = <<-DESC diff --git a/VGSShowSDK.xcodeproj/project.pbxproj b/VGSShowSDK.xcodeproj/project.pbxproj index f43a103f..61f09afb 100644 --- a/VGSShowSDK.xcodeproj/project.pbxproj +++ b/VGSShowSDK.xcodeproj/project.pbxproj @@ -1049,7 +1049,7 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 1.1.1; + MARKETING_VERSION = 1.1.2; PRODUCT_BUNDLE_IDENTIFIER = com.vgs.framework.VGSShowsSDK; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; SKIP_INSTALL = YES; @@ -1080,7 +1080,7 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 1.1.1; + MARKETING_VERSION = 1.1.2; PRODUCT_BUNDLE_IDENTIFIER = com.vgs.framework.VGSShowsSDK; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; SKIP_INSTALL = YES; diff --git a/docs/Classes.html b/docs/Classes.html index 02acdf08..326d3302 100644 --- a/docs/Classes.html +++ b/docs/Classes.html @@ -328,7 +328,7 @@