Skip to content

Commit

Permalink
fix: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
metalurgical committed Apr 22, 2024
1 parent 392ebe9 commit fe03c1a
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 60 deletions.
4 changes: 2 additions & 2 deletions CustomAuth.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "CustomAuth"
spec.version = "9.0.1"
spec.version = "10.0.0"
spec.platform = :ios, "13.0"
spec.summary = "Swift SDK that allows applications to directly interact with the Torus Network, similar to how Torus Wallet does."
spec.homepage = "https://github.com/torusresearch/customauth-swift-sdk"
Expand All @@ -10,6 +10,6 @@ Pod::Spec.new do |spec|
spec.module_name = "CustomAuth"
spec.source = { :git => "https://github.com/torusresearch/customauth-swift-sdk.git", :tag => spec.version }
spec.source_files = "Sources/CustomAuth/*.{swift}","Sources/CustomAuth/**/*.{swift}"
spec.dependency 'Torus-utils', '~> 5.1.1'
spec.dependency 'Torus-utils', '~> 8.1.0'
spec.dependency 'JWTDecode', '~> 3.1.0'
end
12 changes: 6 additions & 6 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@
"repositoryURL": "https://github.com/tkey/curvelib.swift",
"state": {
"branch": null,
"revision": "2df9f638fd121b445ce3b410cd79ac4d0cfa94ed",
"version": "1.0.0"
"revision": "9f88bd5e56d1df443a908f7a7e81ae4f4d9170ea",
"version": "1.0.1"
}
},
{
"package": "FetchNodeDetails",
"repositoryURL": "https://github.com/torusresearch/fetch-node-details-swift.git",
"state": {
"branch": null,
"revision": "bf2f0759da5c5c80765773b08c2756045edf608f",
"version": "5.2.0"
"revision": "f085d3d85a4f36b57cfef8f0871ac8df1dd4f6f1",
"version": "6.0.1"
}
},
{
Expand Down Expand Up @@ -69,8 +69,8 @@
"repositoryURL": "https://github.com/torusresearch/torus-utils-swift.git",
"state": {
"branch": null,
"revision": "cd26539ac407bc89e416b566aca67819ea5db951",
"version": "8.0.2"
"revision": "f20a23bb11b3c144650ff17048f94068f410ceae",
"version": "8.1.0"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let package = Package(
targets: ["CustomAuth"])
],
dependencies: [
.package(url: "https://github.com/torusresearch/torus-utils-swift.git", from: "8.0.2"),
.package(url: "https://github.com/torusresearch/torus-utils-swift.git", from: "8.1.0"),
.package(name: "jwt-kit", url: "https://github.com/vapor/jwt-kit.git", from: "4.13.0"),
.package(name: "JWTDecode", url: "https://github.com/auth0/JWTDecode.swift.git", from: "3.1.0"),
.package(url: "https://github.com/tkey/curvelib.swift", from: "1.0.0"),
Expand Down
1 change: 0 additions & 1 deletion Sources/CustomAuth/CustomAuth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import OSLog
import TorusUtils
import UIKit
import curveSecp256k1
import CommonSources

// Global variable
var tsSdkLogType = OSLogType.default
Expand Down
1 change: 0 additions & 1 deletion Sources/CustomAuth/CustomAuthFactory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import FetchNodeDetails
import Foundation
import OSLog
import TorusUtils
import CommonSources

/// A protocol should be implmented by users of `CustomAuth`. It provides a way
/// to stub or mock the CustomAuth for testing.
Expand Down
41 changes: 0 additions & 41 deletions Sources/CustomAuth/Extension/EthereumNetworkFND+extension.swift

This file was deleted.

2 changes: 1 addition & 1 deletion Tests/CustomAuthTests/MockCASDKFactory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import FetchNodeDetails
import Foundation
import OSLog
import TorusUtils
import CommonSources

public class MockFactory: CASDKFactoryProtocol {
init() {}

Expand Down
5 changes: 2 additions & 3 deletions Tests/CustomAuthTests/MockTorusUtils.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import CustomAuth
import FetchNodeDetails
import Foundation
import CommonSources
import BigInt
@testable import TorusUtils

Expand All @@ -13,7 +12,7 @@ public protocol MockAbstractTorusUtils {

class MockTorusUtils: AbstractTorusUtils, MockAbstractTorusUtils {

func retrieveShares(endpoints: [String], torusNodePubs: [CommonSources.TorusNodePubModel], indexes: [BigUInt], verifier: String, verifierParams: VerifierParams, idToken: String, extraParams: [String : Codable]) async throws -> TorusKey {
func retrieveShares(endpoints: [String], torusNodePubs: [TorusNodePubModel], indexes: [BigUInt], verifier: String, verifierParams: VerifierParams, idToken: String, extraParams: [String : Codable]) async throws -> TorusKey {
retrieveShares_input = [
"endpoints": endpoints,
"verifierIdentifier": verifier,
Expand All @@ -25,7 +24,7 @@ class MockTorusUtils: AbstractTorusUtils, MockAbstractTorusUtils {
return TorusKey(finalKeyData: finalKeyData, oAuthKeyData: nil, sessionData: nil, metadata: nil, nodesData: nil)
}

func getPublicAddress(endpoints: [String], torusNodePubs: [CommonSources.TorusNodePubModel], verifier: String, verifierId: String, extendedVerifierId: String?) async throws -> TorusPublicKey {
func getPublicAddress(endpoints: [String], torusNodePubs: [TorusNodePubModel], verifier: String, verifierId: String, extendedVerifierId: String?) async throws -> TorusPublicKey {
return .init(finalKeyData: nil, oAuthKeyData: nil, metadata: nil, nodesData: nil)
}

Expand Down
5 changes: 1 addition & 4 deletions Tests/CustomAuthTests/StubURLProtocolTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import Foundation
import OSLog
import TorusUtils
import XCTest
import CommonSources

final class StubURLProtocolTests: XCTestCase {}

Expand All @@ -23,9 +22,7 @@ public class StubMockTorusUtils: TorusUtils {

public class StubMockCASDKFactory: CASDKFactoryProtocol {
public func createTorusUtils(loglevel: OSLogType, urlSession: URLSession, enableOneKey: Bool, network: TorusNetwork) -> AbstractTorusUtils {
let allowHost = network.signerMap.appending("/api/allow")
let signerHost = network.signerMap.appending("/api/sign")
return StubMockTorusUtils(loglevel: loglevel, urlSession: urlSession, enableOneKey: enableOneKey, signerHost: signerHost, allowHost: allowHost, clientId: "Your Client ID")
return StubMockTorusUtils(loglevel: loglevel, urlSession: urlSession, enableOneKey: enableOneKey, network: .sapphire(.SAPPHIRE_DEVNET), clientId: "Your Client ID")
}

public init() {
Expand Down

0 comments on commit fe03c1a

Please sign in to comment.