From a6828a5d215413c7a9db6f019e90be3e379ed90a Mon Sep 17 00:00:00 2001 From: goncalo-frade-iohk Date: Sun, 27 Aug 2023 17:56:10 +0100 Subject: [PATCH] feat(swift): add swift package 0.1.0 release --- .gitignore | 3 ++- .../anoncreds-swift/Package.swift => Package.swift | 13 ++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) rename uniffi/output-frameworks/anoncreds-swift/Package.swift => Package.swift (51%) 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" ) ] )