From df875b2a74335071ea92dbae66bdec3444554ad5 Mon Sep 17 00:00:00 2001 From: MaksymVereshchaka <39240731+MaksymVereshchaka@users.noreply.github.com> Date: Wed, 3 May 2023 21:10:21 +0300 Subject: [PATCH 1/2] Update Package.swift --- Package.swift | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/Package.swift b/Package.swift index 96a315782..2bfb3697a 100755 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version: 5.5.0 +// swift-tools-version: 5.7.0 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription @@ -13,17 +13,25 @@ let package = Package( ], dependencies: [ .package(url: "https://github.com/attaswift/BigInt.git", from: "5.3.0"), - .package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", from: "1.5.1") + .package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", from: "1.5.1"), + .package(url: "https://github.com/GigaBitcoin/secp256k1.swift", .upToNextMinor(from: "0.10.0")), ], targets: [ - .target(name: "secp256k1"), .target( name: "Web3Core", - dependencies: ["BigInt", "secp256k1", "CryptoSwift"] + dependencies: [ + .product(name: "secp256k1", package: "secp256k1.swift"), + "BigInt", + "CryptoSwift" + ] ), .target( name: "web3swift", - dependencies: ["Web3Core", "BigInt", "secp256k1"], + dependencies: [ + .product(name: "secp256k1", package: "secp256k1.swift"), + "Web3Core", + "BigInt", + ], resources: [ .copy("./Browser/browser.js"), .copy("./Browser/browser.min.js"), From 723d0547efcbd937b1e5bebfe1e9b1721af5b9fc Mon Sep 17 00:00:00 2001 From: MaksymVereshchaka <39240731+MaksymVereshchaka@users.noreply.github.com> Date: Wed, 3 May 2023 21:22:56 +0300 Subject: [PATCH 2/2] Update Package.swift --- Package.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Package.swift b/Package.swift index 2bfb3697a..637f8851b 100755 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version: 5.7.0 +// swift-tools-version: 5.5.0 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription @@ -14,13 +14,13 @@ let package = Package( dependencies: [ .package(url: "https://github.com/attaswift/BigInt.git", from: "5.3.0"), .package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", from: "1.5.1"), - .package(url: "https://github.com/GigaBitcoin/secp256k1.swift", .upToNextMinor(from: "0.10.0")), + .package(name: "secp256k1", url: "https://github.com/GigaBitcoin/secp256k1.swift", .upToNextMinor(from: "0.10.0")), ], targets: [ .target( name: "Web3Core", dependencies: [ - .product(name: "secp256k1", package: "secp256k1.swift"), + "secp256k1", "BigInt", "CryptoSwift" ] @@ -28,7 +28,7 @@ let package = Package( .target( name: "web3swift", dependencies: [ - .product(name: "secp256k1", package: "secp256k1.swift"), + "secp256k1", "Web3Core", "BigInt", ],