Skip to content

Commit

Permalink
Public release 1.15.3.
Browse files Browse the repository at this point in the history
Public release 1.15.3.
  • Loading branch information
dmytrokhl committed Jan 23, 2024
2 parents ec74d91 + 3b9378d commit dc83015
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Sources/VGSCollectSDK/Core/Collector/VGSCollect+network.swift
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,9 @@ extension VGSCollect {
*/
public func tokenizeData(routeId: String? = nil) async -> VGSTokenizationResponse {
return await withCheckedContinuation { continuation in
//NOTE: We need to use main thread since data will be collected from UI elements
// NOTE: We need to use main thread since data will be collected from UI elements
DispatchQueue.main.async {
self.tokenizeData {response in
self.tokenizeData(routeId: routeId) {response in
continuation.resume(returning: response)
}
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/VGSCollectSDK/Utils/Extensions/Utils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ internal class Utils {

/// VGS Collect 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 vgsCollectVersion: String = "1.15.2"
static let vgsCollectVersion: String = "1.15.3"
}

extension Dictionary {
Expand Down
25 changes: 25 additions & 0 deletions Tests/FrameworkTests/APIClient Tests/TokenizationApiTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,31 @@ class TokenizationApiTests: VGSCollectBaseTestCase {
}
wait(for: [expectation], timeout: 60)
}

func testAsyncTokenizeCardURL() {
let vaultId = MockedDataProvider.shared.tokenizationVaultId
let routeId = UUID().uuidString.lowercased()
let environment = "sandbox"
let proxy = "verygoodproxy.com"
let path = "tokens"
let expectedUrl = URL(string: "https://\(vaultId)-\(routeId).\(environment).\(proxy)/\(path)")?.absoluteString

self.configureCardTextFields()
let expectation = XCTestExpectation(description: "Sending data...")
Task {
let result = await collector.tokenizeData(routeId: routeId)
let responeURL: String?
switch result {
case .success(_, _, let response):
responeURL = response?.url?.absoluteString
case .failure(_, _, let response, _):
responeURL = response?.url?.absoluteString
}
XCTAssertTrue(expectedUrl == responeURL, "-testAsyncTokenizeCardURL error: wrong resopnseURL \(responeURL)")
expectation.fulfill()
}
wait(for: [expectation], timeout: 60)
}

func testCardSendPublisherToEchoServer() {
self.configureCardTextFields()
Expand Down
2 changes: 1 addition & 1 deletion Tests/FrameworkTests/VGSCollectTest+Validation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class VGSCollectValidationTests: XCTestCase {

let expDateField = VGSTextField()
expDateField.configuration = expDateConfiguration
expDateField.textField.secureText = "1123"
expDateField.textField.secureText = "1128"

let cvcConfiguration = VGSConfiguration(collector: collector, fieldName: "cvc")
cvcConfiguration.type = .cvc
Expand Down
2 changes: 1 addition & 1 deletion VGSCollectSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'VGSCollectSDK'
spec.version = '1.15.2'
spec.version = '1.15.3'
spec.summary = 'VGS Collect - is a product suite that allows customers to collect information securely without possession of it.'
spec.swift_version = '5.0'
spec.description = <<-DESC
Expand Down
8 changes: 4 additions & 4 deletions VGSCollectSDK.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1948,7 +1948,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MARKETING_VERSION = 1.14.0;
MARKETING_VERSION = 1.15.3;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -2010,7 +2010,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MARKETING_VERSION = 1.14.0;
MARKETING_VERSION = 1.15.3;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -2043,7 +2043,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.15.2;
MARKETING_VERSION = 1.15.3;
PRODUCT_BUNDLE_IDENTIFIER = com.vgs.framework;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -2075,7 +2075,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.15.2;
MARKETING_VERSION = 1.15.3;
PRODUCT_BUNDLE_IDENTIFIER = com.vgs.framework;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down

0 comments on commit dc83015

Please sign in to comment.