From 9c1515bd6062dc24ca147ac743766ec7fd469d9d Mon Sep 17 00:00:00 2001 From: Alexander Lisovyk Date: Tue, 16 May 2023 22:38:25 +0200 Subject: [PATCH] Add verify cocoapods imports --- Sources/WalletConnectVerify/AppAttestationRegistrer.swift | 1 - Sources/WalletConnectVerify/AttestKeyGenerator.swift | 1 - Sources/WalletConnectVerify/OriginVerifier.swift | 1 - Sources/WalletConnectVerify/Register/VerifyService.swift | 1 - Sources/WalletConnectVerify/VerifyClient.swift | 3 --- Sources/WalletConnectVerify/VerifyClientFactory.swift | 1 - Sources/WalletConnectVerify/VerifyImports.swift | 4 ++++ 7 files changed, 4 insertions(+), 8 deletions(-) create mode 100644 Sources/WalletConnectVerify/VerifyImports.swift diff --git a/Sources/WalletConnectVerify/AppAttestationRegistrer.swift b/Sources/WalletConnectVerify/AppAttestationRegistrer.swift index 84b5d5dd1..944e88902 100644 --- a/Sources/WalletConnectVerify/AppAttestationRegistrer.swift +++ b/Sources/WalletConnectVerify/AppAttestationRegistrer.swift @@ -1,6 +1,5 @@ import Foundation import DeviceCheck -import WalletConnectUtils import CryptoKit class AppAttestationRegistrer { diff --git a/Sources/WalletConnectVerify/AttestKeyGenerator.swift b/Sources/WalletConnectVerify/AttestKeyGenerator.swift index a53b15c6d..aaebb6b31 100644 --- a/Sources/WalletConnectVerify/AttestKeyGenerator.swift +++ b/Sources/WalletConnectVerify/AttestKeyGenerator.swift @@ -1,6 +1,5 @@ import DeviceCheck import Foundation -import WalletConnectUtils protocol AttestKeyGenerating { func generateKeys() async throws -> String diff --git a/Sources/WalletConnectVerify/OriginVerifier.swift b/Sources/WalletConnectVerify/OriginVerifier.swift index 424a45ac0..039cccecf 100644 --- a/Sources/WalletConnectVerify/OriginVerifier.swift +++ b/Sources/WalletConnectVerify/OriginVerifier.swift @@ -1,5 +1,4 @@ import Foundation -import WalletConnectNetworking public final class OriginVerifier { enum Errors: Error { diff --git a/Sources/WalletConnectVerify/Register/VerifyService.swift b/Sources/WalletConnectVerify/Register/VerifyService.swift index cec111182..5cf720118 100644 --- a/Sources/WalletConnectVerify/Register/VerifyService.swift +++ b/Sources/WalletConnectVerify/Register/VerifyService.swift @@ -1,5 +1,4 @@ import Foundation -import WalletConnectNetworking enum VerifyAPI: HTTPService { case resolve(assertionId: String) diff --git a/Sources/WalletConnectVerify/VerifyClient.swift b/Sources/WalletConnectVerify/VerifyClient.swift index 74d01217b..9edbc6f3a 100644 --- a/Sources/WalletConnectVerify/VerifyClient.swift +++ b/Sources/WalletConnectVerify/VerifyClient.swift @@ -1,9 +1,6 @@ import DeviceCheck import Foundation -import WalletConnectUtils -import WalletConnectNetworking - public actor VerifyClient { enum Errors: Error { case attestationNotSupported diff --git a/Sources/WalletConnectVerify/VerifyClientFactory.swift b/Sources/WalletConnectVerify/VerifyClientFactory.swift index b07648532..96e0c7526 100644 --- a/Sources/WalletConnectVerify/VerifyClientFactory.swift +++ b/Sources/WalletConnectVerify/VerifyClientFactory.swift @@ -1,5 +1,4 @@ import Foundation -import WalletConnectUtils public class VerifyClientFactory { public static func create(verifyHost: String?) throws -> VerifyClient? { diff --git a/Sources/WalletConnectVerify/VerifyImports.swift b/Sources/WalletConnectVerify/VerifyImports.swift new file mode 100644 index 000000000..065c96db2 --- /dev/null +++ b/Sources/WalletConnectVerify/VerifyImports.swift @@ -0,0 +1,4 @@ +#if !CocoaPods +@_exported import WalletConnectUtils +@_exported import WalletConnectNetworking +#endif