Skip to content

Commit

Permalink
Updated deployment target to 10.11.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepulaski committed Sep 5, 2019
1 parent 972131b commit 7eab504
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
2 changes: 2 additions & 0 deletions EmporterRapidWeaverPlugin.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,7 @@
HEADER_SEARCH_PATHS = "Vendor/EmporterKit/**";
INFOPLIST_FILE = Support/Resources/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles";
MACOSX_DEPLOYMENT_TARGET = 10.11;
PRODUCT_BUNDLE_IDENTIFIER = net.youngdynasty.emporter.rapidweaverplugin;
PRODUCT_NAME = Emporter;
SKIP_INSTALL = NO;
Expand All @@ -665,6 +666,7 @@
HEADER_SEARCH_PATHS = "Vendor/EmporterKit/**";
INFOPLIST_FILE = Support/Resources/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles";
MACOSX_DEPLOYMENT_TARGET = 10.11;
PRODUCT_BUNDLE_IDENTIFIER = net.youngdynasty.emporter.rapidweaverplugin;
PRODUCT_NAME = Emporter;
SKIP_INSTALL = NO;
Expand Down
12 changes: 9 additions & 3 deletions EmporterRapidWeaverPlugin/ERPreviewServerManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ - (void)suspendObserving {
#pragma mark - URL management

- (BOOL)_reloadServerProcessNodes {
dispatch_assert_queue(_q);
if (@available(macOS 10.12, *)) {
dispatch_assert_queue(_q);
}

YDProcessNode *rwProcessNode = [[YDProcessNode currentRootNode] childWithPid:_rapidWeaver.processIdentifier];
if (rwProcessNode == nil) {
Expand All @@ -150,7 +152,9 @@ - (BOOL)_reloadServerProcessNodes {
}

- (void)_setServerProcessNodes:(NSSet *__nonnull)serverProcessNodes {
dispatch_assert_queue(_q);
if (@available(macOS 10.12, *)) {
dispatch_assert_queue(_q);
}

if (![_serverProcessNodes isEqualToSet:serverProcessNodes]) {
_serverProcessNodes = serverProcessNodes;
Expand All @@ -159,7 +163,9 @@ - (void)_setServerProcessNodes:(NSSet *__nonnull)serverProcessNodes {
}

- (void)_serverProcessNodesDidChange {
dispatch_assert_queue(_q);
if (@available(macOS 10.12, *)) {
dispatch_assert_queue(_q);
}

NSMutableSet *urls = [NSMutableSet set];
for (YDProcessNode *node in _serverProcessNodes) {
Expand Down
12 changes: 9 additions & 3 deletions EmporterRapidWeaverPlugin/ERTunnel.m
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ - (void)dispose {
#pragma mark - Synchronization

- (void)_setCurrentTunnel:(EmporterTunnel *)currentTunnel {
dispatch_assert_queue(dispatch_get_main_queue());
if (@available(macOS 10.12, *)) {
dispatch_assert_queue(dispatch_get_main_queue());
}

if (_currentTunnel == currentTunnel) {
return;
Expand All @@ -249,7 +251,9 @@ - (void)_setCurrentTunnel:(EmporterTunnel *)currentTunnel {
}

- (void)_localURLDidChange {
dispatch_assert_queue(dispatch_get_main_queue());
if (@available(macOS 10.12, *)) {
dispatch_assert_queue(dispatch_get_main_queue());
}

if (_currentTunnel != nil) {
NSNumber *port = _localURL != nil ? _localURL.port : nil;
Expand All @@ -260,7 +264,9 @@ - (void)_localURLDidChange {
}

- (void)_nameDidChange {
dispatch_assert_queue(dispatch_get_main_queue());
if (@available(macOS 10.12, *)) {
dispatch_assert_queue(dispatch_get_main_queue());
}

if (_currentTunnel != nil) {
_currentTunnel.name = _name ?: _defaultName ?: @"";
Expand Down

0 comments on commit 7eab504

Please sign in to comment.