Skip to content

Commit e45f06c

Browse files
fix: add a missing file that was ignored
1 parent 6455f59 commit e45f06c

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ Cargo.lock
88
uniffi/targets
99
uniffi/wrappers
1010
libanoncreds.xcframework.zip
11-
*.swift
11+
uniffi/output-frameworks/anoncreds-swift/AnoncredsSwift/Sources/Swift/*.swift

uniffi/build-release-apple-universal.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ zip -r "$dest_dir/$zip_name" "$source_dir/$target_dir_name"
7272

7373
echo "Copy .swift binders"
7474
rm -f "./output-frameworks/anoncreds-swift/AnoncredsSwift/Sources/Swift/anoncreds.swift" || true
75+
mkdir -p ./output-frameworks/anoncreds-swift/AnoncredsSwift/Sources/Swift || true
7576
mv "./wrappers/swift/anoncreds/anoncreds.swift" "./output-frameworks/anoncreds-swift/AnoncredsSwift/Sources/Swift/anoncreds.swift"
7677

7778
rm -f "/wrappers/swift/anoncreds/anoncreds.swift" || true
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// swift-tools-version:5.7
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "AnoncredsSwift",
6+
platforms: [
7+
.iOS(.v13),
8+
.macOS(.v12)
9+
],
10+
products: [
11+
.library(
12+
name: "AnoncredsSwift",
13+
type: .dynamic,
14+
targets: ["AnoncredsSwift"]
15+
),
16+
],
17+
targets: [
18+
.target(
19+
name: "AnoncredsSwift",
20+
dependencies: ["anoncredsFFI"],
21+
path: "AnoncredsSwift/Sources/Swift"
22+
),
23+
.target(
24+
name: "anoncredsFFI",
25+
dependencies: ["libanoncreds"],
26+
path: "AnoncredsSwift/Sources/C"),
27+
.binaryTarget(
28+
name: "libanoncreds",
29+
path: "./libanoncreds.xcframework.zip"
30+
)
31+
]
32+
)

0 commit comments

Comments
 (0)