Skip to content

Commit

Permalink
Merge pull request #777 from WalletConnect/feature/echo-cocoapods
Browse files Browse the repository at this point in the history
[Cocoapods] Echo
  • Loading branch information
flypaper0 committed Mar 31, 2023
2 parents 9e63d4a + a9587f7 commit 46593fe
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 8 deletions.
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

0 comments on commit 46593fe

Please sign in to comment.