From da3140f142e3aae62c748f904280f9033760450a Mon Sep 17 00:00:00 2001 From: "Ryan C. Payne" Date: Fri, 31 May 2024 14:28:39 +0000 Subject: [PATCH] Updated for 4.2.0 release --- Package.swift | 4 ++-- SampleApp/Podfile | 2 +- SampleApp/SampleApp/AppDelegate.swift | 8 ++++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Package.swift b/Package.swift index 192b319..d2c2907 100644 --- a/Package.swift +++ b/Package.swift @@ -16,8 +16,8 @@ let package = Package( targets: [ .binaryTarget( name: "DeviceRisk", - url: "https://sdk.socure.com/socure-sdks/sigma-device/ios/socure-device-risk-4.1.2.zip", - checksum: "0bc033c6ca538b3a31ea725f03273ef1d1a4a4f607bc8387d183c22efb199c04" + url: "https://sdk.socure.com/socure-sdks/sigma-device/ios/socure-device-risk-4.2.0.zip", + checksum: "cf67d7f98bc5dd3ba264df621859cb82a9629792b830ad6188f4dea154011da2" ) ] ) diff --git a/SampleApp/Podfile b/SampleApp/Podfile index dfc43fc..9008982 100644 --- a/SampleApp/Podfile +++ b/SampleApp/Podfile @@ -6,6 +6,6 @@ target 'SampleApp' do use_frameworks! # Pods for SocureSdkDemo - pod 'SocureDeviceRisk', '~> 4.1.2' + pod 'SocureDeviceRisk', '~> 4.2.0' pod 'Alamofire' end diff --git a/SampleApp/SampleApp/AppDelegate.swift b/SampleApp/SampleApp/AppDelegate.swift index b997259..1ecb62a 100644 --- a/SampleApp/SampleApp/AppDelegate.swift +++ b/SampleApp/SampleApp/AppDelegate.swift @@ -17,7 +17,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate { let SDKKey = "Socure-public-key" let options = SigmaDeviceOptions( omitLocationData: false, - advertisingID: nil) + advertisingID: nil, + useSocureGov: false, + configBaseUrl: nil) SigmaDevice.initializeSDK(SDKKey, options: options) { result, error in guard let error = error else { @@ -32,7 +34,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate { print("\(code ?? ""): \(message ?? "")") case .networkConnectionError(let nsUrlError): print("\(nsUrlError)") - case .unknownError, .dataFetchError: + case .dataFetchError: + print(".dataFetchError") + case .unknownError: fallthrough @unknown default: print("unknown error")