fix: add secp256k1 dependency to resolve spm import error (#429)

This commit is contained in:
Chris
2025-08-11 13:09:19 -07:00
committed by GitHub
parent 29f1308e37
commit 04c2b0caa6
2 changed files with 21 additions and 1 deletions

14
Package.resolved Normal file
View File

@@ -0,0 +1,14 @@
{
"pins" : [
{
"identity" : "swift-secp256k1",
"kind" : "remoteSourceControl",
"location" : "https://github.com/21-DOT-DEV/swift-secp256k1",
"state" : {
"revision" : "8c62aba8a3011c9bcea232e5ee007fb0b34a15e2",
"version" : "0.21.1"
}
}
],
"version" : 2
}

View File

@@ -14,9 +14,15 @@ let package = Package(
targets: ["bitchat"]
),
],
dependencies:[
.package(url: "https://github.com/21-DOT-DEV/swift-secp256k1", exact: "0.21.1"),
],
targets: [
.executableTarget(
name: "bitchat",
dependencies: [
.product(name: "P256K", package: "swift-secp256k1")
],
path: "bitchat",
exclude: [
"Info.plist",
@@ -27,4 +33,4 @@ let package = Package(
]
),
]
)
)