diff --git a/Configurations/ConfigCommon.xcconfig b/Configurations/ConfigCommon.xcconfig index ac7b37fb..b7859eff 100644 --- a/Configurations/ConfigCommon.xcconfig +++ b/Configurations/ConfigCommon.xcconfig @@ -36,15 +36,15 @@ PRODUCT_BUNDLE_IDENTIFIER = org.sparkle-project.Sparkle.${PRODUCT_NAME:rfc1034id INSTALLER_LAUNCHER_PRODUCT_NAME = SparkleInstallerLauncher APPCAST_DOWNLOADER_PRODUCT_NAME = SparkleAppcastDownloader -UPDATE_DOWNLOADER_PRODUCT_NAME = SparkleUpdateDownloader +PERSISTENT_DOWNLOADER_PRODUCT_NAME = SparklePersistentDownloader REMOTE_MESSAGE_PORT_PRODUCT_NAME = SparkleRemoteMessagePort INSTALLER_LAUNCHER_BUNDLE_ID = org.sparkle-project.${INSTALLER_LAUNCHER_PRODUCT_NAME} APPCAST_DOWNLOADER_BUNDLE_ID = org.sparkle-project.${APPCAST_DOWNLOADER_PRODUCT_NAME} -UPDATE_DOWNLOADER_BUNDLE_ID = org.sparkle-project.${UPDATE_DOWNLOADER_PRODUCT_NAME} +PERSISTENT_DOWNLOADER_BUNDLE_ID = org.sparkle-project.${PERSISTENT_DOWNLOADER_PRODUCT_NAME} REMOTE_MESSAGE_PORT_BUNDLE_ID = org.sparkle-project.${REMOTE_MESSAGE_PORT_PRODUCT_NAME} -GCC_PREPROCESSOR_DEFINITIONS_COMMON = SPARKLE_NORMALIZE_INSTALLED_APPLICATION_NAME=$(SPARKLE_NORMALIZE_INSTALLED_APPLICATION_NAME) SPARKLE_AUTOMATED_DOWNGRADES=$(SPARKLE_AUTOMATED_DOWNGRADES) SPARKLE_APPEND_VERSION_NUMBER=$(SPARKLE_APPEND_VERSION_NUMBER) SPARKLE_BUNDLE_IDENTIFIER=\"$(SPARKLE_BUNDLE_IDENTIFIER)\" CURRENT_PROJECT_VERSION=\"$(CURRENT_PROJECT_VERSION)\" SPARKLE_RELAUNCH_TOOL_NAME=\"$(SPARKLE_RELAUNCH_TOOL_NAME)\" SPARKLE_INSTALLER_PROGRESS_TOOL_NAME=\"$(SPARKLE_INSTALLER_PROGRESS_TOOL_NAME)\" SPARKLE_ICON_NAME=\"$(SPARKLE_ICON_NAME)\" INSTALLER_LAUNCHER_BUNDLE_ID=\"${INSTALLER_LAUNCHER_BUNDLE_ID}\" APPCAST_DOWNLOADER_BUNDLE_ID=\"${APPCAST_DOWNLOADER_BUNDLE_ID}\" UPDATE_DOWNLOADER_BUNDLE_ID=\"${UPDATE_DOWNLOADER_BUNDLE_ID}\" REMOTE_MESSAGE_PORT_BUNDLE_ID=\"${REMOTE_MESSAGE_PORT_BUNDLE_ID}\" INSTALLER_LAUNCHER_PRODUCT_NAME=\"${INSTALLER_LAUNCHER_PRODUCT_NAME}\" APPCAST_DOWNLOADER_PRODUCT_NAME=\"${APPCAST_DOWNLOADER_PRODUCT_NAME}\" UPDATE_DOWNLOADER_PRODUCT_NAME=\"${UPDATE_DOWNLOADER_PRODUCT_NAME}\" REMOTE_MESSAGE_PORT_PRODUCT_NAME=\"${REMOTE_MESSAGE_PORT_PRODUCT_NAME}\" +GCC_PREPROCESSOR_DEFINITIONS_COMMON = SPARKLE_NORMALIZE_INSTALLED_APPLICATION_NAME=$(SPARKLE_NORMALIZE_INSTALLED_APPLICATION_NAME) SPARKLE_AUTOMATED_DOWNGRADES=$(SPARKLE_AUTOMATED_DOWNGRADES) SPARKLE_APPEND_VERSION_NUMBER=$(SPARKLE_APPEND_VERSION_NUMBER) SPARKLE_BUNDLE_IDENTIFIER=\"$(SPARKLE_BUNDLE_IDENTIFIER)\" CURRENT_PROJECT_VERSION=\"$(CURRENT_PROJECT_VERSION)\" SPARKLE_RELAUNCH_TOOL_NAME=\"$(SPARKLE_RELAUNCH_TOOL_NAME)\" SPARKLE_INSTALLER_PROGRESS_TOOL_NAME=\"$(SPARKLE_INSTALLER_PROGRESS_TOOL_NAME)\" SPARKLE_ICON_NAME=\"$(SPARKLE_ICON_NAME)\" INSTALLER_LAUNCHER_BUNDLE_ID=\"${INSTALLER_LAUNCHER_BUNDLE_ID}\" APPCAST_DOWNLOADER_BUNDLE_ID=\"${APPCAST_DOWNLOADER_BUNDLE_ID}\" PERSISTENT_DOWNLOADER_BUNDLE_ID=\"${PERSISTENT_DOWNLOADER_BUNDLE_ID}\" REMOTE_MESSAGE_PORT_BUNDLE_ID=\"${REMOTE_MESSAGE_PORT_BUNDLE_ID}\" INSTALLER_LAUNCHER_PRODUCT_NAME=\"${INSTALLER_LAUNCHER_PRODUCT_NAME}\" APPCAST_DOWNLOADER_PRODUCT_NAME=\"${APPCAST_DOWNLOADER_PRODUCT_NAME}\" PERSISTENT_DOWNLOADER_PRODUCT_NAME=\"${PERSISTENT_DOWNLOADER_PRODUCT_NAME}\" REMOTE_MESSAGE_PORT_PRODUCT_NAME=\"${REMOTE_MESSAGE_PORT_PRODUCT_NAME}\" CLANG_ENABLE_OBJC_ARC = YES GCC_ENABLE_PASCAL_STRINGS = NO diff --git a/Configurations/ConfigPersistentDownloader.xcconfig b/Configurations/ConfigPersistentDownloader.xcconfig new file mode 100644 index 00000000..15c1755f --- /dev/null +++ b/Configurations/ConfigPersistentDownloader.xcconfig @@ -0,0 +1,7 @@ +// PersistentDownloader + +INFOPLIST_FILE = PersistentDownloader/Info.plist +WRAPPER_EXTENSION = xpc +PRODUCT_BUNDLE_IDENTIFIER = ${PERSISTENT_DOWNLOADER_BUNDLE_ID} +PRODUCT_NAME = ${PERSISTENT_DOWNLOADER_PRODUCT_NAME} +CODE_SIGN_ENTITLEMENTS = PersistentDownloader/SparklePersistentDownloader.entitlements diff --git a/Configurations/ConfigPersistentDownloaderDebug.xcconfig b/Configurations/ConfigPersistentDownloaderDebug.xcconfig new file mode 100644 index 00000000..ab1840b3 --- /dev/null +++ b/Configurations/ConfigPersistentDownloaderDebug.xcconfig @@ -0,0 +1,4 @@ +// PersistentDownloader Debug +#include "ConfigPersistentDownloader.xcconfig" + +CODE_SIGN_IDENTITY = - diff --git a/Configurations/ConfigUpdateDownloader.xcconfig b/Configurations/ConfigUpdateDownloader.xcconfig deleted file mode 100644 index 52e67d6d..00000000 --- a/Configurations/ConfigUpdateDownloader.xcconfig +++ /dev/null @@ -1,7 +0,0 @@ -// UpdateDownloader - -INFOPLIST_FILE = UpdateDownloader/Info.plist -WRAPPER_EXTENSION = xpc -PRODUCT_BUNDLE_IDENTIFIER = ${UPDATE_DOWNLOADER_BUNDLE_ID} -PRODUCT_NAME = ${UPDATE_DOWNLOADER_PRODUCT_NAME} -CODE_SIGN_ENTITLEMENTS = UpdateDownloader/SparkleUpdateDownloader.entitlements diff --git a/Configurations/ConfigUpdateDownloaderDebug.xcconfig b/Configurations/ConfigUpdateDownloaderDebug.xcconfig deleted file mode 100644 index 68918e7d..00000000 --- a/Configurations/ConfigUpdateDownloaderDebug.xcconfig +++ /dev/null @@ -1,4 +0,0 @@ -// UpdateDownloader Debug -#include "ConfigUpdateDownloader.xcconfig" - -CODE_SIGN_IDENTITY = - diff --git a/Configurations/make-release-package.sh b/Configurations/make-release-package.sh index ed5bb4d9..4a25e7d8 100755 --- a/Configurations/make-release-package.sh +++ b/Configurations/make-release-package.sh @@ -15,12 +15,12 @@ if [ "$ACTION" = "" ] ; then mkdir -p "$CONFIGURATION_BUILD_DIR/staging/XPCServices" cp -R "$CONFIGURATION_BUILD_DIR/SparkleInstallerLauncher.xpc" "$CONFIGURATION_BUILD_DIR/staging/XPCServices" - cp -R "$CONFIGURATION_BUILD_DIR/SparkleUpdateDownloader.xpc" "$CONFIGURATION_BUILD_DIR/staging/XPCServices" + cp -R "$CONFIGURATION_BUILD_DIR/SparklePersistentDownloader.xpc" "$CONFIGURATION_BUILD_DIR/staging/XPCServices" cp -R "$CONFIGURATION_BUILD_DIR/SparkleAppcastDownloader.xpc" "$CONFIGURATION_BUILD_DIR/staging/XPCServices" cp -R "$CONFIGURATION_BUILD_DIR/SparkleRemoteMessagePort.xpc" "$CONFIGURATION_BUILD_DIR/staging/XPCServices" cp "$SRCROOT/AppcastDownloader/SparkleAppcastDownloader.entitlements" "$CONFIGURATION_BUILD_DIR/staging/XPCServices" - cp "$SRCROOT/UpdateDownloader/SparkleUpdateDownloader.entitlements" "$CONFIGURATION_BUILD_DIR/staging/XPCServices" + cp "$SRCROOT/PersistentDownloader/SparklePersistentDownloader.entitlements" "$CONFIGURATION_BUILD_DIR/staging/XPCServices" # Only copy dSYMs for Release builds, but don't check for the presence of the actual files # because missing dSYMs in a release build SHOULD trigger a build failure @@ -30,7 +30,7 @@ if [ "$ACTION" = "" ] ; then cp -R "$CONFIGURATION_BUILD_DIR/Sparkle.framework.dSYM" "$CONFIGURATION_BUILD_DIR/staging" cp -R "$CONFIGURATION_BUILD_DIR/SparkleInstallerLauncher.xpc.dSYM" "$CONFIGURATION_BUILD_DIR/staging/XPCServices" - cp -R "$CONFIGURATION_BUILD_DIR/SparkleUpdateDownloader.xpc.dSYM" "$CONFIGURATION_BUILD_DIR/staging/XPCServices" + cp -R "$CONFIGURATION_BUILD_DIR/SparklePersistentDownloader.xpc.dSYM" "$CONFIGURATION_BUILD_DIR/staging/XPCServices" cp -R "$CONFIGURATION_BUILD_DIR/SparkleAppcastDownloader.xpc.dSYM" "$CONFIGURATION_BUILD_DIR/staging/XPCServices" cp -R "$CONFIGURATION_BUILD_DIR/SparkleRemoteMessagePort.xpc.dSYM" "$CONFIGURATION_BUILD_DIR/staging/XPCServices" fi diff --git a/UpdateDownloader/Info.plist b/PersistentDownloader/Info.plist similarity index 100% rename from UpdateDownloader/Info.plist rename to PersistentDownloader/Info.plist diff --git a/UpdateDownloader/SUUpdateDownloader.h b/PersistentDownloader/SUPersistentDownloader.h similarity index 62% rename from UpdateDownloader/SUUpdateDownloader.h rename to PersistentDownloader/SUPersistentDownloader.h index 518f1442..d604c890 100644 --- a/UpdateDownloader/SUUpdateDownloader.h +++ b/PersistentDownloader/SUPersistentDownloader.h @@ -1,21 +1,21 @@ // -// SUUpdateDownloader.h -// UpdateDownloader +// SUPersistentDownloader.h +// PersistentDownloader // // Created by Mayur Pawashe on 4/1/16. // Copyright © 2016 Sparkle Project. All rights reserved. // #import -#import "SUUpdateDownloaderProtocol.h" +#import "SUPersistentDownloaderProtocol.h" -@protocol SUDownloaderDelegate; +@protocol SUPersistentDownloaderDelegate; // This object implements the protocol which we have defined. It provides the actual behavior for the service. It is 'exported' by the service to make it available to the process hosting the service over an NSXPCConnection. -@interface SUUpdateDownloader : NSObject +@interface SUPersistentDownloader : NSObject // Due to XPC remote object reasons, this delegate is strongly referenced // Invoke cleanup when done with this instance -- (instancetype)initWithDelegate:(id )delegate; +- (instancetype)initWithDelegate:(id )delegate; @end diff --git a/UpdateDownloader/SUUpdateDownloader.m b/PersistentDownloader/SUPersistentDownloader.m similarity index 92% rename from UpdateDownloader/SUUpdateDownloader.m rename to PersistentDownloader/SUPersistentDownloader.m index fdb2e77e..c354a2d7 100644 --- a/UpdateDownloader/SUUpdateDownloader.m +++ b/PersistentDownloader/SUPersistentDownloader.m @@ -1,22 +1,22 @@ // -// SUUpdateDownloader.m -// UpdateDownloader +// SUPersistentDownloader.m +// PersistentDownloader // // Created by Mayur Pawashe on 4/1/16. // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUUpdateDownloader.h" -#import "SUDownloaderDelegate.h" +#import "SUPersistentDownloader.h" +#import "SUPersistentDownloaderDelegate.h" #import "SUURLRequest.h" #import "SUErrors.h" -static NSString *SUUpdateDownloadingReason = @"Downloading Update"; +static NSString *SUPersistentDownloadingReason = @"Downloading persistent file"; -@interface SUUpdateDownloader () +@interface SUPersistentDownloader () // Delegate is intentionally strongly referenced; see header -@property (nonatomic) id delegate; +@property (nonatomic) id delegate; @property (nonatomic) NSURLDownload *download; @property (nonatomic, copy) NSString *bundleIdentifier; @property (nonatomic, copy) NSString *desiredFilename; @@ -24,7 +24,7 @@ static NSString *SUUpdateDownloadingReason = @"Downloading Update"; @end -@implementation SUUpdateDownloader +@implementation SUPersistentDownloader @synthesize delegate = _delegate; @synthesize download = _download; @@ -32,7 +32,7 @@ static NSString *SUUpdateDownloadingReason = @"Downloading Update"; @synthesize desiredFilename = _desiredFilename; @synthesize disabledAutomaticTermination = _disabledAutomaticTermination; -- (instancetype)initWithDelegate:(id )delegate +- (instancetype)initWithDelegate:(id )delegate { self = [super init]; if (self != nil) { @@ -53,7 +53,7 @@ static NSString *SUUpdateDownloadingReason = @"Downloading Update"; } // Prevent service from automatically terminating while downloading the update asynchronously without any reply blocks - [[NSProcessInfo processInfo] disableAutomaticTermination:SUUpdateDownloadingReason]; + [[NSProcessInfo processInfo] disableAutomaticTermination:SUPersistentDownloadingReason]; self.disabledAutomaticTermination = YES; self.download = [[NSURLDownload alloc] initWithRequest:request.request delegate:self]; @@ -65,7 +65,7 @@ static NSString *SUUpdateDownloadingReason = @"Downloading Update"; - (void)enableAutomaticTermination { if (self.disabledAutomaticTermination) { - [[NSProcessInfo processInfo] enableAutomaticTermination:SUUpdateDownloadingReason]; + [[NSProcessInfo processInfo] enableAutomaticTermination:SUPersistentDownloadingReason]; self.disabledAutomaticTermination = NO; } } diff --git a/Sparkle/SUDownloaderDelegate.h b/PersistentDownloader/SUPersistentDownloaderDelegate.h similarity index 86% rename from Sparkle/SUDownloaderDelegate.h rename to PersistentDownloader/SUPersistentDownloaderDelegate.h index fa0f3915..b1fb7458 100644 --- a/Sparkle/SUDownloaderDelegate.h +++ b/PersistentDownloader/SUPersistentDownloaderDelegate.h @@ -1,5 +1,5 @@ // -// SUDownloaderDelegate.h +// SUPersistentDownloaderDelegate.h // Sparkle // // Created by Mayur Pawashe on 4/1/16. @@ -10,7 +10,7 @@ NS_ASSUME_NONNULL_BEGIN -@protocol SUDownloaderDelegate +@protocol SUPersistentDownloaderDelegate - (void)downloaderDidSetDestinationName:(NSString *)destinationName temporaryDirectory:(NSString *)temporaryDirectory; diff --git a/UpdateDownloader/SUUpdateDownloaderProtocol.h b/PersistentDownloader/SUPersistentDownloaderProtocol.h similarity index 84% rename from UpdateDownloader/SUUpdateDownloaderProtocol.h rename to PersistentDownloader/SUPersistentDownloaderProtocol.h index 30e5ff93..6d04d2d6 100644 --- a/UpdateDownloader/SUUpdateDownloaderProtocol.h +++ b/PersistentDownloader/SUPersistentDownloaderProtocol.h @@ -1,6 +1,6 @@ // -// SUUpdateDownloaderProtocol.h -// UpdateDownloader +// SUPersistentDownloaderProtocol.h +// PersistentDownloader // // Created by Mayur Pawashe on 4/1/16. // Copyright © 2016 Sparkle Project. All rights reserved. @@ -13,7 +13,7 @@ NS_ASSUME_NONNULL_BEGIN @class SUURLRequest; // The protocol that this service will vend as its API. This header file will also need to be visible to the process hosting the service. -@protocol SUUpdateDownloaderProtocol +@protocol SUPersistentDownloaderProtocol - (void)startDownloadWithRequest:(SUURLRequest *)request bundleIdentifier:(NSString *)bundleIdentifier desiredFilename:(NSString *)desiredFilename; diff --git a/UpdateDownloader/SparkleUpdateDownloader.entitlements b/PersistentDownloader/SparklePersistentDownloader.entitlements similarity index 100% rename from UpdateDownloader/SparkleUpdateDownloader.entitlements rename to PersistentDownloader/SparklePersistentDownloader.entitlements diff --git a/UpdateDownloader/main.m b/PersistentDownloader/main.m similarity index 84% rename from UpdateDownloader/main.m rename to PersistentDownloader/main.m index 5d21ab6d..84c3378f 100644 --- a/UpdateDownloader/main.m +++ b/PersistentDownloader/main.m @@ -1,14 +1,14 @@ // // main.m -// UpdateDownloader +// PersistentDownloader // // Created by Mayur Pawashe on 4/1/16. // Copyright © 2016 Sparkle Project. All rights reserved. // #import -#import "SUUpdateDownloader.h" -#import "SUDownloaderDelegate.h" +#import "SUPersistentDownloader.h" +#import "SUPersistentDownloaderDelegate.h" @interface ServiceDelegate : NSObject @end @@ -20,13 +20,13 @@ // Configure the connection. // First, set the interface that the exported object implements. - newConnection.exportedInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SUUpdateDownloaderProtocol)]; + newConnection.exportedInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SUPersistentDownloaderProtocol)]; // Then set remote object interface - newConnection.remoteObjectInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SUDownloaderDelegate)]; + newConnection.remoteObjectInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SUPersistentDownloaderDelegate)]; // Next, set the object that the connection exports. All messages sent on the connection to this service will be sent to the exported object to handle. The connection retains the exported object. - SUUpdateDownloader *exportedObject = [[SUUpdateDownloader alloc] initWithDelegate:newConnection.remoteObjectProxy]; + SUPersistentDownloader *exportedObject = [[SUPersistentDownloader alloc] initWithDelegate:newConnection.remoteObjectProxy]; newConnection.exportedObject = exportedObject; // Resuming the connection allows the system to deliver more incoming messages. diff --git a/Sparkle.xcodeproj/project.pbxproj b/Sparkle.xcodeproj/project.pbxproj index fdf7357b..a546aaf2 100644 --- a/Sparkle.xcodeproj/project.pbxproj +++ b/Sparkle.xcodeproj/project.pbxproj @@ -143,6 +143,9 @@ 7229E1BD1C98EFF200CB50D0 /* SUDownloadDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 7229E1BB1C98EFF200CB50D0 /* SUDownloadDriver.h */; }; 7229E1BE1C98EFF200CB50D0 /* SUDownloadDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 7229E1BC1C98EFF200CB50D0 /* SUDownloadDriver.m */; }; 723B252A1CEA7F3B00909873 /* bscommon.c in Sources */ = {isa = PBXBuildFile; fileRef = 72B09CE91CEA18900052EF9E /* bscommon.c */; }; + 723B5DA71CF7AB0100365F95 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 723B5DA01CF7AB0100365F95 /* main.m */; }; + 723B5DA91CF7AB0100365F95 /* SUPersistentDownloader.m in Sources */ = {isa = PBXBuildFile; fileRef = 723B5DA31CF7AB0100365F95 /* SUPersistentDownloader.m */; }; + 723B5DAA1CF7AB6A00365F95 /* SUPersistentDownloader.m in Sources */ = {isa = PBXBuildFile; fileRef = 723B5DA31CF7AB0100365F95 /* SUPersistentDownloader.m */; }; 7246E0A31C83B685003B4E75 /* SUStandardUpdaterController.h in Headers */ = {isa = PBXBuildFile; fileRef = 7246E0A11C83B685003B4E75 /* SUStandardUpdaterController.h */; settings = {ATTRIBUTES = (Public, ); }; }; 7246E0A41C83B685003B4E75 /* SUStandardUpdaterController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7246E0A21C83B685003B4E75 /* SUStandardUpdaterController.m */; }; 725602D51C83551C00DAA70E /* SUApplicationInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 725602D31C83551C00DAA70E /* SUApplicationInfo.h */; }; @@ -180,9 +183,6 @@ 726E07BE1CAF0C5C001A286B /* SUFileManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 7275F9C01B5F1F2900B1D19E /* SUFileManager.m */; }; 726E07BF1CAF0C6C001A286B /* SUConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A5F09CA6EB100B7442F /* SUConstants.m */; }; 726E07C01CAF15B7001A286B /* SULog.m in Sources */ = {isa = PBXBuildFile; fileRef = 55C14F05136EF6DB00649790 /* SULog.m */; }; - 726E07F41CAF37BD001A286B /* SUUpdateDownloader.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E07F31CAF37BD001A286B /* SUUpdateDownloader.m */; }; - 726E07F61CAF37BD001A286B /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E07F51CAF37BD001A286B /* main.m */; }; - 726E08011CAF3F70001A286B /* SUDownloaderDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 726E08001CAF3F70001A286B /* SUDownloaderDelegate.h */; }; 726E4A0E1C86881600C57C6A /* SUStandardUserDriverUIDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 726E4A0D1C86881600C57C6A /* SUStandardUserDriverUIDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; }; 726E4A101C86B5A200C57C6A /* SUStandardUserDriverRemoteDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 726E4A0F1C86B5A200C57C6A /* SUStandardUserDriverRemoteDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; }; 726E4A1B1C86C88F00C57C6A /* TestAppHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E4A1A1C86C88F00C57C6A /* TestAppHelper.m */; }; @@ -299,9 +299,8 @@ 72F94F591CC44DE1002DEE68 /* SUXPCServiceInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 72F94F571CC44DE1002DEE68 /* SUXPCServiceInfo.m */; }; 72F94F5A1CC450DE002DEE68 /* SUInstallerLauncher.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E07B11CAF08D6001A286B /* SUInstallerLauncher.m */; }; 72F94F5B1CC451B4002DEE68 /* SUAppcastDownloader.m in Sources */ = {isa = PBXBuildFile; fileRef = 728638F71CAF5A5F00783084 /* SUAppcastDownloader.m */; }; - 72F94F5C1CC452C1002DEE68 /* SUUpdateDownloader.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E07F31CAF37BD001A286B /* SUUpdateDownloader.m */; }; 72F94F5D1CC455B4002DEE68 /* SparkleInstallerLauncher.xpc in Embed XPC Services */ = {isa = PBXBuildFile; fileRef = 726E07AD1CAF08D6001A286B /* SparkleInstallerLauncher.xpc */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; - 72F94F5E1CC455B4002DEE68 /* SparkleUpdateDownloader.xpc in Embed XPC Services */ = {isa = PBXBuildFile; fileRef = 726E07EF1CAF37BD001A286B /* SparkleUpdateDownloader.xpc */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; + 72F94F5E1CC455B4002DEE68 /* SparklePersistentDownloader.xpc in Embed XPC Services */ = {isa = PBXBuildFile; fileRef = 726E07EF1CAF37BD001A286B /* SparklePersistentDownloader.xpc */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 72F94F5F1CC455B4002DEE68 /* SparkleAppcastDownloader.xpc in Embed XPC Services */ = {isa = PBXBuildFile; fileRef = 728638F31CAF5A5F00783084 /* SparkleAppcastDownloader.xpc */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 72F94F601CC455B4002DEE68 /* SparkleRemoteMessagePort.xpc in Embed XPC Services */ = {isa = PBXBuildFile; fileRef = 72E41A3E1CB20BA7003D47E0 /* SparkleRemoteMessagePort.xpc */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 767B61AC1972D488004E0C3C /* SUGuidedPackageInstaller.h in Headers */ = {isa = PBXBuildFile; fileRef = 767B61AA1972D488004E0C3C /* SUGuidedPackageInstaller.h */; }; @@ -524,7 +523,7 @@ dstSubfolderSpec = 16; files = ( 72F94F5D1CC455B4002DEE68 /* SparkleInstallerLauncher.xpc in Embed XPC Services */, - 72F94F5E1CC455B4002DEE68 /* SparkleUpdateDownloader.xpc in Embed XPC Services */, + 72F94F5E1CC455B4002DEE68 /* SparklePersistentDownloader.xpc in Embed XPC Services */, 72F94F5F1CC455B4002DEE68 /* SparkleAppcastDownloader.xpc in Embed XPC Services */, 72F94F601CC455B4002DEE68 /* SparkleRemoteMessagePort.xpc in Embed XPC Services */, 726E4A211C86C88F00C57C6A /* TestAppHelper.xpc in Embed XPC Services */, @@ -785,6 +784,13 @@ 7229E1B81C97CC4D00CB50D0 /* SUScheduledUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUScheduledUpdateDriver.m; sourceTree = ""; }; 7229E1BB1C98EFF200CB50D0 /* SUDownloadDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUDownloadDriver.h; sourceTree = ""; }; 7229E1BC1C98EFF200CB50D0 /* SUDownloadDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUDownloadDriver.m; sourceTree = ""; }; + 723B5D9F1CF7AB0100365F95 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = PersistentDownloader/Info.plist; sourceTree = SOURCE_ROOT; }; + 723B5DA01CF7AB0100365F95 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = PersistentDownloader/main.m; sourceTree = SOURCE_ROOT; }; + 723B5DA11CF7AB0100365F95 /* SparklePersistentDownloader.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; name = SparklePersistentDownloader.entitlements; path = PersistentDownloader/SparklePersistentDownloader.entitlements; sourceTree = SOURCE_ROOT; }; + 723B5DA21CF7AB0100365F95 /* SUPersistentDownloader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SUPersistentDownloader.h; path = PersistentDownloader/SUPersistentDownloader.h; sourceTree = SOURCE_ROOT; }; + 723B5DA31CF7AB0100365F95 /* SUPersistentDownloader.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SUPersistentDownloader.m; path = PersistentDownloader/SUPersistentDownloader.m; sourceTree = SOURCE_ROOT; }; + 723B5DA41CF7AB0100365F95 /* SUPersistentDownloaderDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SUPersistentDownloaderDelegate.h; path = PersistentDownloader/SUPersistentDownloaderDelegate.h; sourceTree = SOURCE_ROOT; }; + 723B5DA51CF7AB0100365F95 /* SUPersistentDownloaderProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SUPersistentDownloaderProtocol.h; path = PersistentDownloader/SUPersistentDownloaderProtocol.h; sourceTree = SOURCE_ROOT; }; 7246E0A11C83B685003B4E75 /* SUStandardUpdaterController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUStandardUpdaterController.h; sourceTree = ""; }; 7246E0A21C83B685003B4E75 /* SUStandardUpdaterController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUStandardUpdaterController.m; sourceTree = ""; }; 725602D31C83551C00DAA70E /* SUApplicationInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUApplicationInfo.h; sourceTree = ""; }; @@ -822,14 +828,7 @@ 726E07B31CAF08D6001A286B /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 726E07B51CAF08D6001A286B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 726E07C11CAF1E79001A286B /* ConfigInstallerLauncher.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigInstallerLauncher.xcconfig; sourceTree = ""; }; - 726E07EF1CAF37BD001A286B /* SparkleUpdateDownloader.xpc */ = {isa = PBXFileReference; explicitFileType = "wrapper.xpc-service"; includeInIndex = 0; path = SparkleUpdateDownloader.xpc; sourceTree = BUILT_PRODUCTS_DIR; }; - 726E07F11CAF37BD001A286B /* SUUpdateDownloaderProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SUUpdateDownloaderProtocol.h; sourceTree = ""; }; - 726E07F21CAF37BD001A286B /* SUUpdateDownloader.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SUUpdateDownloader.h; sourceTree = ""; }; - 726E07F31CAF37BD001A286B /* SUUpdateDownloader.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SUUpdateDownloader.m; sourceTree = ""; }; - 726E07F51CAF37BD001A286B /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 726E07F71CAF37BD001A286B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 726E07FF1CAF3801001A286B /* SparkleUpdateDownloader.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = SparkleUpdateDownloader.entitlements; sourceTree = ""; }; - 726E08001CAF3F70001A286B /* SUDownloaderDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SUDownloaderDelegate.h; path = ../Sparkle/SUDownloaderDelegate.h; sourceTree = ""; }; + 726E07EF1CAF37BD001A286B /* SparklePersistentDownloader.xpc */ = {isa = PBXFileReference; explicitFileType = "wrapper.xpc-service"; includeInIndex = 0; path = SparklePersistentDownloader.xpc; sourceTree = BUILT_PRODUCTS_DIR; }; 726E4A0D1C86881600C57C6A /* SUStandardUserDriverUIDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUStandardUserDriverUIDelegate.h; sourceTree = ""; }; 726E4A0F1C86B5A200C57C6A /* SUStandardUserDriverRemoteDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUStandardUserDriverRemoteDelegate.h; sourceTree = ""; }; 726E4A111C86C44A00C57C6A /* Sparkle-Test-App.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = "Sparkle-Test-App.entitlements"; sourceTree = ""; }; @@ -850,7 +849,7 @@ 7275F9C01B5F1F2900B1D19E /* SUFileManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUFileManager.m; sourceTree = ""; }; 728337A41C9E6FF40085AA99 /* SUProbeInstallStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUProbeInstallStatus.h; sourceTree = ""; }; 728337A51C9E6FF40085AA99 /* SUProbeInstallStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUProbeInstallStatus.m; sourceTree = ""; }; - 728638EE1CAF589C00783084 /* ConfigUpdateDownloader.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigUpdateDownloader.xcconfig; sourceTree = ""; }; + 728638EE1CAF589C00783084 /* ConfigPersistentDownloader.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigPersistentDownloader.xcconfig; sourceTree = ""; }; 728638F31CAF5A5F00783084 /* SparkleAppcastDownloader.xpc */ = {isa = PBXFileReference; explicitFileType = "wrapper.xpc-service"; includeInIndex = 0; path = SparkleAppcastDownloader.xpc; sourceTree = BUILT_PRODUCTS_DIR; }; 728638F51CAF5A5F00783084 /* SUAppcastDownloaderProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SUAppcastDownloaderProtocol.h; sourceTree = ""; }; 728638F61CAF5A5F00783084 /* SUAppcastDownloader.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SUAppcastDownloader.h; sourceTree = ""; }; @@ -938,7 +937,7 @@ 72F94EB01CC2A865002DEE68 /* ConfigCommonReleaseHTTP.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigCommonReleaseHTTP.xcconfig; sourceTree = ""; }; 72F94ED31CC33F1E002DEE68 /* set-ats-exceptions.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "set-ats-exceptions.sh"; sourceTree = ""; }; 72F94ED51CC3441A002DEE68 /* ConfigInstallerLauncherDebug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigInstallerLauncherDebug.xcconfig; sourceTree = ""; }; - 72F94ED61CC344A7002DEE68 /* ConfigUpdateDownloaderDebug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigUpdateDownloaderDebug.xcconfig; sourceTree = ""; }; + 72F94ED61CC344A7002DEE68 /* ConfigPersistentDownloaderDebug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigPersistentDownloaderDebug.xcconfig; sourceTree = ""; }; 72F94ED71CC344E4002DEE68 /* ConfigAppcastDownloaderDebug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigAppcastDownloaderDebug.xcconfig; sourceTree = ""; }; 72F94ED81CC34529002DEE68 /* ConfigRemoteMessagePortDebug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigRemoteMessagePortDebug.xcconfig; sourceTree = ""; }; 72F94EDA1CC36C37002DEE68 /* ConfigTestAppDebug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigTestAppDebug.xcconfig; sourceTree = ""; }; @@ -1100,7 +1099,7 @@ 726B2B5D1C645FC900388755 /* UI Tests.xctest */, 726E4A161C86C88F00C57C6A /* TestAppHelper.xpc */, 726E07AD1CAF08D6001A286B /* SparkleInstallerLauncher.xpc */, - 726E07EF1CAF37BD001A286B /* SparkleUpdateDownloader.xpc */, + 726E07EF1CAF37BD001A286B /* SparklePersistentDownloader.xpc */, 728638F31CAF5A5F00783084 /* SparkleAppcastDownloader.xpc */, 72E41A3E1CB20BA7003D47E0 /* SparkleRemoteMessagePort.xpc */, 721C24451CB753E6005440CB /* Updater.app */, @@ -1539,18 +1538,18 @@ path = ../InstallerLauncher; sourceTree = ""; }; - 726E07F01CAF37BD001A286B /* UpdateDownloader */ = { + 726E07F01CAF37BD001A286B /* PersistentDownloader */ = { isa = PBXGroup; children = ( - 726E07F11CAF37BD001A286B /* SUUpdateDownloaderProtocol.h */, - 726E08001CAF3F70001A286B /* SUDownloaderDelegate.h */, - 726E07F21CAF37BD001A286B /* SUUpdateDownloader.h */, - 726E07F31CAF37BD001A286B /* SUUpdateDownloader.m */, - 726E07F51CAF37BD001A286B /* main.m */, - 726E07F71CAF37BD001A286B /* Info.plist */, - 726E07FF1CAF3801001A286B /* SparkleUpdateDownloader.entitlements */, + 723B5D9F1CF7AB0100365F95 /* Info.plist */, + 723B5DA01CF7AB0100365F95 /* main.m */, + 723B5DA11CF7AB0100365F95 /* SparklePersistentDownloader.entitlements */, + 723B5DA21CF7AB0100365F95 /* SUPersistentDownloader.h */, + 723B5DA31CF7AB0100365F95 /* SUPersistentDownloader.m */, + 723B5DA41CF7AB0100365F95 /* SUPersistentDownloaderDelegate.h */, + 723B5DA51CF7AB0100365F95 /* SUPersistentDownloaderProtocol.h */, ); - name = UpdateDownloader; + name = PersistentDownloader; path = ../UpdateDownloader; sourceTree = ""; }; @@ -1648,7 +1647,7 @@ 72F94F571CC44DE1002DEE68 /* SUXPCServiceInfo.m */, 728638F41CAF5A5F00783084 /* AppcastDownloader */, 726E07AE1CAF08D6001A286B /* InstallerLauncher */, - 726E07F01CAF37BD001A286B /* UpdateDownloader */, + 726E07F01CAF37BD001A286B /* PersistentDownloader */, 72E41A3F1CB20BA7003D47E0 /* RemoteMessagePort */, ); name = "XPC Services"; @@ -1678,8 +1677,8 @@ 729F10FE1C65A9B500DFCCC5 /* ConfigUITestCoverage.xcconfig */, 726E07C11CAF1E79001A286B /* ConfigInstallerLauncher.xcconfig */, 72F94ED51CC3441A002DEE68 /* ConfigInstallerLauncherDebug.xcconfig */, - 728638EE1CAF589C00783084 /* ConfigUpdateDownloader.xcconfig */, - 72F94ED61CC344A7002DEE68 /* ConfigUpdateDownloaderDebug.xcconfig */, + 728638EE1CAF589C00783084 /* ConfigPersistentDownloader.xcconfig */, + 72F94ED61CC344A7002DEE68 /* ConfigPersistentDownloaderDebug.xcconfig */, 728639041CAF614000783084 /* ConfigAppcastDownloader.xcconfig */, 72F94ED71CC344E4002DEE68 /* ConfigAppcastDownloaderDebug.xcconfig */, 72E41A551CB22F44003D47E0 /* ConfigRemoteMessagePort.xcconfig */, @@ -1723,7 +1722,6 @@ 61B5FC0D09C4FC8200B25A18 /* SUAppcast.h in Headers */, 72A1C2631CD6849C004CD282 /* SUUpdatePermissionPrompt.h in Headers */, 7246E0A31C83B685003B4E75 /* SUStandardUpdaterController.h in Headers */, - 726E08011CAF3F70001A286B /* SUDownloaderDelegate.h in Headers */, 61299A8D09CA790200B7442F /* SUUnarchiver.h in Headers */, 61B5FC7009C51F4A00B25A18 /* SUAppcastItem.h in Headers */, 72B767D61C9C8B5C00A07552 /* SUBasicUpdateDriver.h in Headers */, @@ -1942,9 +1940,9 @@ productReference = 726E07AD1CAF08D6001A286B /* SparkleInstallerLauncher.xpc */; productType = "com.apple.product-type.xpc-service"; }; - 726E07EE1CAF37BD001A286B /* SparkleUpdateDownloader */ = { + 726E07EE1CAF37BD001A286B /* SparklePersistentDownloader */ = { isa = PBXNativeTarget; - buildConfigurationList = 726E07FB1CAF37BD001A286B /* Build configuration list for PBXNativeTarget "SparkleUpdateDownloader" */; + buildConfigurationList = 726E07FB1CAF37BD001A286B /* Build configuration list for PBXNativeTarget "SparklePersistentDownloader" */; buildPhases = ( 726E07EB1CAF37BD001A286B /* Sources */, 726E07EC1CAF37BD001A286B /* Frameworks */, @@ -1955,9 +1953,9 @@ ); dependencies = ( ); - name = SparkleUpdateDownloader; + name = SparklePersistentDownloader; productName = UpdateDownloader; - productReference = 726E07EF1CAF37BD001A286B /* SparkleUpdateDownloader.xpc */; + productReference = 726E07EF1CAF37BD001A286B /* SparklePersistentDownloader.xpc */; productType = "com.apple.product-type.xpc-service"; }; 726E4A151C86C88F00C57C6A /* TestAppHelper */ = { @@ -2179,7 +2177,7 @@ targets = ( 8DC2EF4F0486A6940098B216 /* Sparkle */, 726E07AC1CAF08D6001A286B /* SparkleInstallerLauncher */, - 726E07EE1CAF37BD001A286B /* SparkleUpdateDownloader */, + 726E07EE1CAF37BD001A286B /* SparklePersistentDownloader */, 728638F21CAF5A5F00783084 /* SparkleAppcastDownloader */, 72E41A3D1CB20BA7003D47E0 /* SparkleRemoteMessagePort */, 61B5F90109C4CEE200B25A18 /* Sparkle Test App */, @@ -2553,9 +2551,9 @@ buildActionMask = 2147483647; files = ( 7293A1B11CEE9B9F00B957A7 /* SUURLRequest.m in Sources */, + 723B5DA71CF7AB0100365F95 /* main.m in Sources */, 728638ED1CAF50CE00783084 /* SUConstants.m in Sources */, - 726E07F61CAF37BD001A286B /* main.m in Sources */, - 726E07F41CAF37BD001A286B /* SUUpdateDownloader.m in Sources */, + 723B5DA91CF7AB0100365F95 /* SUPersistentDownloader.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -2602,7 +2600,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 72F94F5C1CC452C1002DEE68 /* SUUpdateDownloader.m in Sources */, + 723B5DAA1CF7AB6A00365F95 /* SUPersistentDownloader.m in Sources */, 72F94F5B1CC451B4002DEE68 /* SUAppcastDownloader.m in Sources */, 72F94F5A1CC450DE002DEE68 /* SUInstallerLauncher.m in Sources */, 72B767E31C9CE90A00A07552 /* SUCoreBasedUpdateDriver.m in Sources */, @@ -2739,7 +2737,7 @@ }; 72F94F641CC48669002DEE68 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - target = 726E07EE1CAF37BD001A286B /* SparkleUpdateDownloader */; + target = 726E07EE1CAF37BD001A286B /* SparklePersistentDownloader */; targetProxy = 72F94F631CC48669002DEE68 /* PBXContainerItemProxy */; }; 72F94F661CC48669002DEE68 /* PBXTargetDependency */ = { @@ -2759,7 +2757,7 @@ }; 72F94F6D1CC4A0C8002DEE68 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - target = 726E07EE1CAF37BD001A286B /* SparkleUpdateDownloader */; + target = 726E07EE1CAF37BD001A286B /* SparklePersistentDownloader */; targetProxy = 72F94F6C1CC4A0C8002DEE68 /* PBXContainerItemProxy */; }; 72F94F6F1CC4A0C8002DEE68 /* PBXTargetDependency */ = { @@ -3189,7 +3187,7 @@ }; 726E07FC1CAF37BD001A286B /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 72F94ED61CC344A7002DEE68 /* ConfigUpdateDownloaderDebug.xcconfig */; + baseConfigurationReference = 72F94ED61CC344A7002DEE68 /* ConfigPersistentDownloaderDebug.xcconfig */; buildSettings = { CLANG_ANALYZER_NONNULL = YES; }; @@ -3197,7 +3195,7 @@ }; 726E07FD1CAF37BD001A286B /* Coverage */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 72F94ED61CC344A7002DEE68 /* ConfigUpdateDownloaderDebug.xcconfig */; + baseConfigurationReference = 72F94ED61CC344A7002DEE68 /* ConfigPersistentDownloaderDebug.xcconfig */; buildSettings = { CLANG_ANALYZER_NONNULL = YES; }; @@ -3205,7 +3203,7 @@ }; 726E07FE1CAF37BD001A286B /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 728638EE1CAF589C00783084 /* ConfigUpdateDownloader.xcconfig */; + baseConfigurationReference = 728638EE1CAF589C00783084 /* ConfigPersistentDownloader.xcconfig */; buildSettings = { CLANG_ANALYZER_NONNULL = YES; }; @@ -3322,7 +3320,7 @@ }; 72F94EA21CC2A23A002DEE68 /* Release-HTTP */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 728638EE1CAF589C00783084 /* ConfigUpdateDownloader.xcconfig */; + baseConfigurationReference = 728638EE1CAF589C00783084 /* ConfigPersistentDownloader.xcconfig */; buildSettings = { CLANG_ANALYZER_NONNULL = YES; }; @@ -3554,7 +3552,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 726E07FB1CAF37BD001A286B /* Build configuration list for PBXNativeTarget "SparkleUpdateDownloader" */ = { + 726E07FB1CAF37BD001A286B /* Build configuration list for PBXNativeTarget "SparklePersistentDownloader" */ = { isa = XCConfigurationList; buildConfigurations = ( 726E07FC1CAF37BD001A286B /* Debug */, diff --git a/Sparkle/SUCoreBasedUpdateDriver.m b/Sparkle/SUCoreBasedUpdateDriver.m index 19cc3649..f82dc3bc 100644 --- a/Sparkle/SUCoreBasedUpdateDriver.m +++ b/Sparkle/SUCoreBasedUpdateDriver.m @@ -49,7 +49,7 @@ // If we support sandboxing this component in the future, it is important to note this may return a different path // For this reason, this method should not be a part of SUHost because its behavior depends on what kind of process it's being invoked from -#warning kind of duplicated code from SUUpdateDownloader ?? +#warning kind of duplicated code from SUPersistentDownloader ?? + (NSString *)sparkleCachePathForHost:(SUHost *)host { NSArray *cachePaths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES); diff --git a/Sparkle/SUDownloadDriver.m b/Sparkle/SUDownloadDriver.m index 3bfa8602..e9b832d1 100644 --- a/Sparkle/SUDownloadDriver.m +++ b/Sparkle/SUDownloadDriver.m @@ -7,8 +7,8 @@ // #import "SUDownloadDriver.h" -#import "SUDownloaderDelegate.h" -#import "SUUpdateDownloader.h" +#import "SUPersistentDownloaderDelegate.h" +#import "SUPersistentDownloader.h" #import "SUXPCServiceInfo.h" #import "SUAppcastItem.h" #import "SUFileManager.h" @@ -22,9 +22,9 @@ #error This is a "core" class and should NOT import AppKit #endif -@interface SUDownloadDriver () +@interface SUDownloadDriver () -@property (nonatomic) id downloader; +@property (nonatomic) id downloader; @property (nonatomic) NSXPCConnection *connection; @property (nonatomic, readonly) SUAppcastItem *updateItem; @property (nonatomic, readonly) SUHost *host; @@ -58,12 +58,12 @@ _request = [NSMutableURLRequest requestWithURL:updateItem.fileURL]; [_request setValue:userAgent forHTTPHeaderField:@"User-Agent"]; - if (!SUXPCServiceExists(@UPDATE_DOWNLOADER_PRODUCT_NAME)) { - _downloader = [[SUUpdateDownloader alloc] initWithDelegate:self]; + if (!SUXPCServiceExists(@PERSISTENT_DOWNLOADER_PRODUCT_NAME)) { + _downloader = [[SUPersistentDownloader alloc] initWithDelegate:self]; } else { - _connection = [[NSXPCConnection alloc] initWithServiceName:@UPDATE_DOWNLOADER_BUNDLE_ID]; - _connection.remoteObjectInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SUUpdateDownloaderProtocol)]; - _connection.exportedInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SUDownloaderDelegate)]; + _connection = [[NSXPCConnection alloc] initWithServiceName:@PERSISTENT_DOWNLOADER_BUNDLE_ID]; + _connection.remoteObjectInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SUPersistentDownloaderProtocol)]; + _connection.exportedInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SUPersistentDownloaderDelegate)]; _connection.exportedObject = self; _downloader = _connection.remoteObjectProxy; diff --git a/Sparkle/SUUpdater.m b/Sparkle/SUUpdater.m index 572e9d42..8c781aa4 100644 --- a/Sparkle/SUUpdater.m +++ b/Sparkle/SUUpdater.m @@ -173,15 +173,15 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification BOOL foundXPCAppcastDownloaderService = NO; BOOL foundATSAppcastIssue = [self checkATSIssueForBundle:SUXPCServiceBundle(@APPCAST_DOWNLOADER_PRODUCT_NAME) getBundleExists:&foundXPCAppcastDownloaderService]; - BOOL foundXPCUpdateDownloaderService = NO; + BOOL foundXPCPersistentDownloaderService = NO; BOOL foundATSUpdateIssue = NO; if (!foundATSAppcastIssue) { - foundATSUpdateIssue = [self checkATSIssueForBundle:SUXPCServiceBundle(@UPDATE_DOWNLOADER_PRODUCT_NAME) getBundleExists:&foundXPCUpdateDownloaderService]; + foundATSUpdateIssue = [self checkATSIssueForBundle:SUXPCServiceBundle(@PERSISTENT_DOWNLOADER_PRODUCT_NAME) getBundleExists:&foundXPCPersistentDownloaderService]; } NSBundle *mainBundle = [NSBundle mainBundle]; BOOL foundATSMainBundleIssue = NO; - if (!foundATSAppcastIssue && !foundATSUpdateIssue && (!foundXPCAppcastDownloaderService || !foundXPCUpdateDownloaderService)) { + if (!foundATSAppcastIssue && !foundATSUpdateIssue && (!foundXPCAppcastDownloaderService || !foundXPCPersistentDownloaderService)) { BOOL foundATSIssue = ([mainBundle objectForInfoDictionaryKey:@"NSAppTransportSecurity"] == nil); BOOL updatingMainBundle = [self.host.bundle isEqualTo:mainBundle];