diff --git a/.github/partial-readmes/Installation.md b/.github/partial-readmes/Installation.md index b021cca..01e3c0d 100644 --- a/.github/partial-readmes/Installation.md +++ b/.github/partial-readmes/Installation.md @@ -35,7 +35,7 @@ platform :ios, '12.0' use_frameworks! target '' do - pod 'Risk', '~> 1.0.1' + pod 'Risk', '~> 1.0.2' end ``` diff --git a/Risk.podspec b/Risk.podspec index 5dbe659..11b4e22 100644 --- a/Risk.podspec +++ b/Risk.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Risk" - s.version = "1.0.1" + s.version = "1.0.2" s.summary = "Checkout Risk package in Swift" s.description = <<-DESC Checkout Risk package in Swift. diff --git a/Sources/Core/Constants.swift b/Sources/Core/Constants.swift index 5d33d30..70fa914 100644 --- a/Sources/Core/Constants.swift +++ b/Sources/Core/Constants.swift @@ -9,7 +9,7 @@ import Foundation enum Constants { static let productName = "risk-ios-sdk" - static let version = "1.0.1" + static let version = "1.0.2" static let userAgent = "checkout-sdk-risk-ios/\(version)" static let loggerTypeIdentifier = "com.checkout.risk-mobile-sdk" } diff --git a/Sources/Core/LoggerService.swift b/Sources/Core/LoggerService.swift index bca23c5..12eae5a 100644 --- a/Sources/Core/LoggerService.swift +++ b/Sources/Core/LoggerService.swift @@ -60,16 +60,22 @@ extension LoggerServiceProtocol { "FramesMode": AnyCodable(internalConfig.framesMode), "MaskedPublicKey": AnyCodable(maskedPublicKey), "ddTags": AnyCodable(ddTags), + "RiskSDKVersion": AnyCodable(Constants.version), + "Timezone": AnyCodable(TimeZone.current.identifier), + "RequestId": AnyCodable(requestId), "DeviceSessionId": AnyCodable(deviceSessionId), - "RequestId": AnyCodable(requestId) ] case .publishFailure, .loadFailure, .publishDisabled: properties = [ "EventType": AnyCodable(riskEvent.rawValue), "FramesMode": AnyCodable(internalConfig.framesMode), + "MaskedPublicKey": AnyCodable(maskedPublicKey), + "ddTags": AnyCodable(ddTags), + "RiskSDKVersion": AnyCodable(Constants.version), + "Timezone": AnyCodable(TimeZone.current.identifier), "ErrorMessage": AnyCodable(error?.message), "ErrorType": AnyCodable(error?.type), - "ErrorReason": AnyCodable(error?.reason) + "ErrorReason": AnyCodable(error?.reason), ] }