From 530b492b5ed3c4e1a52be8f9edf27f063b625cfa Mon Sep 17 00:00:00 2001 From: Sandeep M Date: Sat, 27 May 2023 09:01:45 +0800 Subject: [PATCH 1/3] Update HMACCrypto.swift - Added support for iOS 16 --- Sources/HMAC/HMACCrypto.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Sources/HMAC/HMACCrypto.swift b/Sources/HMAC/HMACCrypto.swift index 474849d..a204411 100755 --- a/Sources/HMAC/HMACCrypto.swift +++ b/Sources/HMAC/HMACCrypto.swift @@ -1,5 +1,11 @@ import Foundation -import CCommonCrypto +// Added support for iOS 16 - vizllx +#if canImport(CommonCrypto) + import CommonCrypto +#else + import CCommonCrypto +#endif + public enum HMACAlgorithm { case sha256 From 39ee465c64f707c5423ab8a709dd6f0b5d487fda Mon Sep 17 00:00:00 2001 From: Sandeep M Date: Sat, 27 May 2023 09:04:55 +0800 Subject: [PATCH 2/3] Update NSDataExtension.swift - iOS 16 support --- Sources/RSA/NSDataExtension.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Sources/RSA/NSDataExtension.swift b/Sources/RSA/NSDataExtension.swift index d8b64ae..423fcb0 100644 --- a/Sources/RSA/NSDataExtension.swift +++ b/Sources/RSA/NSDataExtension.swift @@ -7,7 +7,12 @@ // import Foundation -import CCommonCrypto +// Added support for iOS 16 - vizllx +#if canImport(CommonCrypto) + import CommonCrypto +#else + import CCommonCrypto +#endif extension NSData { var sha1: Data { From 9684a0e305f23fcd786d8c213c2f9b7831858884 Mon Sep 17 00:00:00 2001 From: Sandeep M Date: Sat, 27 May 2023 09:06:13 +0800 Subject: [PATCH 3/3] Update Info.plist - Bump Version --- Info.plist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Info.plist b/Info.plist index 1007fd9..53b23a1 100644 --- a/Info.plist +++ b/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.0 + 2.0 CFBundleVersion $(CURRENT_PROJECT_VERSION) NSPrincipalClass