Skip to content

Commit

Permalink
Merge pull request #52 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 c107450 + c328ca0 commit 88cda84
Show file tree
Hide file tree
Showing 27 changed files with 52 additions and 41 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.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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"
),
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import XCTest
import Foundation
@testable import tkey_swift
@testable import tkey
import Foundation

final class tkey_pkgPrivateKeyModuleTests: XCTestCase {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import XCTest
import Foundation
@testable import tkey_swift
@testable import tkey
import Foundation

final class tkey_pkgSecurityQuestionModuleTests: XCTestCase {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import XCTest
import Foundation
@testable import tkey_swift
@testable import tkey
import Foundation

final class tkey_pkgSeedPhraseModuleTests: XCTestCase {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import XCTest
import Foundation
@testable import tkey_swift
@testable import tkey
import Foundation

final class tkey_pkgShareSerializationModuleTests: XCTestCase {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import XCTest
import Foundation
@testable import tkey_swift
@testable import tkey
import Foundation

final class tkey_pkgShareTransferModuleTests: XCTestCase {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import XCTest
import Foundation
@testable import tkey_swift
@testable import tkey
import Foundation

final class tkey_pkgGenerateShareStoreResultTests: XCTestCase {
Expand Down
2 changes: 1 addition & 1 deletion Tests/tkeypkgTests/tkey_pkgKeyDetailsTest.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import XCTest
import Foundation
@testable import tkey_swift
@testable import tkey
import Foundation

final class tkey_pkgKeyDetailsTests: XCTestCase {
Expand Down
2 changes: 1 addition & 1 deletion Tests/tkeypkgTests/tkey_pkgKeyPointArrayTests.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import XCTest
import Foundation
@testable import tkey_swift
@testable import tkey
import Foundation

final class tkey_pkgKeyPointArrayTests: XCTestCase {
Expand Down
2 changes: 1 addition & 1 deletion Tests/tkeypkgTests/tkey_pkgKeyPointTests.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import XCTest
import Foundation
@testable import tkey_swift
@testable import tkey
import Foundation

final class tkey_pkgKeyPointTests: XCTestCase {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import XCTest
import Foundation
@testable import tkey_swift
@testable import tkey
import Foundation

final class tkey_pkgKeyReconstructionDetailsTests: XCTestCase {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import XCTest
import Foundation
@testable import tkey_swift
@testable import tkey
import Foundation

final class tkey_pkgLocalMetadataTransitionsTests: XCTestCase {
Expand Down
2 changes: 1 addition & 1 deletion Tests/tkeypkgTests/tkey_pkgMetadataTests.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import XCTest
import Foundation
@testable import tkey_swift
@testable import tkey
import Foundation

final class tkey_pkgMetadataTests: XCTestCase {
Expand Down
2 changes: 1 addition & 1 deletion Tests/tkeypkgTests/tkey_pkgPolynomialTests.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import XCTest
import Foundation
@testable import tkey_swift
@testable import tkey
import Foundation

final class tkey_pkgPolynomialTests: XCTestCase {
Expand Down
2 changes: 1 addition & 1 deletion Tests/tkeypkgTests/tkey_pkgPrivateKeyTests.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import XCTest
import Foundation
@testable import tkey_swift
@testable import tkey
import Foundation

final class tkey_pkgPrivateKeyTests: XCTestCase {
Expand Down
2 changes: 1 addition & 1 deletion Tests/tkeypkgTests/tkey_pkgPublicPolynomialTests.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import XCTest
import Foundation
@testable import tkey_swift
@testable import tkey
import Foundation

final class tkey_pkgPublicPolynomialTests: XCTestCase {
Expand Down
2 changes: 1 addition & 1 deletion Tests/tkeypkgTests/tkey_pkgServiceProviderTests.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import XCTest
import Foundation
@testable import tkey_swift
@testable import tkey
import Foundation

final class tkey_pkgServiceProviderTests: XCTestCase {
Expand Down
2 changes: 1 addition & 1 deletion Tests/tkeypkgTests/tkey_pkgShareStoreArrayTests.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import XCTest
import Foundation
@testable import tkey_swift
@testable import tkey
import Foundation

final class tkey_pkgShareStoreArrayTests: XCTestCase {
Expand Down
2 changes: 1 addition & 1 deletion Tests/tkeypkgTests/tkey_pkgShareStoreMapTests.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import XCTest
import Foundation
@testable import tkey_swift
@testable import tkey
import Foundation

final class tkey_pkgShareStoreMapTests: XCTestCase {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import XCTest
import Foundation
@testable import tkey_swift
@testable import tkey
import Foundation

final class tkey_pkgShareStorePolyIdIndexMapTests: XCTestCase {
Expand Down
2 changes: 1 addition & 1 deletion Tests/tkeypkgTests/tkey_pkgShareStoreTests.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import XCTest
import Foundation
@testable import tkey_swift
@testable import tkey
import Foundation

final class tkey_pkgShareStoreTests: XCTestCase {
Expand Down
2 changes: 1 addition & 1 deletion Tests/tkeypkgTests/tkey_pkgStorageLayerTests.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import XCTest
import Foundation
@testable import tkey_swift
@testable import tkey
import Foundation

final class tkey_pkgStorageLayerTests: XCTestCase {
Expand Down
2 changes: 1 addition & 1 deletion Tests/tkeypkgTests/tkey_pkgThresholdKeyTests.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import XCTest
import Foundation
@testable import tkey_swift
@testable import tkey

final class tkey_pkgThresholdKeyTests: XCTestCase {
func test_basic_threshold_key_reconstruct() async {
Expand Down
2 changes: 1 addition & 1 deletion Tests/tkeypkgTests/tkey_pkgVersionTests.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import XCTest
import Foundation
@testable import tkey_swift
@testable import tkey

final class tkey_pkgVersionTests: XCTestCase {
func test_library_version() {
Expand Down
14 changes: 0 additions & 14 deletions tkey-rust-ios.podspec

This file was deleted.

14 changes: 14 additions & 0 deletions tkey-swift.podspec
Original file line number Diff line number Diff line change
@@ -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" => "[email protected]" }
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

0 comments on commit 88cda84

Please sign in to comment.