-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Team Mobile Schorsch
committed
Nov 26, 2024
1 parent
fc825d5
commit 693b559
Showing
29 changed files
with
283 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
Sources/GiniCaptureSDK/Core/Extensions/GiniBankDocument+Convenience.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// | ||
// GiniBankDocument+Convenience.swift | ||
// | ||
// Copyright © 2024 Gini GmbH. All rights reserved. | ||
// | ||
|
||
import GiniBankAPILibrary | ||
import UIKit | ||
|
||
extension Document.UploadMetadata { | ||
convenience init( | ||
interfaceOrientation: UIInterfaceOrientation, | ||
documentSource: DocumentSource, | ||
importMethod: DocumentImportMethod? | ||
) { | ||
self.init( | ||
giniCaptureVersion: GiniCaptureSDKVersion, | ||
deviceOrientation: interfaceOrientation.isLandscape ? "landscape" : "portrait", | ||
source: documentSource.value, | ||
importMethod: importMethod?.rawValue ?? "", | ||
entryPoint: GiniConfiguration.shared.entryPoint.stringValue, | ||
osVersion: UIDevice.current.systemVersion | ||
) | ||
} | ||
|
||
convenience init( | ||
deviceOrientation: UIDeviceOrientation, | ||
documentSource: DocumentSource, | ||
importMethod: DocumentImportMethod? | ||
) { | ||
self.init( | ||
giniCaptureVersion: GiniCaptureSDKVersion, | ||
deviceOrientation: deviceOrientation.isLandscape ? "landscape" : "portrait", | ||
source: documentSource.value, | ||
importMethod: importMethod?.rawValue ?? "", | ||
entryPoint: GiniConfiguration.shared.entryPoint.stringValue, | ||
osVersion: UIDevice.current.systemVersion | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.