Skip to content

Commit 6f7128e

Browse files
committed
Decreased deployment target to macOS 10.12
1 parent 40227f7 commit 6f7128e

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

CryptomatorCryptoLib.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Pod::Spec.new do |s|
1414
s.public_header_files = 'Sources/CryptomatorCryptoLib/CryptomatorCryptoLib.h'
1515
s.source_files = 'Sources/CryptomatorCryptoLib/**/*.{swift,h}'
1616
s.ios.deployment_target = '9.0'
17-
s.osx.deployment_target = '10.13'
17+
s.osx.deployment_target = '10.12'
1818
s.swift_version = '5.0'
1919

2020
s.dependency 'CryptoSwift', '~> 1.3.0'

CryptomatorCryptoLib.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@
357357
GCC_WARN_UNUSED_FUNCTION = YES;
358358
GCC_WARN_UNUSED_VARIABLE = YES;
359359
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
360+
MACOSX_DEPLOYMENT_TARGET = 10.12;
360361
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
361362
MTL_FAST_MATH = YES;
362363
ONLY_ACTIVE_ARCH = YES;
@@ -415,6 +416,7 @@
415416
GCC_WARN_UNUSED_FUNCTION = YES;
416417
GCC_WARN_UNUSED_VARIABLE = YES;
417418
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
419+
MACOSX_DEPLOYMENT_TARGET = 10.12;
418420
MTL_ENABLE_DEBUG_INFO = NO;
419421
MTL_FAST_MATH = YES;
420422
SDKROOT = iphoneos;

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ let package = Package(
1414
name: "CryptomatorCryptoLib",
1515
platforms: [
1616
.iOS(.v9),
17-
.macOS(.v10_13)
17+
.macOS(.v10_12)
1818
],
1919
products: [
2020
.library(name: "CryptomatorCryptoLib", targets: ["CryptomatorCryptoLib"])

Sources/CryptomatorCryptoLib/CryptoSupport.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class CryptoSupport {
3636
*/
3737
func compareBytes(expected: [UInt8], actual: [UInt8]) -> Bool {
3838
assert(expected.count == actual.count, "parameters should be of same length")
39-
if #available(iOS 10.1, *) {
39+
if #available(iOS 10.1, macOS 10.12.1, *) {
4040
return timingsafe_bcmp(expected, actual, expected.count) == 0
4141
} else {
4242
var diff: UInt8 = 0

0 commit comments

Comments
 (0)