forked from hyperledger/aries-vcx
-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
846a6d7
commit 619c665
Showing
2 changed files
with
53 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// swift-tools-version: 5.10 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
// swift-tools-version: 5.10 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
import class Foundation.ProcessInfo | ||
|
||
let package = Package( | ||
name: "InstntAriesFrameworkVCX", | ||
products: [ | ||
.library( | ||
name: "InstntAriesFrameworkVCX", | ||
targets: ["InstntAriesFrameworkVCX"]), | ||
], | ||
targets: [ | ||
.target( | ||
name: "InstntAriesVCX", | ||
path: "aries_framework_vcx/ios/Source" | ||
), | ||
] | ||
) | ||
|
||
let InstntAriesVCXTarget = package.targets.first(where: { $0.name == "InstntAriesFrameworkVCX" }) | ||
|
||
if ProcessInfo.processInfo.environment["USE_LOCAL_XCFRAMEWORK"] == nil { | ||
package.targets.append(.binaryTarget( | ||
name: "VCX_uniffiFFI_Lib_zip", | ||
path: url: "https://github.com/instnt-inc/instnt-aries-vcx/releases/download/aries-framework-vcx-uniffi-ios/vcx.xcframework.zip", | ||
checksum: "cb1fa78a18a5a5bcd22ffa6c7eba494ff374fa2ab1166b4900640430aeda6194" | ||
)) | ||
|
||
InstntAriesVCXTarget?.dependencies.append("VCX_uniffiFFI_Lib_zip") | ||
|
||
} else { | ||
package.targets.append(.binaryTarget( | ||
name: "uniffiFFI_local", | ||
path: "aries_framework_vcx/ios/Frameworks/vcx.xcframework")) | ||
|
||
InstntAriesVCXTarget?.dependencies.append("uniffiFFI_local") | ||
|
||
} | ||
|
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