Skip to content

Commit

Permalink
feat: podspec for cocoapods
Browse files Browse the repository at this point in the history
Create License.md
  • Loading branch information
metalurgical committed Apr 22, 2024
1 parent 1511d5f commit 40246d5
Show file tree
Hide file tree
Showing 27 changed files with 36 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.
4 changes: 2 additions & 2 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
10 changes: 5 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ let package = Package(
platforms: [.iOS(.v13), .macOS(.v10_15)],
products: [
.library(
name: "tss-client-swift",
targets: ["tss-client-swift"]),
name: "tssClientSwift",
targets: ["tssClientSwift"]),
],
dependencies: [
.package(name: "BigInt", url: "https://github.com/attaswift/BigInt.git", from: "5.3.0"),
.package(name: "curvelib.swift", url: "https://github.com/tkey/curvelib.swift", from: "1.0.0"),
.package(name: "curvelib.swift", url: "https://github.com/tkey/curvelib.swift", from: "1.0.1"),
.package(name: "SocketIO", url: "https://github.com/socketio/socket.io-client-swift", .upToNextMajor(from: "16.0.1")),
],
targets: [
Expand All @@ -23,10 +23,10 @@ let package = Package(
path: "Sources/libdkls"
),
.target(
name: "tss-client-swift",
name: "tssClientSwift",
dependencies: ["BigInt", .product(name: "curveSecp256k1", package: "curvelib.swift"), "SocketIO", "dkls"]),
.testTarget(
name: "tss-client-swiftTests",
dependencies: ["tss-client-swift", "BigInt"]),
dependencies: ["tssClientSwift", "BigInt"]),
]
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions tss-client-swift.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Pod::Spec.new do |spec|
spec.name = "tss-client-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" => "hello@tor.us" }
spec.source = { :git => "https://github.com/torusresearch/tss-client-swift.git", :tag => spec.version }
spec.source_files = "Sources/**/*.{swift,h,c}"
spec.vendored_frameworks = "Sources/libdkls/libdkls.xcframework"
spec.dependency 'curvelib.swift', '~> 1.0.1'
spec.dependency 'BigInt', '~> 5.2.0'
spec.dependency 'Socket.IO-Client-Swift', '16.1.0'
spec.dependency "Starscream", "4.0.6"
spec.module_name = "tssClientSwift"
end

0 comments on commit 40246d5

Please sign in to comment.