Skip to content

Commit

Permalink
refactor: update to latest torusutils
Browse files Browse the repository at this point in the history
  • Loading branch information
metalurgical committed Oct 5, 2024
1 parent 7aa5c22 commit 9190676
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 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 = "11.0.0"
spec.version = "12.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', '~> 9.0.1'
spec.dependency 'Torus-utils', '~> 10.0.0'
spec.dependency 'JWTDecode', '~> 3.1.0'
end
10 changes: 5 additions & 5 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
{
"identity" : "fetch-node-details-swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/torusresearch/fetch-node-details-swift.git",
"location" : "https://github.com/torusresearch/fetch-node-details-swift",
"state" : {
"revision" : "4bd96c33ba8d02d9e27190c5c7cedf09cfdfd656",
"version" : "6.0.3"
"branch" : "encapsulate_torusnetwork",
"revision" : "2fcd108ea89a48f092a955017977a299129d20c7"
}
},
{
Expand Down Expand Up @@ -59,8 +59,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/torusresearch/torus-utils-swift.git",
"state" : {
"revision" : "eda55b8537a600e657d19d4c452c0a36f217883c",
"version" : "9.0.1"
"branch" : "encapsulate_torusnetwork",
"revision" : "ef50d543ee773ebcde6ac386ac831e9ccaceef8f"
}
}
],
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: "9.0.1"),
.package(url: "https://github.com/torusresearch/torus-utils-swift.git", branch: "encapsulate_torusnetwork"),
.package(url: "https://github.com/auth0/JWTDecode.swift.git", from: "3.1.0"),
// NB: jwt-kit may only be a test dependency or it will break cocoapods support
.package(url: "https://github.com/vapor/jwt-kit.git", from: "4.13.0"),
Expand Down
4 changes: 2 additions & 2 deletions Sources/CustomAuth/CustomAuthArgs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Foundation
public class CustomAuthArgs {
public let urlScheme: String
public let metadataUrl: String
public let network: TorusNetwork
public let network: Web3AuthNetwork
public let enableLogging: Bool
public let enableOneKey: Bool
public let apiKey: String
Expand All @@ -15,7 +15,7 @@ public class CustomAuthArgs {
public let useDkg: Bool // TODO: Implement usage of this

public init(urlScheme: String,
network: TorusNetwork,
network: Web3AuthNetwork,
metadataUrl: String = "https://metadata.tor.us",
enableLogging: Bool = false,
apiKey: String = "torus-default",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ internal class CreateHandlerParams {
public let redirectURL: String
public let jwtParams: Auth0ClientOptions?
public let customState: TorusGenericContainer?
public let web3AuthNetwork: TorusNetwork
public let web3AuthNetwork: Web3AuthNetwork
public let web3AuthClientId: String

public init(typeOfLogin: LoginType, verifier: String, clientId: String, urlScheme: String, redirectURL: String, jwtParams: Auth0ClientOptions? = nil, customState: TorusGenericContainer? = nil, web3AuthNetwork: TorusNetwork, web3AuthClientId: String) {
public init(typeOfLogin: LoginType, verifier: String, clientId: String, urlScheme: String, redirectURL: String, jwtParams: Auth0ClientOptions? = nil, customState: TorusGenericContainer? = nil, web3AuthNetwork: Web3AuthNetwork, web3AuthClientId: String) {
self.typeOfLogin = typeOfLogin
self.verifier = verifier
self.clientId = clientId
Expand Down

0 comments on commit 9190676

Please sign in to comment.