Skip to content

Commit

Permalink
feat(swift): add swift package 0.1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
goncalo-frade-iohk committed Aug 27, 2023
1 parent e45f06c commit a6828a5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ Cargo.lock
uniffi/targets
uniffi/wrappers
libanoncreds.xcframework.zip
uniffi/output-frameworks/anoncreds-swift/AnoncredsSwift/Sources/Swift/*.swift
uniffi/output-frameworks/anoncreds-swift/AnoncredsSwift/Sources/Swift/*.swift
.swiftpm
13 changes: 10 additions & 3 deletions ...-frameworks/anoncreds-swift/Package.swift → Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,22 @@ let package = Package(
.target(
name: "AnoncredsSwift",
dependencies: ["anoncredsFFI"],
path: "AnoncredsSwift/Sources/Swift"
path: "uniffi/output-frameworks/anoncreds-swift/AnoncredsSwift/Sources/Swift"
),
.target(
name: "anoncredsFFI",
dependencies: ["libanoncreds"],
path: "AnoncredsSwift/Sources/C"),
path: "uniffi/output-frameworks/anoncreds-swift/AnoncredsSwift/Sources/C"),
// LOCAL
// .binaryTarget(
// name: "libanoncreds",
// path: "./uniffi/output-frameworks/anoncreds-swift/libanoncreds.xcframework.zip"
// )
// RELEASE
.binaryTarget(
name: "libanoncreds",
path: "./libanoncreds.xcframework.zip"
url: "https://github.com/input-output-hk/anoncreds-rs/releases/download/0.1.0/libanoncreds.xcframework.zip",
checksum: "1a137728ea51214a0159cc05f6820f199ab6d9f9c0be7f8685af69ed65e07b9a"
)
]
)

0 comments on commit a6828a5

Please sign in to comment.