Skip to content

Commit

Permalink
Merge pull request WalletConnect#842 from WalletConnect/verify-depend…
Browse files Browse the repository at this point in the history
…ency

Add verify cocoapods support
  • Loading branch information
Alexander Lisovik authored May 16, 2023
2 parents d1b4275 + b3f5468 commit 2eb9643
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 16 deletions.
2 changes: 0 additions & 2 deletions Sources/Auth/Auth.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import Foundation
import Combine

import WalletConnectVerify

public typealias VerifyContext = WalletConnectVerify.VerifyContext
/// Auth instatnce wrapper
///
Expand Down
2 changes: 0 additions & 2 deletions Sources/Auth/AuthClientFactory.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import Foundation

import WalletConnectVerify

public struct AuthClientFactory {

public static func create(
Expand Down
1 change: 1 addition & 0 deletions Sources/Auth/AuthImports.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#if !CocoaPods
@_exported import WalletConnectPairing
@_exported import WalletConnectSigner
@_exported import WalletConnectVerify
#endif
2 changes: 0 additions & 2 deletions Sources/Auth/Services/Wallet/WalletRequestSubscriber.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import Foundation
import Combine

import WalletConnectVerify

class WalletRequestSubscriber {
private let networkingInteractor: NetworkInteracting
private let logger: ConsoleLogging
Expand Down
2 changes: 0 additions & 2 deletions Sources/WalletConnectSign/Engine/Common/ApproveEngine.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import Foundation
import Combine

import WalletConnectVerify

final class ApproveEngine {
enum Errors: Error {
case wrongRequestParams
Expand Down
2 changes: 0 additions & 2 deletions Sources/WalletConnectSign/Engine/Common/SessionEngine.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import Foundation
import Combine

import WalletConnectVerify

final class SessionEngine {
enum Errors: Error {
case sessionNotFound(topic: String)
Expand Down
2 changes: 0 additions & 2 deletions Sources/WalletConnectSign/Sign/Sign.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import Foundation
import Combine

import WalletConnectVerify

public typealias VerifyContext = WalletConnectVerify.VerifyContext

/// Sign instatnce wrapper
Expand Down
2 changes: 0 additions & 2 deletions Sources/WalletConnectSign/Sign/SignClientFactory.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import Foundation

import WalletConnectVerify

public struct SignClientFactory {

/// Initializes and returns newly created WalletConnect Client Instance
Expand Down
1 change: 1 addition & 0 deletions Sources/WalletConnectSign/Sign/SignImports.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if !CocoaPods
@_exported import WalletConnectPairing
@_exported import WalletConnectVerify
#endif
2 changes: 0 additions & 2 deletions Sources/Web3Wallet/Web3Wallet.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import Foundation
import Combine

import WalletConnectVerify

public typealias VerifyContext = WalletConnectVerify.VerifyContext
/// Web3Wallet instance wrapper
///
Expand Down
1 change: 1 addition & 0 deletions Sources/Web3Wallet/Web3WalletImports.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
@_exported import Auth
@_exported import WalletConnectSign
@_exported import WalletConnectEcho
@_exported import WalletConnectVerify
#endif
9 changes: 9 additions & 0 deletions WalletConnectSwiftV2.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,28 @@ Pod::Spec.new do |spec|
spec.subspec 'WalletConnect' do |ss|
ss.source_files = 'Sources/WalletConnectSign/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectPairing'
ss.dependency 'WalletConnectSwiftV2/WalletConnectVerify'
end

spec.subspec 'WalletConnectAuth' do |ss|
ss.source_files = 'Sources/Auth/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectPairing'
ss.dependency 'WalletConnectSwiftV2/WalletConnectSigner'
ss.dependency 'WalletConnectSwiftV2/WalletConnectVerify'
end

spec.subspec 'Web3Wallet' do |ss|
ss.source_files = 'Sources/Web3Wallet/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnect'
ss.dependency 'WalletConnectSwiftV2/WalletConnectAuth'
ss.dependency 'WalletConnectSwiftV2/WalletConnectEcho'
ss.dependency 'WalletConnectSwiftV2/WalletConnectVerify'
end

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

spec.subspec 'WalletConnectChat' do |ss|
Expand Down

0 comments on commit 2eb9643

Please sign in to comment.