diff --git a/CHANGELOG b/CHANGELOG index 6e472e0a..c68454b4 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,15 @@ +# 1.19.0 + + * Refactoring of downloader code to avoid deprecated methods (Deadpikle) + * Changes to which methods run on the main thread. + Note: some delegate methods may be called on non-main thread now. (Kornel) + * Update Japanese localization (1024jp) + * Update Sparkle.strings (Stefan Paychère) + * Fix Sparkle clients polling too frequently (Jonathan Bullard) + * Handle SecTransformExecute errors (Kornel) + * Silence Touch Bar availability warnings on Xcode 9 by using API_AVAILABLE. Disable gnu-zero-variadic-macro-arguments to prevent warnings from use of API_AVAILABLE. (Kent Sutherland) + * 10.11 SDK compatibility (David Fuhrmann) + # 1.18.1 * Add optional updaterDidRelaunchApplication: method on SUUpdaterDelegate (#1115) (App Tyrant) diff --git a/Configurations/ConfigCommon.xcconfig b/Configurations/ConfigCommon.xcconfig index fbe20da0..2526835e 100644 --- a/Configurations/ConfigCommon.xcconfig +++ b/Configurations/ConfigCommon.xcconfig @@ -16,8 +16,8 @@ SPARKLE_NORMALIZE_INSTALLED_APPLICATION_NAME = 0 SPARKLE_ICON_NAME = AppIcon SPARKLE_VERSION_MAJOR = 1 -SPARKLE_VERSION_MINOR = 18 -SPARKLE_VERSION_PATCH = 1 +SPARKLE_VERSION_MINOR = 19 +SPARKLE_VERSION_PATCH = 0 SPARKLE_VERSION = $(SPARKLE_VERSION_MAJOR).$(SPARKLE_VERSION_MINOR).$(SPARKLE_VERSION_PATCH) CURRENT_PROJECT_VERSION = $(SPARKLE_VERSION) diff --git a/Configurations/ConfigCommonCoverage.xcconfig b/Configurations/ConfigCommonCoverage.xcconfig index b9cb0b97..4eface42 100644 --- a/Configurations/ConfigCommonCoverage.xcconfig +++ b/Configurations/ConfigCommonCoverage.xcconfig @@ -3,5 +3,11 @@ SPARKLE_ALLOW_ARBITRARY_HTTP_LOADS = 1 GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS_COMMON) +CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; +CLANG_WARN_COMMA = YES; +CLANG_WARN_INFINITE_RECURSION = YES; +CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; +CLANG_WARN_STRICT_PROTOTYPES = YES; +CLANG_WARN_SUSPICIOUS_MOVE = YES; GCC_GENERATE_TEST_COVERAGE_FILES = YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES diff --git a/Configurations/ConfigCommonDebug.xcconfig b/Configurations/ConfigCommonDebug.xcconfig index c4ed43d5..cbf15592 100644 --- a/Configurations/ConfigCommonDebug.xcconfig +++ b/Configurations/ConfigCommonDebug.xcconfig @@ -4,6 +4,12 @@ SPARKLE_ALLOW_ARBITRARY_HTTP_LOADS = 1 +CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; +CLANG_WARN_COMMA = YES; +CLANG_WARN_INFINITE_RECURSION = YES; +CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; +CLANG_WARN_STRICT_PROTOTYPES = YES; +CLANG_WARN_SUSPICIOUS_MOVE = YES; GCC_OPTIMIZATION_LEVEL = 0 DEBUG_INFORMATION_FORMAT = dwarf ENABLE_TESTABILITY = YES diff --git a/Configurations/ConfigCommonRelease.xcconfig b/Configurations/ConfigCommonRelease.xcconfig index a416a272..fe088f8d 100644 --- a/Configurations/ConfigCommonRelease.xcconfig +++ b/Configurations/ConfigCommonRelease.xcconfig @@ -4,6 +4,12 @@ SPARKLE_ALLOW_ARBITRARY_HTTP_LOADS = 0 +CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; +CLANG_WARN_COMMA = YES; +CLANG_WARN_INFINITE_RECURSION = YES; +CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; +CLANG_WARN_STRICT_PROTOTYPES = YES; +CLANG_WARN_SUSPICIOUS_MOVE = YES; GCC_OPTIMIZATION_LEVEL = s DEBUG_INFORMATION_FORMAT = dwarf-with-dsym GCC_GENERATE_DEBUGGING_SYMBOLS = YES diff --git a/Makefile b/Makefile index aa89d64f..2eaced72 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ .PHONY: all localizable-strings release build test ci +all: build + ifndef BUILDDIR BUILDDIR := $(shell mktemp -d "$(TMPDIR)/Sparkle.XXXXXX") endif diff --git a/Sparkle.podspec b/Sparkle.podspec index 9235af49..2292d7e1 100644 --- a/Sparkle.podspec +++ b/Sparkle.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Sparkle" - s.version = "1.18.1" + s.version = "1.19.0" s.summary = "A software update framework for macOS" s.description = "Sparkle is an easy-to-use software update framework for Cocoa developers." s.homepage = "http://sparkle-project.org" diff --git a/Sparkle.xcodeproj/xcshareddata/xcschemes/Distribution.xcscheme b/Sparkle.xcodeproj/xcshareddata/xcschemes/Distribution.xcscheme index ffa56e90..9b47082f 100644 --- a/Sparkle.xcodeproj/xcshareddata/xcschemes/Distribution.xcscheme +++ b/Sparkle.xcodeproj/xcshareddata/xcschemes/Distribution.xcscheme @@ -1,6 +1,6 @@ @@ -45,6 +46,7 @@ buildConfiguration = "Release" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" + language = "" launchStyle = "0" useCustomWorkingDirectory = "NO" ignoresPersistentStateOnLaunch = "NO" @@ -61,8 +63,6 @@ ReferencedContainer = "container:Sparkle.xcodeproj"> - - diff --git a/Sparkle/SPULocalCacheDirectory.m b/Sparkle/SPULocalCacheDirectory.m index 975ec1f0..c63f102f 100644 --- a/Sparkle/SPULocalCacheDirectory.m +++ b/Sparkle/SPULocalCacheDirectory.m @@ -41,7 +41,7 @@ static NSTimeInterval OLD_ITEM_DELETION_INTERVAL = 86400 * 10; // 10 days NSDictionary *fileAttributes = [fileManager attributesOfItemAtPath:[directory stringByAppendingPathComponent:filename] error:NULL]; if (fileAttributes != nil) { - NSDate *lastModificationDate = fileAttributes[NSFileModificationDate]; + NSDate *lastModificationDate = [fileAttributes objectForKey:NSFileModificationDate]; if ([currentDate timeIntervalSinceDate:lastModificationDate] >= OLD_ITEM_DELETION_INTERVAL) { [filePathsToRemove addObject:[directory stringByAppendingPathComponent:filename]]; diff --git a/Sparkle/SUAppcast.m b/Sparkle/SUAppcast.m index a00f3ab0..861eb28e 100644 --- a/Sparkle/SUAppcast.m +++ b/Sparkle/SUAppcast.m @@ -146,6 +146,14 @@ } -(NSArray *)parseAppcastItemsFromXMLData:(NSData *)appcastData error:(NSError *__autoreleasing*)errorp { + if (errorp) { + *errorp = nil; + } + + if (!appcastData) { + return nil; + } + NSUInteger options = NSXMLNodeLoadExternalEntitiesNever; // Prevent inclusion from file:// NSXMLDocument *document = [[NSXMLDocument alloc] initWithData:appcastData options:options error:errorp]; if (nil == document) { diff --git a/Sparkle/de.lproj/Sparkle.strings b/Sparkle/de.lproj/Sparkle.strings index 140bb1a5..046aaae5 100644 --- a/Sparkle/de.lproj/Sparkle.strings +++ b/Sparkle/de.lproj/Sparkle.strings @@ -2,7 +2,7 @@ "%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ wurde geladen und steht zur Installation bereit! Möchtest du %1$@ jetzt durch die neue Version ersetzen und neu starten?"; -"%1$@ can't be updated, because it was opened from a read-only or a temporary location. Use Finder to copy %1$@ to the Applications folder, relaunch it from there, and try again." = "%1$@ kann nicht aktualisiert werden, weil es von einem Ort ohne Schreibzugriff oder temporären Ort aus gestartet wurde. Kopiere %1$@ in den Programmeordner, starte es von dort aus und versuche es erneut zu aktualisieren."; +"%1$@ can't be updated, because it was opened from a read-only or a temporary location. Use Finder to copy %1$@ to the Applications folder, relaunch it from there, and try again." = "%1$@ kann nicht aktualisiert werden, da es aus dem Downloads-Order, oder von einer DMG Datei oder Laufwerk ohne Schreibzugriff gestartet wurde. Kopiere %1$@ in den Programmeordner, starte es von dort aus und versuche es erneut zu aktualisieren."; "%@ %@ is currently the newest version available." = "%1$@ %2$@ ist zurzeit die neueste verfügbare Version."; diff --git a/Sparkle/en.lproj/Sparkle.strings b/Sparkle/en.lproj/Sparkle.strings index 45f7b87e..ecd2a001 100644 --- a/Sparkle/en.lproj/Sparkle.strings +++ b/Sparkle/en.lproj/Sparkle.strings @@ -2,7 +2,7 @@ "%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?"; -"%1$@ can't be updated, because it was opened from a read-only or a temporary location. Use Finder to copy %1$@ to the Applications folder, relaunch it from there, and try again." = "%1$@ can’t be updated when it’s running from a read-only volume like a disk image or an optical drive. Move %1$@ to Applications folder using Finder, relaunch it from there, and try again."; +"%1$@ can't be updated, because it was opened from a read-only or a temporary location. Use Finder to copy %1$@ to the Applications folder, relaunch it from there, and try again." = "%1$@ can't be updated, because it was opened from a read-only or a temporary location. Use Finder to copy %1$@ to the Applications folder, relaunch it from there, and try again."; "%@ %@ is currently the newest version available." = "%1$@ %2$@ is currently the newest version available."; diff --git a/Sparkle/fr.lproj/Sparkle.strings b/Sparkle/fr.lproj/Sparkle.strings index 5262ae13..ad4466a1 100644 --- a/Sparkle/fr.lproj/Sparkle.strings +++ b/Sparkle/fr.lproj/Sparkle.strings @@ -8,7 +8,7 @@ "%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ est disponible ; vous utilisez la version %3$@. Voulez-vous le télécharger maintenant ?"; /* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; +"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ est disponible ; vous utilisez la version %3$@. Voulez-vous en savoir plus sur cette mise à jour sur Internet ?"; "%@ downloaded" = "%@ téléchargé"; diff --git a/Sparkle/ja.lproj/SUUpdateAlert.xib b/Sparkle/ja.lproj/SUUpdateAlert.xib index 4829fb4c..01c39e50 100644 --- a/Sparkle/ja.lproj/SUUpdateAlert.xib +++ b/Sparkle/ja.lproj/SUUpdateAlert.xib @@ -1,12 +1,13 @@ - + - - - + + + + @@ -27,7 +28,7 @@ - + @@ -47,7 +48,7 @@ - + @@ -61,7 +62,7 @@ - + @@ -76,16 +77,16 @@ - + - + - + - + @@ -116,12 +117,12 @@ - + - - + + @@ -144,7 +145,7 @@