Skip to content

Commit

Permalink
Release version 1.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Team Mobile Schorsch committed Sep 1, 2022
1 parent bf0d801 commit 0cf4539
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 23 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.9.0"))
.package(url: "https://github.com/gini/capture-sdk-ios.git", .exact("1.9.1"))
]
```

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.9.0"))
.package(url: "https://github.com/gini/capture-sdk-pinning-ios.git", .exact("1.9.1"))
]
```

Expand Down
19 changes: 0 additions & 19 deletions Sources/GiniCaptureSDK/Core/Screens/Camera/Camera.swift
Original file line number Diff line number Diff line change
Expand Up @@ -303,25 +303,6 @@ extension Camera: AVCaptureMetadataOutputObjectsDelegate {
// MARK: - AVCapturePhotoCaptureDelegate

extension Camera: AVCapturePhotoCaptureDelegate {
//swiftlint:disable function_parameter_count
func photoOutput(_ output: AVCapturePhotoOutput,
didFinishProcessingPhoto photoSampleBuffer: CMSampleBuffer?,
previewPhoto previewPhotoSampleBuffer: CMSampleBuffer?,
resolvedSettings: AVCaptureResolvedPhotoSettings,
bracketSettings: AVCaptureBracketedStillImageSettings?,
error: Error?) {
guard let buffer = photoSampleBuffer,
let imageData = AVCapturePhotoOutput
.jpegPhotoDataRepresentation(forJPEGSampleBuffer: buffer,
previewPhotoSampleBuffer: previewPhotoSampleBuffer),
error == nil else {
didCaptureImageHandler?(nil, .captureFailed)
return
}

didCaptureImageHandler?(imageData, nil)
}

func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?){
if error != nil {
didCaptureImageHandler?(nil, .captureFailed)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ public final class ImageAnalysisNoResultsViewController: UIViewController {
self.title = title
self.subHeaderTitle = subHeaderText
self.topViewText = topViewText
self.topViewIcon = topViewIcon
if let topViewIcon = topViewIcon {
self.topViewIcon = topViewIcon.tintedImageWithColor(giniConfiguration.noResultsWarningContainerIconColor)
}
self.bottomButtonText = bottomButtonText
self.bottomButtonIconImage = bottomButtonIcon
}
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.9.0"
public let GiniCaptureSDKVersion = "1.9.1"

0 comments on commit 0cf4539

Please sign in to comment.