Skip to content

Commit

Permalink
Merge pull request #12 from tkey/cocoapods
Browse files Browse the repository at this point in the history
feat: update for cocoapods
  • Loading branch information
chaitanyapotti authored Apr 22, 2024
2 parents ac8f697 + d0d48ad commit 9e93e78
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 7 deletions.
11 changes: 11 additions & 0 deletions License.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Copyright (c) 2020 Torus Labs Private Limited (https://tor.us)

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
8 changes: 4 additions & 4 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"repositoryURL": "https://github.com/tkey/curvelib.swift",
"state": {
"branch": null,
"revision": "2df9f638fd121b445ce3b410cd79ac4d0cfa94ed",
"version": "1.0.0"
"revision": "9f88bd5e56d1df443a908f7a7e81ae4f4d9170ea",
"version": "1.0.1"
}
},
{
Expand Down Expand Up @@ -123,8 +123,8 @@
"repositoryURL": "https://github.com/torusresearch/tss-client-swift.git",
"state": {
"branch": null,
"revision": "30e7ec88b5b854581f2f1dc074cea00462f4142e",
"version": "3.0.0"
"revision": "40246d5e3ff1d2c97d41846576f7a81d58858981",
"version": "4.0.0"
}
},
{
Expand Down
5 changes: 3 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/argentlabs/web3.swift", from:"1.6.0"),
.package(url: "https://github.com/torusresearch/tss-client-swift.git", from: "3.0.0"),
.package(url: "https://github.com/torusresearch/tss-client-swift.git", from: "4.0.0"),
.package(url: "https://github.com/tkey/curvelib.swift", from: "1.0.1"),
],
targets: [
.target(
name: "Web3SwiftMpcProvider",
dependencies: ["web3.swift", "tss-client-swift"],
dependencies: ["web3.swift", .product(name: "tssClientSwift", package: "tss-client-swift"), .product(name: "curveSecp256k1", package: "curvelib.swift")],
path: "Sources/Web3SwiftMpcProvider"
),
.testTarget(
Expand Down
2 changes: 1 addition & 1 deletion Sources/Web3SwiftMpcProvider/EthereumTssAccount.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import BigInt
import Foundation
import curveSecp256k1
import tss_client_swift
import tssClientSwift
import web3

enum CustomSigningError: Error {
Expand Down
16 changes: 16 additions & 0 deletions web3-swift-mpc-provider.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Pod::Spec.new do |spec|
spec.name = "web3-mpc-provider-swift"
spec.version = "4.0.0"
spec.ios.deployment_target = '13.0'
spec.summary = "MPC TSS Client"
spec.homepage = "https://web3auth.io/"
spec.license = { :type => 'BSD', :file => 'License.md' }
spec.swift_version = "5.0"
spec.author = { "Torus Labs" => "[email protected]" }
spec.source = { :git => "https://github.com/tkey/web3-swift-mpc-provider.git", :tag => spec.version }
spec.source_files = "Sources/**/*.{swift,h,c}"
spec.dependency 'web3.swift', '~> 1.6.0'
spec.dependency 'tssClientSwift', '4.0.0'
spec.dependency 'curvelib.swift', '~> 1.0.1'
spec.module_name = "Web3SwiftMpcProvider"
end

0 comments on commit 9e93e78

Please sign in to comment.