Skip to content

Commit

Permalink
Merge pull request #4 from innovatrics/documents-common
Browse files Browse the repository at this point in the history
added document commons module
  • Loading branch information
theredsunrise authored Jun 27, 2024
2 parents 0c8e4c1 + 4cec4f5 commit 57ed9d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .scripts/prepare_swift_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ assert_zip_content DotCamera.zip
CHECKSUM=$(sha256sum DotCamera.zip | awk '{print $1}')
sed -i "s/{checksum_camera}/$CHECKSUM/g" Package.swift

curl -O "https://s3.eu-central-1.amazonaws.com/ios-frameworks.innovatrics.com/dot-document-commons/$RELEASE_VERSION/DotDocumentCommons.zip"
assert_zip_content DotDocumentCommons.zip
CHECKSUM=$(sha256sum DotDocumentCommons.zip | awk '{print $1}')
sed -i "s/{checksum_document_commons}/$CHECKSUM/g" Package.swift

curl -O "https://s3.eu-central-1.amazonaws.com/ios-frameworks.innovatrics.com/dot-face-commons/$RELEASE_VERSION/DotFaceCommons.zip"
assert_zip_content DotFaceCommons.zip
CHECKSUM=$(sha256sum DotFaceCommons.zip | awk '{print $1}')
Expand Down
7 changes: 4 additions & 3 deletions .template/Package_template.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ import PackageDescription

let package = Package(
name: "DotSdk",
platforms: [.iOS(.v11)],
platforms: [.iOS(.v12)],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "DotFaceLite",
targets: ["DotFaceLite", "SamFace", "DotProtocolBuffers", "DotCore", "DotCamera", "DotFaceCommons", "DotCapture"]),
.library(
name: "DotDocument",
targets: ["DotDocument", "sam", "DotCore", "DotCamera", "DotProtocolBuffers", "DotCapture"]),
targets: ["DotDocument", "sam", "DotCore", "DotCamera", "DotProtocolBuffers", "DotDocumentCommons", "DotCapture"]),
.library(
name: "DotNfc",
targets: ["DotNfc", "DotOpenSSL", "DotCore"]),
targets: ["DotNfc", "DotOpenSSL", "DotDocumentCommons", "DotCore"]),
.library(
name: "DotFaceVerification",
targets: ["DotFaceVerification", "DotFaceCore", "iface", "innoonnxruntime", "DotProtocolBuffers", "DotCore", "DotCamera", "DotFaceCommons", "DotCapture"]),
Expand Down Expand Up @@ -52,6 +52,7 @@ let package = Package(
.binaryTarget(name: "DotCapture", url: "https://s3.eu-central-1.amazonaws.com/ios-frameworks.innovatrics.com/dot-capture/{version}/DotCapture.zip", checksum: "{checksum_capture}"),
.binaryTarget(name: "DotCamera", url: "https://s3.eu-central-1.amazonaws.com/ios-frameworks.innovatrics.com/dot-camera/{version}/DotCamera.zip", checksum: "{checksum_camera}"),
.binaryTarget(name: "DotFaceCommons", url: "https://s3.eu-central-1.amazonaws.com/ios-frameworks.innovatrics.com/dot-face-commons/{version}/DotFaceCommons.zip", checksum: "{checksum_face_commons}"),
.binaryTarget(name: "DotDocumentCommons", url: "https://s3.eu-central-1.amazonaws.com/ios-frameworks.innovatrics.com/dot-document-commons/{version}/DotDocumentCommons.zip", checksum: "{checksum_document_commons}"),
.binaryTarget(name: "DotNfc", url: "https://s3.eu-central-1.amazonaws.com/ios-frameworks.innovatrics.com/dot-nfc/{version}/DotNfc.zip", checksum: "{checksum_nfc}"),
.binaryTarget(name: "DotDocument", url: "https://s3.eu-central-1.amazonaws.com/ios-frameworks.innovatrics.com/dot-document/{version}/DotDocument.zip", checksum: "{checksum_document}"),
.binaryTarget(name: "DotFaceLite", url: "https://s3.eu-central-1.amazonaws.com/ios-frameworks.innovatrics.com/dot-face-lite/{version}/DotFaceLite.zip", checksum: "{checksum_face_lite}"),
Expand Down

0 comments on commit 57ed9d7

Please sign in to comment.