Skip to content

Commit

Permalink
Merge pull request #26 from checkout/PRISM-11103-risk-i-os-logs-timez…
Browse files Browse the repository at this point in the history
…one-to-device-data-api-on-configuration-endpoint

PRISM-11103 - Log timezone when retrieving configuration
  • Loading branch information
precious-ossai-cko authored Mar 19, 2024
2 parents 4823f05 + fec6eb1 commit 912697c
Show file tree
Hide file tree
Showing 29 changed files with 613 additions and 572 deletions.
4 changes: 2 additions & 2 deletions .github/partial-readmes/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ We've done our best to support the most common distribution methods on iOS. We a
let package = Package(
...
dependencies: [
.package(url: "https://github.com/checkout/checkout-risk-sdk-ios", from: "2.0.1")
.package(url: "https://github.com/checkout/checkout-risk-sdk-ios", from: "2.0.2")
]
...
)
Expand All @@ -34,7 +34,7 @@ platform :ios, '12.0'
use_frameworks!

target '<Your Target Name>' do
pod 'Risk', '~> 2.0.1'
pod 'Risk', '~> 2.0.2'
end
```

Expand Down
2 changes: 1 addition & 1 deletion Risk.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Risk"
s.version = "2.0.1"
s.version = "2.0.2"
s.summary = "Checkout Risk package in Swift"
s.description = <<-DESC
Checkout Risk package in Swift.
Expand Down
2 changes: 1 addition & 1 deletion Sources/Risk/Logging/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Foundation

enum Constants {
static let productName = "risk-ios-sdk"
static let riskSdkVersion = "2.0.1"
static let riskSdkVersion = "2.0.2"
static let userAgent = "checkout-sdk-risk-ios/\(riskSdkVersion)"
static let loggerTypeIdentifier = "com.checkout.risk-mobile-sdk"
}
2 changes: 1 addition & 1 deletion Sources/Risk/Services/DeviceDataService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ struct DeviceDataService: DeviceDataServiceProtocol {
}

func getConfiguration(completion: @escaping (Result<FingerprintConfiguration, RiskError.Configuration>) -> Void) {
let endpoint = "\(config.deviceDataEndpoint)/configuration?integrationType=\(config.integrationType.rawValue)&riskSdkVersion=\(Constants.riskSdkVersion)"
let endpoint = "\(config.deviceDataEndpoint)/configuration?integrationType=\(config.integrationType.rawValue)&riskSdkVersion=\(Constants.riskSdkVersion)&timezone=\(TimeZone.current.identifier)"
let authToken = config.merchantPublicKey

apiService.getJSONFromAPIWithAuthorization(endpoint: endpoint, authToken: authToken, responseType: DeviceDataConfiguration.self) {
Expand Down
2 changes: 1 addition & 1 deletion iOSExampleRiskCocoapods/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ target 'iOSExampleRiskCocoapods' do
use_frameworks!

# Pods for iOS Example Custom
pod 'Risk', '1.0.2'
pod 'Risk', '2.0.1'

end

Expand Down
8 changes: 4 additions & 4 deletions iOSExampleRiskCocoapods/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
PODS:
- CheckoutEventLoggerKit (1.2.4)
- FingerprintPro (2.2.0)
- Risk (1.0.2):
- Risk (2.0.1):
- CheckoutEventLoggerKit (~> 1.2.4)
- FingerprintPro (= 2.2.0)

DEPENDENCIES:
- Risk (= 1.0.2)
- Risk (= 2.0.1)

SPEC REPOS:
trunk:
Expand All @@ -17,8 +17,8 @@ SPEC REPOS:
SPEC CHECKSUMS:
CheckoutEventLoggerKit: b780dec46295a34942780ea6230d0d5fd08aa05a
FingerprintPro: 72e35dc0315b75ba36eafaaed996dbb2f35f7326
Risk: a0b15508999b1b7557fc478df4114355c6977208
Risk: 5afc8c739782cae0c26b3d605975339ea6bd0c62

PODFILE CHECKSUM: 72f71a839abffc344a620d1df9f613403937a8ec
PODFILE CHECKSUM: c10bf95d52beebaf38c52a3ee16182e3dbcc4434

COCOAPODS: 1.14.3
8 changes: 4 additions & 4 deletions iOSExampleRiskCocoapods/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

444 changes: 224 additions & 220 deletions iOSExampleRiskCocoapods/Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

172 changes: 111 additions & 61 deletions iOSExampleRiskCocoapods/Pods/Risk/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 912697c

Please sign in to comment.