From 4beabd604f01990bee2c97689c409b0babd74f25 Mon Sep 17 00:00:00 2001 From: metalurgical <97008724+metalurgical@users.noreply.github.com> Date: Mon, 22 Apr 2024 09:14:28 +0200 Subject: [PATCH] feat: update for cocoapods --- License.md | 11 +++++++++++ Package.swift | 8 ++++---- tkey-rust-ios.podspec | 14 -------------- tkey-swift.podspec | 14 ++++++++++++++ 4 files changed, 29 insertions(+), 18 deletions(-) create mode 100644 License.md delete mode 100644 tkey-rust-ios.podspec create mode 100644 tkey-swift.podspec diff --git a/License.md b/License.md new file mode 100644 index 0000000..5eec43e --- /dev/null +++ b/License.md @@ -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. diff --git a/Package.swift b/Package.swift index 218f2ae..0e48c01 100644 --- a/Package.swift +++ b/Package.swift @@ -11,8 +11,8 @@ let package = Package( products: [ // Products define the executables and libraries a package produces, and make them visible to other packages. .library( - name: "tkey-swift", - targets: ["tkey-swift"]), + name: "tkey", + targets: ["tkey"]), ], dependencies: [ // Dependencies declare other packages that this package depends on. @@ -29,13 +29,13 @@ let package = Package( path: "Sources/libtkey" ), .target( - name: "tkey-swift", + name: "tkey", dependencies: ["lib"], path: "Sources/ThresholdKey" ), .testTarget( name: "tkey-swiftTests", - dependencies: ["tkey-swift"], + dependencies: ["tkey"], path: "Tests/tkeypkgTests" ), ] diff --git a/tkey-rust-ios.podspec b/tkey-rust-ios.podspec deleted file mode 100644 index e568963..0000000 --- a/tkey-rust-ios.podspec +++ /dev/null @@ -1,14 +0,0 @@ -Pod::Spec.new do |spec| - spec.name = "tkey-rust-ios" - spec.version = "0.0.3" - spec.platform = :ios, "14.0" - spec.summary = "SDK allows you to create threshold key setup natively" - spec.homepage = "https://github.com/torusresearch/tkey-rust-ios" - spec.license = { :type => 'BSD', :file => 'License.md' } - spec.swift_version = "5.3" - spec.author = { "Torus Labs" => "rathishubham017@gmail.com" } - spec.module_name = "tkey" - spec.source = { :git => "https://github.com/torusresearch/tkey-rust-ios.git", :tag => spec.version } - spec.vendored_framework = "Sources/libtkey/libtkey.xcframework" - spec.source_files = "Sources/ThresholdKey/**/*.{swift}","Sources/libtkey/include/tkey.h" -end diff --git a/tkey-swift.podspec b/tkey-swift.podspec new file mode 100644 index 0000000..32010da --- /dev/null +++ b/tkey-swift.podspec @@ -0,0 +1,14 @@ +Pod::Spec.new do |spec| + spec.name = "tkey-swift" + spec.version = "1.0.0" + spec.platform = :ios, "14.0" + spec.summary = "SDK allows you to create threshold key setup natively" + spec.homepage = "https://web3auth.io/" + spec.license = { :type => 'BSD', :file => 'License.md' } + spec.swift_version = "5.3" + spec.author = { "Torus Labs" => "hello@tor.us" } + spec.module_name = "tkey" + spec.source = { :git => "https://github.com/tkey/tkey-swift.git", :tag => spec.version } + spec.vendored_framework = "Sources/libtkey/libtkey.xcframework" + spec.source_files = "Sources/**/*.{swift,c,h}" +end