Skip to content

Commit

Permalink
Add Package.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
jurvis committed May 2, 2022
1 parent 129a4b4 commit 8884c21
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LibWally.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@

/* Begin PBXFileReference section */
754D4D172811111B00216F1E /* libsecp256k1.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libsecp256k1.a; path = "CLibWally/libwally-core/src/secp256k1/.libs/libsecp256k1.a"; sourceTree = "<group>"; };
757DBE97281E181D00AE30F2 /* Package.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = "<group>"; };
A20557A522C6CDBE007221AA /* LibWally.modulemap */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = "sourcecode.module-map"; path = LibWally.modulemap; sourceTree = "<group>"; };
A20C942422C6BC3900B0D206 /* libwallycore.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libwallycore.a; path = "CLibWally/libwally-core/src/.libs/libwallycore.a"; sourceTree = "<group>"; };
A20C942622C6BDB000B0D206 /* CLibWally */ = {isa = PBXFileReference; lastKnownFileType = folder; path = CLibWally; sourceTree = "<group>"; };
Expand Down Expand Up @@ -102,6 +103,7 @@
FE9CD3A7229C397900345DFA = {
isa = PBXGroup;
children = (
757DBE97281E181D00AE30F2 /* Package.swift */,
A20C942622C6BDB000B0D206 /* CLibWally */,
FE39CDF5229D534100DD135E /* DemoPlayground.playground */,
FE9CD3B3229C397900345DFA /* LibWally */,
Expand Down
26 changes: 26 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// swift-tools-version:5.3
import PackageDescription

let tag = "0.0.7"
let checksum = "62aca7cefdf59cfe96d152e12cfd56387e9960e99523527ff478508f70ac25da"
let url = "https://github.com/jurvis/libwally-swift/releases/download/\(tag)/LibWally.xcframework.zip"

let package = Package(
name: "LibWally",
platforms: [
.iOS(.v11)
],
products: [
.library(
name: "LibWally",
targets: ["LibWally"]
)
],
targets: [
.binaryTarget(
name: "LibWally",
url: url,
checksum: checksum
)
]
)

0 comments on commit 8884c21

Please sign in to comment.