From 1a5be1d2d640a1e850e49b06614eb8a2887fb618 Mon Sep 17 00:00:00 2001 From: Miguel Angel Quinones Date: Mon, 7 Feb 2022 15:46:03 +0100 Subject: [PATCH] [FIX] Avoid using module name to avoid conflict with full library --- Package.swift | 4 ++-- web3swift/src/Utils/KeyDerivation.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Package.swift b/Package.swift index 0394897b..0fa64b65 100644 --- a/Package.swift +++ b/Package.swift @@ -20,7 +20,7 @@ let package = Package( dependencies: [.target(name: "keccaktiny"), .target(name: "aes"), - .target(name: "CryptoSwift"), + .target(name: "Internal_CryptoSwift_PBDKF2"), "BigInt", "GenericJSON", "secp256k1"], @@ -33,7 +33,7 @@ let package = Package( dependencies: [], path: "web3swift/lib/aes", exclude: ["module.map"]), - .target(name: "CryptoSwift", + .target(name: "Internal_CryptoSwift_PBDKF2", dependencies: [], path: "web3swift/lib/CryptoSwift"), .testTarget(name: "web3swiftTests", diff --git a/web3swift/src/Utils/KeyDerivation.swift b/web3swift/src/Utils/KeyDerivation.swift index 3a2bf9f0..7906b0da 100644 --- a/web3swift/src/Utils/KeyDerivation.swift +++ b/web3swift/src/Utils/KeyDerivation.swift @@ -11,7 +11,7 @@ import Foundation import CommonCrypto #endif #if !COCOAPODS -import CryptoSwift +import Internal_CryptoSwift_PBDKF2 #endif enum KeyDerivationAlgorithm {