diff --git a/CHANGELOG b/CHANGELOG index 25d1eb8c..ea031b04 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -28,6 +28,7 @@ * System profiler privacy and transparency (#1690) (Martin Pilkington) * Support getting app icon from asset catalog (#1694) (Charles Srstka) * Don't hide update alert window now on deactivation (#1804) (Zorg) +* Raise minimum system version to 10.11 (Zorg) * Special thanks to developers using early builds of this release in production and contributors for keeping this running (Kornel, Jonas Zaugg, Gwynne Raskind, Jordan Rose, Tony Arnold, Bryan Jones, Christian Tietze, Jakob Egger, and many more) Please visit [Sparkle's website](http://sparkle-project.org) for more information on documentation and migration. @@ -711,4 +712,4 @@ Important security fixes: # 0.1 -* Initial Release \ No newline at end of file +* Initial Release diff --git a/Configurations/ConfigTestApp.xcconfig b/Configurations/ConfigTestApp.xcconfig index d0bf5d99..5e3d9f8a 100644 --- a/Configurations/ConfigTestApp.xcconfig +++ b/Configurations/ConfigTestApp.xcconfig @@ -6,5 +6,4 @@ ASSETCATALOG_COMPILER_APPICON_NAME = $(SPARKLE_ICON_NAME) LD_RUNPATH_SEARCH_PATHS = @executable_path/../Frameworks PRODUCT_BUNDLE_IDENTIFIER = org.sparkle-project.SparkleTestApp CODE_SIGN_ENTITLEMENTS = TestApplication/Sparkle-Test-App.entitlements -MACOSX_DEPLOYMENT_TARGET = 10.10 ENABLE_HARDENED_RUNTIME = NO diff --git a/README.markdown b/README.markdown index aff08951..542f227a 100644 --- a/README.markdown +++ b/README.markdown @@ -33,7 +33,7 @@ Please visit [Sparkle's website](http://sparkle-project.org) for up to date docu ## Requirements -* Runtime: macOS 10.9 or greater +* Runtime: macOS 10.11 or greater * Build: Latest major Xcode (stable or beta, whichever is latest) and one major version less; at least Xcode 12 if using Swift Package Manager. * HTTPS server for serving updates (see [App Transport Security](http://sparkle-project.org/documentation/app-transport-security/)) diff --git a/Resources/SampleAppcast.xml b/Resources/SampleAppcast.xml index 79eb5f3f..39c176bd 100755 --- a/Resources/SampleAppcast.xml +++ b/Resources/SampleAppcast.xml @@ -11,7 +11,7 @@ Wed, 09 Jan 2006 19:20:11 +0000 - 10.9 + 10.11 @@ -21,7 +21,7 @@ Wed, 01 Jan 2006 12:20:11 +0000 - 10.9 + 10.11 @@ -32,7 +32,7 @@ Wed, 25 Dec 2005 12:20:11 +0000 - 10.9 + 10.11 diff --git a/Sparkle.podspec b/Sparkle.podspec index e57b5030..016dfa4d 100644 --- a/Sparkle.podspec +++ b/Sparkle.podspec @@ -18,7 +18,7 @@ Pod::Spec.new do |s| 'Andy Matuschak' => 'andy@andymatuschak.org', } - s.platform = :osx, '10.9' + s.platform = :osx, '10.11' s.source = { :http => "https://github.com/sparkle-project/Sparkle/releases/download/#{s.version}/Sparkle-#{s.version}.tar.bz2" } s.source_files = 'Sparkle.framework/Versions/A/Headers/*.h' diff --git a/Sparkle/SUWKWebView.m b/Sparkle/SUWKWebView.m index 46176e04..8e018d49 100644 --- a/Sparkle/SUWKWebView.m +++ b/Sparkle/SUWKWebView.m @@ -21,12 +21,8 @@ @interface SUWKWebView () -// Remove when minimum system requirement is 10.10+ -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunguarded-availability" @property (nonatomic, readonly) WKWebView *webView; @property (nonatomic) WKNavigation *currentNavigation; -#pragma clang diagnostic pop @property (nonatomic) void (^completionHandler)(NSError * _Nullable); @property (nonatomic) BOOL drawsWebViewBackground; @@ -39,9 +35,6 @@ @synthesize completionHandler = _completionHandler; @synthesize drawsWebViewBackground = _drawsWebViewBackground; -// Remove when minimum system requirement is 10.10+ -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunguarded-availability" static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource) { // We must remove newlines when inserting the style source in this interpolated string below @@ -59,11 +52,7 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource) return [[WKUserScript alloc] initWithSource:scriptSource injectionTime:WKUserScriptInjectionTimeAtDocumentEnd forMainFrameOnly:YES]; } -#pragma clang diagnostic pop -// Remove when minimum system requirement is 10.10+ -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunguarded-availability" - (instancetype)initWithColorStyleSheetLocation:(NSURL *)colorStyleSheetLocation fontFamily:(NSString *)fontFamily fontPointSize:(int)fontPointSize javaScriptEnabled:(BOOL)javaScriptEnabled { self = [super init]; @@ -108,7 +97,6 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource) } return self; } -#pragma clang diagnostic pop - (NSView *)view { @@ -126,13 +114,7 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource) { self.completionHandler = [completionHandler copy]; - // Remove when minimum system requirement is 10.11+ -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunguarded-availability" - // Note: This API requires macOS 10.11 - // Rather than figuring out a bad workaround for 10.10, it is simpler to just require 10.11 for this class self.currentNavigation = [self.webView loadData:data MIMEType:MIMEType characterEncodingName:textEncodingName baseURL:baseURL]; -#pragma clang diagnostic pop } - (void)setDrawsBackground:(BOOL)drawsBackground @@ -161,11 +143,7 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource) [self.webView stopLoading]; } -// Remove when minimum system requirement is 10.10+ -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunguarded-availability" - (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation -#pragma clang diagnostic pop { if (navigation == self.currentNavigation) { if (self.completionHandler != nil) { @@ -176,11 +154,7 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource) } } -// Remove when minimum system requirement is 10.10+ -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunguarded-availability" - (void)webView:(WKWebView *)webView didFailNavigation:(WKNavigation *)navigation withError:(NSError *)error -#pragma clang diagnostic pop { if (navigation == self.currentNavigation) { if (self.completionHandler != nil) { @@ -191,11 +165,7 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource) } } -// Remove when minimum system requirement is 10.10+ -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunguarded-availability" - (void)webViewWebContentProcessDidTerminate:(WKWebView *)webView -#pragma clang diagnostic pop { if (self.currentNavigation != nil) { if (self.completionHandler != nil) { @@ -207,8 +177,6 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource) } } -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunguarded-availability" - (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler { NSURLRequest *request = navigationAction.request; @@ -233,6 +201,5 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource) } } } -#pragma clang diagnostic pop @end diff --git a/generate_appcast/ArchiveItem.swift b/generate_appcast/ArchiveItem.swift index faed72ca..8336b639 100644 --- a/generate_appcast/ArchiveItem.swift +++ b/generate_appcast/ArchiveItem.swift @@ -54,7 +54,7 @@ class ArchiveItem: CustomStringConvertible { self.version = version self._shortVersion = shortVersion self.feedURL = feedURL - self.minimumSystemVersion = minimumSystemVersion ?? "10.9" + self.minimumSystemVersion = minimumSystemVersion ?? "10.11" self.archivePath = archivePath self.appPath = appPath self.supportsDSA = supportsDSA