Skip to content

Commit 1dde0f0

Browse files
author
Ryan Hanson
committed
Set target OS to 10.11
1 parent c7a6667 commit 1dde0f0

4 files changed

Lines changed: 37 additions & 24 deletions

File tree

Rectangle.xcodeproj/project.pbxproj

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -793,17 +793,17 @@
793793
buildSettings = {
794794
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
795795
CODE_SIGN_ENTITLEMENTS = RectangleLauncher/RectangleLauncher.entitlements;
796-
CODE_SIGN_IDENTITY = "-";
796+
CODE_SIGN_IDENTITY = "Apple Development";
797797
CODE_SIGN_STYLE = Automatic;
798798
COMBINE_HIDPI_IMAGES = YES;
799799
DEVELOPMENT_TEAM = XSYZ3E4B7D;
800-
ENABLE_HARDENED_RUNTIME = NO;
800+
ENABLE_HARDENED_RUNTIME = YES;
801801
INFOPLIST_FILE = RectangleLauncher/Info.plist;
802802
LD_RUNPATH_SEARCH_PATHS = (
803803
"$(inherited)",
804804
"@executable_path/../Frameworks",
805805
);
806-
MACOSX_DEPLOYMENT_TARGET = 10.12;
806+
MACOSX_DEPLOYMENT_TARGET = 10.11;
807807
PRODUCT_BUNDLE_IDENTIFIER = com.knollsoft.RectangleLauncher;
808808
PRODUCT_NAME = "$(TARGET_NAME)";
809809
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -818,17 +818,17 @@
818818
buildSettings = {
819819
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
820820
CODE_SIGN_ENTITLEMENTS = RectangleLauncher/RectangleLauncher.entitlements;
821-
CODE_SIGN_IDENTITY = "-";
821+
CODE_SIGN_IDENTITY = "Apple Development";
822822
CODE_SIGN_STYLE = Automatic;
823823
COMBINE_HIDPI_IMAGES = YES;
824824
DEVELOPMENT_TEAM = XSYZ3E4B7D;
825-
ENABLE_HARDENED_RUNTIME = NO;
825+
ENABLE_HARDENED_RUNTIME = YES;
826826
INFOPLIST_FILE = RectangleLauncher/Info.plist;
827827
LD_RUNPATH_SEARCH_PATHS = (
828828
"$(inherited)",
829829
"@executable_path/../Frameworks",
830830
);
831-
MACOSX_DEPLOYMENT_TARGET = 10.12;
831+
MACOSX_DEPLOYMENT_TARGET = 10.11;
832832
PRODUCT_BUNDLE_IDENTIFIER = com.knollsoft.RectangleLauncher;
833833
PRODUCT_NAME = "$(TARGET_NAME)";
834834
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -889,7 +889,7 @@
889889
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
890890
GCC_WARN_UNUSED_FUNCTION = YES;
891891
GCC_WARN_UNUSED_VARIABLE = YES;
892-
MACOSX_DEPLOYMENT_TARGET = 10.12;
892+
MACOSX_DEPLOYMENT_TARGET = 10.11;
893893
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
894894
MTL_FAST_MATH = YES;
895895
ONLY_ACTIVE_ARCH = YES;
@@ -945,7 +945,7 @@
945945
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
946946
GCC_WARN_UNUSED_FUNCTION = YES;
947947
GCC_WARN_UNUSED_VARIABLE = YES;
948-
MACOSX_DEPLOYMENT_TARGET = 10.12;
948+
MACOSX_DEPLOYMENT_TARGET = 10.11;
949949
MTL_ENABLE_DEBUG_INFO = NO;
950950
MTL_FAST_MATH = YES;
951951
SDKROOT = macosx;
@@ -960,19 +960,19 @@
960960
buildSettings = {
961961
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
962962
CODE_SIGN_ENTITLEMENTS = Rectangle/Rectangle.entitlements;
963-
CODE_SIGN_IDENTITY = "-";
963+
CODE_SIGN_IDENTITY = "Apple Development";
964964
CODE_SIGN_STYLE = Automatic;
965965
COMBINE_HIDPI_IMAGES = YES;
966-
CURRENT_PROJECT_VERSION = 14;
966+
CURRENT_PROJECT_VERSION = 15;
967967
DEVELOPMENT_TEAM = XSYZ3E4B7D;
968-
ENABLE_HARDENED_RUNTIME = NO;
968+
ENABLE_HARDENED_RUNTIME = YES;
969969
INFOPLIST_FILE = Rectangle/Info.plist;
970970
LD_RUNPATH_SEARCH_PATHS = (
971971
"$(inherited)",
972972
"@executable_path/../Frameworks",
973973
);
974-
MACOSX_DEPLOYMENT_TARGET = 10.12;
975-
MARKETING_VERSION = 0.10;
974+
MACOSX_DEPLOYMENT_TARGET = 10.11;
975+
MARKETING_VERSION = 0.10.1;
976976
PRODUCT_BUNDLE_IDENTIFIER = com.knollsoft.Rectangle;
977977
PRODUCT_NAME = "$(TARGET_NAME)";
978978
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -986,19 +986,19 @@
986986
buildSettings = {
987987
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
988988
CODE_SIGN_ENTITLEMENTS = Rectangle/Rectangle.entitlements;
989-
CODE_SIGN_IDENTITY = "-";
989+
CODE_SIGN_IDENTITY = "Apple Development";
990990
CODE_SIGN_STYLE = Automatic;
991991
COMBINE_HIDPI_IMAGES = YES;
992-
CURRENT_PROJECT_VERSION = 14;
992+
CURRENT_PROJECT_VERSION = 15;
993993
DEVELOPMENT_TEAM = XSYZ3E4B7D;
994-
ENABLE_HARDENED_RUNTIME = NO;
994+
ENABLE_HARDENED_RUNTIME = YES;
995995
INFOPLIST_FILE = Rectangle/Info.plist;
996996
LD_RUNPATH_SEARCH_PATHS = (
997997
"$(inherited)",
998998
"@executable_path/../Frameworks",
999999
);
1000-
MACOSX_DEPLOYMENT_TARGET = 10.12;
1001-
MARKETING_VERSION = 0.10;
1000+
MACOSX_DEPLOYMENT_TARGET = 10.11;
1001+
MARKETING_VERSION = 0.10.1;
10021002
PRODUCT_BUNDLE_IDENTIFIER = com.knollsoft.Rectangle;
10031003
PRODUCT_NAME = "$(TARGET_NAME)";
10041004
PROVISIONING_PROFILE_SPECIFIER = "";

Rectangle/AccessibilityElement.swift

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ class AccessibilityElement {
2727

2828
static func frontmostWindow() -> AccessibilityElement? {
2929
guard let frontmostApplicationElement = AccessibilityElement.frontmostApplication() else {
30-
os_log("Failed to find the application that currently has focus.", type: .info)
30+
if #available(OSX 10.12, *) {
31+
os_log("Failed to find the application that currently has focus.", type: .info)
32+
}
3133
return nil
3234
}
3335
let focusedAttr = NSAccessibility.Attribute.focusedWindow as CFString
@@ -42,7 +44,9 @@ class AccessibilityElement {
4244
return AccessibilityElement(copiedUnderlyingElement as! AXUIElement)
4345
}
4446
}
45-
os_log("Unable to obtain accessibility element", type: .debug)
47+
if #available(OSX 10.12, *) {
48+
os_log("Unable to obtain accessibility element", type: .debug)
49+
}
4650
return nil
4751
}
4852

@@ -118,7 +122,9 @@ class AccessibilityElement {
118122
if let value = AXValue.from(value: position, type: .cgPoint) {
119123
AXUIElementSetAttributeValue(self.underlyingElement, kAXPositionAttribute as CFString, value)
120124
if Defaults.debug.enabled {
121-
os_log("AX position proposed: %{public}@, result: %{public}@", type: .debug, position.debugDescription, getPosition()?.debugDescription ?? "N/A")
125+
if #available(OSX 10.12, *) {
126+
os_log("AX position proposed: %{public}@, result: %{public}@", type: .debug, position.debugDescription, getPosition()?.debugDescription ?? "N/A")
127+
}
122128
}
123129
}
124130
}
@@ -131,7 +137,9 @@ class AccessibilityElement {
131137
if let value = AXValue.from(value: size, type: .cgSize) {
132138
AXUIElementSetAttributeValue(self.underlyingElement, kAXSizeAttribute as CFString, value)
133139
if Defaults.debug.enabled {
134-
os_log("AX sizing proposed: %{public}@, result: %{public}@", type: .debug, size.debugDescription, getSize()?.debugDescription ?? "N/A")
140+
if #available(OSX 10.12, *) {
141+
os_log("AX sizing proposed: %{public}@, result: %{public}@", type: .debug, size.debugDescription, getSize()?.debugDescription ?? "N/A")
142+
}
135143
}
136144
}
137145
}

Rectangle/WindowManager.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ class WindowManager {
114114
)
115115

116116
if Defaults.debug.enabled {
117-
os_log("%{public}@ | display: %{public}@, calculatedRect: %{public}@, resultRect: %{public}@", type: .debug, action.name, visibleFrameOfDestinationScreen.debugDescription, newNormalizedRect.debugDescription, resultingRect.debugDescription)
117+
if #available(OSX 10.12, *) {
118+
os_log("%{public}@ | display: %{public}@, calculatedRect: %{public}@, resultRect: %{public}@", type: .debug, action.name, visibleFrameOfDestinationScreen.debugDescription, newNormalizedRect.debugDescription, resultingRect.debugDescription)
119+
}
118120
}
119121
}
120122
}
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
4-
<dict/>
4+
<dict>
5+
<key>com.apple.security.app-sandbox</key>
6+
<true/>
7+
</dict>
58
</plist>

0 commit comments

Comments
 (0)