Skip to content

Commit

Permalink
Decreased deployment target to macOS 10.12
Browse files Browse the repository at this point in the history
  • Loading branch information
tobihagemann committed Sep 26, 2020
1 parent 40227f7 commit 6f7128e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CryptomatorCryptoLib.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Pod::Spec.new do |s|
s.public_header_files = 'Sources/CryptomatorCryptoLib/CryptomatorCryptoLib.h'
s.source_files = 'Sources/CryptomatorCryptoLib/**/*.{swift,h}'
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.13'
s.osx.deployment_target = '10.12'
s.swift_version = '5.0'

s.dependency 'CryptoSwift', '~> 1.3.0'
Expand Down
2 changes: 2 additions & 0 deletions CryptomatorCryptoLib.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MACOSX_DEPLOYMENT_TARGET = 10.12;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -415,6 +416,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MACOSX_DEPLOYMENT_TARGET = 10.12;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let package = Package(
name: "CryptomatorCryptoLib",
platforms: [
.iOS(.v9),
.macOS(.v10_13)
.macOS(.v10_12)
],
products: [
.library(name: "CryptomatorCryptoLib", targets: ["CryptomatorCryptoLib"])
Expand Down
2 changes: 1 addition & 1 deletion Sources/CryptomatorCryptoLib/CryptoSupport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class CryptoSupport {
*/
func compareBytes(expected: [UInt8], actual: [UInt8]) -> Bool {
assert(expected.count == actual.count, "parameters should be of same length")
if #available(iOS 10.1, *) {
if #available(iOS 10.1, macOS 10.12.1, *) {
return timingsafe_bcmp(expected, actual, expected.count) == 0
} else {
var diff: UInt8 = 0
Expand Down

0 comments on commit 6f7128e

Please sign in to comment.