Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cocoapods] Echo #777

Merged
merged 1 commit into from
Mar 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Sources/WalletConnectEcho/Echo.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Foundation
import WalletConnectNetworking

public class Echo {
static public let echoHost = "echo.walletconnect.com"
Expand Down
1 change: 0 additions & 1 deletion Sources/WalletConnectEcho/EchoClient.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Foundation
import WalletConnectNetworking

public class EchoClient: EchoClientProtocol {
private let registerService: EchoRegisterService
Expand Down
1 change: 0 additions & 1 deletion Sources/WalletConnectEcho/EchoClientFactory.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Foundation
import WalletConnectNetworking

public struct EchoClientFactory {
public static func create(projectId: String,
Expand Down
4 changes: 4 additions & 0 deletions Sources/WalletConnectEcho/EchoImports.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#if !CocoaPods
@_exported import WalletConnectNetworking
@_exported import WalletConnectJWT
#endif
1 change: 0 additions & 1 deletion Sources/WalletConnectEcho/Register/EchoAuthPayload.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Foundation
import WalletConnectJWT

struct EchoAuthPayload: JWTClaimsCodable {

Expand Down
1 change: 0 additions & 1 deletion Sources/WalletConnectEcho/Register/EchoAuthenticator.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Foundation
import WalletConnectNetworking

protocol EchoAuthenticating {
func createAuthToken() throws -> String
Expand Down
2 changes: 0 additions & 2 deletions Sources/WalletConnectEcho/Register/EchoRegisterService.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import Foundation
import WalletConnectNetworking
import WalletConnectJWT

actor EchoRegisterService {
private let httpClient: HTTPClient
Expand Down
1 change: 0 additions & 1 deletion Sources/WalletConnectEcho/Register/EchoService.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Foundation
import WalletConnectNetworking

enum EchoAPI: HTTPService {
case register(clientId: String, token: String, projectId: String, environment: APNSEnvironment, auth: String)
Expand Down
7 changes: 7 additions & 0 deletions WalletConnectSwiftV2.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ Pod::Spec.new do |spec|
ss.source_files = 'Sources/Web3Wallet/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnect'
ss.dependency 'WalletConnectSwiftV2/WalletConnectAuth'
ss.dependency 'WalletConnectSwiftV2/WalletConnectEcho'
end

spec.subspec 'WalletConnectChat' do |ss|
Expand All @@ -108,6 +109,12 @@ Pod::Spec.new do |spec|
ss.dependency 'WalletConnectSwiftV2/WalletConnectJWT'
end

spec.subspec 'WalletConnectEcho' do |ss|
ss.source_files = 'Sources/WalletConnectEcho/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectNetworking'
ss.dependency 'WalletConnectSwiftV2/WalletConnectJWT'
end

spec.subspec 'WalletConnectJWT' do |ss|
ss.source_files = 'Sources/WalletConnectJWT/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectKMS'
Expand Down