Skip to content

Commit

Permalink
Release version 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Team Mobile Schorsch committed Apr 27, 2022
1 parent 977a7a6 commit a1635d6
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Documentation/source/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ Once you have your Swift package set up, adding `GiniCaptureSDK` as a dependency

```swift
dependencies: [
.package(url: "https://github.com/gini/capture-sdk-ios.git", .exact("1.5.0"))
.package(url: "https://github.com/gini/capture-sdk-ios.git", .exact("1.6.0"))
]
```

In case that you want to use the certificate pinning in the library, add `GiniCaptureSDKPinning`:
```swift
dependencies: [
.package(url: "https://github.com/gini/capture-sdk-pinning-ios.git", .exact("1.5.0"))
.package(url: "https://github.com/gini/capture-sdk-pinning-ios.git", .exact("1.6.0"))
]
```

Expand Down
9 changes: 7 additions & 2 deletions Documentation/source/Integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,14 @@ The components that can be found in the SDK are:

Your app should send feedback for the extractions the Gini Bank API delivered. Feedback should be sent only for the extractions the user has seen and accepted (or corrected).

We provide a sample test case [here](https://github.com/gini/gini-mobile-ios/blob/main/CaptureSDK/GiniCaptureSDKExample/Tests/ExtractionFeedbackIntegrationTest.swift) to verify that extraction feedback sending works.
You may use it along with the example pdf and json files as a starting point to write your own test case.

The sample test case is based on the Bank API documentation's [recommended steps](https://pay-api.gini.net/documentation/#test-example) for testing extraction feedback sending.

For additional information about feedback see the [Gini Bank API documentation](https://pay-api.gini.net/documentation/#send-feedback-and-get-even-better-extractions-next-time).

### Default Implementation
### Default networking implementation

The example below shows how to correct extractions and send feedback using the default networking implementation:

Expand All @@ -138,7 +143,7 @@ updatedExtractions.map{$0.value}.first(where: {$0.name == "amountToPay"})?.value
sendFeedbackBlock(updatedExtractions)

```
### Custom Implementation
### Custom networking implementation

If you use your own networking implementation and directly communicate with the Gini Bank API then see [this section](https://pay-api.gini.net/documentation/#submitting-feedback-on-extractions) in its documentation on how to send feedback.

Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let package = Package(
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(name: "GiniBankAPILibrary", url: "https://github.com/gini/bank-api-library-ios.git", .exact("1.1.1")),
.package(name: "GiniBankAPILibrary", url: "https://github.com/gini/bank-api-library-ios.git", .exact("1.2.0")),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
Expand Down
2 changes: 1 addition & 1 deletion Sources/GiniCaptureSDK/Core/GiniCapture.swift
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public typealias GiniCaptureNetworkDelegate = AnalysisDelegate & UploadDelegate
If there is an error retrieving the version the returned value will be an empty string.
*/
@objc public static var versionString: String {
return "GiniCapture"
return GiniCaptureSDKVersion
}

/**
Expand Down
2 changes: 1 addition & 1 deletion Sources/GiniCaptureSDK/GiniCaptureSDKVersion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
// Created by Nadya Karaban on 29.10.21.
//

public let GiniCaptureSDKVersion = "1.5.0"
public let GiniCaptureSDKVersion = "1.6.0"
2 changes: 1 addition & 1 deletion Sources/GiniCaptureSDK/Networking/AnalysisResult.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import GiniBankAPILibrary
* Specific extractions obtained in the analysis.
*
* Besides the list of extractions that can be found
* [here](http://developer.gini.net/gini-api/html/document_extractions.html#available-specific-extractions),
* [here](https://pay-api.gini.net/documentation/#specific-extractions),
* it can also return the epsPaymentQRCodeUrl extraction, obtained from a EPS QR code.
*/
public let extractions: [String: Extraction]
Expand Down

0 comments on commit a1635d6

Please sign in to comment.