Skip to content

Commit

Permalink
fix: add a missing file that was ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
goncalo-frade-iohk committed Aug 23, 2023
1 parent 6455f59 commit e45f06c
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ Cargo.lock
uniffi/targets
uniffi/wrappers
libanoncreds.xcframework.zip
*.swift
uniffi/output-frameworks/anoncreds-swift/AnoncredsSwift/Sources/Swift/*.swift
1 change: 1 addition & 0 deletions uniffi/build-release-apple-universal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ zip -r "$dest_dir/$zip_name" "$source_dir/$target_dir_name"

echo "Copy .swift binders"
rm -f "./output-frameworks/anoncreds-swift/AnoncredsSwift/Sources/Swift/anoncreds.swift" || true
mkdir -p ./output-frameworks/anoncreds-swift/AnoncredsSwift/Sources/Swift || true
mv "./wrappers/swift/anoncreds/anoncreds.swift" "./output-frameworks/anoncreds-swift/AnoncredsSwift/Sources/Swift/anoncreds.swift"

rm -f "/wrappers/swift/anoncreds/anoncreds.swift" || true
Expand Down
32 changes: 32 additions & 0 deletions uniffi/output-frameworks/anoncreds-swift/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// swift-tools-version:5.7
import PackageDescription

let package = Package(
name: "AnoncredsSwift",
platforms: [
.iOS(.v13),
.macOS(.v12)
],
products: [
.library(
name: "AnoncredsSwift",
type: .dynamic,
targets: ["AnoncredsSwift"]
),
],
targets: [
.target(
name: "AnoncredsSwift",
dependencies: ["anoncredsFFI"],
path: "AnoncredsSwift/Sources/Swift"
),
.target(
name: "anoncredsFFI",
dependencies: ["libanoncreds"],
path: "AnoncredsSwift/Sources/C"),
.binaryTarget(
name: "libanoncreds",
path: "./libanoncreds.xcframework.zip"
)
]
)

0 comments on commit e45f06c

Please sign in to comment.