From 81ceee5f6057e2c5f41f29582eb42da863d20bc3 Mon Sep 17 00:00:00 2001 From: Team Mobile Schorsch Date: Thu, 7 Sep 2023 10:55:39 +0000 Subject: [PATCH] Release version 1.14.0 --- Package.swift | 4 +- README.md | 13 ++-- .../GiniCapture+Pinning.swift | 4 +- .../GiniCaptureSDKPinningVersion.swift | 2 +- .../PrivacyInfo.xcprivacy | 64 +++++++++++++++++++ 5 files changed, 79 insertions(+), 8 deletions(-) create mode 100644 Sources/GiniCaptureSDKPinning/PrivacyInfo.xcprivacy diff --git a/Package.swift b/Package.swift index 7cded74..b91fb9f 100644 --- a/Package.swift +++ b/Package.swift @@ -16,8 +16,8 @@ let package = Package( dependencies: [ // Dependencies declare other packages that this package depends on. // .package(url: /* package url */, from: "1.0.0"), - .package(name: "GiniBankAPILibraryPinning", url: "https://github.com/gini/bank-api-library-pinning-ios.git", .exact("3.1.0")), - .package(name: "GiniCaptureSDK", url: "https://github.com/gini/capture-sdk-ios.git", .exact("3.2.0")), + .package(name: "GiniBankAPILibraryPinning", url: "https://github.com/gini/bank-api-library-pinning-ios.git", .exact("1.6.1")), + .package(name: "GiniCaptureSDK", url: "https://github.com/gini/capture-sdk-ios.git", .exact("1.14.0")), ], targets: [ // Targets are the basic building blocks of a package. A target can define a module or a test suite. diff --git a/README.md b/README.md index 1da94e7..dc93b12 100644 --- a/README.md +++ b/README.md @@ -9,19 +9,24 @@ [![Swift version](https://img.shields.io/badge/swift-5.0-orange.svg)]() [![Swift package manager](https://img.shields.io/badge/Swift_Package_Manager-compatible-orange?style=flat-square)]() + The Gini Capture SDK Pinning provides components for capturing, reviewing and analyzing photos of invoices and remittance slips. The sdk supports certificate pinning. -By integrating this SDK into your application you can allow your users to easily take a picture of a document, review it and getting analysis results from the Gini backend. +By integrating this sdk into your application you can allow your users to easily take a picture of a document, review it and get analysis results from the Gini backend. -We provide pre-defined screens that can be customized in a limited way. The screen and configuration design is based on our long-lasting experience with integration in customer apps. +The Gini Capture SDK Pinning can be integrated in two ways, either by using the *Screen API* or the *Component API*. In the Screen API we provide pre-defined screens that can be customized in a limited way. The screen and configuration design is based on our long-lasting experience with integration in customer apps. In the Component API, we provide independent views so you can design your own application as you wish. We strongly recommend keeping in mind our UI/UX guidelines, however. -On *iPhone*, the Gini Capture SDK has been designed for portrait orientation. -On *iPad* we support portrait and landscape orientations. +On *iPhone*, the Gini Capture SDK Pinning has been designed for portrait orientation. In the Screen API, orientation is automatically forced to portrait when being displayed. In case you use the Component API, you should limit the view controllers orientation hosting the Component API's views to portrait orientation. This is specifically true for the camera view. ## Documentation Further documentation with installation, integration or customization guides can be found in our [website](https://developer.gini.net/gini-mobile-ios/GiniCaptureSDK/). +## Example + +We are providing example apps for Swift. These apps demonstrate how to integrate the Gini Capture SDK Pinning with the Screen API and Component API. To run the example project, clone the repo and run `pod install` from the Example directory first. +To inject your API credentials into the Example app, just add to the Example directory the `Credentials.plist` file. + ## Requirements - iOS 12+ diff --git a/Sources/GiniCaptureSDKPinning/GiniCapture+Pinning.swift b/Sources/GiniCaptureSDKPinning/GiniCapture+Pinning.swift index a7197a8..f59f5e0 100644 --- a/Sources/GiniCaptureSDKPinning/GiniCapture+Pinning.swift +++ b/Sources/GiniCaptureSDKPinning/GiniCapture+Pinning.swift @@ -23,7 +23,9 @@ extension GiniCapture { There should be either images or one PDF, and they should be validated before calling this method. - parameter resultsDelegate: Results delegate object where you can get the results of the analysis. - parameter publicKeyPinningConfig: Public key pinning configuration. - + + - note: Screen API only. + - returns: A presentable view controller. */ diff --git a/Sources/GiniCaptureSDKPinning/GiniCaptureSDKPinningVersion.swift b/Sources/GiniCaptureSDKPinning/GiniCaptureSDKPinningVersion.swift index af01d31..94b5d79 100644 --- a/Sources/GiniCaptureSDKPinning/GiniCaptureSDKPinningVersion.swift +++ b/Sources/GiniCaptureSDKPinning/GiniCaptureSDKPinningVersion.swift @@ -5,4 +5,4 @@ // Created by Nadya Karaban on 29.10.21. // -public let GiniCaptureSDKPinningVersion = "3.2.0" +public let GiniCaptureSDKPinningVersion = "1.14.0" diff --git a/Sources/GiniCaptureSDKPinning/PrivacyInfo.xcprivacy b/Sources/GiniCaptureSDKPinning/PrivacyInfo.xcprivacy new file mode 100644 index 0000000..abea4f6 --- /dev/null +++ b/Sources/GiniCaptureSDKPinning/PrivacyInfo.xcprivacy @@ -0,0 +1,64 @@ + + + + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + User Defaults + NSPrivacyAccessedAPITypeReasons + + CA92.1 + + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryFileTimestamp + NSPrivacyAccessedAPITypeReasons + + 3B52.1 + + + + NSPrivacyCollectedDataTypes + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeOtherDiagnosticData + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypePhotosorVideos + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypePaymentInfo + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + + + + +