diff --git a/Configurations/ConfigCommon.xcconfig b/Configurations/ConfigCommon.xcconfig index b1b5298f..632698e3 100644 --- a/Configurations/ConfigCommon.xcconfig +++ b/Configurations/ConfigCommon.xcconfig @@ -27,7 +27,6 @@ CURRENT_PROJECT_VERSION = $(SPARKLE_VERSION) ALWAYS_SEARCH_USER_PATHS = NO ENABLE_STRICT_OBJC_MSGSEND = YES GCC_PRECOMPILE_PREFIX_HEADER = YES -GCC_PREFIX_HEADER = Sparkle/Sparkle.pch GCC_SYMBOLS_PRIVATE_EXTERN = YES GCC_INLINES_ARE_PRIVATE_EXTERN = YES ARCHS = $(ARCHS_STANDARD) diff --git a/Sparkle.xcodeproj/project.pbxproj b/Sparkle.xcodeproj/project.pbxproj index 7157fea4..e5ade964 100644 --- a/Sparkle.xcodeproj/project.pbxproj +++ b/Sparkle.xcodeproj/project.pbxproj @@ -116,7 +116,6 @@ 61B5FC7009C51F4A00B25A18 /* SUAppcastItem.h in Headers */ = {isa = PBXBuildFile; fileRef = 61B5FC5309C5182000B25A18 /* SUAppcastItem.h */; settings = {ATTRIBUTES = (Public, ); }; }; 61B5FCDE09C52A9F00B25A18 /* SUUpdateAlert.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B5FCA109C5228F00B25A18 /* SUUpdateAlert.m */; }; 61B5FCDF09C52A9F00B25A18 /* SUUpdateAlert.h in Headers */ = {isa = PBXBuildFile; fileRef = 61B5FCA009C5228F00B25A18 /* SUUpdateAlert.h */; settings = {ATTRIBUTES = (); }; }; - 61CFB3290E385186007A1735 /* Sparkle.pch in Headers */ = {isa = PBXBuildFile; fileRef = 61CFB3280E385186007A1735 /* Sparkle.pch */; }; 61EF67560E25B58D00F754E0 /* SUHost.m in Sources */ = {isa = PBXBuildFile; fileRef = 61EF67550E25B58D00F754E0 /* SUHost.m */; }; 61EF67590E25C5B400F754E0 /* SUHost.h in Headers */ = {isa = PBXBuildFile; fileRef = 61EF67580E25C5B400F754E0 /* SUHost.h */; }; 61FA52880E2D9EA400EF58AD /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DC2EF5B0486A6940098B216 /* Sparkle.framework */; settings = {ATTRIBUTES = (Required, ); }; }; @@ -834,7 +833,6 @@ 61BA66DB14BDFC5500D02D86 /* sl */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sl; path = sl.lproj/SUUpdateAlert.xib; sourceTree = ""; }; 61BA66DC14BDFC5500D02D86 /* sl */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sl; path = sl.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; 61C268090E2DB5D000175E6C /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE; sourceTree = SOURCE_ROOT; }; - 61CFB3280E385186007A1735 /* Sparkle.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Sparkle.pch; sourceTree = ""; }; 61E31A80103299500051D188 /* pt_BR */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = pt_BR; path = pt_BR.lproj/Sparkle.strings; sourceTree = ""; }; 61EF67550E25B58D00F754E0 /* SUHost.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUHost.m; sourceTree = ""; }; 61EF67580E25C5B400F754E0 /* SUHost.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUHost.h; sourceTree = ""; }; @@ -1502,7 +1500,6 @@ isa = PBXGroup; children = ( 61299B3509CB04E000B7442F /* Sparkle.h */, - 61CFB3280E385186007A1735 /* Sparkle.pch */, 72162B071C82C9600013C1C5 /* SULocalizations.h */, 72162B051C82C8B30013C1C5 /* SUParameterAssert.h */, 61299A5B09CA6D4500B7442F /* SUConstants.h */, @@ -1876,7 +1873,6 @@ 61299B3609CB04E000B7442F /* Sparkle.h in Headers */, 720E219C1D11ED83003A311C /* SULocalMessagePortDelegate.h in Headers */, 720E217E1D10EB04003A311C /* SULocalMessagePortProtocol.h in Headers */, - 61CFB3290E385186007A1735 /* Sparkle.pch in Headers */, 72F94F581CC44DE1002DEE68 /* SUXPCServiceInfo.h in Headers */, 72162B081C82C9600013C1C5 /* SULocalizations.h in Headers */, 61B5FC0D09C4FC8200B25A18 /* SUAppcast.h in Headers */, diff --git a/Sparkle/SUApplicationInfo.m b/Sparkle/SUApplicationInfo.m index de711d8d..dfe0e250 100644 --- a/Sparkle/SUApplicationInfo.m +++ b/Sparkle/SUApplicationInfo.m @@ -10,12 +10,12 @@ @implementation SUApplicationInfo -+ (BOOL)isBackgroundApplication:(NSApplication * __nonnull)application ++ (BOOL)isBackgroundApplication:(NSApplication *)application { return (application.activationPolicy == NSApplicationActivationPolicyAccessory); } -+ (NSImage *__nonnull)bestIconForBundle:(NSBundle * __nonnull)bundle ++ (NSImage *)bestIconForBundle:(NSBundle *)bundle { // Cache the application icon. NSString *iconPath = [bundle pathForResource:[bundle objectForInfoDictionaryKey:@"CFBundleIconFile"] ofType:@"icns"]; diff --git a/Sparkle/SUHost.m b/Sparkle/SUHost.m index 898b74b2..9de48e4b 100644 --- a/Sparkle/SUHost.m +++ b/Sparkle/SUHost.m @@ -67,7 +67,7 @@ return [self.bundle bundlePath]; } -- (NSString *__nonnull)name +- (NSString * _Nonnull)name { NSString *name; @@ -100,7 +100,7 @@ return ([self isValidVersion:version] ? version : nil); } -- (NSString *__nonnull)version +- (NSString * _Nonnull)version { NSString *version = [self _version]; if (version == nil) { @@ -110,7 +110,7 @@ return version; } -- (NSString *__nonnull)displayVersion +- (NSString * _Nonnull)displayVersion { NSString *shortVersionString = [self.bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"]; if (shortVersionString) @@ -126,7 +126,7 @@ return (statfs_info.f_flags & MNT_RDONLY) != 0; } -- (NSString *__nullable)publicDSAKey +- (NSString *_Nullable)publicDSAKey { // Maybe the key is just a string in the Info.plist. NSString *key = [self.bundle objectForInfoDictionaryKey:SUPublicDSAKeyKey]; diff --git a/Sparkle/SULocalizations.h b/Sparkle/SULocalizations.h index 7af9851e..9575bdb3 100644 --- a/Sparkle/SULocalizations.h +++ b/Sparkle/SULocalizations.h @@ -11,6 +11,6 @@ #import "SUConstants.h" -#define SULocalizedString(key, comment) NSLocalizedStringFromTableInBundle(key, @"Sparkle", (NSBundle *__nonnull)([NSBundle bundleWithIdentifier:SUBundleIdentifier] ? [NSBundle bundleWithIdentifier:SUBundleIdentifier] : [NSBundle mainBundle]), comment) +#define SULocalizedString(key, comment) NSLocalizedStringFromTableInBundle(key, @"Sparkle", (NSBundle * _Nonnull)([NSBundle bundleWithIdentifier:SUBundleIdentifier] ? [NSBundle bundleWithIdentifier:SUBundleIdentifier] : [NSBundle mainBundle]), comment) #endif /* SULocalizations_h */ diff --git a/Sparkle/Sparkle.pch b/Sparkle/Sparkle.pch deleted file mode 100644 index ddd233f1..00000000 --- a/Sparkle/Sparkle.pch +++ /dev/null @@ -1,21 +0,0 @@ -// -// Sparkle.pch -// Sparkle -// -// Created by Andy Matuschak on 7/23/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -// Do NOT import headers in here -// Importing source headers globally makes reasoning about the overall -// dependency graph more difficult. We also do not want units to include what they don't have to, -// and don't want to make it unresonable to pull out components from Sparkle into another project - -#ifdef __OBJC__ - -#if !defined(__clang_major__) || __clang_major__ < 7 -#define __nonnull -#define __nullable -#endif - -#endif