Skip to content

Commit

Permalink
Merge pull request #765 from gini/Document_links_fix
Browse files Browse the repository at this point in the history
Fix mapping for Document using a document link not extractions
  • Loading branch information
zladzeyka authored Jan 14, 2025
2 parents f7b8a2b + e5d26c0 commit 8ade690
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@ jobs:
- name: Setup Credentials
run: |
plutil -replace client_id -string "gini-mobile-test" HealthSDK/GiniHealthSDKExample/GiniHealthSDKExample/CredentialsManager.swift
plutil -replace client_password -string "${{ secrets.GINI_MOBILE_TEST_CLIENT_SECRET }}" HealthSDK/GiniHealthSDKExample/GiniHealthSDKExample/CredentialsManager.swift
sed -i '' \
-e 's/clientID = "client_id"/clientID = "gini-mobile-test"/' \
-e 's/clientPassword = "client_password"/clientPassword = "${{ secrets.GINI_MOBILE_TEST_CLIENT_SECRET }}"/' \
HealthSDK/GiniHealthSDKExample/GiniHealthSDKExample/CredentialsManager.swift
- name: Archiving project
run: |
xcodebuild clean archive \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ Once you have your Swift package set up, adding `GiniHealthSDK` as a dependency

```swift
dependencies: [
.package(url: "https://github.com/gini/health-sdk-ios.git", .exact("5.0.0"))
.package(url: "https://github.com/gini/health-sdk-ios.git", .exact("5.0.2"))
]
```
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ extension Document {
origin: Origin(rawValue: healthDocument.origin.rawValue) ?? .unknown,
pageCount: healthDocument.pageCount,
pages: healthDocument.pages?.compactMap { Document.Page(healthPage: $0) },
links: Links(giniAPIDocumentURL: healthDocument.links.extractions),
links: Links(giniAPIDocumentURL: healthDocument.links.document),
partialDocuments: healthDocument.partialDocuments?.compactMap { PartialDocumentInfo(document: $0.document, rotationDelta: $0.rotationDelta) },
progress: Progress(rawValue: healthDocument.progress.rawValue) ?? .completed,
sourceClassification: SourceClassification(rawValue: healthDocument.sourceClassification.rawValue) ?? .scanned,
Expand All @@ -135,7 +135,7 @@ extension Document {
GiniHealthAPILibrary.Document(creationDate: creationDate,
id: id,
name: name,
links: GiniHealthAPILibrary.Document.Links(giniAPIDocumentURL: links.extractions),
links: GiniHealthAPILibrary.Document.Links(giniAPIDocumentURL: links.document),
pageCount: pageCount,
sourceClassification: GiniHealthAPILibrary.Document.SourceClassification(rawValue: sourceClassification.rawValue) ?? .scanned,
expirationDate: expirationDate)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
// Copyright © 2024 Gini GmbH. All rights reserved.
//

public let GiniHealthSDKVersion = "5.0.1"
public let GiniHealthSDKVersion = "5.0.2"

0 comments on commit 8ade690

Please sign in to comment.