diff --git a/.gitignore b/.gitignore index 9ea94898..d73ece4c 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ Cargo.lock uniffi/targets uniffi/wrappers libanoncreds.xcframework.zip -uniffi/output-frameworks/anoncreds-swift/AnoncredsSwift/Sources/Swift/*.swift \ No newline at end of file +uniffi/output-frameworks/anoncreds-swift/AnoncredsSwift/Sources/Swift/*.swift +.swiftpm \ No newline at end of file diff --git a/uniffi/output-frameworks/anoncreds-swift/Package.swift b/Package.swift similarity index 51% rename from uniffi/output-frameworks/anoncreds-swift/Package.swift rename to Package.swift index 07f7985d..87fe1253 100644 --- a/uniffi/output-frameworks/anoncreds-swift/Package.swift +++ b/Package.swift @@ -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" ) ] )