Skip to content

Commit

Permalink
Merge branch 'RCP/4.2.0_Release' into 'main'
Browse files Browse the repository at this point in the history
Updated for 4.2.0 release

See merge request product/dvc/sdk/public/socure-sigmadevice-sdk-ios!11
  • Loading branch information
paynerc-socure committed May 31, 2024
2 parents 2da6e8b + da3140f commit b186b94
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
]
)
2 changes: 1 addition & 1 deletion SampleApp/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 6 additions & 2 deletions SampleApp/SampleApp/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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")
Expand Down

0 comments on commit b186b94

Please sign in to comment.