From 2f11681d16189a66bc6256b4e62fccf864504173 Mon Sep 17 00:00:00 2001 From: Precious OSSAI Date: Tue, 6 Feb 2024 16:06:45 +0000 Subject: [PATCH 1/5] chore: update log version --- Sources/Core/Constants.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Core/Constants.swift b/Sources/Core/Constants.swift index e23ace0..5d33d30 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.0" + static let version = "1.0.1" static let userAgent = "checkout-sdk-risk-ios/\(version)" static let loggerTypeIdentifier = "com.checkout.risk-mobile-sdk" } From a2ca254843f9acc29353e2209bef322ed40f88fd Mon Sep 17 00:00:00 2001 From: Precious OSSAI Date: Tue, 6 Feb 2024 16:06:57 +0000 Subject: [PATCH 2/5] chore: update cocoapods example --- iOSExampleRiskCocoapods/Podfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iOSExampleRiskCocoapods/Podfile b/iOSExampleRiskCocoapods/Podfile index 3cff5f9..51ff6f2 100644 --- a/iOSExampleRiskCocoapods/Podfile +++ b/iOSExampleRiskCocoapods/Podfile @@ -6,7 +6,7 @@ target 'iOSExampleRiskCocoapods' do use_frameworks! # Pods for iOS Example Custom - pod 'Risk', '0.0.2' + pod 'Risk', '1.0.0' end From 2d568a32c2eee8fe8fc2c4be927416c7be9de26e Mon Sep 17 00:00:00 2001 From: Precious OSSAI Date: Tue, 6 Feb 2024 16:13:04 +0000 Subject: [PATCH 3/5] chore: update example pod version --- iOSExampleRiskCocoapods/Podfile.lock | 8 ++++---- iOSExampleRiskCocoapods/Pods/Manifest.lock | 8 ++++---- iOSExampleRiskCocoapods/Pods/Risk/README.md | 10 +++++----- .../Pods/Risk/Sources/Core/Constants.swift | 3 ++- .../Pods/Risk/Sources/Core/LoggerService.swift | 2 +- .../Pods/Target Support Files/Risk/Risk-Info.plist | 2 +- 6 files changed, 17 insertions(+), 16 deletions(-) diff --git a/iOSExampleRiskCocoapods/Podfile.lock b/iOSExampleRiskCocoapods/Podfile.lock index 3250839..2fba03d 100644 --- a/iOSExampleRiskCocoapods/Podfile.lock +++ b/iOSExampleRiskCocoapods/Podfile.lock @@ -1,12 +1,12 @@ PODS: - CheckoutEventLoggerKit (1.2.4) - FingerprintPro (2.2.0) - - Risk (0.0.2): + - Risk (1.0.0): - CheckoutEventLoggerKit (~> 1.2.4) - FingerprintPro (= 2.2.0) DEPENDENCIES: - - Risk (= 0.0.2) + - Risk (= 1.0.0) SPEC REPOS: trunk: @@ -17,8 +17,8 @@ SPEC REPOS: SPEC CHECKSUMS: CheckoutEventLoggerKit: b780dec46295a34942780ea6230d0d5fd08aa05a FingerprintPro: 72e35dc0315b75ba36eafaaed996dbb2f35f7326 - Risk: e199436b726d1f9c7c83fe1ed15cf7e19470abd3 + Risk: 91ed45ee208965709c3069ee6834b41045146002 -PODFILE CHECKSUM: e91d0a4882d157474dec6038556d1cd5790432c3 +PODFILE CHECKSUM: 8ec9973f25868276095af561a70efb2b105a19ac COCOAPODS: 1.14.3 diff --git a/iOSExampleRiskCocoapods/Pods/Manifest.lock b/iOSExampleRiskCocoapods/Pods/Manifest.lock index 3250839..2fba03d 100644 --- a/iOSExampleRiskCocoapods/Pods/Manifest.lock +++ b/iOSExampleRiskCocoapods/Pods/Manifest.lock @@ -1,12 +1,12 @@ PODS: - CheckoutEventLoggerKit (1.2.4) - FingerprintPro (2.2.0) - - Risk (0.0.2): + - Risk (1.0.0): - CheckoutEventLoggerKit (~> 1.2.4) - FingerprintPro (= 2.2.0) DEPENDENCIES: - - Risk (= 0.0.2) + - Risk (= 1.0.0) SPEC REPOS: trunk: @@ -17,8 +17,8 @@ SPEC REPOS: SPEC CHECKSUMS: CheckoutEventLoggerKit: b780dec46295a34942780ea6230d0d5fd08aa05a FingerprintPro: 72e35dc0315b75ba36eafaaed996dbb2f35f7326 - Risk: e199436b726d1f9c7c83fe1ed15cf7e19470abd3 + Risk: 91ed45ee208965709c3069ee6834b41045146002 -PODFILE CHECKSUM: e91d0a4882d157474dec6038556d1cd5790432c3 +PODFILE CHECKSUM: 8ec9973f25868276095af561a70efb2b105a19ac COCOAPODS: 1.14.3 diff --git a/iOSExampleRiskCocoapods/Pods/Risk/README.md b/iOSExampleRiskCocoapods/Pods/Risk/README.md index 85acdf1..8cbd63e 100644 --- a/iOSExampleRiskCocoapods/Pods/Risk/README.md +++ b/iOSExampleRiskCocoapods/Pods/Risk/README.md @@ -1,9 +1,9 @@ # Risk iOS package - - +![license](https://img.shields.io/github/license/checkout/checkout-risk-sdk-ios.svg) + The package helps collect device data for merchants with direct integration (standalone) with the package and those using [Checkout's Frames iOS package](https://github.com/checkout/frames-ios). ## Table of contents @@ -27,7 +27,7 @@ The package helps collect device data for merchants with direct integration (sta ## Documentation ### Usage guide - 1. Add `Risk` as a package dependency - _see [Installation guide](https://github.com/checkout/checkout-risk-sdk-ios/blob/main/.github/partial-readmes/Integration.md) on how to add our SDK in your iOS app via SPM or Cocoapods._ + 1. Add `Risk` as a package dependency - _see [Installation guide](https://github.com/checkout/checkout-risk-sdk-ios/blob/main/.github/partial-readmes/Installation.md) on how to add our SDK in your iOS app via SPM or Cocoapods._ 2. Obtain a public API key from [Checkout Dashboard](https://dashboard.checkout.com/developers/keys). 3. Initialise the package with the `getInstance` method passing in the required configuration (public API key and environment), then publish the device data with the `publishData` method, see example below. ```swift @@ -118,7 +118,7 @@ The package exposes two methods: ### Additional Resources - + - [Frames iOS SDK documentation](https://www.checkout.com/docs/developer-resources/sdks/frames-ios-sdk) ## Demo projects diff --git a/iOSExampleRiskCocoapods/Pods/Risk/Sources/Core/Constants.swift b/iOSExampleRiskCocoapods/Pods/Risk/Sources/Core/Constants.swift index a5ab808..e23ace0 100644 --- a/iOSExampleRiskCocoapods/Pods/Risk/Sources/Core/Constants.swift +++ b/iOSExampleRiskCocoapods/Pods/Risk/Sources/Core/Constants.swift @@ -9,6 +9,7 @@ import Foundation enum Constants { static let productName = "risk-ios-sdk" - static let version = "0.0.1" + static let version = "1.0.0" static let userAgent = "checkout-sdk-risk-ios/\(version)" + static let loggerTypeIdentifier = "com.checkout.risk-mobile-sdk" } diff --git a/iOSExampleRiskCocoapods/Pods/Risk/Sources/Core/LoggerService.swift b/iOSExampleRiskCocoapods/Pods/Risk/Sources/Core/LoggerService.swift index cec227a..bca23c5 100644 --- a/iOSExampleRiskCocoapods/Pods/Risk/Sources/Core/LoggerService.swift +++ b/iOSExampleRiskCocoapods/Pods/Risk/Sources/Core/LoggerService.swift @@ -74,7 +74,7 @@ extension LoggerServiceProtocol { } return Event( - typeIdentifier: "com.checkout.risk-mobile-sdk", + typeIdentifier: Constants.loggerTypeIdentifier, time: Date(), monitoringLevel: monitoringLevel, properties: properties diff --git a/iOSExampleRiskCocoapods/Pods/Target Support Files/Risk/Risk-Info.plist b/iOSExampleRiskCocoapods/Pods/Target Support Files/Risk/Risk-Info.plist index aa57310..19cf209 100644 --- a/iOSExampleRiskCocoapods/Pods/Target Support Files/Risk/Risk-Info.plist +++ b/iOSExampleRiskCocoapods/Pods/Target Support Files/Risk/Risk-Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 0.0.2 + 1.0.0 CFBundleSignature ???? CFBundleVersion From d0e4c31788ff11fcf37e610553ef22be9d309d8a Mon Sep 17 00:00:00 2001 From: Precious OSSAI Date: Tue, 6 Feb 2024 16:26:25 +0000 Subject: [PATCH 4/5] chore --- .github/workflows/publish-Risk.podspec.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-Risk.podspec.yml b/.github/workflows/publish-Risk.podspec.yml index 5885c1d..e5e2584 100644 --- a/.github/workflows/publish-Risk.podspec.yml +++ b/.github/workflows/publish-Risk.podspec.yml @@ -12,6 +12,7 @@ jobs: - name: Publish to CocoaPods register run: | gem install cocoapods - pod trunk push Risk.podspec --allow-warnings --skip-import-validation + pod spec lint Risk.podspec --verbose + pod trunk push Risk.podspec --allow-warnings --verbose env: COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} From 4df631b25f28a17b2fc75c86a51230392471b631 Mon Sep 17 00:00:00 2001 From: Precious OSSAI <111347791+precious-ossai-cko@users.noreply.github.com> Date: Tue, 6 Feb 2024 16:40:05 +0000 Subject: [PATCH 5/5] chore: remove verbose flags --- .github/workflows/publish-Risk.podspec.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/publish-Risk.podspec.yml b/.github/workflows/publish-Risk.podspec.yml index e5e2584..c5451f8 100644 --- a/.github/workflows/publish-Risk.podspec.yml +++ b/.github/workflows/publish-Risk.podspec.yml @@ -12,7 +12,6 @@ jobs: - name: Publish to CocoaPods register run: | gem install cocoapods - pod spec lint Risk.podspec --verbose - pod trunk push Risk.podspec --allow-warnings --verbose + pod trunk push Risk.podspec --allow-warnings env: COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}