From c9f673cda84bc8c1ead9dcc6c44ee2b83b0bf717 Mon Sep 17 00:00:00 2001 From: Zorg Date: Fri, 5 Aug 2016 19:10:21 -0400 Subject: [PATCH] Use SPU prefix in many places --- Autoupdate/AgentConnection.h | 4 +- Autoupdate/AgentConnection.m | 6 +- Autoupdate/AppInstaller.m | 44 +- ...stallationInfo.h => SPUInstallationInfo.h} | 4 +- ...stallationInfo.m => SPUInstallationInfo.m} | 6 +- ...InputData.h => SPUInstallationInputData.h} | 4 +- ...InputData.m => SPUInstallationInputData.m} | 12 +- ...allerProtocol.h => SPUInstallerProtocol.h} | 4 +- ...rValidation.h => SPUInstallerValidation.h} | 4 +- ...rValidation.m => SPUInstallerValidation.m} | 6 +- Autoupdate/SUGuidedPackageInstaller.h | 4 +- Autoupdate/SUInstaller.h | 4 +- Autoupdate/SUInstaller.m | 16 +- Autoupdate/SUPackageInstaller.h | 4 +- Autoupdate/SUPlainInstaller.h | 4 +- InstallerConnection/SUInstallerConnection.m | 4 +- InstallerLauncher/SUInstallerLauncher.m | 20 +- InstallerStatus/SUInstallerStatus.m | 2 +- PersistentDownloader/SUPersistentDownloader.m | 12 +- .../SUPersistentDownloaderProtocol.h | 4 +- Sparkle.xcodeproj/project.pbxproj | 460 +++++++++--------- .../InstallerProgressAppController.m | 12 +- ...Protocol.h => SPUInstallerAgentProtocol.h} | 4 +- ...ApplicationInfo.h => SPUApplicationInfo.h} | 2 +- ...ApplicationInfo.m => SPUApplicationInfo.m} | 8 +- Sparkle/{SUBundleIcon.h => SPUBundleIcon.h} | 2 +- Sparkle/{SUBundleIcon.m => SPUBundleIcon.m} | 4 +- Sparkle/SPUInstallationType.h | 20 + ...heDirectory.h => SPULocalCacheDirectory.h} | 2 +- ...heDirectory.m => SPULocalCacheDirectory.m} | 4 +- .../{SUSecureCoding.h => SPUSecureCoding.h} | 6 +- .../{SUSecureCoding.m => SPUSecureCoding.m} | 8 +- ...oller.h => SPUStandardUpdaterController.h} | 8 +- ...oller.m => SPUStandardUpdaterController.m} | 14 +- ...rdUserDriver.h => SPUStandardUserDriver.h} | 10 +- ...rdUserDriver.m => SPUStandardUserDriver.m} | 46 +- ...gate.h => SPUStandardUserDriverDelegate.h} | 4 +- ...ocol.h => SPUStandardUserDriverProtocol.h} | 8 +- ...thorization.h => SPUSystemAuthorization.h} | 4 +- ...thorization.m => SPUSystemAuthorization.m} | 12 +- Sparkle/{SUURLDownload.h => SPUURLDownload.h} | 4 +- Sparkle/{SUURLDownload.m => SPUURLDownload.m} | 12 +- Sparkle/{SUURLRequest.h => SPUURLRequest.h} | 4 +- Sparkle/{SUURLRequest.m => SPUURLRequest.m} | 32 +- Sparkle/SPUUpdatePermission.h | 24 + ...datePermission.m => SPUUpdatePermission.m} | 22 +- ...onPrompt.h => SPUUpdatePermissionPrompt.h} | 6 +- ...onPrompt.m => SPUUpdatePermissionPrompt.m} | 26 +- Sparkle/SPUUpdater.h | 6 +- Sparkle/SPUUpdater.m | 32 +- .../{SUUpdaterCycle.h => SPUUpdaterCycle.h} | 8 +- .../{SUUpdaterCycle.m => SPUUpdaterCycle.m} | 12 +- ...UpdaterSettings.h => SPUUpdaterSettings.h} | 4 +- ...UpdaterSettings.m => SPUUpdaterSettings.m} | 8 +- Sparkle/{SUUserDriver.h => SPUUserDriver.h} | 8 +- ...mponent.h => SPUUserDriverCoreComponent.h} | 8 +- ...mponent.m => SPUUserDriverCoreComponent.m} | 10 +- ...SUXPCServiceInfo.h => SPUXPCServiceInfo.h} | 6 +- ...SUXPCServiceInfo.m => SPUXPCServiceInfo.m} | 8 +- Sparkle/SUAppcast.m | 6 +- Sparkle/SUAppcastItem.m | 12 +- Sparkle/SUBasicUpdateDriver.m | 4 +- Sparkle/SUDownloadDriver.m | 8 +- Sparkle/SUInstallationType.h | 20 - Sparkle/SUInstallerDriver.m | 17 +- Sparkle/SUProbeInstallStatus.h | 4 +- Sparkle/SUProbeInstallStatus.m | 16 +- Sparkle/SUScheduledUpdateDriver.h | 4 +- Sparkle/SUScheduledUpdateDriver.m | 4 +- Sparkle/SUStatusController.m | 6 +- Sparkle/SUUIBasedUpdateDriver.h | 4 +- Sparkle/SUUIBasedUpdateDriver.m | 12 +- Sparkle/SUUpdateAlert.m | 10 +- Sparkle/SUUpdatePermission.h | 24 - Sparkle/SUUpdater.m | 10 +- Sparkle/SUUserInitiatedUpdateDriver.h | 4 +- Sparkle/SUUserInitiatedUpdateDriver.m | 6 +- Sparkle/Sparkle.h | 16 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 6 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- ...ompt.xib => SPUUpdatePermissionPrompt.xib} | 22 +- TemporaryDownloader/SUTemporaryDownloader.m | 4 +- .../SUTemporaryDownloaderProtocol.h | 4 +- TestAppHelper/TestAppHelper.h | 4 +- TestAppHelper/TestAppHelper.m | 4 +- TestAppHelper/main.m | 4 +- TestApplication/SUPopUpTitlebarUserDriver.h | 6 +- TestApplication/SUPopUpTitlebarUserDriver.m | 14 +- .../SURemoteUpdateSettingsWindowController.h | 4 +- .../SURemoteUpdateSettingsWindowController.m | 8 +- .../SUUpdateSettingsWindowController.m | 2 +- .../SUUpdateSettingsWindowController.xib | 2 +- Tests/SUInstallerTest.m | 6 +- Tests/SUUpdaterTest.m | 8 +- ...andLineDriver.h => SPUCommandLineDriver.h} | 6 +- ...andLineDriver.m => SPUCommandLineDriver.m} | 16 +- ...serDriver.h => SPUCommandLineUserDriver.h} | 4 +- ...serDriver.m => SPUCommandLineUserDriver.m} | 22 +- sparkle-cli/main.m | 8 +- 123 files changed, 759 insertions(+), 1178 deletions(-) rename Autoupdate/{SUInstallationInfo.h => SPUInstallationInfo.h} (84%) rename Autoupdate/{SUInstallationInfo.m => SPUInstallationInfo.m} (93%) rename Autoupdate/{SUInstallationInputData.h => SPUInstallationInputData.h} (93%) rename Autoupdate/{SUInstallationInputData.m => SPUInstallationInputData.m} (93%) rename Autoupdate/{SUInstallerProtocol.h => SPUInstallerProtocol.h} (94%) rename Autoupdate/{SUInstallerValidation.h => SPUInstallerValidation.h} (94%) rename Autoupdate/{SUInstallerValidation.m => SPUInstallerValidation.m} (97%) rename Sparkle/InstallerProgress/{SUInstallerAgentProtocol.h => SPUInstallerAgentProtocol.h} (88%) rename Sparkle/{SUApplicationInfo.h => SPUApplicationInfo.h} (89%) rename Sparkle/{SUApplicationInfo.m => SPUApplicationInfo.m} (92%) rename Sparkle/{SUBundleIcon.h => SPUBundleIcon.h} (88%) rename Sparkle/{SUBundleIcon.m => SPUBundleIcon.m} (93%) create mode 100644 Sparkle/SPUInstallationType.h rename Sparkle/{SULocalCacheDirectory.h => SPULocalCacheDirectory.h} (97%) rename Sparkle/{SULocalCacheDirectory.m => SPULocalCacheDirectory.m} (97%) rename Sparkle/{SUSecureCoding.h => SPUSecureCoding.h} (52%) rename Sparkle/{SUSecureCoding.m => SPUSecureCoding.m} (85%) rename Sparkle/{SUStandardUpdaterController.h => SPUStandardUpdaterController.h} (89%) rename Sparkle/{SUStandardUpdaterController.m => SPUStandardUpdaterController.m} (84%) rename Sparkle/{SUStandardUserDriver.h => SPUStandardUserDriver.h} (70%) rename Sparkle/{SUStandardUserDriver.m => SPUStandardUserDriver.m} (89%) rename Sparkle/{SUStandardUserDriverDelegate.h => SPUStandardUserDriverDelegate.h} (96%) rename Sparkle/{SUStandardUserDriverProtocol.h => SPUStandardUserDriverProtocol.h} (90%) rename Sparkle/{SUSystemAuthorization.h => SPUSystemAuthorization.h} (64%) rename Sparkle/{SUSystemAuthorization.m => SPUSystemAuthorization.m} (55%) rename Sparkle/{SUURLDownload.h => SPUURLDownload.h} (68%) rename Sparkle/{SUURLDownload.m => SPUURLDownload.m} (83%) rename Sparkle/{SUURLRequest.h => SPUURLRequest.h} (90%) rename Sparkle/{SUURLRequest.m => SPUURLRequest.m} (70%) create mode 100644 Sparkle/SPUUpdatePermission.h rename Sparkle/{SUUpdatePermission.m => SPUUpdatePermission.m} (50%) rename Sparkle/{SUUpdatePermissionPrompt.h => SPUUpdatePermissionPrompt.h} (72%) rename Sparkle/{SUUpdatePermissionPrompt.m => SPUUpdatePermissionPrompt.m} (84%) rename Sparkle/{SUUpdaterCycle.h => SPUUpdaterCycle.h} (74%) rename Sparkle/{SUUpdaterCycle.m => SPUUpdaterCycle.m} (73%) rename Sparkle/{SUUpdaterSettings.h => SPUUpdaterSettings.h} (95%) rename Sparkle/{SUUpdaterSettings.m => SPUUpdaterSettings.m} (93%) rename Sparkle/{SUUserDriver.h => SPUUserDriver.h} (98%) rename Sparkle/{SUUserDriverCoreComponent.h => SPUUserDriverCoreComponent.h} (84%) rename Sparkle/{SUUserDriverCoreComponent.m => SPUUserDriverCoreComponent.m} (96%) rename Sparkle/{SUXPCServiceInfo.h => SPUXPCServiceInfo.h} (60%) rename Sparkle/{SUXPCServiceInfo.m => SPUXPCServiceInfo.m} (86%) delete mode 100644 Sparkle/SUInstallationType.h delete mode 100644 Sparkle/SUUpdatePermission.h rename Sparkle/ar.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename Sparkle/cs.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (99%) rename Sparkle/da.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename Sparkle/de.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename Sparkle/el.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename Sparkle/en.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename Sparkle/es.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename Sparkle/fr.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename Sparkle/is.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename Sparkle/it.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename Sparkle/ja.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename Sparkle/ko.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename Sparkle/nb.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename Sparkle/nl.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename Sparkle/pl.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename Sparkle/pt_BR.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename Sparkle/pt_PT.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename Sparkle/ro.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename Sparkle/ru.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename Sparkle/sk.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename Sparkle/sl.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename Sparkle/sv.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename Sparkle/th.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename Sparkle/tr.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename Sparkle/uk.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename Sparkle/zh_CN.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename Sparkle/zh_TW.lproj/{SUUpdatePermissionPrompt.xib => SPUUpdatePermissionPrompt.xib} (95%) rename sparkle-cli/{SUCommandLineDriver.h => SPUCommandLineDriver.h} (62%) rename sparkle-cli/{SUCommandLineDriver.m => SPUCommandLineDriver.m} (83%) rename sparkle-cli/{SUCommandLineUserDriver.h => SPUCommandLineUserDriver.h} (62%) rename sparkle-cli/{SUCommandLineUserDriver.m => SPUCommandLineUserDriver.m} (92%) diff --git a/Autoupdate/AgentConnection.h b/Autoupdate/AgentConnection.h index 98082ed6..7ec02717 100644 --- a/Autoupdate/AgentConnection.h +++ b/Autoupdate/AgentConnection.h @@ -17,7 +17,7 @@ NS_ASSUME_NONNULL_BEGIN @end -@protocol SUInstallerAgentProtocol; +@protocol SPUInstallerAgentProtocol; @interface AgentConnection : NSObject @@ -26,7 +26,7 @@ NS_ASSUME_NONNULL_BEGIN - (void)startListener; - (void)invalidate; -@property (nonatomic, readonly, nullable) id agent; +@property (nonatomic, readonly, nullable) id agent; @property (nonatomic, readonly) BOOL connected; @end diff --git a/Autoupdate/AgentConnection.m b/Autoupdate/AgentConnection.m index 69b865af..6ea0b1bd 100644 --- a/Autoupdate/AgentConnection.m +++ b/Autoupdate/AgentConnection.m @@ -8,7 +8,7 @@ #import "AgentConnection.h" #import "SUMessageTypes.h" -#import "SUInstallerAgentProtocol.h" +#import "SPUInstallerAgentProtocol.h" #import "SUInstallerAgentInitiationProtocol.h" #ifdef _APPKITDEFINES_H @@ -19,7 +19,7 @@ @property (nonatomic) NSXPCListener *xpcListener; @property (nonatomic, nullable) NSXPCConnection *activeConnection; -@property (nonatomic, nullable) id agent; +@property (nonatomic, nullable) id agent; @property (nonatomic, weak) id delegate; @property (nonatomic) BOOL connected; @@ -72,7 +72,7 @@ newConnection.exportedInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SUInstallerAgentInitiationProtocol)]; newConnection.exportedObject = self; - newConnection.remoteObjectInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SUInstallerAgentProtocol)]; + newConnection.remoteObjectInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SPUInstallerAgentProtocol)]; self.activeConnection = newConnection; diff --git a/Autoupdate/AppInstaller.m b/Autoupdate/AppInstaller.m index 5a70705c..ad2450dc 100644 --- a/Autoupdate/AppInstaller.m +++ b/Autoupdate/AppInstaller.m @@ -9,24 +9,24 @@ #import "AppInstaller.h" #import "TerminationListener.h" #import "SUInstaller.h" -#import "SUInstallerValidation.h" +#import "SPUInstallerValidation.h" #import "SULog.h" #import "SUHost.h" #import "SULocalizations.h" #import "SUStandardVersionComparator.h" #import "SUMessageTypes.h" -#import "SUSecureCoding.h" -#import "SUInstallationInputData.h" +#import "SPUSecureCoding.h" +#import "SPUInstallationInputData.h" #import "SUUnarchiver.h" #import "SUFileManager.h" -#import "SUInstallationInfo.h" +#import "SPUInstallationInfo.h" #import "SUAppcastItem.h" #import "SUErrors.h" #import "SUInstallerCommunicationProtocol.h" #import "AgentConnection.h" -#import "SUInstallerAgentProtocol.h" -#import "SUInstallationType.h" -#import "SULocalCacheDirectory.h" +#import "SPUInstallerAgentProtocol.h" +#import "SPUInstallationType.h" +#import "SPULocalCacheDirectory.h" #ifdef _APPKITDEFINES_H #error This is a "daemon-safe" class and should NOT import AppKit @@ -63,7 +63,7 @@ static const NSTimeInterval SUDisplayProgressTimeDelay = 0.7; @property (nonatomic, assign) BOOL shouldRelaunch; @property (nonatomic, assign) BOOL shouldShowUI; -@property (nonatomic) id installer; +@property (nonatomic) id installer; @property (nonatomic) BOOL willCompleteInstallation; @property (nonatomic) BOOL receivedInstallationData; @property (nonatomic) BOOL finishedValidation; @@ -193,8 +193,8 @@ static const NSTimeInterval SUDisplayProgressTimeDelay = 0.7; } else { // Delta & package updates will require validation before extraction // Normal application updates are a bit more lenient allowing developers to change one of apple dev ID or DSA keys - if ([[unarchiver class] requiresValidationBeforeUnarchiving] || ![self.installationType isEqualToString:SUInstallationTypeApplication]) { - if ([SUInstallerValidation validateUpdateForHost:self.host archivePath:archivePath DSASignature:self.dsaSignature]) { + if ([[unarchiver class] requiresValidationBeforeUnarchiving] || ![self.installationType isEqualToString:SPUInstallationTypeApplication]) { + if ([SPUInstallerValidation validateUpdateForHost:self.host archivePath:archivePath DSASignature:self.dsaSignature]) { self.validatedArchiveBeforeExtraction = YES; [unarchiver start]; } else { @@ -254,14 +254,14 @@ static const NSTimeInterval SUDisplayProgressTimeDelay = 0.7; if (!self.validatedArchiveBeforeExtraction) { if (isPackage) { // If we get here, then the appcast installation type was lying to us.. This error will be caught later when starting the installer. - validationSuccess = [SUInstallerValidation validateUpdateForHost:self.host archivePath:archivePath DSASignature:self.dsaSignature]; + validationSuccess = [SPUInstallerValidation validateUpdateForHost:self.host archivePath:archivePath DSASignature:self.dsaSignature]; } else { // Validate the bundle code signatures and DSA signatures of archive together - validationSuccess = [SUInstallerValidation validateBundleUpdateForHost:self.host newBundlePath:installSourcePath archivePath:archivePath DSASignature:self.dsaSignature]; + validationSuccess = [SPUInstallerValidation validateBundleUpdateForHost:self.host newBundlePath:installSourcePath archivePath:archivePath DSASignature:self.dsaSignature]; } } else if (!isPackage) { // Just make sure the bundle is valid to check that the developer didn't make a careless mistake - validationSuccess = [SUInstallerValidation validateCodeSignatureIfAvailableForBundlePath:installSourcePath]; + validationSuccess = [SPUInstallerValidation validateCodeSignatureIfAvailableForBundlePath:installSourcePath]; } if (!validationSuccess) { @@ -322,7 +322,7 @@ static const NSTimeInterval SUDisplayProgressTimeDelay = 0.7; // Do not rely on eg: self.ipdateDirectoryPath != nil because we may set it to nil again if an early stage fails (i.e, archive extraction) self.receivedInstallationData = YES; - SUInstallationInputData *installationData = (SUInstallationInputData *)SUUnarchiveRootObjectSecurely(data, [SUInstallationInputData class]); + SPUInstallationInputData *installationData = (SPUInstallationInputData *)SPUUnarchiveRootObjectSecurely(data, [SPUInstallationInputData class]); if (installationData == nil) { SULog(@"Error: Failed to unarchive input installation data"); [self cleanupAndExitWithStatus:EXIT_FAILURE]; @@ -330,7 +330,7 @@ static const NSTimeInterval SUDisplayProgressTimeDelay = 0.7; } NSString *installationType = installationData.installationType; - if (!SUValidInstallationType(installationType)) { + if (!SPUValidInstallationType(installationType)) { SULog(@"Error: Received invalid installation type: %@", installationType); [self cleanupAndExitWithStatus:EXIT_FAILURE]; return; @@ -353,11 +353,11 @@ static const NSTimeInterval SUDisplayProgressTimeDelay = 0.7; } // This installation path is specific to sparkle and the bundle identifier - NSString *rootCacheInstallationPath = [[SULocalCacheDirectory cachePathForBundleIdentifier:bundleIdentifier] stringByAppendingPathComponent:@"Installation"]; + NSString *rootCacheInstallationPath = [[SPULocalCacheDirectory cachePathForBundleIdentifier:bundleIdentifier] stringByAppendingPathComponent:@"Installation"]; - [SULocalCacheDirectory removeOldItemsInDirectory:rootCacheInstallationPath]; + [SPULocalCacheDirectory removeOldItemsInDirectory:rootCacheInstallationPath]; - NSString *cacheInstallationPath = [SULocalCacheDirectory createUniqueDirectoryInDirectory:rootCacheInstallationPath]; + NSString *cacheInstallationPath = [SPULocalCacheDirectory createUniqueDirectoryInDirectory:rootCacheInstallationPath]; if (cacheInstallationPath == nil) { SULog(@"Error: Failed to create installation cache directory in %@", rootCacheInstallationPath); [self cleanupAndExitWithStatus:EXIT_FAILURE]; @@ -390,11 +390,11 @@ static const NSTimeInterval SUDisplayProgressTimeDelay = 0.7; [self extractAndInstallUpdate]; }); } else if (identifier == SUSentUpdateAppcastItemData) { - SUAppcastItem *updateItem = (SUAppcastItem *)SUUnarchiveRootObjectSecurely(data, [SUAppcastItem class]); + SUAppcastItem *updateItem = (SUAppcastItem *)SPUUnarchiveRootObjectSecurely(data, [SUAppcastItem class]); if (updateItem != nil) { - SUInstallationInfo *installationInfo = [[SUInstallationInfo alloc] initWithAppcastItem:updateItem canSilentlyInstall:[self.installer canInstallSilently]]; + SPUInstallationInfo *installationInfo = [[SPUInstallationInfo alloc] initWithAppcastItem:updateItem canSilentlyInstall:[self.installer canInstallSilently]]; - NSData *archivedData = SUArchiveRootObjectSecurely(installationInfo); + NSData *archivedData = SPUArchiveRootObjectSecurely(installationInfo); if (archivedData != nil) { [self.agentConnection.agent registerInstallationInfoData:archivedData]; } @@ -433,7 +433,7 @@ static const NSTimeInterval SUDisplayProgressTimeDelay = 0.7; dispatch_async(self.installerQueue, ^{ NSError *installerError = nil; - id installer = [SUInstaller installerForHost:self.host expectedInstallationType:self.installationType updateDirectory:self.updateDirectoryPath versionComparator:[SUStandardVersionComparator standardVersionComparator] error:&installerError]; + id installer = [SUInstaller installerForHost:self.host expectedInstallationType:self.installationType updateDirectory:self.updateDirectoryPath versionComparator:[SUStandardVersionComparator standardVersionComparator] error:&installerError]; if (installer == nil) { SULog(@"Error: Failed to create installer instance with error: %@", installerError); diff --git a/Autoupdate/SUInstallationInfo.h b/Autoupdate/SPUInstallationInfo.h similarity index 84% rename from Autoupdate/SUInstallationInfo.h rename to Autoupdate/SPUInstallationInfo.h index f80a293a..37d25312 100644 --- a/Autoupdate/SUInstallationInfo.h +++ b/Autoupdate/SPUInstallationInfo.h @@ -1,5 +1,5 @@ // -// SUInstallationInfo.h +// SPUInstallationInfo.h // Sparkle // // Created by Mayur Pawashe on 4/10/16. @@ -12,7 +12,7 @@ NS_ASSUME_NONNULL_BEGIN @class SUAppcastItem; -@interface SUInstallationInfo : NSObject +@interface SPUInstallationInfo : NSObject - (instancetype)initWithAppcastItem:(SUAppcastItem *)appcastItem canSilentlyInstall:(BOOL)canSilentyInstall; diff --git a/Autoupdate/SUInstallationInfo.m b/Autoupdate/SPUInstallationInfo.m similarity index 93% rename from Autoupdate/SUInstallationInfo.m rename to Autoupdate/SPUInstallationInfo.m index d4377efb..1b76f5af 100644 --- a/Autoupdate/SUInstallationInfo.m +++ b/Autoupdate/SPUInstallationInfo.m @@ -1,18 +1,18 @@ // -// SUInstallationInfo.m +// SPUInstallationInfo.m // Sparkle // // Created by Mayur Pawashe on 4/10/16. // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUInstallationInfo.h" +#import "SPUInstallationInfo.h" #import "SUAppcastItem.h" static NSString *SUAppcastItemKey = @"SUAppcastItem"; static NSString *SUCanSilentlyInstallKey = @"SUCanSilentlyInstall"; -@implementation SUInstallationInfo +@implementation SPUInstallationInfo @synthesize appcastItem = _appcastItem; @synthesize canSilentlyInstall = _canSilentlyInstall; diff --git a/Autoupdate/SUInstallationInputData.h b/Autoupdate/SPUInstallationInputData.h similarity index 93% rename from Autoupdate/SUInstallationInputData.h rename to Autoupdate/SPUInstallationInputData.h index d585ac72..99af197c 100644 --- a/Autoupdate/SUInstallationInputData.h +++ b/Autoupdate/SPUInstallationInputData.h @@ -1,5 +1,5 @@ // -// SUInstallationInputData.h +// SPUInstallationInputData.h // Sparkle // // Created by Mayur Pawashe on 3/24/16. @@ -10,7 +10,7 @@ NS_ASSUME_NONNULL_BEGIN -@interface SUInstallationInputData : NSObject +@interface SPUInstallationInputData : NSObject /* * relaunchPath - path to application bundle to relaunch and listen for termination diff --git a/Autoupdate/SUInstallationInputData.m b/Autoupdate/SPUInstallationInputData.m similarity index 93% rename from Autoupdate/SUInstallationInputData.m rename to Autoupdate/SPUInstallationInputData.m index 4854677a..d4f1cfcb 100644 --- a/Autoupdate/SUInstallationInputData.m +++ b/Autoupdate/SPUInstallationInputData.m @@ -1,13 +1,13 @@ // -// SUInstallationInputData.m +// SPUInstallationInputData.m // Sparkle // // Created by Mayur Pawashe on 3/24/16. // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUInstallationInputData.h" -#import "SUInstallationType.h" +#import "SPUInstallationInputData.h" +#import "SPUInstallationType.h" #ifdef _APPKITDEFINES_H #error This is a "daemon-safe" class and should NOT import AppKit @@ -21,7 +21,7 @@ static NSString *SUDSASignatureKey = @"SUDSASignature"; static NSString *SUDecryptionPasswordKey = @"SUDecryptionPassword"; static NSString *SUInstallationTypeKey = @"SUInstallationType"; -@implementation SUInstallationInputData +@implementation SPUInstallationInputData @synthesize relaunchPath = _relaunchPath; @synthesize hostBundlePath = _hostBundlePath; @@ -41,7 +41,7 @@ static NSString *SUInstallationTypeKey = @"SUInstallationType"; _downloadName = [downloadName copy]; _installationType = [installationType copy]; - assert(SUValidInstallationType(_installationType)); + assert(SPUValidInstallationType(_installationType)); _dsaSignature = [dsaSignature copy]; _decryptionPassword = [decryptionPassword copy]; @@ -72,7 +72,7 @@ static NSString *SUInstallationTypeKey = @"SUInstallationType"; } NSString *installationType = [decoder decodeObjectOfClass:[NSString class] forKey:SUInstallationTypeKey]; - if (!SUValidInstallationType(installationType)) { + if (!SPUValidInstallationType(installationType)) { return nil; } diff --git a/Autoupdate/SUInstallerProtocol.h b/Autoupdate/SPUInstallerProtocol.h similarity index 94% rename from Autoupdate/SUInstallerProtocol.h rename to Autoupdate/SPUInstallerProtocol.h index e9009e28..c01543e4 100644 --- a/Autoupdate/SUInstallerProtocol.h +++ b/Autoupdate/SPUInstallerProtocol.h @@ -1,5 +1,5 @@ // -// SUInstallerProtocol.h +// SPUInstallerProtocol.h // Sparkle // // Created by Mayur Pawashe on 3/12/16. @@ -10,7 +10,7 @@ NS_ASSUME_NONNULL_BEGIN -@protocol SUInstallerProtocol +@protocol SPUInstallerProtocol // Any installation work can be done prior to user application being terminated and relaunched // No UI should occur during this stage (i.e, do not show package installer apps, etc..) diff --git a/Autoupdate/SUInstallerValidation.h b/Autoupdate/SPUInstallerValidation.h similarity index 94% rename from Autoupdate/SUInstallerValidation.h rename to Autoupdate/SPUInstallerValidation.h index 18e3e0fd..73b67db2 100644 --- a/Autoupdate/SUInstallerValidation.h +++ b/Autoupdate/SPUInstallerValidation.h @@ -1,5 +1,5 @@ // -// SUInstallerValidation.h +// SPUInstallerValidation.h // Sparkle // // Created by Mayur Pawashe on 7/30/16. @@ -10,7 +10,7 @@ @class SUHost; -@interface SUInstallerValidation : NSObject +@interface SPUInstallerValidation : NSObject /** * If the update is a bundle, then the download must also be signed using DSA. diff --git a/Autoupdate/SUInstallerValidation.m b/Autoupdate/SPUInstallerValidation.m similarity index 97% rename from Autoupdate/SUInstallerValidation.m rename to Autoupdate/SPUInstallerValidation.m index 1446cc59..9bf613cb 100644 --- a/Autoupdate/SUInstallerValidation.m +++ b/Autoupdate/SPUInstallerValidation.m @@ -1,18 +1,18 @@ // -// SUInstallerValidation.m +// SPUInstallerValidation.m // Sparkle // // Created by Mayur Pawashe on 7/30/16. // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUInstallerValidation.h" +#import "SPUInstallerValidation.h" #import "SUHost.h" #import "SULog.h" #import "SUDSAVerifier.h" #import "SUCodeSigningVerifier.h" -@implementation SUInstallerValidation +@implementation SPUInstallerValidation + (BOOL)validateBundleUpdateForHost:(SUHost *)host newBundlePath:(NSString *)newBundlePath archivePath:(NSString *)archivePath DSASignature:(NSString *)DSASignature { diff --git a/Autoupdate/SUGuidedPackageInstaller.h b/Autoupdate/SUGuidedPackageInstaller.h index e297cf7c..fd2aa5fb 100644 --- a/Autoupdate/SUGuidedPackageInstaller.h +++ b/Autoupdate/SUGuidedPackageInstaller.h @@ -17,9 +17,9 @@ A guided installation can be started by applications other than the application */ #import -#import "SUInstallerProtocol.h" +#import "SPUInstallerProtocol.h" -@interface SUGuidedPackageInstaller : NSObject +@interface SUGuidedPackageInstaller : NSObject - (instancetype)initWithPackagePath:(NSString *)packagePath; diff --git a/Autoupdate/SUInstaller.h b/Autoupdate/SUInstaller.h index 0f3b73ad..7212df92 100644 --- a/Autoupdate/SUInstaller.h +++ b/Autoupdate/SUInstaller.h @@ -8,7 +8,7 @@ #import #import "SUVersionComparisonProtocol.h" -#import "SUInstallerProtocol.h" +#import "SPUInstallerProtocol.h" NS_ASSUME_NONNULL_BEGIN @@ -16,7 +16,7 @@ NS_ASSUME_NONNULL_BEGIN @interface SUInstaller : NSObject -+ (nullable id)installerForHost:(SUHost *)host expectedInstallationType:(NSString *)expectedInstallationType updateDirectory:(NSString *)updateDirectory versionComparator:(id )comparator error:(NSError **)error; ++ (nullable id)installerForHost:(SUHost *)host expectedInstallationType:(NSString *)expectedInstallationType updateDirectory:(NSString *)updateDirectory versionComparator:(id )comparator error:(NSError **)error; + (NSString *)installSourcePathInUpdateFolder:(NSString *)inUpdateFolder forHost:(SUHost *)host isPackage:(BOOL *)isPackagePtr isGuided:(nullable BOOL *)isGuidedPtr; diff --git a/Autoupdate/SUInstaller.m b/Autoupdate/SUInstaller.m index 19185471..589394f2 100644 --- a/Autoupdate/SUInstaller.m +++ b/Autoupdate/SUInstaller.m @@ -15,7 +15,7 @@ #import "SULog.h" #import "SUParameterAssert.h" #import "SUErrors.h" -#import "SUInstallationType.h" +#import "SPUInstallationType.h" #ifdef _APPKITDEFINES_H #error This is a "core" class and should NOT import AppKit @@ -113,7 +113,7 @@ return newAppDownloadPath; } -+ (nullable id)installerForHost:(SUHost *)host expectedInstallationType:(NSString *)expectedInstallationType updateDirectory:(NSString *)updateDirectory versionComparator:(id )comparator error:(NSError * __autoreleasing *)error ++ (nullable id)installerForHost:(SUHost *)host expectedInstallationType:(NSString *)expectedInstallationType updateDirectory:(NSString *)updateDirectory versionComparator:(id )comparator error:(NSError * __autoreleasing *)error { BOOL isPackage = NO; BOOL isGuided = NO; @@ -129,25 +129,25 @@ // Make sure we find the type of installer that we were expecting to find // We shouldn't implicitly trust the installation type fed into here from the appcast because the installation type helps us determine // ahead of time whether or not this installer tool should be ran as root or not - id installer = nil; + id installer = nil; if (isPackage && isGuided) { - if (![expectedInstallationType isEqualToString:SUInstallationTypeGuidedPackage]) { + if (![expectedInstallationType isEqualToString:SPUInstallationTypeGuidedPackage]) { if (error != NULL) { - *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUInstallationError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Found guided package installer but '%@=%@' was probably missing in the appcast item enclosure", SUAppcastAttributeInstallationType, SUInstallationTypeGuidedPackage] }]; + *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUInstallationError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Found guided package installer but '%@=%@' was probably missing in the appcast item enclosure", SUAppcastAttributeInstallationType, SPUInstallationTypeGuidedPackage] }]; } } else { installer = [[SUGuidedPackageInstaller alloc] initWithPackagePath:newDownloadPath]; } } else if (isPackage) { - if (![expectedInstallationType isEqualToString:SUInstallationTypeInteractivePackage]) { + if (![expectedInstallationType isEqualToString:SPUInstallationTypeInteractivePackage]) { if (error != NULL) { - *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUInstallationError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Found package installer but '%@=%@' was probably missing in the appcast item enclosure", SUAppcastAttributeInstallationType, SUInstallationTypeInteractivePackage] }]; + *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUInstallationError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Found package installer but '%@=%@' was probably missing in the appcast item enclosure", SUAppcastAttributeInstallationType, SPUInstallationTypeInteractivePackage] }]; } } else { installer = [[SUPackageInstaller alloc] initWithPackagePath:newDownloadPath]; } } else { - if (![expectedInstallationType isEqualToString:SUInstallationTypeApplication]) { + if (![expectedInstallationType isEqualToString:SPUInstallationTypeApplication]) { if (error != NULL) { *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUInstallationError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Found regular application update but expected '%@=%@' from the appcast item enclosure instead", SUAppcastAttributeInstallationType, expectedInstallationType] }]; } diff --git a/Autoupdate/SUPackageInstaller.h b/Autoupdate/SUPackageInstaller.h index 26b175b7..d0fb3044 100644 --- a/Autoupdate/SUPackageInstaller.h +++ b/Autoupdate/SUPackageInstaller.h @@ -7,9 +7,9 @@ // #import -#import "SUInstallerProtocol.h" +#import "SPUInstallerProtocol.h" -@interface SUPackageInstaller : NSObject +@interface SUPackageInstaller : NSObject - (instancetype)initWithPackagePath:(NSString *)packagePath; diff --git a/Autoupdate/SUPlainInstaller.h b/Autoupdate/SUPlainInstaller.h index 0292ec9d..8e348bc6 100644 --- a/Autoupdate/SUPlainInstaller.h +++ b/Autoupdate/SUPlainInstaller.h @@ -7,12 +7,12 @@ // #import -#import "SUInstallerProtocol.h" +#import "SPUInstallerProtocol.h" @class SUHost; @protocol SUVersionComparison; -@interface SUPlainInstaller : NSObject +@interface SUPlainInstaller : NSObject - (instancetype)initWithHost:(SUHost *)host applicationPath:(NSString *)applicationPath installationPath:(NSString *)installationPath versionComparator:(id )comparator; diff --git a/InstallerConnection/SUInstallerConnection.m b/InstallerConnection/SUInstallerConnection.m index 9715bca8..30ebc6a3 100644 --- a/InstallerConnection/SUInstallerConnection.m +++ b/InstallerConnection/SUInstallerConnection.m @@ -7,7 +7,7 @@ // #import "SUInstallerConnection.h" -#import "SUSystemAuthorization.h" +#import "SPUSystemAuthorization.h" static NSString *SUInstallerConnectionKeepAliveReason = @"Installer Connection Keep Alive"; @@ -60,7 +60,7 @@ static NSString *SUInstallerConnectionKeepAliveReason = @"Installer Connection K - (void)setServiceName:(NSString *)serviceName hostPath:(NSString *)hostPath installationType:(NSString *)installationType { - NSXPCConnectionOptions options = SUNeedsSystemAuthorizationAccess(hostPath, installationType) ? NSXPCConnectionPrivileged : 0; + NSXPCConnectionOptions options = SPUNeedsSystemAuthorizationAccess(hostPath, installationType) ? NSXPCConnectionPrivileged : 0; NSXPCConnection *connection = [[NSXPCConnection alloc] initWithMachServiceName:serviceName options:options]; connection.exportedInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SUInstallerCommunicationProtocol)]; diff --git a/InstallerLauncher/SUInstallerLauncher.m b/InstallerLauncher/SUInstallerLauncher.m index 5c07472a..e30454b7 100644 --- a/InstallerLauncher/SUInstallerLauncher.m +++ b/InstallerLauncher/SUInstallerLauncher.m @@ -10,10 +10,10 @@ #import "SUFileManager.h" #import "SULog.h" #import "SUMessageTypes.h" -#import "SUSystemAuthorization.h" -#import "SUBundleIcon.h" -#import "SULocalCacheDirectory.h" -#import "SUInstallationType.h" +#import "SPUSystemAuthorization.h" +#import "SPUBundleIcon.h" +#import "SPULocalCacheDirectory.h" +#import "SPUInstallationType.h" #import #ifdef _APPKITDEFINES_H @@ -145,7 +145,7 @@ // Then use the icon (if one is available) for the authorization prompt // NSImage is not used because it relies on AppKit NSURL *tempIconDestinationURL = nil; - NSURL *iconURL = [SUBundleIcon iconURLForBundle:hostBundle]; + NSURL *iconURL = [SPUBundleIcon iconURLForBundle:hostBundle]; if (iconURL != nil) { CGImageSourceRef imageSource = CGImageSourceCreateWithURL((CFURLRef)iconURL, (CFDictionaryRef)@{}); if (imageSource != NULL) { @@ -287,7 +287,7 @@ { dispatch_async(dispatch_get_main_queue(), ^{ NSBundle *hostBundle = [NSBundle bundleWithPath:hostBundlePath]; - BOOL needsSystemAuthorization = SUNeedsSystemAuthorizationAccess(hostBundlePath, installationType); + BOOL needsSystemAuthorization = SPUNeedsSystemAuthorizationAccess(hostBundlePath, installationType); if (needsSystemAuthorization && !allowingUpdaterInteraction) { SULog(@"Updater is not allowing interaction to the launcher."); @@ -295,7 +295,7 @@ return; } - if (!allowingUpdaterInteraction && [installationType isEqualToString:SUInstallationTypeInteractivePackage]) { + if (!allowingUpdaterInteraction && [installationType isEqualToString:SPUInstallationTypeInteractivePackage]) { SULog(@"Updater is not allowing interaction to the launcher for performing an interactive type package installation."); completionHandler(SUInstallerLauncherFailure); return; @@ -336,11 +336,11 @@ // they could be different (eg: take a look at sparkle-cli). We also can't easily tell if the signature of the service/framework is the same as the bundle it's inside. // The service/framework also need not even be signed in the first place. We'll just assume for now the original bundle hasn't been tampered with - NSString *rootLauncherCachePath = [[SULocalCacheDirectory cachePathForBundleIdentifier:hostBundleIdentifier] stringByAppendingPathComponent:@"Launcher"]; + NSString *rootLauncherCachePath = [[SPULocalCacheDirectory cachePathForBundleIdentifier:hostBundleIdentifier] stringByAppendingPathComponent:@"Launcher"]; - [SULocalCacheDirectory removeOldItemsInDirectory:rootLauncherCachePath]; + [SPULocalCacheDirectory removeOldItemsInDirectory:rootLauncherCachePath]; - NSString *launcherCachePath = [SULocalCacheDirectory createUniqueDirectoryInDirectory:rootLauncherCachePath]; + NSString *launcherCachePath = [SPULocalCacheDirectory createUniqueDirectoryInDirectory:rootLauncherCachePath]; if (launcherCachePath == nil) { SULog(@"Failed to create cache directory for progress tool in %@", rootLauncherCachePath); completionHandler(SUInstallerLauncherFailure); diff --git a/InstallerStatus/SUInstallerStatus.m b/InstallerStatus/SUInstallerStatus.m index 49041d72..0961d991 100644 --- a/InstallerStatus/SUInstallerStatus.m +++ b/InstallerStatus/SUInstallerStatus.m @@ -7,7 +7,7 @@ // #import "SUInstallerStatus.h" -#import "SUSystemAuthorization.h" +#import "SPUSystemAuthorization.h" @interface SUInstallerStatus () diff --git a/PersistentDownloader/SUPersistentDownloader.m b/PersistentDownloader/SUPersistentDownloader.m index d0918421..8fe6ca63 100644 --- a/PersistentDownloader/SUPersistentDownloader.m +++ b/PersistentDownloader/SUPersistentDownloader.m @@ -8,8 +8,8 @@ #import "SUPersistentDownloader.h" #import "SUPersistentDownloaderDelegate.h" -#import "SULocalCacheDirectory.h" -#import "SUURLRequest.h" +#import "SPULocalCacheDirectory.h" +#import "SPUURLRequest.h" #import "SUErrors.h" static NSString *SUPersistentDownloadingReason = @"Downloading persistent file"; @@ -44,7 +44,7 @@ static NSString *SUPersistentDownloadingReason = @"Downloading persistent file"; // Don't implement dealloc - make the client call cleanup, which is the only way to remove the reference cycle from the delegate anyway -- (void)startDownloadWithRequest:(SUURLRequest *)request bundleIdentifier:(NSString *)bundleIdentifier desiredFilename:(NSString *)desiredFilename +- (void)startDownloadWithRequest:(SPUURLRequest *)request bundleIdentifier:(NSString *)bundleIdentifier desiredFilename:(NSString *)desiredFilename { dispatch_async(dispatch_get_main_queue(), ^{ // Prevent service from automatically terminating while downloading the update asynchronously without any reply blocks @@ -84,11 +84,11 @@ static NSString *SUPersistentDownloadingReason = @"Downloading persistent file"; - (void)download:(NSURLDownload *)__unused d decideDestinationWithSuggestedFilename:(NSString *)name { // Remove our old caches path so we don't start accumulating files in there - NSString *rootPersistentDownloadCachePath = [[SULocalCacheDirectory cachePathForBundleIdentifier:self.bundleIdentifier] stringByAppendingPathComponent:@"PersistentDownloads"]; + NSString *rootPersistentDownloadCachePath = [[SPULocalCacheDirectory cachePathForBundleIdentifier:self.bundleIdentifier] stringByAppendingPathComponent:@"PersistentDownloads"]; - [SULocalCacheDirectory removeOldItemsInDirectory:rootPersistentDownloadCachePath]; + [SPULocalCacheDirectory removeOldItemsInDirectory:rootPersistentDownloadCachePath]; - NSString *tempDir = [SULocalCacheDirectory createUniqueDirectoryInDirectory:rootPersistentDownloadCachePath]; + NSString *tempDir = [SPULocalCacheDirectory createUniqueDirectoryInDirectory:rootPersistentDownloadCachePath]; if (tempDir == nil) { // Okay, something's really broken with this user's file structure. diff --git a/PersistentDownloader/SUPersistentDownloaderProtocol.h b/PersistentDownloader/SUPersistentDownloaderProtocol.h index 6d04d2d6..2bd159db 100644 --- a/PersistentDownloader/SUPersistentDownloaderProtocol.h +++ b/PersistentDownloader/SUPersistentDownloaderProtocol.h @@ -10,12 +10,12 @@ NS_ASSUME_NONNULL_BEGIN -@class SUURLRequest; +@class SPUURLRequest; // 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 SUPersistentDownloaderProtocol -- (void)startDownloadWithRequest:(SUURLRequest *)request bundleIdentifier:(NSString *)bundleIdentifier desiredFilename:(NSString *)desiredFilename; +- (void)startDownloadWithRequest:(SPUURLRequest *)request bundleIdentifier:(NSString *)bundleIdentifier desiredFilename:(NSString *)desiredFilename; - (void)cleanupWithCompletion:(void (^)(void))completionBlock; diff --git a/Sparkle.xcodeproj/project.pbxproj b/Sparkle.xcodeproj/project.pbxproj index 37c17a12..87faf354 100644 --- a/Sparkle.xcodeproj/project.pbxproj +++ b/Sparkle.xcodeproj/project.pbxproj @@ -45,7 +45,7 @@ 3772FEA913DE0B6B00F79537 /* SUVersionDisplayProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 3772FEA813DE0B6B00F79537 /* SUVersionDisplayProtocol.h */; settings = {ATTRIBUTES = (Public, ); }; }; 55C14BEF136EF21700649790 /* SUStatus.xib in Resources */ = {isa = PBXBuildFile; fileRef = 55C14BD8136EF00C00649790 /* SUStatus.xib */; }; 55C14C04136EF26100649790 /* SUUpdateAlert.xib in Resources */ = {isa = PBXBuildFile; fileRef = 55C14BF0136EF26100649790 /* SUUpdateAlert.xib */; }; - 55C14C19136EF2C700649790 /* SUUpdatePermissionPrompt.xib in Resources */ = {isa = PBXBuildFile; fileRef = 55C14C05136EF2C700649790 /* SUUpdatePermissionPrompt.xib */; }; + 55C14C19136EF2C700649790 /* SPUUpdatePermissionPrompt.xib in Resources */ = {isa = PBXBuildFile; fileRef = 55C14C05136EF2C700649790 /* SPUUpdatePermissionPrompt.xib */; }; 55C14F06136EF6DB00649790 /* SULog.h in Headers */ = {isa = PBXBuildFile; fileRef = 55C14F04136EF6DB00649790 /* SULog.h */; }; 55C14F07136EF6DB00649790 /* SULog.m in Sources */ = {isa = PBXBuildFile; fileRef = 55C14F05136EF6DB00649790 /* SULog.m */; }; 55E6F33319EC9F6C00005E76 /* SUErrors.h in Headers */ = {isa = PBXBuildFile; fileRef = 55E6F33219EC9F6C00005E76 /* SUErrors.h */; settings = {ATTRIBUTES = (Public, ); }; }; @@ -66,7 +66,7 @@ 61299A5C09CA6D4500B7442F /* SUConstants.h in Headers */ = {isa = PBXBuildFile; fileRef = 61299A5B09CA6D4500B7442F /* SUConstants.h */; settings = {ATTRIBUTES = (); }; }; 61299A6009CA6EB100B7442F /* SUConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A5F09CA6EB100B7442F /* SUConstants.m */; }; 61299B3609CB04E000B7442F /* Sparkle.h in Headers */ = {isa = PBXBuildFile; fileRef = 61299B3509CB04E000B7442F /* Sparkle.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 612DCBB00D488BC60015DBEA /* SUUpdatePermissionPrompt.m in Sources */ = {isa = PBXBuildFile; fileRef = 612DCBAE0D488BC60015DBEA /* SUUpdatePermissionPrompt.m */; }; + 612DCBB00D488BC60015DBEA /* SPUUpdatePermissionPrompt.m in Sources */ = {isa = PBXBuildFile; fileRef = 612DCBAE0D488BC60015DBEA /* SPUUpdatePermissionPrompt.m */; }; 615AE3D00D64DC40001CA7BD /* SUModelTranslation.plist in Resources */ = {isa = PBXBuildFile; fileRef = 615AE3CF0D64DC40001CA7BD /* SUModelTranslation.plist */; }; 6196CFF909C72148000DC222 /* SUStatusController.h in Headers */ = {isa = PBXBuildFile; fileRef = 6196CFE309C71ADE000DC222 /* SUStatusController.h */; settings = {ATTRIBUTES = (); }; }; 6196CFFA09C72149000DC222 /* SUStatusController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6196CFE409C71ADE000DC222 /* SUStatusController.m */; }; @@ -93,22 +93,22 @@ 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, ); }; }; 720B16451C66433D006985FB /* SUTestApplicationTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 720B16431C66433D006985FB /* SUTestApplicationTest.swift */; }; - 720E217B1D0D00BF003A311C /* SUUpdaterCycle.h in Headers */ = {isa = PBXBuildFile; fileRef = 720E21791D0D00BF003A311C /* SUUpdaterCycle.h */; }; - 720E217C1D0D00BF003A311C /* SUUpdaterCycle.m in Sources */ = {isa = PBXBuildFile; fileRef = 720E217A1D0D00BF003A311C /* SUUpdaterCycle.m */; }; + 720E217B1D0D00BF003A311C /* SPUUpdaterCycle.h in Headers */ = {isa = PBXBuildFile; fileRef = 720E21791D0D00BF003A311C /* SPUUpdaterCycle.h */; }; + 720E217C1D0D00BF003A311C /* SPUUpdaterCycle.m in Sources */ = {isa = PBXBuildFile; fileRef = 720E217A1D0D00BF003A311C /* SPUUpdaterCycle.m */; }; 7210C7681B9A9A1500EB90AC /* SUUnarchiverTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7210C7671B9A9A1500EB90AC /* SUUnarchiverTest.swift */; }; - 7214B8811D456A8500CB5CED /* SUBundleIcon.h in Headers */ = {isa = PBXBuildFile; fileRef = 7214B87F1D456A8500CB5CED /* SUBundleIcon.h */; }; - 7214B8821D456A8500CB5CED /* SUBundleIcon.m in Sources */ = {isa = PBXBuildFile; fileRef = 7214B8801D456A8500CB5CED /* SUBundleIcon.m */; }; - 7214B8831D456C2400CB5CED /* SUBundleIcon.m in Sources */ = {isa = PBXBuildFile; fileRef = 7214B8801D456A8500CB5CED /* SUBundleIcon.m */; }; - 7214B8841D456C9500CB5CED /* SUBundleIcon.m in Sources */ = {isa = PBXBuildFile; fileRef = 7214B8801D456A8500CB5CED /* SUBundleIcon.m */; }; + 7214B8811D456A8500CB5CED /* SPUBundleIcon.h in Headers */ = {isa = PBXBuildFile; fileRef = 7214B87F1D456A8500CB5CED /* SPUBundleIcon.h */; }; + 7214B8821D456A8500CB5CED /* SPUBundleIcon.m in Sources */ = {isa = PBXBuildFile; fileRef = 7214B8801D456A8500CB5CED /* SPUBundleIcon.m */; }; + 7214B8831D456C2400CB5CED /* SPUBundleIcon.m in Sources */ = {isa = PBXBuildFile; fileRef = 7214B8801D456A8500CB5CED /* SPUBundleIcon.m */; }; + 7214B8841D456C9500CB5CED /* SPUBundleIcon.m in Sources */ = {isa = PBXBuildFile; fileRef = 7214B8801D456A8500CB5CED /* SPUBundleIcon.m */; }; 72162B061C82C8B30013C1C5 /* SUParameterAssert.h in Headers */ = {isa = PBXBuildFile; fileRef = 72162B051C82C8B30013C1C5 /* SUParameterAssert.h */; }; 72162B081C82C9600013C1C5 /* SULocalizations.h in Headers */ = {isa = PBXBuildFile; fileRef = 72162B071C82C9600013C1C5 /* SULocalizations.h */; }; - 721652621D3C44A100FD13D8 /* SUSystemAuthorization.m in Sources */ = {isa = PBXBuildFile; fileRef = 724BB3AC1D347EDE005D534A /* SUSystemAuthorization.m */; }; - 721BC20E1D1CDE55002BC71E /* SULocalCacheDirectory.h in Headers */ = {isa = PBXBuildFile; fileRef = 721BC20C1D1CDE55002BC71E /* SULocalCacheDirectory.h */; }; - 721BC20F1D1CDE55002BC71E /* SULocalCacheDirectory.m in Sources */ = {isa = PBXBuildFile; fileRef = 721BC20D1D1CDE55002BC71E /* SULocalCacheDirectory.m */; }; - 721BC2101D1CDE55002BC71E /* SULocalCacheDirectory.m in Sources */ = {isa = PBXBuildFile; fileRef = 721BC20D1D1CDE55002BC71E /* SULocalCacheDirectory.m */; }; + 721652621D3C44A100FD13D8 /* SPUSystemAuthorization.m in Sources */ = {isa = PBXBuildFile; fileRef = 724BB3AC1D347EDE005D534A /* SPUSystemAuthorization.m */; }; + 721BC20E1D1CDE55002BC71E /* SPULocalCacheDirectory.h in Headers */ = {isa = PBXBuildFile; fileRef = 721BC20C1D1CDE55002BC71E /* SPULocalCacheDirectory.h */; }; + 721BC20F1D1CDE55002BC71E /* SPULocalCacheDirectory.m in Sources */ = {isa = PBXBuildFile; fileRef = 721BC20D1D1CDE55002BC71E /* SPULocalCacheDirectory.m */; }; + 721BC2101D1CDE55002BC71E /* SPULocalCacheDirectory.m in Sources */ = {isa = PBXBuildFile; fileRef = 721BC20D1D1CDE55002BC71E /* SPULocalCacheDirectory.m */; }; 721C245A1CB75756005440CB /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 525A278F133D6AE900FD8D70 /* Cocoa.framework */; }; 721C245C1CB7576E005440CB /* SUStatusController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6196CFE409C71ADE000DC222 /* SUStatusController.m */; }; - 721C245D1CB757C4005440CB /* SUApplicationInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 725602D41C83551C00DAA70E /* SUApplicationInfo.m */; }; + 721C245D1CB757C4005440CB /* SPUApplicationInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 725602D41C83551C00DAA70E /* SPUApplicationInfo.m */; }; 721C245E1CB757DE005440CB /* SUConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A5F09CA6EB100B7442F /* SUConstants.m */; }; 721C24611CB75C5D005440CB /* SUHost.m in Sources */ = {isa = PBXBuildFile; fileRef = 61EF67550E25B58D00F754E0 /* SUHost.m */; }; 721C24621CB75C68005440CB /* SULog.m in Sources */ = {isa = PBXBuildFile; fileRef = 55C14F05136EF6DB00649790 /* SULog.m */; }; @@ -119,11 +119,11 @@ 721CF1AB1AD764EB00D9AC09 /* libbz2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D06E8FB0FD68D61005AE3F6 /* libbz2.dylib */; }; 721D8A611D48413B0032E472 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 61B5F8F609C4CEB300B25A18 /* Security.framework */; }; 721D8A721D4950B80032E472 /* Autoupdate in Copy Tools */ = {isa = PBXBuildFile; fileRef = 72B398D21D3D879300EE297F /* Autoupdate */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; - 721D8A7B1D4963190032E472 /* SULocalCacheDirectory.m in Sources */ = {isa = PBXBuildFile; fileRef = 721BC20D1D1CDE55002BC71E /* SULocalCacheDirectory.m */; }; + 721D8A7B1D4963190032E472 /* SPULocalCacheDirectory.m in Sources */ = {isa = PBXBuildFile; fileRef = 721BC20D1D1CDE55002BC71E /* SPULocalCacheDirectory.m */; }; 721D8A811D498B9B0032E472 /* Updater.app in Copy Tools */ = {isa = PBXBuildFile; fileRef = 721C24451CB753E6005440CB /* Updater.app */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; - 721D8A861D4ADFEB0032E472 /* SULocalCacheDirectory.m in Sources */ = {isa = PBXBuildFile; fileRef = 721BC20D1D1CDE55002BC71E /* SULocalCacheDirectory.m */; }; + 721D8A861D4ADFEB0032E472 /* SPULocalCacheDirectory.m in Sources */ = {isa = PBXBuildFile; fileRef = 721BC20D1D1CDE55002BC71E /* SPULocalCacheDirectory.m */; }; 721D8A871D4C5BF10032E472 /* SULog.m in Sources */ = {isa = PBXBuildFile; fileRef = 55C14F05136EF6DB00649790 /* SULog.m */; }; - 721D8A8C1D4D3A6F0032E472 /* SUInstallerValidation.m in Sources */ = {isa = PBXBuildFile; fileRef = 721D8A8B1D4D3A6F0032E472 /* SUInstallerValidation.m */; }; + 721D8A8C1D4D3A6F0032E472 /* SPUInstallerValidation.m in Sources */ = {isa = PBXBuildFile; fileRef = 721D8A8B1D4D3A6F0032E472 /* SPUInstallerValidation.m */; }; 7223E7631AD1AEFF008E3161 /* sais.c in Sources */ = {isa = PBXBuildFile; fileRef = 7223E7611AD1AEFF008E3161 /* sais.c */; }; 7229E1B61C97C91100CB50D0 /* SUUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 7229E1B51C97C91100CB50D0 /* SUUpdateDriver.h */; }; 7229E1B91C97CC4D00CB50D0 /* SUScheduledUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 7229E1B71C97CC4D00CB50D0 /* SUScheduledUpdateDriver.h */; }; @@ -134,8 +134,8 @@ 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 */; }; + 7246E0A31C83B685003B4E75 /* SPUStandardUpdaterController.h in Headers */ = {isa = PBXBuildFile; fileRef = 7246E0A11C83B685003B4E75 /* SPUStandardUpdaterController.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 7246E0A41C83B685003B4E75 /* SPUStandardUpdaterController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7246E0A21C83B685003B4E75 /* SPUStandardUpdaterController.m */; }; 724A0A3B1CF7AEEA00D8C3D5 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 724A0A351CF7AEEA00D8C3D5 /* main.m */; }; 724A0A3D1CF7AEEA00D8C3D5 /* SUTemporaryDownloader.m in Sources */ = {isa = PBXBuildFile; fileRef = 724A0A381CF7AEEA00D8C3D5 /* SUTemporaryDownloader.m */; }; 724A0A3E1CF7AF0E00D8C3D5 /* SUTemporaryDownloader.m in Sources */ = {isa = PBXBuildFile; fileRef = 724A0A381CF7AEEA00D8C3D5 /* SUTemporaryDownloader.m */; }; @@ -151,24 +151,24 @@ 724BB3A81D33461B005D534A /* SUXPCInstallerStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 724BB3A61D33461B005D534A /* SUXPCInstallerStatus.h */; }; 724BB3A91D33461B005D534A /* SUXPCInstallerStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 724BB3A71D33461B005D534A /* SUXPCInstallerStatus.m */; }; 724BB3AA1D3347C2005D534A /* SUInstallerStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 724BB3971D333832005D534A /* SUInstallerStatus.m */; }; - 724BB3AF1D34828A005D534A /* SUSystemAuthorization.m in Sources */ = {isa = PBXBuildFile; fileRef = 724BB3AC1D347EDE005D534A /* SUSystemAuthorization.m */; }; - 724BB3B01D3482BA005D534A /* SUSystemAuthorization.m in Sources */ = {isa = PBXBuildFile; fileRef = 724BB3AC1D347EDE005D534A /* SUSystemAuthorization.m */; }; - 724BB3B11D3484B2005D534A /* SUSystemAuthorization.m in Sources */ = {isa = PBXBuildFile; fileRef = 724BB3AC1D347EDE005D534A /* SUSystemAuthorization.m */; }; - 724BB3B21D34862A005D534A /* SUSystemAuthorization.m in Sources */ = {isa = PBXBuildFile; fileRef = 724BB3AC1D347EDE005D534A /* SUSystemAuthorization.m */; }; + 724BB3AF1D34828A005D534A /* SPUSystemAuthorization.m in Sources */ = {isa = PBXBuildFile; fileRef = 724BB3AC1D347EDE005D534A /* SPUSystemAuthorization.m */; }; + 724BB3B01D3482BA005D534A /* SPUSystemAuthorization.m in Sources */ = {isa = PBXBuildFile; fileRef = 724BB3AC1D347EDE005D534A /* SPUSystemAuthorization.m */; }; + 724BB3B11D3484B2005D534A /* SPUSystemAuthorization.m in Sources */ = {isa = PBXBuildFile; fileRef = 724BB3AC1D347EDE005D534A /* SPUSystemAuthorization.m */; }; + 724BB3B21D34862A005D534A /* SPUSystemAuthorization.m in Sources */ = {isa = PBXBuildFile; fileRef = 724BB3AC1D347EDE005D534A /* SPUSystemAuthorization.m */; }; 724BB3B71D35ABA8005D534A /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 61B5F8F609C4CEB300B25A18 /* Security.framework */; }; - 725602D51C83551C00DAA70E /* SUApplicationInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 725602D31C83551C00DAA70E /* SUApplicationInfo.h */; }; - 725602D61C83551C00DAA70E /* SUApplicationInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 725602D41C83551C00DAA70E /* SUApplicationInfo.m */; }; - 725CB9571C7120410064365A /* SUUserDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 725CB9561C7120410064365A /* SUUserDriver.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 725CB95A1C7121830064365A /* SUStandardUserDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 725CB9581C7121830064365A /* SUStandardUserDriver.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 725CB95B1C7121830064365A /* SUStandardUserDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 725CB9591C7121830064365A /* SUStandardUserDriver.m */; }; + 725602D51C83551C00DAA70E /* SPUApplicationInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 725602D31C83551C00DAA70E /* SPUApplicationInfo.h */; }; + 725602D61C83551C00DAA70E /* SPUApplicationInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 725602D41C83551C00DAA70E /* SPUApplicationInfo.m */; }; + 725CB9571C7120410064365A /* SPUUserDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 725CB9561C7120410064365A /* SPUUserDriver.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 725CB95A1C7121830064365A /* SPUStandardUserDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 725CB9581C7121830064365A /* SPUStandardUserDriver.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 725CB95B1C7121830064365A /* SPUStandardUserDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 725CB9591C7121830064365A /* SPUStandardUserDriver.m */; }; 725F97771C8A62F500265BE4 /* SUAdHocCodeSigning.m in Sources */ = {isa = PBXBuildFile; fileRef = 725F97751C8A62F500265BE4 /* SUAdHocCodeSigning.m */; }; 725F97781C8A65AC00265BE4 /* SUAdHocCodeSigning.m in Sources */ = {isa = PBXBuildFile; fileRef = 725F97751C8A62F500265BE4 /* SUAdHocCodeSigning.m */; }; - 725F977B1C8A896F00265BE4 /* SUUserDriverCoreComponent.h in Headers */ = {isa = PBXBuildFile; fileRef = 725F97791C8A896F00265BE4 /* SUUserDriverCoreComponent.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 725F977C1C8A896F00265BE4 /* SUUserDriverCoreComponent.m in Sources */ = {isa = PBXBuildFile; fileRef = 725F977A1C8A896F00265BE4 /* SUUserDriverCoreComponent.m */; }; + 725F977B1C8A896F00265BE4 /* SPUUserDriverCoreComponent.h in Headers */ = {isa = PBXBuildFile; fileRef = 725F97791C8A896F00265BE4 /* SPUUserDriverCoreComponent.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 725F977C1C8A896F00265BE4 /* SPUUserDriverCoreComponent.m in Sources */ = {isa = PBXBuildFile; fileRef = 725F977A1C8A896F00265BE4 /* SPUUserDriverCoreComponent.m */; }; 725F97841C8AA90000265BE4 /* SUPopUpTitlebarUserDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 725F97831C8AA90000265BE4 /* SUPopUpTitlebarUserDriver.m */; }; 725F97A51C8B304D00265BE4 /* SUInstallUpdateViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 725F97A31C8B304D00265BE4 /* SUInstallUpdateViewController.m */; }; 725F97A61C8B304D00265BE4 /* SUInstallUpdateViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 725F97A41C8B304D00265BE4 /* SUInstallUpdateViewController.xib */; }; - 725F97A81C8B42D700265BE4 /* SUStandardUserDriverProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 725F97A71C8B42D700265BE4 /* SUStandardUserDriverProtocol.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 725F97A81C8B42D700265BE4 /* SPUStandardUserDriverProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 725F97A71C8B42D700265BE4 /* SPUStandardUserDriverProtocol.h */; settings = {ATTRIBUTES = (Public, ); }; }; 7267E5751D3D895B00D1BF90 /* SUBinaryDeltaApply.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E56F1D3D895B00D1BF90 /* SUBinaryDeltaApply.m */; }; 7267E5761D3D895B00D1BF90 /* SUBinaryDeltaApply.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E56F1D3D895B00D1BF90 /* SUBinaryDeltaApply.m */; }; 7267E5771D3D895B00D1BF90 /* SUBinaryDeltaCommon.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5711D3D895B00D1BF90 /* SUBinaryDeltaCommon.m */; }; @@ -186,13 +186,13 @@ 7267E5A21D3D8A7E00D1BF90 /* AppInstaller.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5A11D3D8A7E00D1BF90 /* AppInstaller.m */; }; 7267E5A81D3D8A9900D1BF90 /* AgentConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5A71D3D8A9900D1BF90 /* AgentConnection.m */; }; 7267E5AB1D3D8AA800D1BF90 /* TerminationListener.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5AA1D3D8AA800D1BF90 /* TerminationListener.m */; }; - 7267E5AE1D3D8AB700D1BF90 /* SUInstallationInputData.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5AD1D3D8AB700D1BF90 /* SUInstallationInputData.m */; }; + 7267E5AE1D3D8AB700D1BF90 /* SPUInstallationInputData.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5AD1D3D8AB700D1BF90 /* SPUInstallationInputData.m */; }; 7267E5B11D3D8AD500D1BF90 /* SUMessageTypes.h in Headers */ = {isa = PBXBuildFile; fileRef = 7267E5AF1D3D8AD500D1BF90 /* SUMessageTypes.h */; }; 7267E5B21D3D8AD500D1BF90 /* SUMessageTypes.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5B01D3D8AD500D1BF90 /* SUMessageTypes.m */; }; 7267E5B31D3D8AD500D1BF90 /* SUMessageTypes.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5B01D3D8AD500D1BF90 /* SUMessageTypes.m */; }; - 7267E5B61D3D8AEE00D1BF90 /* SUInstallationInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 7267E5B41D3D8AEE00D1BF90 /* SUInstallationInfo.h */; }; - 7267E5B71D3D8AEE00D1BF90 /* SUInstallationInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5B51D3D8AEE00D1BF90 /* SUInstallationInfo.m */; }; - 7267E5B81D3D8AEE00D1BF90 /* SUInstallationInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5B51D3D8AEE00D1BF90 /* SUInstallationInfo.m */; }; + 7267E5B61D3D8AEE00D1BF90 /* SPUInstallationInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 7267E5B41D3D8AEE00D1BF90 /* SPUInstallationInfo.h */; }; + 7267E5B71D3D8AEE00D1BF90 /* SPUInstallationInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5B51D3D8AEE00D1BF90 /* SPUInstallationInfo.m */; }; + 7267E5B81D3D8AEE00D1BF90 /* SPUInstallationInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5B51D3D8AEE00D1BF90 /* SPUInstallationInfo.m */; }; 7267E5C21D3D8B2700D1BF90 /* SUGuidedPackageInstaller.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5BB1D3D8B2700D1BF90 /* SUGuidedPackageInstaller.m */; }; 7267E5C31D3D8B2700D1BF90 /* SUInstaller.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5BD1D3D8B2700D1BF90 /* SUInstaller.m */; }; 7267E5C41D3D8B2700D1BF90 /* SUPackageInstaller.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5BF1D3D8B2700D1BF90 /* SUPackageInstaller.m */; }; @@ -201,7 +201,7 @@ 7267E5CA1D3D8C4800D1BF90 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D69BFE84028FC02AAC07 /* Foundation.framework */; }; 7267E5CB1D3D8C6400D1BF90 /* SUAppcastItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B5FC5409C5182000B25A18 /* SUAppcastItem.m */; }; 7267E5CC1D3D8C6B00D1BF90 /* SUConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A5F09CA6EB100B7442F /* SUConstants.m */; }; - 7267E5CD1D3D8C7200D1BF90 /* SUSecureCoding.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E075B1CA3A6D6001A286B /* SUSecureCoding.m */; }; + 7267E5CD1D3D8C7200D1BF90 /* SPUSecureCoding.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E075B1CA3A6D6001A286B /* SPUSecureCoding.m */; }; 7267E5CE1D3D8C7500D1BF90 /* SULog.m in Sources */ = {isa = PBXBuildFile; fileRef = 55C14F05136EF6DB00649790 /* SULog.m */; }; 7267E5D21D3D8CE800D1BF90 /* bsdiff.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8DB0FD68CB9005AE3F6 /* bsdiff.c */; }; 7267E5D31D3D8CF200D1BF90 /* bscommon.c in Sources */ = {isa = PBXBuildFile; fileRef = 72B09CE91CEA18900052EF9E /* bscommon.c */; }; @@ -212,7 +212,7 @@ 7267E5D81D3D8D4400D1BF90 /* SUStandardVersionComparator.m in Sources */ = {isa = PBXBuildFile; fileRef = 61A225A30D1C4AC000430CCD /* SUStandardVersionComparator.m */; }; 7267E5D91D3D8D4B00D1BF90 /* sais.c in Sources */ = {isa = PBXBuildFile; fileRef = 7223E7611AD1AEFF008E3161 /* sais.c */; }; 7267E5DC1D3D8F1E00D1BF90 /* SUMessageTypes.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5B01D3D8AD500D1BF90 /* SUMessageTypes.m */; }; - 7267E5DF1D3D8FFA00D1BF90 /* SUInstallationInputData.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5AD1D3D8AB700D1BF90 /* SUInstallationInputData.m */; }; + 7267E5DF1D3D8FFA00D1BF90 /* SPUInstallationInputData.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5AD1D3D8AB700D1BF90 /* SPUInstallationInputData.m */; }; 7267E5E11D3D901600D1BF90 /* SUMessageTypes.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5B01D3D8AD500D1BF90 /* SUMessageTypes.m */; }; 7267E5E51D3D90AA00D1BF90 /* SUFileManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 7267E5E31D3D90AA00D1BF90 /* SUFileManager.h */; }; 7267E5E61D3D90AA00D1BF90 /* SUFileManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5E41D3D90AA00D1BF90 /* SUFileManager.m */; }; @@ -241,10 +241,10 @@ 7267E5FF1D3DD1B700D1BF90 /* SUDownloadedUpdate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5FC1D3DD1B700D1BF90 /* SUDownloadedUpdate.m */; }; 7267E6001D3DD1B700D1BF90 /* SUDownloadedUpdate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5FC1D3DD1B700D1BF90 /* SUDownloadedUpdate.m */; }; 726DF88E1C84277600188804 /* SUStatusCompletionResults.h in Headers */ = {isa = PBXBuildFile; fileRef = 726DF88D1C84277500188804 /* SUStatusCompletionResults.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 726E075C1CA3A6D6001A286B /* SUSecureCoding.h in Headers */ = {isa = PBXBuildFile; fileRef = 726E075A1CA3A6D6001A286B /* SUSecureCoding.h */; }; - 726E075D1CA3A6D6001A286B /* SUSecureCoding.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E075B1CA3A6D6001A286B /* SUSecureCoding.m */; }; - 726E078D1CA891E9001A286B /* SUUpdaterSettings.h in Headers */ = {isa = PBXBuildFile; fileRef = 726E078B1CA891E9001A286B /* SUUpdaterSettings.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 726E078E1CA891E9001A286B /* SUUpdaterSettings.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E078C1CA891E9001A286B /* SUUpdaterSettings.m */; }; + 726E075C1CA3A6D6001A286B /* SPUSecureCoding.h in Headers */ = {isa = PBXBuildFile; fileRef = 726E075A1CA3A6D6001A286B /* SPUSecureCoding.h */; }; + 726E075D1CA3A6D6001A286B /* SPUSecureCoding.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E075B1CA3A6D6001A286B /* SPUSecureCoding.m */; }; + 726E078D1CA891E9001A286B /* SPUUpdaterSettings.h in Headers */ = {isa = PBXBuildFile; fileRef = 726E078B1CA891E9001A286B /* SPUUpdaterSettings.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 726E078E1CA891E9001A286B /* SPUUpdaterSettings.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E078C1CA891E9001A286B /* SPUUpdaterSettings.m */; }; 726E07B21CAF08D6001A286B /* SUInstallerLauncher.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E07B11CAF08D6001A286B /* SUInstallerLauncher.m */; }; 726E07B41CAF08D6001A286B /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E07B31CAF08D6001A286B /* main.m */; }; 726E07BF1CAF0C6C001A286B /* SUConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A5F09CA6EB100B7442F /* SUConstants.m */; }; @@ -256,7 +256,7 @@ 726E4A301C87DC1700C57C6A /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DC2EF5B0486A6940098B216 /* Sparkle.framework */; }; 726E4A341C87E0C700C57C6A /* SURemoteUpdateSettingsWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E4A321C87E0C700C57C6A /* SURemoteUpdateSettingsWindowController.m */; }; 726E4A351C87E0C700C57C6A /* SURemoteUpdateSettingsWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 726E4A331C87E0C700C57C6A /* SURemoteUpdateSettingsWindowController.xib */; }; - 726E4A371C89116000C57C6A /* SUStandardUserDriverDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 726E4A361C89116000C57C6A /* SUStandardUserDriverDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 726E4A371C89116000C57C6A /* SPUStandardUserDriverDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 726E4A361C89116000C57C6A /* SPUStandardUserDriverDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; }; 726F2CE51BC9C33D001971A4 /* SUOperatingSystem.h in Headers */ = {isa = PBXBuildFile; fileRef = 726F2CE31BC9C33D001971A4 /* SUOperatingSystem.h */; }; 726F2CE61BC9C33D001971A4 /* SUOperatingSystem.m in Sources */ = {isa = PBXBuildFile; fileRef = 726F2CE41BC9C33D001971A4 /* SUOperatingSystem.m */; }; 726F2CE81BC9C48F001971A4 /* SUConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A5F09CA6EB100B7442F /* SUConstants.m */; }; @@ -265,13 +265,13 @@ 728337A61C9E6FF40085AA99 /* SUProbeInstallStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 728337A41C9E6FF40085AA99 /* SUProbeInstallStatus.h */; }; 728337A71C9E6FF40085AA99 /* SUProbeInstallStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 728337A51C9E6FF40085AA99 /* SUProbeInstallStatus.m */; }; 728638ED1CAF50CE00783084 /* SUConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A5F09CA6EB100B7442F /* SUConstants.m */; }; - 7293A1AE1CEE933800B957A7 /* SUURLRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 7293A1AC1CEE933800B957A7 /* SUURLRequest.h */; }; - 7293A1AF1CEE933800B957A7 /* SUURLRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 7293A1AD1CEE933800B957A7 /* SUURLRequest.m */; }; - 7293A1B01CEE9B9800B957A7 /* SUURLRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 7293A1AD1CEE933800B957A7 /* SUURLRequest.m */; }; - 7293A1B11CEE9B9F00B957A7 /* SUURLRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 7293A1AD1CEE933800B957A7 /* SUURLRequest.m */; }; - 72A1C2631CD6849C004CD282 /* SUUpdatePermissionPrompt.h in Headers */ = {isa = PBXBuildFile; fileRef = 612DCBAD0D488BC60015DBEA /* SUUpdatePermissionPrompt.h */; }; - 72A450531C69A68900D67EEA /* SUUpdatePermission.h in Headers */ = {isa = PBXBuildFile; fileRef = 72A450511C69A68900D67EEA /* SUUpdatePermission.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 72A450541C69A68900D67EEA /* SUUpdatePermission.m in Sources */ = {isa = PBXBuildFile; fileRef = 72A450521C69A68900D67EEA /* SUUpdatePermission.m */; }; + 7293A1AE1CEE933800B957A7 /* SPUURLRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 7293A1AC1CEE933800B957A7 /* SPUURLRequest.h */; }; + 7293A1AF1CEE933800B957A7 /* SPUURLRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 7293A1AD1CEE933800B957A7 /* SPUURLRequest.m */; }; + 7293A1B01CEE9B9800B957A7 /* SPUURLRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 7293A1AD1CEE933800B957A7 /* SPUURLRequest.m */; }; + 7293A1B11CEE9B9F00B957A7 /* SPUURLRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 7293A1AD1CEE933800B957A7 /* SPUURLRequest.m */; }; + 72A1C2631CD6849C004CD282 /* SPUUpdatePermissionPrompt.h in Headers */ = {isa = PBXBuildFile; fileRef = 612DCBAD0D488BC60015DBEA /* SPUUpdatePermissionPrompt.h */; }; + 72A450531C69A68900D67EEA /* SPUUpdatePermission.h in Headers */ = {isa = PBXBuildFile; fileRef = 72A450511C69A68900D67EEA /* SPUUpdatePermission.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 72A450541C69A68900D67EEA /* SPUUpdatePermission.m in Sources */ = {isa = PBXBuildFile; fileRef = 72A450521C69A68900D67EEA /* SPUUpdatePermission.m */; }; 72A4A2401BB6567D00E7820D /* SUFileManagerTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 72A4A23F1BB6567D00E7820D /* SUFileManagerTest.swift */; }; 72A6F98A1C94E2D6005F404C /* SUUpdaterDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 72A6F9891C94E2D6005F404C /* SUUpdaterDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; }; 72AC6B261B9AAC8800F62325 /* SparkleTestCodeSignApp.tar.gz in Resources */ = {isa = PBXBuildFile; fileRef = 72AC6B251B9AAC8800F62325 /* SparkleTestCodeSignApp.tar.gz */; }; @@ -279,8 +279,8 @@ 72AC6B2A1B9AAF3A00F62325 /* SparkleTestCodeSignApp.tar.bz2 in Resources */ = {isa = PBXBuildFile; fileRef = 72AC6B291B9AAF3A00F62325 /* SparkleTestCodeSignApp.tar.bz2 */; }; 72AC6B2C1B9AB0EE00F62325 /* SparkleTestCodeSignApp.tar.xz in Resources */ = {isa = PBXBuildFile; fileRef = 72AC6B2B1B9AB0EE00F62325 /* SparkleTestCodeSignApp.tar.xz */; }; 72AC6B2E1B9B218C00F62325 /* SparkleTestCodeSignApp.dmg in Resources */ = {isa = PBXBuildFile; fileRef = 72AC6B2D1B9B218C00F62325 /* SparkleTestCodeSignApp.dmg */; }; - 72B09CE71CE6BCBD0052EF9E /* SUURLDownload.h in Headers */ = {isa = PBXBuildFile; fileRef = 72B09CE51CE6BCBD0052EF9E /* SUURLDownload.h */; }; - 72B09CE81CE6BCBD0052EF9E /* SUURLDownload.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B09CE61CE6BCBD0052EF9E /* SUURLDownload.m */; }; + 72B09CE71CE6BCBD0052EF9E /* SPUURLDownload.h in Headers */ = {isa = PBXBuildFile; fileRef = 72B09CE51CE6BCBD0052EF9E /* SPUURLDownload.h */; }; + 72B09CE81CE6BCBD0052EF9E /* SPUURLDownload.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B09CE61CE6BCBD0052EF9E /* SPUURLDownload.m */; }; 72B09CEC1CEA18900052EF9E /* bscommon.c in Sources */ = {isa = PBXBuildFile; fileRef = 72B09CE91CEA18900052EF9E /* bscommon.c */; }; 72B767CA1C9B707000A07552 /* SUAppcastDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 72B767C81C9B707000A07552 /* SUAppcastDriver.h */; }; 72B767CB1C9B707000A07552 /* SUAppcastDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767C91C9B707000A07552 /* SUAppcastDriver.m */; }; @@ -301,11 +301,11 @@ 72D954811CBACC35006F28BD /* InstallerProgressAppController.m in Sources */ = {isa = PBXBuildFile; fileRef = 72D954801CBACC35006F28BD /* InstallerProgressAppController.m */; }; 72D954831CBAD34F006F28BD /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 72D954821CBAD34F006F28BD /* main.m */; }; 72D954861CBB179D006F28BD /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1420DF4F196247F900203BB0 /* Images.xcassets */; }; - 72D954A21CBB415C006F28BD /* SUCommandLineDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72D954A11CBB415C006F28BD /* SUCommandLineDriver.m */; }; + 72D954A21CBB415C006F28BD /* SPUCommandLineDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72D954A11CBB415C006F28BD /* SPUCommandLineDriver.m */; }; 72D954A51CBB415C006F28BD /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 72D954A41CBB415C006F28BD /* main.m */; }; 72D954B31CBB42DA006F28BD /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DC2EF5B0486A6940098B216 /* Sparkle.framework */; }; 72D954B51CBB447A006F28BD /* Sparkle.framework in Copy Sparkle */ = {isa = PBXBuildFile; fileRef = 8DC2EF5B0486A6940098B216 /* Sparkle.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 72D954B81CBB467F006F28BD /* SUCommandLineUserDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72D954B71CBB467F006F28BD /* SUCommandLineUserDriver.m */; }; + 72D954B81CBB467F006F28BD /* SPUCommandLineUserDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72D954B71CBB467F006F28BD /* SPUCommandLineUserDriver.m */; }; 72E45CF31B640CDD005C701A /* SUTestApplicationDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 72E45CF21B640CDD005C701A /* SUTestApplicationDelegate.m */; }; 72E45CF71B640DAE005C701A /* SUUpdateSettingsWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 72E45CF51B640DAE005C701A /* SUUpdateSettingsWindowController.m */; }; 72E45CF81B640DAE005C701A /* SUUpdateSettingsWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 72E45CF61B640DAE005C701A /* SUUpdateSettingsWindowController.xib */; }; @@ -315,8 +315,8 @@ 72EB87EA1CB8798800C37F42 /* ShowInstallerProgress.m in Sources */ = {isa = PBXBuildFile; fileRef = 72EB87E91CB8798800C37F42 /* ShowInstallerProgress.m */; }; 72EB87EB1CB8859100C37F42 /* Updater.app in CopyFiles */ = {isa = PBXBuildFile; fileRef = 721C24451CB753E6005440CB /* Updater.app */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 72EB87EC1CB8887E00C37F42 /* SUStatus.xib in Resources */ = {isa = PBXBuildFile; fileRef = 55C14BD8136EF00C00649790 /* SUStatus.xib */; }; - 72F94F581CC44DE1002DEE68 /* SUXPCServiceInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 72F94F561CC44DE1002DEE68 /* SUXPCServiceInfo.h */; }; - 72F94F591CC44DE1002DEE68 /* SUXPCServiceInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 72F94F571CC44DE1002DEE68 /* SUXPCServiceInfo.m */; }; + 72F94F581CC44DE1002DEE68 /* SPUXPCServiceInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 72F94F561CC44DE1002DEE68 /* SPUXPCServiceInfo.h */; }; + 72F94F591CC44DE1002DEE68 /* SPUXPCServiceInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 72F94F571CC44DE1002DEE68 /* SPUXPCServiceInfo.m */; }; 72F94F5A1CC450DE002DEE68 /* SUInstallerLauncher.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E07B11CAF08D6001A286B /* SUInstallerLauncher.m */; }; 72F94F5D1CC455B4002DEE68 /* org.sparkle-project.InstallerLauncher.xpc in Embed XPC Services */ = {isa = PBXBuildFile; fileRef = 726E07AD1CAF08D6001A286B /* org.sparkle-project.InstallerLauncher.xpc */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 72F94F5E1CC455B4002DEE68 /* org.sparkle-project.PersistentDownloader.xpc in Embed XPC Services */ = {isa = PBXBuildFile; fileRef = 726E07EF1CAF37BD001A286B /* org.sparkle-project.PersistentDownloader.xpc */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; @@ -586,10 +586,10 @@ /* Begin PBXFileReference section */ 004A8652192A492B00C9730D /* ro */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ro; path = ro.lproj/Sparkle.strings; sourceTree = ""; }; 004A8654192A492B00C9730D /* ro */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ro; path = ro.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 004A8655192A492B00C9730D /* ro */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ro; path = ro.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 004A8655192A492B00C9730D /* ro */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ro; path = ro.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; 0263187214FEBB31005EBF43 /* uk */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = uk; path = uk.lproj/Sparkle.strings; sourceTree = ""; }; 0263187614FEBB42005EBF43 /* uk */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = uk; path = uk.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 0263187714FEBB42005EBF43 /* uk */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = uk; path = uk.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 0263187714FEBB42005EBF43 /* uk */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = uk; path = uk.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; 0867D69BFE84028FC02AAC07 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 0867D6A5FE840307C02AAC07 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; }; 1420DF4D196247B500203BB0 /* build-docs.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "build-docs.sh"; sourceTree = ""; }; @@ -655,11 +655,11 @@ 3772FEA813DE0B6B00F79537 /* SUVersionDisplayProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUVersionDisplayProtocol.h; sourceTree = ""; }; 4607BEA21948443800EF8DA4 /* nb */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = nb; path = nb.lproj/Sparkle.strings; sourceTree = ""; }; 4607BEA41948443800EF8DA4 /* nb */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = nb; path = nb.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 4607BEA51948443800EF8DA4 /* nb */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = nb; path = nb.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 4607BEA51948443800EF8DA4 /* nb */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = nb; path = nb.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; 525A278F133D6AE900FD8D70 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; }; 555CF29A196C52330000B31E /* el */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = el; path = el.lproj/Sparkle.strings; sourceTree = ""; }; 555CF29C196C52460000B31E /* el */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = el; path = el.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 555CF29D196C524C0000B31E /* el */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = el; path = el.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 555CF29D196C524C0000B31E /* el */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = el; path = el.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; 55C14BD8136EF00C00649790 /* SUStatus.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SUStatus.xib; sourceTree = ""; }; 55C14BF1136EF26100649790 /* cs */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = cs; path = cs.lproj/SUUpdateAlert.xib; sourceTree = ""; }; 55C14BF2136EF26100649790 /* da */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = da; path = da.lproj/SUUpdateAlert.xib; sourceTree = ""; }; @@ -679,24 +679,24 @@ 55C14C01136EF26100649790 /* sv */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sv; path = sv.lproj/SUUpdateAlert.xib; sourceTree = ""; }; 55C14C02136EF26100649790 /* zh_CN */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = zh_CN; path = zh_CN.lproj/SUUpdateAlert.xib; sourceTree = ""; }; 55C14C03136EF26100649790 /* zh_TW */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = zh_TW; path = zh_TW.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 55C14C06136EF2C700649790 /* cs */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = cs; path = cs.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C07136EF2C700649790 /* da */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = da; path = da.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C08136EF2C700649790 /* de */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = de; path = de.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C09136EF2C700649790 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C0A136EF2C700649790 /* es */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = es; path = es.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C0B136EF2C700649790 /* fr */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = fr; path = fr.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C0C136EF2C700649790 /* is */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = is; path = is.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C0D136EF2C700649790 /* it */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = it; path = it.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C0E136EF2C700649790 /* ja */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ja; path = ja.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C0F136EF2C700649790 /* ko */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ko; path = ko.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C10136EF2C700649790 /* nl */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = nl; path = nl.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C11136EF2C700649790 /* pl */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = pl; path = pl.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C12136EF2C700649790 /* pt_BR */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = pt_BR; path = pt_BR.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C14136EF2C700649790 /* ru */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ru; path = ru.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C15136EF2C700649790 /* sk */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sk; path = sk.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C16136EF2C700649790 /* sv */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sv; path = sv.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C17136EF2C700649790 /* zh_CN */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = zh_CN; path = zh_CN.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C18136EF2C700649790 /* zh_TW */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = zh_TW; path = zh_TW.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 55C14C06136EF2C700649790 /* cs */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = cs; path = cs.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 55C14C07136EF2C700649790 /* da */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = da; path = da.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 55C14C08136EF2C700649790 /* de */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = de; path = de.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 55C14C09136EF2C700649790 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 55C14C0A136EF2C700649790 /* es */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = es; path = es.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 55C14C0B136EF2C700649790 /* fr */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = fr; path = fr.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 55C14C0C136EF2C700649790 /* is */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = is; path = is.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 55C14C0D136EF2C700649790 /* it */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = it; path = it.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 55C14C0E136EF2C700649790 /* ja */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ja; path = ja.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 55C14C0F136EF2C700649790 /* ko */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ko; path = ko.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 55C14C10136EF2C700649790 /* nl */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = nl; path = nl.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 55C14C11136EF2C700649790 /* pl */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = pl; path = pl.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 55C14C12136EF2C700649790 /* pt_BR */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = pt_BR; path = pt_BR.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 55C14C14136EF2C700649790 /* ru */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ru; path = ru.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 55C14C15136EF2C700649790 /* sk */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sk; path = sk.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 55C14C16136EF2C700649790 /* sv */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sv; path = sv.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 55C14C17136EF2C700649790 /* zh_CN */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = zh_CN; path = zh_CN.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 55C14C18136EF2C700649790 /* zh_TW */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = zh_TW; path = zh_TW.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; 55C14F04136EF6DB00649790 /* SULog.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SULog.h; sourceTree = ""; }; 55C14F05136EF6DB00649790 /* SULog.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SULog.m; sourceTree = ""; }; 55C14F31136EFC2400649790 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; @@ -729,17 +729,17 @@ 61299A5B09CA6D4500B7442F /* SUConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUConstants.h; sourceTree = ""; }; 61299A5F09CA6EB100B7442F /* SUConstants.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUConstants.m; sourceTree = ""; }; 61299B3509CB04E000B7442F /* Sparkle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Sparkle.h; sourceTree = ""; }; - 612DCBAD0D488BC60015DBEA /* SUUpdatePermissionPrompt.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUpdatePermissionPrompt.h; sourceTree = ""; }; - 612DCBAE0D488BC60015DBEA /* SUUpdatePermissionPrompt.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUpdatePermissionPrompt.m; sourceTree = ""; }; + 612DCBAD0D488BC60015DBEA /* SPUUpdatePermissionPrompt.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUUpdatePermissionPrompt.h; sourceTree = ""; }; + 612DCBAE0D488BC60015DBEA /* SPUUpdatePermissionPrompt.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUUpdatePermissionPrompt.m; sourceTree = ""; }; 613151B20FB4946A000DCD59 /* is */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = is; path = is.lproj/Sparkle.strings; sourceTree = ""; }; 6149E6EA1601ABAC008A351E /* ar */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = ar; path = ar.lproj/Sparkle.strings; sourceTree = ""; }; 6149E6EF1601ABAC008A351E /* ar */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ar; path = ar.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 6149E6F01601ABAC008A351E /* ar */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ar; path = ar.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 6149E6F01601ABAC008A351E /* ar */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ar; path = ar.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; 615409C4103BBC4000125AF1 /* cs */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = cs; path = cs.lproj/Sparkle.strings; sourceTree = ""; }; - 6158A1B81378F64700487EC1 /* pt_PT */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = pt_PT; path = pt_PT.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 6158A1B81378F64700487EC1 /* pt_PT */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = pt_PT; path = pt_PT.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; 6158A1BB1378F68100487EC1 /* pt_PT */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = pt_PT; path = pt_PT.lproj/SUUpdateAlert.xib; sourceTree = ""; }; 6158A1BF1378F8BB00487EC1 /* tr */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = tr; path = tr.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 6158A1C01378F8BB00487EC1 /* tr */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = tr; path = tr.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 6158A1C01378F8BB00487EC1 /* tr */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = tr; path = tr.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; 615AE3CF0D64DC40001CA7BD /* SUModelTranslation.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = SUModelTranslation.plist; sourceTree = ""; }; 6186554310D7484E00B1E074 /* pt_PT */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = pt_PT; path = pt_PT.lproj/Sparkle.strings; sourceTree = ""; }; 618915730E35937600B5E981 /* sv */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = sv; path = sv.lproj/Sparkle.strings; sourceTree = ""; }; @@ -773,39 +773,39 @@ 61B5FCA109C5228F00B25A18 /* SUUpdateAlert.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUpdateAlert.m; sourceTree = ""; }; 61BA66CC14BDFA0400D02D86 /* sl */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sl; path = sl.lproj/Sparkle.strings; sourceTree = ""; }; 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 = ""; }; + 61BA66DC14BDFC5500D02D86 /* sl */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sl; path = sl.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; 61C268090E2DB5D000175E6C /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE; sourceTree = SOURCE_ROOT; }; 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 = ""; }; 61F3AC1215C22D4A00260CA2 /* th */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = th; path = th.lproj/Sparkle.strings; sourceTree = ""; }; 61F3AC1615C22D5900260CA2 /* th */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = th; path = th.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 61F3AC1715C22D5900260CA2 /* th */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = th; path = th.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 61F3AC1715C22D5900260CA2 /* th */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = th; path = th.lproj/SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; 61F614540E24A12D009F47E7 /* it */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/Sparkle.strings; sourceTree = ""; }; 720B16421C66433D006985FB /* UITests-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "UITests-Info.plist"; path = "UITests/UITests-Info.plist"; sourceTree = SOURCE_ROOT; }; 720B16431C66433D006985FB /* SUTestApplicationTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SUTestApplicationTest.swift; path = UITests/SUTestApplicationTest.swift; sourceTree = SOURCE_ROOT; }; - 720E21791D0D00BF003A311C /* SUUpdaterCycle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUpdaterCycle.h; sourceTree = ""; }; - 720E217A1D0D00BF003A311C /* SUUpdaterCycle.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUpdaterCycle.m; sourceTree = ""; }; + 720E21791D0D00BF003A311C /* SPUUpdaterCycle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUUpdaterCycle.h; sourceTree = ""; }; + 720E217A1D0D00BF003A311C /* SPUUpdaterCycle.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUUpdaterCycle.m; sourceTree = ""; }; 7210C7671B9A9A1500EB90AC /* SUUnarchiverTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SUUnarchiverTest.swift; sourceTree = ""; }; - 7214B87F1D456A8500CB5CED /* SUBundleIcon.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUBundleIcon.h; sourceTree = ""; }; - 7214B8801D456A8500CB5CED /* SUBundleIcon.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUBundleIcon.m; sourceTree = ""; }; - 7214B8851D45AD9A00CB5CED /* SUInstallationType.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SUInstallationType.h; sourceTree = ""; }; + 7214B87F1D456A8500CB5CED /* SPUBundleIcon.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUBundleIcon.h; sourceTree = ""; }; + 7214B8801D456A8500CB5CED /* SPUBundleIcon.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUBundleIcon.m; sourceTree = ""; }; + 7214B8851D45AD9A00CB5CED /* SPUInstallationType.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SPUInstallationType.h; sourceTree = ""; }; 72162B051C82C8B30013C1C5 /* SUParameterAssert.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUParameterAssert.h; sourceTree = ""; }; 72162B071C82C9600013C1C5 /* SULocalizations.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SULocalizations.h; sourceTree = ""; }; 721652671D3C8FED00FD13D8 /* SUInstallerLauncherStatus.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SUInstallerLauncherStatus.h; path = InstallerLauncher/SUInstallerLauncherStatus.h; sourceTree = SOURCE_ROOT; }; 721BC2061D17A532002BC71E /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = System/Library/Frameworks/CoreFoundation.framework; sourceTree = SDKROOT; }; 721BC2081D17A553002BC71E /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Carbon.framework; path = System/Library/Frameworks/Carbon.framework; sourceTree = SDKROOT; }; 721BC20A1D17A5AD002BC71E /* CoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreServices.framework; path = System/Library/Frameworks/CoreServices.framework; sourceTree = SDKROOT; }; - 721BC20C1D1CDE55002BC71E /* SULocalCacheDirectory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SULocalCacheDirectory.h; sourceTree = ""; }; - 721BC20D1D1CDE55002BC71E /* SULocalCacheDirectory.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SULocalCacheDirectory.m; sourceTree = ""; }; + 721BC20C1D1CDE55002BC71E /* SPULocalCacheDirectory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPULocalCacheDirectory.h; sourceTree = ""; }; + 721BC20D1D1CDE55002BC71E /* SPULocalCacheDirectory.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPULocalCacheDirectory.m; sourceTree = ""; }; 721C24451CB753E6005440CB /* Updater.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Updater.app; sourceTree = BUILT_PRODUCTS_DIR; }; 721C24571CB754E8005440CB /* ConfigInstallerProgress.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigInstallerProgress.xcconfig; sourceTree = ""; }; 721C24581CB7567D005440CB /* InstallerProgress-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "InstallerProgress-Info.plist"; path = "Sparkle/InstallerProgress/InstallerProgress-Info.plist"; sourceTree = SOURCE_ROOT; }; 721D8A831D498F1D0032E472 /* set-agent-signing.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "set-agent-signing.sh"; sourceTree = ""; }; 721D8A881D4D272E0032E472 /* Installation.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = Installation.md; sourceTree = ""; }; - 721D8A8A1D4D3A6F0032E472 /* SUInstallerValidation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SUInstallerValidation.h; path = Autoupdate/SUInstallerValidation.h; sourceTree = SOURCE_ROOT; }; - 721D8A8B1D4D3A6F0032E472 /* SUInstallerValidation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SUInstallerValidation.m; path = Autoupdate/SUInstallerValidation.m; sourceTree = SOURCE_ROOT; }; - 722194511D3BF987004C34FF /* SUInstallerAgentProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SUInstallerAgentProtocol.h; path = Sparkle/InstallerProgress/SUInstallerAgentProtocol.h; sourceTree = SOURCE_ROOT; }; + 721D8A8A1D4D3A6F0032E472 /* SPUInstallerValidation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SPUInstallerValidation.h; path = Autoupdate/SPUInstallerValidation.h; sourceTree = SOURCE_ROOT; }; + 721D8A8B1D4D3A6F0032E472 /* SPUInstallerValidation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SPUInstallerValidation.m; path = Autoupdate/SPUInstallerValidation.m; sourceTree = SOURCE_ROOT; }; + 722194511D3BF987004C34FF /* SPUInstallerAgentProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SPUInstallerAgentProtocol.h; path = Sparkle/InstallerProgress/SPUInstallerAgentProtocol.h; sourceTree = SOURCE_ROOT; }; 722194521D3BFEB7004C34FF /* SUInstallerAgentInitiationProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SUInstallerAgentInitiationProtocol.h; path = Sparkle/InstallerProgress/SUInstallerAgentInitiationProtocol.h; sourceTree = SOURCE_ROOT; }; 7223E7611AD1AEFF008E3161 /* sais.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = sais.c; sourceTree = ""; }; 7223E7621AD1AEFF008E3161 /* sais.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sais.h; sourceTree = ""; }; @@ -820,8 +820,8 @@ 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 = ""; }; + 7246E0A11C83B685003B4E75 /* SPUStandardUpdaterController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUStandardUpdaterController.h; sourceTree = ""; }; + 7246E0A21C83B685003B4E75 /* SPUStandardUpdaterController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUStandardUpdaterController.m; sourceTree = ""; }; 724A0A341CF7AEEA00D8C3D5 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = TemporaryDownloader/Info.plist; sourceTree = SOURCE_ROOT; }; 724A0A351CF7AEEA00D8C3D5 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = TemporaryDownloader/main.m; sourceTree = SOURCE_ROOT; }; 724A0A371CF7AEEA00D8C3D5 /* SUTemporaryDownloader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SUTemporaryDownloader.h; path = TemporaryDownloader/SUTemporaryDownloader.h; sourceTree = SOURCE_ROOT; }; @@ -848,24 +848,24 @@ 724BB3A51D3338C8005D534A /* ConfigInstallerStatusDebug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigInstallerStatusDebug.xcconfig; sourceTree = ""; }; 724BB3A61D33461B005D534A /* SUXPCInstallerStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUXPCInstallerStatus.h; sourceTree = ""; }; 724BB3A71D33461B005D534A /* SUXPCInstallerStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUXPCInstallerStatus.m; sourceTree = ""; }; - 724BB3AB1D347EDE005D534A /* SUSystemAuthorization.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SUSystemAuthorization.h; path = Sparkle/SUSystemAuthorization.h; sourceTree = SOURCE_ROOT; }; - 724BB3AC1D347EDE005D534A /* SUSystemAuthorization.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SUSystemAuthorization.m; path = Sparkle/SUSystemAuthorization.m; sourceTree = SOURCE_ROOT; }; + 724BB3AB1D347EDE005D534A /* SPUSystemAuthorization.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SPUSystemAuthorization.h; path = Sparkle/SPUSystemAuthorization.h; sourceTree = SOURCE_ROOT; }; + 724BB3AC1D347EDE005D534A /* SPUSystemAuthorization.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SPUSystemAuthorization.m; path = Sparkle/SPUSystemAuthorization.m; sourceTree = SOURCE_ROOT; }; 724BB3B51D35AAC3005D534A /* ServiceManagement.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ServiceManagement.framework; path = System/Library/Frameworks/ServiceManagement.framework; sourceTree = SDKROOT; }; - 725602D31C83551C00DAA70E /* SUApplicationInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUApplicationInfo.h; sourceTree = ""; }; - 725602D41C83551C00DAA70E /* SUApplicationInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUApplicationInfo.m; sourceTree = ""; }; - 725CB9561C7120410064365A /* SUUserDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUserDriver.h; sourceTree = ""; }; - 725CB9581C7121830064365A /* SUStandardUserDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUStandardUserDriver.h; sourceTree = ""; }; - 725CB9591C7121830064365A /* SUStandardUserDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUStandardUserDriver.m; sourceTree = ""; }; + 725602D31C83551C00DAA70E /* SPUApplicationInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUApplicationInfo.h; sourceTree = ""; }; + 725602D41C83551C00DAA70E /* SPUApplicationInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUApplicationInfo.m; sourceTree = ""; }; + 725CB9561C7120410064365A /* SPUUserDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUUserDriver.h; sourceTree = ""; }; + 725CB9581C7121830064365A /* SPUStandardUserDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUStandardUserDriver.h; sourceTree = ""; }; + 725CB9591C7121830064365A /* SPUStandardUserDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUStandardUserDriver.m; sourceTree = ""; }; 725F97741C8A62F500265BE4 /* SUAdHocCodeSigning.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUAdHocCodeSigning.h; sourceTree = ""; }; 725F97751C8A62F500265BE4 /* SUAdHocCodeSigning.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUAdHocCodeSigning.m; sourceTree = ""; }; - 725F97791C8A896F00265BE4 /* SUUserDriverCoreComponent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUserDriverCoreComponent.h; sourceTree = ""; }; - 725F977A1C8A896F00265BE4 /* SUUserDriverCoreComponent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUserDriverCoreComponent.m; sourceTree = ""; }; + 725F97791C8A896F00265BE4 /* SPUUserDriverCoreComponent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUUserDriverCoreComponent.h; sourceTree = ""; }; + 725F977A1C8A896F00265BE4 /* SPUUserDriverCoreComponent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUUserDriverCoreComponent.m; sourceTree = ""; }; 725F97821C8AA90000265BE4 /* SUPopUpTitlebarUserDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUPopUpTitlebarUserDriver.h; sourceTree = ""; }; 725F97831C8AA90000265BE4 /* SUPopUpTitlebarUserDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUPopUpTitlebarUserDriver.m; sourceTree = ""; }; 725F97A21C8B304D00265BE4 /* SUInstallUpdateViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUInstallUpdateViewController.h; sourceTree = ""; }; 725F97A31C8B304D00265BE4 /* SUInstallUpdateViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUInstallUpdateViewController.m; sourceTree = ""; }; 725F97A41C8B304D00265BE4 /* SUInstallUpdateViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SUInstallUpdateViewController.xib; sourceTree = ""; }; - 725F97A71C8B42D700265BE4 /* SUStandardUserDriverProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUStandardUserDriverProtocol.h; sourceTree = ""; }; + 725F97A71C8B42D700265BE4 /* SPUStandardUserDriverProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUStandardUserDriverProtocol.h; sourceTree = ""; }; 7267E56E1D3D895B00D1BF90 /* SUBinaryDeltaApply.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SUBinaryDeltaApply.h; path = Autoupdate/SUBinaryDeltaApply.h; sourceTree = SOURCE_ROOT; }; 7267E56F1D3D895B00D1BF90 /* SUBinaryDeltaApply.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SUBinaryDeltaApply.m; path = Autoupdate/SUBinaryDeltaApply.m; sourceTree = SOURCE_ROOT; }; 7267E5701D3D895B00D1BF90 /* SUBinaryDeltaCommon.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SUBinaryDeltaCommon.h; path = Autoupdate/SUBinaryDeltaCommon.h; sourceTree = SOURCE_ROOT; }; @@ -895,13 +895,13 @@ 7267E5A71D3D8A9900D1BF90 /* AgentConnection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AgentConnection.m; path = Autoupdate/AgentConnection.m; sourceTree = SOURCE_ROOT; }; 7267E5A91D3D8AA800D1BF90 /* TerminationListener.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TerminationListener.h; path = Autoupdate/TerminationListener.h; sourceTree = SOURCE_ROOT; }; 7267E5AA1D3D8AA800D1BF90 /* TerminationListener.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TerminationListener.m; path = Autoupdate/TerminationListener.m; sourceTree = SOURCE_ROOT; }; - 7267E5AC1D3D8AB700D1BF90 /* SUInstallationInputData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SUInstallationInputData.h; path = Autoupdate/SUInstallationInputData.h; sourceTree = SOURCE_ROOT; }; - 7267E5AD1D3D8AB700D1BF90 /* SUInstallationInputData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SUInstallationInputData.m; path = Autoupdate/SUInstallationInputData.m; sourceTree = SOURCE_ROOT; }; + 7267E5AC1D3D8AB700D1BF90 /* SPUInstallationInputData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SPUInstallationInputData.h; path = Autoupdate/SPUInstallationInputData.h; sourceTree = SOURCE_ROOT; }; + 7267E5AD1D3D8AB700D1BF90 /* SPUInstallationInputData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SPUInstallationInputData.m; path = Autoupdate/SPUInstallationInputData.m; sourceTree = SOURCE_ROOT; }; 7267E5AF1D3D8AD500D1BF90 /* SUMessageTypes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SUMessageTypes.h; path = Autoupdate/SUMessageTypes.h; sourceTree = SOURCE_ROOT; }; 7267E5B01D3D8AD500D1BF90 /* SUMessageTypes.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SUMessageTypes.m; path = Autoupdate/SUMessageTypes.m; sourceTree = SOURCE_ROOT; }; - 7267E5B41D3D8AEE00D1BF90 /* SUInstallationInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SUInstallationInfo.h; path = Autoupdate/SUInstallationInfo.h; sourceTree = SOURCE_ROOT; }; - 7267E5B51D3D8AEE00D1BF90 /* SUInstallationInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SUInstallationInfo.m; path = Autoupdate/SUInstallationInfo.m; sourceTree = SOURCE_ROOT; }; - 7267E5B91D3D8B0B00D1BF90 /* SUInstallerProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SUInstallerProtocol.h; path = Autoupdate/SUInstallerProtocol.h; sourceTree = SOURCE_ROOT; }; + 7267E5B41D3D8AEE00D1BF90 /* SPUInstallationInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SPUInstallationInfo.h; path = Autoupdate/SPUInstallationInfo.h; sourceTree = SOURCE_ROOT; }; + 7267E5B51D3D8AEE00D1BF90 /* SPUInstallationInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SPUInstallationInfo.m; path = Autoupdate/SPUInstallationInfo.m; sourceTree = SOURCE_ROOT; }; + 7267E5B91D3D8B0B00D1BF90 /* SPUInstallerProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SPUInstallerProtocol.h; path = Autoupdate/SPUInstallerProtocol.h; sourceTree = SOURCE_ROOT; }; 7267E5BA1D3D8B2700D1BF90 /* SUGuidedPackageInstaller.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SUGuidedPackageInstaller.h; path = Autoupdate/SUGuidedPackageInstaller.h; sourceTree = SOURCE_ROOT; }; 7267E5BB1D3D8B2700D1BF90 /* SUGuidedPackageInstaller.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SUGuidedPackageInstaller.m; path = Autoupdate/SUGuidedPackageInstaller.m; sourceTree = SOURCE_ROOT; }; 7267E5BC1D3D8B2700D1BF90 /* SUInstaller.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SUInstaller.h; path = Autoupdate/SUInstaller.h; sourceTree = SOURCE_ROOT; }; @@ -918,12 +918,12 @@ 7267E5FC1D3DD1B700D1BF90 /* SUDownloadedUpdate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUDownloadedUpdate.m; sourceTree = ""; }; 726B2B5D1C645FC900388755 /* UI Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "UI Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 726DF88D1C84277500188804 /* SUStatusCompletionResults.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUStatusCompletionResults.h; sourceTree = ""; }; - 726E075A1CA3A6D6001A286B /* SUSecureCoding.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SUSecureCoding.h; path = Sparkle/SUSecureCoding.h; sourceTree = SOURCE_ROOT; }; - 726E075B1CA3A6D6001A286B /* SUSecureCoding.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SUSecureCoding.m; path = Sparkle/SUSecureCoding.m; sourceTree = SOURCE_ROOT; }; + 726E075A1CA3A6D6001A286B /* SPUSecureCoding.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SPUSecureCoding.h; path = Sparkle/SPUSecureCoding.h; sourceTree = SOURCE_ROOT; }; + 726E075B1CA3A6D6001A286B /* SPUSecureCoding.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SPUSecureCoding.m; path = Sparkle/SPUSecureCoding.m; sourceTree = SOURCE_ROOT; }; 726E07681CA616A4001A286B /* libxar.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libxar.tbd; path = usr/lib/libxar.tbd; sourceTree = SDKROOT; }; 726E076A1CA616B3001A286B /* libbz2.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libbz2.tbd; path = usr/lib/libbz2.tbd; sourceTree = SDKROOT; }; - 726E078B1CA891E9001A286B /* SUUpdaterSettings.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUpdaterSettings.h; sourceTree = ""; }; - 726E078C1CA891E9001A286B /* SUUpdaterSettings.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUpdaterSettings.m; sourceTree = ""; }; + 726E078B1CA891E9001A286B /* SPUUpdaterSettings.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUUpdaterSettings.h; sourceTree = ""; }; + 726E078C1CA891E9001A286B /* SPUUpdaterSettings.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUUpdaterSettings.m; sourceTree = ""; }; 726E07AD1CAF08D6001A286B /* org.sparkle-project.InstallerLauncher.xpc */ = {isa = PBXFileReference; explicitFileType = "wrapper.xpc-service"; includeInIndex = 0; path = "org.sparkle-project.InstallerLauncher.xpc"; sourceTree = BUILT_PRODUCTS_DIR; }; 726E07AF1CAF08D6001A286B /* SUInstallerLauncherProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SUInstallerLauncherProtocol.h; sourceTree = ""; }; 726E07B01CAF08D6001A286B /* SUInstallerLauncher.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SUInstallerLauncher.h; sourceTree = ""; }; @@ -943,7 +943,7 @@ 726E4A311C87E0C700C57C6A /* SURemoteUpdateSettingsWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SURemoteUpdateSettingsWindowController.h; sourceTree = ""; }; 726E4A321C87E0C700C57C6A /* SURemoteUpdateSettingsWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SURemoteUpdateSettingsWindowController.m; sourceTree = ""; }; 726E4A331C87E0C700C57C6A /* SURemoteUpdateSettingsWindowController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SURemoteUpdateSettingsWindowController.xib; sourceTree = ""; }; - 726E4A361C89116000C57C6A /* SUStandardUserDriverDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUStandardUserDriverDelegate.h; sourceTree = ""; }; + 726E4A361C89116000C57C6A /* SPUStandardUserDriverDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUStandardUserDriverDelegate.h; sourceTree = ""; }; 726F2CE31BC9C33D001971A4 /* SUOperatingSystem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUOperatingSystem.h; sourceTree = ""; }; 726F2CE41BC9C33D001971A4 /* SUOperatingSystem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUOperatingSystem.m; sourceTree = ""; }; 728337A41C9E6FF40085AA99 /* SUProbeInstallStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUProbeInstallStatus.h; sourceTree = ""; }; @@ -951,16 +951,16 @@ 728638EE1CAF589C00783084 /* ConfigPersistentDownloader.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigPersistentDownloader.xcconfig; sourceTree = ""; }; 728638F31CAF5A5F00783084 /* org.sparkle-project.TemporaryDownloader.xpc */ = {isa = PBXFileReference; explicitFileType = "wrapper.xpc-service"; includeInIndex = 0; path = "org.sparkle-project.TemporaryDownloader.xpc"; sourceTree = BUILT_PRODUCTS_DIR; }; 728639041CAF614000783084 /* ConfigTemporaryDownloader.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigTemporaryDownloader.xcconfig; sourceTree = ""; }; - 7293A1AC1CEE933800B957A7 /* SUURLRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUURLRequest.h; sourceTree = ""; }; - 7293A1AD1CEE933800B957A7 /* SUURLRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUURLRequest.m; sourceTree = ""; }; + 7293A1AC1CEE933800B957A7 /* SPUURLRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUURLRequest.h; sourceTree = ""; }; + 7293A1AD1CEE933800B957A7 /* SPUURLRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUURLRequest.m; sourceTree = ""; }; 729BB3CD1D503253007C4276 /* set-ats-exceptions-test-app.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "set-ats-exceptions-test-app.sh"; sourceTree = ""; }; 729BB3CE1D50344A007C4276 /* set-ats-exceptions-downloader-service.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "set-ats-exceptions-downloader-service.sh"; sourceTree = ""; }; 729BB3D11D503826007C4276 /* org.sparkle-project.PersistentDownloader.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.xml; name = "org.sparkle-project.PersistentDownloader.entitlements"; path = "PersistentDownloader/org.sparkle-project.PersistentDownloader.entitlements"; sourceTree = SOURCE_ROOT; }; 729BB3D21D503834007C4276 /* org.sparkle-project.TemporaryDownloader.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.xml; name = "org.sparkle-project.TemporaryDownloader.entitlements"; path = "TemporaryDownloader/org.sparkle-project.TemporaryDownloader.entitlements"; sourceTree = SOURCE_ROOT; }; 729F10FD1C65A9B500DFCCC5 /* ConfigUITest.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigUITest.xcconfig; sourceTree = ""; }; 729F10FE1C65A9B500DFCCC5 /* ConfigUITestCoverage.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigUITestCoverage.xcconfig; sourceTree = ""; }; - 72A450511C69A68900D67EEA /* SUUpdatePermission.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUpdatePermission.h; sourceTree = ""; }; - 72A450521C69A68900D67EEA /* SUUpdatePermission.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUpdatePermission.m; sourceTree = ""; }; + 72A450511C69A68900D67EEA /* SPUUpdatePermission.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUUpdatePermission.h; sourceTree = ""; }; + 72A450521C69A68900D67EEA /* SPUUpdatePermission.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUUpdatePermission.m; sourceTree = ""; }; 72A4A23F1BB6567D00E7820D /* SUFileManagerTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SUFileManagerTest.swift; sourceTree = ""; }; 72A6F9891C94E2D6005F404C /* SUUpdaterDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUpdaterDelegate.h; sourceTree = ""; }; 72AC6B251B9AAC8800F62325 /* SparkleTestCodeSignApp.tar.gz */ = {isa = PBXFileReference; lastKnownFileType = archive.gzip; path = SparkleTestCodeSignApp.tar.gz; sourceTree = ""; }; @@ -969,8 +969,8 @@ 72AC6B2B1B9AB0EE00F62325 /* SparkleTestCodeSignApp.tar.xz */ = {isa = PBXFileReference; lastKnownFileType = file; path = SparkleTestCodeSignApp.tar.xz; sourceTree = ""; }; 72AC6B2D1B9B218C00F62325 /* SparkleTestCodeSignApp.dmg */ = {isa = PBXFileReference; lastKnownFileType = file; path = SparkleTestCodeSignApp.dmg; sourceTree = ""; }; 72AFC6121B9A944200F6B565 /* Sparkle Unit Tests-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Sparkle Unit Tests-Bridging-Header.h"; sourceTree = ""; }; - 72B09CE51CE6BCBD0052EF9E /* SUURLDownload.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUURLDownload.h; sourceTree = ""; }; - 72B09CE61CE6BCBD0052EF9E /* SUURLDownload.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUURLDownload.m; sourceTree = ""; }; + 72B09CE51CE6BCBD0052EF9E /* SPUURLDownload.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUURLDownload.h; sourceTree = ""; }; + 72B09CE61CE6BCBD0052EF9E /* SPUURLDownload.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUURLDownload.m; sourceTree = ""; }; 72B09CE91CEA18900052EF9E /* bscommon.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = bscommon.c; sourceTree = ""; }; 72B09CEA1CEA18900052EF9E /* bscommon.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = bscommon.h; sourceTree = ""; }; 72B398D21D3D879300EE297F /* Autoupdate */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = Autoupdate; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -996,13 +996,13 @@ 72D954841CBAD418006F28BD /* ShowInstallerProgress.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = ShowInstallerProgress.h; path = Sparkle/InstallerProgress/ShowInstallerProgress.h; sourceTree = SOURCE_ROOT; }; 72D954851CBAD4AE006F28BD /* InstallerProgressDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = InstallerProgressDelegate.h; path = Sparkle/InstallerProgress/InstallerProgressDelegate.h; sourceTree = SOURCE_ROOT; }; 72D9549E1CBB415B006F28BD /* sparkle.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = sparkle.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 72D954A01CBB415C006F28BD /* SUCommandLineDriver.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SUCommandLineDriver.h; sourceTree = ""; }; - 72D954A11CBB415C006F28BD /* SUCommandLineDriver.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SUCommandLineDriver.m; sourceTree = ""; }; + 72D954A01CBB415C006F28BD /* SPUCommandLineDriver.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SPUCommandLineDriver.h; sourceTree = ""; }; + 72D954A11CBB415C006F28BD /* SPUCommandLineDriver.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SPUCommandLineDriver.m; sourceTree = ""; }; 72D954A41CBB415C006F28BD /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 72D954AB1CBB415C006F28BD /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 72D954B01CBB41E2006F28BD /* ConfigSparkleTool.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigSparkleTool.xcconfig; sourceTree = ""; }; - 72D954B61CBB467F006F28BD /* SUCommandLineUserDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUCommandLineUserDriver.h; sourceTree = ""; }; - 72D954B71CBB467F006F28BD /* SUCommandLineUserDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUCommandLineUserDriver.m; sourceTree = ""; }; + 72D954B61CBB467F006F28BD /* SPUCommandLineUserDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUCommandLineUserDriver.h; sourceTree = ""; }; + 72D954B71CBB467F006F28BD /* SPUCommandLineUserDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUCommandLineUserDriver.m; sourceTree = ""; }; 72E45CF11B640CDD005C701A /* SUTestApplicationDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUTestApplicationDelegate.h; sourceTree = ""; }; 72E45CF21B640CDD005C701A /* SUTestApplicationDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUTestApplicationDelegate.m; sourceTree = ""; }; 72E45CF41B640DAE005C701A /* SUUpdateSettingsWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUpdateSettingsWindowController.h; sourceTree = ""; }; @@ -1017,8 +1017,8 @@ 72F94ED71CC344E4002DEE68 /* ConfigTemporaryDownloaderDebug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigTemporaryDownloaderDebug.xcconfig; sourceTree = ""; }; 72F94EDA1CC36C37002DEE68 /* ConfigTestAppDebug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigTestAppDebug.xcconfig; sourceTree = ""; }; 72F94EDB1CC36C6F002DEE68 /* ConfigTestAppHelperDebug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigTestAppHelperDebug.xcconfig; sourceTree = ""; }; - 72F94F561CC44DE1002DEE68 /* SUXPCServiceInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUXPCServiceInfo.h; sourceTree = ""; }; - 72F94F571CC44DE1002DEE68 /* SUXPCServiceInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUXPCServiceInfo.m; sourceTree = ""; }; + 72F94F561CC44DE1002DEE68 /* SPUXPCServiceInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUXPCServiceInfo.h; sourceTree = ""; }; + 72F94F571CC44DE1002DEE68 /* SPUXPCServiceInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUXPCServiceInfo.m; sourceTree = ""; }; 72F9EBE01D517E2F004AC8B6 /* SUUpdater.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUpdater.h; sourceTree = ""; }; 72F9EBE11D517E2F004AC8B6 /* SUUpdater.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUpdater.m; sourceTree = ""; }; 8DC2EF5A0486A6940098B216 /* Sparkle-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Sparkle-Info.plist"; sourceTree = ""; }; @@ -1242,7 +1242,7 @@ 61AAE8220A321A7F00D8810D /* Sparkle.strings */, 55C14BD8136EF00C00649790 /* SUStatus.xib */, 55C14BF0136EF26100649790 /* SUUpdateAlert.xib */, - 55C14C05136EF2C700649790 /* SUUpdatePermissionPrompt.xib */, + 55C14C05136EF2C700649790 /* SPUUpdatePermissionPrompt.xib */, ); name = "Framework Resources"; sourceTree = ""; @@ -1350,14 +1350,14 @@ 7267E59E1D3D8A6F00D1BF90 /* main.m */, 7267E5A01D3D8A7E00D1BF90 /* AppInstaller.h */, 7267E5A11D3D8A7E00D1BF90 /* AppInstaller.m */, - 721D8A8A1D4D3A6F0032E472 /* SUInstallerValidation.h */, - 721D8A8B1D4D3A6F0032E472 /* SUInstallerValidation.m */, + 721D8A8A1D4D3A6F0032E472 /* SPUInstallerValidation.h */, + 721D8A8B1D4D3A6F0032E472 /* SPUInstallerValidation.m */, 7267E5A61D3D8A9900D1BF90 /* AgentConnection.h */, 7267E5A71D3D8A9900D1BF90 /* AgentConnection.m */, 7267E5A91D3D8AA800D1BF90 /* TerminationListener.h */, 7267E5AA1D3D8AA800D1BF90 /* TerminationListener.m */, - 7267E5AC1D3D8AB700D1BF90 /* SUInstallationInputData.h */, - 7267E5AD1D3D8AB700D1BF90 /* SUInstallationInputData.m */, + 7267E5AC1D3D8AB700D1BF90 /* SPUInstallationInputData.h */, + 7267E5AD1D3D8AB700D1BF90 /* SPUInstallationInputData.m */, ); path = Autoupdate; sourceTree = ""; @@ -1420,11 +1420,11 @@ 61B5FB9509C4F04600B25A18 /* SUAppcast.m */, 61B5FC5309C5182000B25A18 /* SUAppcastItem.h */, 61B5FC5409C5182000B25A18 /* SUAppcastItem.m */, - 7214B8851D45AD9A00CB5CED /* SUInstallationType.h */, - 72B09CE51CE6BCBD0052EF9E /* SUURLDownload.h */, - 72B09CE61CE6BCBD0052EF9E /* SUURLDownload.m */, - 7293A1AC1CEE933800B957A7 /* SUURLRequest.h */, - 7293A1AD1CEE933800B957A7 /* SUURLRequest.m */, + 7214B8851D45AD9A00CB5CED /* SPUInstallationType.h */, + 72B09CE51CE6BCBD0052EF9E /* SPUURLDownload.h */, + 72B09CE61CE6BCBD0052EF9E /* SPUURLDownload.m */, + 7293A1AC1CEE933800B957A7 /* SPUURLRequest.h */, + 7293A1AD1CEE933800B957A7 /* SPUURLRequest.m */, 61A225A20D1C4AC000430CCD /* SUStandardVersionComparator.h */, 61A225A30D1C4AC000430CCD /* SUStandardVersionComparator.m */, 61A2279A0D1CEE7600430CCD /* SUSystemProfiler.h */, @@ -1442,11 +1442,11 @@ 6196CFE409C71ADE000DC222 /* SUStatusController.m */, 61B5FCA009C5228F00B25A18 /* SUUpdateAlert.h */, 61B5FCA109C5228F00B25A18 /* SUUpdateAlert.m */, - 612DCBAD0D488BC60015DBEA /* SUUpdatePermissionPrompt.h */, - 612DCBAE0D488BC60015DBEA /* SUUpdatePermissionPrompt.m */, + 612DCBAD0D488BC60015DBEA /* SPUUpdatePermissionPrompt.h */, + 612DCBAE0D488BC60015DBEA /* SPUUpdatePermissionPrompt.m */, 3772FEA813DE0B6B00F79537 /* SUVersionDisplayProtocol.h */, - 725602D31C83551C00DAA70E /* SUApplicationInfo.h */, - 725602D41C83551C00DAA70E /* SUApplicationInfo.m */, + 725602D31C83551C00DAA70E /* SPUApplicationInfo.h */, + 725602D41C83551C00DAA70E /* SPUApplicationInfo.m */, ); name = "User Interface"; sourceTree = ""; @@ -1454,7 +1454,7 @@ 618FA6DB0DB485440026945C /* Installation */ = { isa = PBXGroup; children = ( - 7267E5B91D3D8B0B00D1BF90 /* SUInstallerProtocol.h */, + 7267E5B91D3D8B0B00D1BF90 /* SPUInstallerProtocol.h */, 7267E5BC1D3D8B2700D1BF90 /* SUInstaller.h */, 7267E5BD1D3D8B2700D1BF90 /* SUInstaller.m */, 7267E5C01D3D8B2700D1BF90 /* SUPlainInstaller.h */, @@ -1482,10 +1482,10 @@ 61EF67550E25B58D00F754E0 /* SUHost.m */, 7267E5E31D3D90AA00D1BF90 /* SUFileManager.h */, 7267E5E41D3D90AA00D1BF90 /* SUFileManager.m */, - 721BC20C1D1CDE55002BC71E /* SULocalCacheDirectory.h */, - 721BC20D1D1CDE55002BC71E /* SULocalCacheDirectory.m */, - 7214B87F1D456A8500CB5CED /* SUBundleIcon.h */, - 7214B8801D456A8500CB5CED /* SUBundleIcon.m */, + 721BC20C1D1CDE55002BC71E /* SPULocalCacheDirectory.h */, + 721BC20D1D1CDE55002BC71E /* SPULocalCacheDirectory.m */, + 7214B87F1D456A8500CB5CED /* SPUBundleIcon.h */, + 7214B8801D456A8500CB5CED /* SPUBundleIcon.m */, 55C14F04136EF6DB00649790 /* SULog.h */, 55C14F05136EF6DB00649790 /* SULog.m */, 726F2CE31BC9C33D001971A4 /* SUOperatingSystem.h */, @@ -1572,13 +1572,13 @@ 61CFB2C20E38496B007A1735 /* Drivers */, 61B5F8E309C4CE3C00B25A18 /* SPUUpdater.h */, 61B5F8E409C4CE3C00B25A18 /* SPUUpdater.m */, - 726E078B1CA891E9001A286B /* SUUpdaterSettings.h */, - 726E078C1CA891E9001A286B /* SUUpdaterSettings.m */, + 726E078B1CA891E9001A286B /* SPUUpdaterSettings.h */, + 726E078C1CA891E9001A286B /* SPUUpdaterSettings.m */, 72A6F9891C94E2D6005F404C /* SUUpdaterDelegate.h */, - 72A450511C69A68900D67EEA /* SUUpdatePermission.h */, - 72A450521C69A68900D67EEA /* SUUpdatePermission.m */, - 720E21791D0D00BF003A311C /* SUUpdaterCycle.h */, - 720E217A1D0D00BF003A311C /* SUUpdaterCycle.m */, + 72A450511C69A68900D67EEA /* SPUUpdatePermission.h */, + 72A450521C69A68900D67EEA /* SPUUpdatePermission.m */, + 720E21791D0D00BF003A311C /* SPUUpdaterCycle.h */, + 720E217A1D0D00BF003A311C /* SPUUpdaterCycle.m */, ); name = "Update Control"; sourceTree = ""; @@ -1587,7 +1587,7 @@ isa = PBXGroup; children = ( 72D954851CBAD4AE006F28BD /* InstallerProgressDelegate.h */, - 722194511D3BF987004C34FF /* SUInstallerAgentProtocol.h */, + 722194511D3BF987004C34FF /* SPUInstallerAgentProtocol.h */, 722194521D3BFEB7004C34FF /* SUInstallerAgentInitiationProtocol.h */, 72D9547F1CBACC35006F28BD /* InstallerProgressAppController.h */, 72D954801CBACC35006F28BD /* InstallerProgressAppController.m */, @@ -1645,16 +1645,16 @@ 725F97811C8A997300265BE4 /* User Driver */ = { isa = PBXGroup; children = ( - 725CB9561C7120410064365A /* SUUserDriver.h */, - 725F97791C8A896F00265BE4 /* SUUserDriverCoreComponent.h */, - 725F977A1C8A896F00265BE4 /* SUUserDriverCoreComponent.m */, + 725CB9561C7120410064365A /* SPUUserDriver.h */, + 725F97791C8A896F00265BE4 /* SPUUserDriverCoreComponent.h */, + 725F977A1C8A896F00265BE4 /* SPUUserDriverCoreComponent.m */, 726DF88D1C84277500188804 /* SUStatusCompletionResults.h */, - 7246E0A11C83B685003B4E75 /* SUStandardUpdaterController.h */, - 7246E0A21C83B685003B4E75 /* SUStandardUpdaterController.m */, - 726E4A361C89116000C57C6A /* SUStandardUserDriverDelegate.h */, - 725F97A71C8B42D700265BE4 /* SUStandardUserDriverProtocol.h */, - 725CB9581C7121830064365A /* SUStandardUserDriver.h */, - 725CB9591C7121830064365A /* SUStandardUserDriver.m */, + 7246E0A11C83B685003B4E75 /* SPUStandardUpdaterController.h */, + 7246E0A21C83B685003B4E75 /* SPUStandardUpdaterController.m */, + 726E4A361C89116000C57C6A /* SPUStandardUserDriverDelegate.h */, + 725F97A71C8B42D700265BE4 /* SPUStandardUserDriverProtocol.h */, + 725CB9581C7121830064365A /* SPUStandardUserDriver.h */, + 725CB9591C7121830064365A /* SPUStandardUserDriver.m */, ); name = "User Driver"; sourceTree = ""; @@ -1729,12 +1729,12 @@ children = ( 7267E5AF1D3D8AD500D1BF90 /* SUMessageTypes.h */, 7267E5B01D3D8AD500D1BF90 /* SUMessageTypes.m */, - 726E075A1CA3A6D6001A286B /* SUSecureCoding.h */, - 726E075B1CA3A6D6001A286B /* SUSecureCoding.m */, - 7267E5B41D3D8AEE00D1BF90 /* SUInstallationInfo.h */, - 7267E5B51D3D8AEE00D1BF90 /* SUInstallationInfo.m */, - 724BB3AB1D347EDE005D534A /* SUSystemAuthorization.h */, - 724BB3AC1D347EDE005D534A /* SUSystemAuthorization.m */, + 726E075A1CA3A6D6001A286B /* SPUSecureCoding.h */, + 726E075B1CA3A6D6001A286B /* SPUSecureCoding.m */, + 7267E5B41D3D8AEE00D1BF90 /* SPUInstallationInfo.h */, + 7267E5B51D3D8AEE00D1BF90 /* SPUInstallationInfo.m */, + 724BB3AB1D347EDE005D534A /* SPUSystemAuthorization.h */, + 724BB3AC1D347EDE005D534A /* SPUSystemAuthorization.m */, ); name = IPC; path = Autoupdate; @@ -1759,10 +1759,10 @@ 72D9549F1CBB415C006F28BD /* sparkle-cli */ = { isa = PBXGroup; children = ( - 72D954A01CBB415C006F28BD /* SUCommandLineDriver.h */, - 72D954A11CBB415C006F28BD /* SUCommandLineDriver.m */, - 72D954B61CBB467F006F28BD /* SUCommandLineUserDriver.h */, - 72D954B71CBB467F006F28BD /* SUCommandLineUserDriver.m */, + 72D954A01CBB415C006F28BD /* SPUCommandLineDriver.h */, + 72D954A11CBB415C006F28BD /* SPUCommandLineDriver.m */, + 72D954B61CBB467F006F28BD /* SPUCommandLineUserDriver.h */, + 72D954B71CBB467F006F28BD /* SPUCommandLineUserDriver.m */, 72D954A41CBB415C006F28BD /* main.m */, 72D954AB1CBB415C006F28BD /* Info.plist */, ); @@ -1772,8 +1772,8 @@ 72F94F551CC43D99002DEE68 /* XPC Services */ = { isa = PBXGroup; children = ( - 72F94F561CC44DE1002DEE68 /* SUXPCServiceInfo.h */, - 72F94F571CC44DE1002DEE68 /* SUXPCServiceInfo.m */, + 72F94F561CC44DE1002DEE68 /* SPUXPCServiceInfo.h */, + 72F94F571CC44DE1002DEE68 /* SPUXPCServiceInfo.m */, 728638F41CAF5A5F00783084 /* TemporaryDownloader */, 726E07AE1CAF08D6001A286B /* InstallerLauncher */, 726E07F01CAF37BD001A286B /* PersistentDownloader */, @@ -1841,28 +1841,28 @@ isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( - 725F977B1C8A896F00265BE4 /* SUUserDriverCoreComponent.h in Headers */, - 726E078D1CA891E9001A286B /* SUUpdaterSettings.h in Headers */, - 720E217B1D0D00BF003A311C /* SUUpdaterCycle.h in Headers */, + 725F977B1C8A896F00265BE4 /* SPUUserDriverCoreComponent.h in Headers */, + 726E078D1CA891E9001A286B /* SPUUpdaterSettings.h in Headers */, + 720E217B1D0D00BF003A311C /* SPUUpdaterCycle.h in Headers */, 72A6F98A1C94E2D6005F404C /* SUUpdaterDelegate.h in Headers */, - 726E4A371C89116000C57C6A /* SUStandardUserDriverDelegate.h in Headers */, - 725F97A81C8B42D700265BE4 /* SUStandardUserDriverProtocol.h in Headers */, - 721BC20E1D1CDE55002BC71E /* SULocalCacheDirectory.h in Headers */, + 726E4A371C89116000C57C6A /* SPUStandardUserDriverDelegate.h in Headers */, + 725F97A81C8B42D700265BE4 /* SPUStandardUserDriverProtocol.h in Headers */, + 721BC20E1D1CDE55002BC71E /* SPULocalCacheDirectory.h in Headers */, 72B767DA1C9CD2E400A07552 /* SUUIBasedUpdateDriver.h in Headers */, - 725CB95A1C7121830064365A /* SUStandardUserDriver.h in Headers */, - 725CB9571C7120410064365A /* SUUserDriver.h in Headers */, + 725CB95A1C7121830064365A /* SPUStandardUserDriver.h in Headers */, + 725CB9571C7120410064365A /* SPUUserDriver.h in Headers */, 72162B061C82C8B30013C1C5 /* SUParameterAssert.h in Headers */, 726DF88E1C84277600188804 /* SUStatusCompletionResults.h in Headers */, - 72A450531C69A68900D67EEA /* SUUpdatePermission.h in Headers */, - 7267E5B61D3D8AEE00D1BF90 /* SUInstallationInfo.h in Headers */, + 72A450531C69A68900D67EEA /* SPUUpdatePermission.h in Headers */, + 7267E5B61D3D8AEE00D1BF90 /* SPUInstallationInfo.h in Headers */, 7229E1B61C97C91100CB50D0 /* SUUpdateDriver.h in Headers */, 61299B3609CB04E000B7442F /* Sparkle.h in Headers */, - 72F94F581CC44DE1002DEE68 /* SUXPCServiceInfo.h in Headers */, + 72F94F581CC44DE1002DEE68 /* SPUXPCServiceInfo.h in Headers */, 72162B081C82C9600013C1C5 /* SULocalizations.h in Headers */, 61B5FC0D09C4FC8200B25A18 /* SUAppcast.h in Headers */, - 72A1C2631CD6849C004CD282 /* SUUpdatePermissionPrompt.h in Headers */, + 72A1C2631CD6849C004CD282 /* SPUUpdatePermissionPrompt.h in Headers */, 724BB3A81D33461B005D534A /* SUXPCInstallerStatus.h in Headers */, - 7246E0A31C83B685003B4E75 /* SUStandardUpdaterController.h in Headers */, + 7246E0A31C83B685003B4E75 /* SPUStandardUpdaterController.h in Headers */, 61B5FC7009C51F4A00B25A18 /* SUAppcastItem.h in Headers */, 72B767D61C9C8B5C00A07552 /* SUBasicUpdateDriver.h in Headers */, 61EF67590E25C5B400F754E0 /* SUHost.h in Headers */, @@ -1870,20 +1870,20 @@ 55E6F33319EC9F6C00005E76 /* SUErrors.h in Headers */, 14652F8419A978C200959E44 /* SUExport.h in Headers */, 7267E5FD1D3DD1B700D1BF90 /* SUDownloadedUpdate.h in Headers */, - 725602D51C83551C00DAA70E /* SUApplicationInfo.h in Headers */, + 725602D51C83551C00DAA70E /* SPUApplicationInfo.h in Headers */, 55C14F06136EF6DB00649790 /* SULog.h in Headers */, 726F2CE51BC9C33D001971A4 /* SUOperatingSystem.h in Headers */, 72B767E61C9CFD7200A07552 /* SUAutomaticUpdateDriver.h in Headers */, 728337A61C9E6FF40085AA99 /* SUProbeInstallStatus.h in Headers */, 72B767CA1C9B707000A07552 /* SUAppcastDriver.h in Headers */, - 726E075C1CA3A6D6001A286B /* SUSecureCoding.h in Headers */, + 726E075C1CA3A6D6001A286B /* SPUSecureCoding.h in Headers */, 72B767E21C9CE90A00A07552 /* SUCoreBasedUpdateDriver.h in Headers */, - 72B09CE71CE6BCBD0052EF9E /* SUURLDownload.h in Headers */, + 72B09CE71CE6BCBD0052EF9E /* SPUURLDownload.h in Headers */, 72F9EBE21D517E2F004AC8B6 /* SUUpdater.h in Headers */, 61A225A40D1C4AC000430CCD /* SUStandardVersionComparator.h in Headers */, 7229E1B91C97CC4D00CB50D0 /* SUScheduledUpdateDriver.h in Headers */, - 7214B8811D456A8500CB5CED /* SUBundleIcon.h in Headers */, - 7293A1AE1CEE933800B957A7 /* SUURLRequest.h in Headers */, + 7214B8811D456A8500CB5CED /* SPUBundleIcon.h in Headers */, + 7293A1AE1CEE933800B957A7 /* SPUURLRequest.h in Headers */, 6196CFF909C72148000DC222 /* SUStatusController.h in Headers */, 72B767DE1C9CDB9700A07552 /* SUUserInitiatedUpdateDriver.h in Headers */, 61A2279C0D1CEE7600430CCD /* SUSystemProfiler.h in Headers */, @@ -2456,7 +2456,7 @@ 615AE3D00D64DC40001CA7BD /* SUModelTranslation.plist in Resources */, 55C14BEF136EF21700649790 /* SUStatus.xib in Resources */, 55C14C04136EF26100649790 /* SUUpdateAlert.xib in Resources */, - 55C14C19136EF2C700649790 /* SUUpdatePermissionPrompt.xib in Resources */, + 55C14C19136EF2C700649790 /* SPUUpdatePermissionPrompt.xib in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -2643,18 +2643,18 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 7214B8831D456C2400CB5CED /* SUBundleIcon.m in Sources */, + 7214B8831D456C2400CB5CED /* SPUBundleIcon.m in Sources */, 7267E5FA1D3DAC3600D1BF90 /* StatusInfo.m in Sources */, 7267E5EB1D3D90C200D1BF90 /* SUFileManager.m in Sources */, 7267E5DC1D3D8F1E00D1BF90 /* SUMessageTypes.m in Sources */, - 721652621D3C44A100FD13D8 /* SUSystemAuthorization.m in Sources */, + 721652621D3C44A100FD13D8 /* SPUSystemAuthorization.m in Sources */, 72D954831CBAD34F006F28BD /* main.m in Sources */, 721C24621CB75C68005440CB /* SULog.m in Sources */, 72D954811CBACC35006F28BD /* InstallerProgressAppController.m in Sources */, 72EB87EA1CB8798800C37F42 /* ShowInstallerProgress.m in Sources */, 721C24611CB75C5D005440CB /* SUHost.m in Sources */, 721C245E1CB757DE005440CB /* SUConstants.m in Sources */, - 721C245D1CB757C4005440CB /* SUApplicationInfo.m in Sources */, + 721C245D1CB757C4005440CB /* SPUApplicationInfo.m in Sources */, 721C245C1CB7576E005440CB /* SUStatusController.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -2663,7 +2663,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 724BB3B11D3484B2005D534A /* SUSystemAuthorization.m in Sources */, + 724BB3B11D3484B2005D534A /* SPUSystemAuthorization.m in Sources */, 724BB3731D31D0B7005D534A /* main.m in Sources */, 724BB3711D31D0B7005D534A /* SUInstallerConnection.m in Sources */, ); @@ -2673,7 +2673,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 724BB3B21D34862A005D534A /* SUSystemAuthorization.m in Sources */, + 724BB3B21D34862A005D534A /* SPUSystemAuthorization.m in Sources */, 724BB39A1D333832005D534A /* main.m in Sources */, 724BB3981D333832005D534A /* SUInstallerStatus.m in Sources */, ); @@ -2691,10 +2691,10 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 721D8A7B1D4963190032E472 /* SULocalCacheDirectory.m in Sources */, - 7214B8841D456C9500CB5CED /* SUBundleIcon.m in Sources */, + 721D8A7B1D4963190032E472 /* SPULocalCacheDirectory.m in Sources */, + 7214B8841D456C9500CB5CED /* SPUBundleIcon.m in Sources */, 7267E5E11D3D901600D1BF90 /* SUMessageTypes.m in Sources */, - 724BB3AF1D34828A005D534A /* SUSystemAuthorization.m in Sources */, + 724BB3AF1D34828A005D534A /* SPUSystemAuthorization.m in Sources */, 726E07C01CAF15B7001A286B /* SULog.m in Sources */, 726E07BF1CAF0C6C001A286B /* SUConstants.m in Sources */, 7267E5E81D3D90AA00D1BF90 /* SUFileManager.m in Sources */, @@ -2708,8 +2708,8 @@ buildActionMask = 2147483647; files = ( 721D8A871D4C5BF10032E472 /* SULog.m in Sources */, - 7293A1B11CEE9B9F00B957A7 /* SUURLRequest.m in Sources */, - 721BC2101D1CDE55002BC71E /* SULocalCacheDirectory.m in Sources */, + 7293A1B11CEE9B9F00B957A7 /* SPUURLRequest.m in Sources */, + 721BC2101D1CDE55002BC71E /* SPULocalCacheDirectory.m in Sources */, 723B5DA71CF7AB0100365F95 /* main.m in Sources */, 728638ED1CAF50CE00783084 /* SUConstants.m in Sources */, 723B5DA91CF7AB0100365F95 /* SUPersistentDownloader.m in Sources */, @@ -2731,7 +2731,7 @@ buildActionMask = 2147483647; files = ( 724A0A3B1CF7AEEA00D8C3D5 /* main.m in Sources */, - 7293A1B01CEE9B9800B957A7 /* SUURLRequest.m in Sources */, + 7293A1B01CEE9B9800B957A7 /* SPUURLRequest.m in Sources */, 724A0A3D1CF7AEEA00D8C3D5 /* SUTemporaryDownloader.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -2740,7 +2740,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 721D8A861D4ADFEB0032E472 /* SULocalCacheDirectory.m in Sources */, + 721D8A861D4ADFEB0032E472 /* SPULocalCacheDirectory.m in Sources */, 7267E5D91D3D8D4B00D1BF90 /* sais.c in Sources */, 7267E5D81D3D8D4400D1BF90 /* SUStandardVersionComparator.m in Sources */, 7267E5D71D3D8D3F00D1BF90 /* SUHost.m in Sources */, @@ -2748,7 +2748,7 @@ 7267E5D41D3D8CF200D1BF90 /* bspatch.c in Sources */, 7267E5D21D3D8CE800D1BF90 /* bsdiff.c in Sources */, 7267E5CE1D3D8C7500D1BF90 /* SULog.m in Sources */, - 7267E5CD1D3D8C7200D1BF90 /* SUSecureCoding.m in Sources */, + 7267E5CD1D3D8C7200D1BF90 /* SPUSecureCoding.m in Sources */, 7267E5CC1D3D8C6B00D1BF90 /* SUConstants.m in Sources */, 7267E5CB1D3D8C6400D1BF90 /* SUAppcastItem.m in Sources */, 7267E5C31D3D8B2700D1BF90 /* SUInstaller.m in Sources */, @@ -2759,12 +2759,12 @@ 7267E5C51D3D8B2700D1BF90 /* SUPlainInstaller.m in Sources */, 7267E5B31D3D8AD500D1BF90 /* SUMessageTypes.m in Sources */, 7267E5881D3D89B300D1BF90 /* SUUnarchiver.m in Sources */, - 7267E5AE1D3D8AB700D1BF90 /* SUInstallationInputData.m in Sources */, + 7267E5AE1D3D8AB700D1BF90 /* SPUInstallationInputData.m in Sources */, 7267E5C41D3D8B2700D1BF90 /* SUPackageInstaller.m in Sources */, 7267E5771D3D895B00D1BF90 /* SUBinaryDeltaCommon.m in Sources */, 7267E5871D3D89B300D1BF90 /* SUPipedUnarchiver.m in Sources */, 7267E5751D3D895B00D1BF90 /* SUBinaryDeltaApply.m in Sources */, - 721D8A8C1D4D3A6F0032E472 /* SUInstallerValidation.m in Sources */, + 721D8A8C1D4D3A6F0032E472 /* SPUInstallerValidation.m in Sources */, 7267E59D1D3D8A5A00D1BF90 /* SUDSAVerifier.m in Sources */, 7267E5791D3D895B00D1BF90 /* SUBinaryDeltaCreate.m in Sources */, 7267E5C21D3D8B2700D1BF90 /* SUGuidedPackageInstaller.m in Sources */, @@ -2772,7 +2772,7 @@ 7267E59F1D3D8A6F00D1BF90 /* main.m in Sources */, 7267E5A21D3D8A7E00D1BF90 /* AppInstaller.m in Sources */, 7267E5861D3D89B300D1BF90 /* SUDiskImageUnarchiver.m in Sources */, - 7267E5B81D3D8AEE00D1BF90 /* SUInstallationInfo.m in Sources */, + 7267E5B81D3D8AEE00D1BF90 /* SPUInstallationInfo.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -2781,8 +2781,8 @@ buildActionMask = 2147483647; files = ( 72D954A51CBB415C006F28BD /* main.m in Sources */, - 72D954A21CBB415C006F28BD /* SUCommandLineDriver.m in Sources */, - 72D954B81CBB467F006F28BD /* SUCommandLineUserDriver.m in Sources */, + 72D954A21CBB415C006F28BD /* SPUCommandLineDriver.m in Sources */, + 72D954B81CBB467F006F28BD /* SPUCommandLineUserDriver.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -2790,12 +2790,12 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 7267E5DF1D3D8FFA00D1BF90 /* SUInstallationInputData.m in Sources */, - 724BB3B01D3482BA005D534A /* SUSystemAuthorization.m in Sources */, + 7267E5DF1D3D8FFA00D1BF90 /* SPUInstallationInputData.m in Sources */, + 724BB3B01D3482BA005D534A /* SPUSystemAuthorization.m in Sources */, 724BB3AA1D3347C2005D534A /* SUInstallerStatus.m in Sources */, 724BB3891D32B915005D534A /* SUInstallerConnection.m in Sources */, - 721BC20F1D1CDE55002BC71E /* SULocalCacheDirectory.m in Sources */, - 7267E5B71D3D8AEE00D1BF90 /* SUInstallationInfo.m in Sources */, + 721BC20F1D1CDE55002BC71E /* SPULocalCacheDirectory.m in Sources */, + 7267E5B71D3D8AEE00D1BF90 /* SPUInstallationInfo.m in Sources */, 724A0A3E1CF7AF0E00D8C3D5 /* SUTemporaryDownloader.m in Sources */, 723B5DAA1CF7AB6A00365F95 /* SUPersistentDownloader.m in Sources */, 72F94F5A1CC450DE002DEE68 /* SUInstallerLauncher.m in Sources */, @@ -2804,42 +2804,42 @@ 72B767E71C9CFD7200A07552 /* SUAutomaticUpdateDriver.m in Sources */, 7267E5E61D3D90AA00D1BF90 /* SUFileManager.m in Sources */, 61B5FBB709C4FAFF00B25A18 /* SUAppcast.m in Sources */, - 72F94F591CC44DE1002DEE68 /* SUXPCServiceInfo.m in Sources */, - 726E078E1CA891E9001A286B /* SUUpdaterSettings.m in Sources */, + 72F94F591CC44DE1002DEE68 /* SPUXPCServiceInfo.m in Sources */, + 726E078E1CA891E9001A286B /* SPUUpdaterSettings.m in Sources */, 7229E1BE1C98EFF200CB50D0 /* SUDownloadDriver.m in Sources */, 61B5FC6F09C51F4900B25A18 /* SUAppcastItem.m in Sources */, 72B767D71C9C8B5C00A07552 /* SUBasicUpdateDriver.m in Sources */, 61299A6009CA6EB100B7442F /* SUConstants.m in Sources */, 728337A71C9E6FF40085AA99 /* SUProbeInstallStatus.m in Sources */, - 725602D61C83551C00DAA70E /* SUApplicationInfo.m in Sources */, + 725602D61C83551C00DAA70E /* SPUApplicationInfo.m in Sources */, 72B767DF1C9CDB9700A07552 /* SUUserInitiatedUpdateDriver.m in Sources */, 72F9EBE31D517E2F004AC8B6 /* SUUpdater.m in Sources */, 72B767CF1C9B924900A07552 /* SUInstallerDriver.m in Sources */, - 720E217C1D0D00BF003A311C /* SUUpdaterCycle.m in Sources */, - 72A450541C69A68900D67EEA /* SUUpdatePermission.m in Sources */, + 720E217C1D0D00BF003A311C /* SPUUpdaterCycle.m in Sources */, + 72A450541C69A68900D67EEA /* SPUUpdatePermission.m in Sources */, 724BB3881D32A167005D534A /* SUXPCInstallerConnection.m in Sources */, - 7214B8821D456A8500CB5CED /* SUBundleIcon.m in Sources */, + 7214B8821D456A8500CB5CED /* SPUBundleIcon.m in Sources */, 7229E1BA1C97CC4D00CB50D0 /* SUScheduledUpdateDriver.m in Sources */, - 725CB95B1C7121830064365A /* SUStandardUserDriver.m in Sources */, + 725CB95B1C7121830064365A /* SPUStandardUserDriver.m in Sources */, 61EF67560E25B58D00F754E0 /* SUHost.m in Sources */, 55C14F07136EF6DB00649790 /* SULog.m in Sources */, 726F2CE61BC9C33D001971A4 /* SUOperatingSystem.m in Sources */, 72B767D31C9C7B9300A07552 /* SUProbingUpdateDriver.m in Sources */, - 7293A1AF1CEE933800B957A7 /* SUURLRequest.m in Sources */, + 7293A1AF1CEE933800B957A7 /* SPUURLRequest.m in Sources */, 61A225A50D1C4AC000430CCD /* SUStandardVersionComparator.m in Sources */, 6196CFFA09C72149000DC222 /* SUStatusController.m in Sources */, 61A2279D0D1CEE7600430CCD /* SUSystemProfiler.m in Sources */, - 7246E0A41C83B685003B4E75 /* SUStandardUpdaterController.m in Sources */, - 725F977C1C8A896F00265BE4 /* SUUserDriverCoreComponent.m in Sources */, + 7246E0A41C83B685003B4E75 /* SPUStandardUpdaterController.m in Sources */, + 725F977C1C8A896F00265BE4 /* SPUUserDriverCoreComponent.m in Sources */, 61B5FCDE09C52A9F00B25A18 /* SUUpdateAlert.m in Sources */, 7267E5FE1D3DD1B700D1BF90 /* SUDownloadedUpdate.m in Sources */, - 612DCBB00D488BC60015DBEA /* SUUpdatePermissionPrompt.m in Sources */, + 612DCBB00D488BC60015DBEA /* SPUUpdatePermissionPrompt.m in Sources */, 61B5F8EE09C4CE3C00B25A18 /* SPUUpdater.m in Sources */, 72B767CB1C9B707000A07552 /* SUAppcastDriver.m in Sources */, - 726E075D1CA3A6D6001A286B /* SUSecureCoding.m in Sources */, + 726E075D1CA3A6D6001A286B /* SPUSecureCoding.m in Sources */, 7267E5B21D3D8AD500D1BF90 /* SUMessageTypes.m in Sources */, 72B767DB1C9CD2E400A07552 /* SUUIBasedUpdateDriver.m in Sources */, - 72B09CE81CE6BCBD0052EF9E /* SUURLDownload.m in Sources */, + 72B09CE81CE6BCBD0052EF9E /* SPUURLDownload.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -3003,7 +3003,7 @@ name = SUUpdateAlert.xib; sourceTree = ""; }; - 55C14C05136EF2C700649790 /* SUUpdatePermissionPrompt.xib */ = { + 55C14C05136EF2C700649790 /* SPUUpdatePermissionPrompt.xib */ = { isa = PBXVariantGroup; children = ( 6149E6F01601ABAC008A351E /* ar */, @@ -3034,7 +3034,7 @@ 55C14C17136EF2C700649790 /* zh_CN */, 55C14C18136EF2C700649790 /* zh_TW */, ); - name = SUUpdatePermissionPrompt.xib; + name = SPUUpdatePermissionPrompt.xib; sourceTree = ""; }; 61AAE8220A321A7F00D8810D /* Sparkle.strings */ = { diff --git a/Sparkle/InstallerProgress/InstallerProgressAppController.m b/Sparkle/InstallerProgress/InstallerProgressAppController.m index 888d0e45..f392b011 100644 --- a/Sparkle/InstallerProgress/InstallerProgressAppController.m +++ b/Sparkle/InstallerProgress/InstallerProgressAppController.m @@ -10,8 +10,8 @@ #import "InstallerProgressDelegate.h" #import "SUMessageTypes.h" #import "SULog.h" -#import "SUApplicationInfo.h" -#import "SUInstallerAgentProtocol.h" +#import "SPUApplicationInfo.h" +#import "SPUInstallerAgentProtocol.h" #import "SUInstallerAgentInitiationProtocol.h" #import "StatusInfo.h" @@ -22,7 +22,7 @@ */ static const NSTimeInterval SUTerminationTimeDelay = 0.3; -@interface InstallerProgressAppController () +@interface InstallerProgressAppController () @property (nonatomic, readonly) NSApplication *application; @property (nonatomic, weak) id delegate; @@ -91,7 +91,7 @@ static const NSTimeInterval SUTerminationTimeDelay = 0.3; _application = application; _delegate = delegate; - _connection.exportedInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SUInstallerAgentProtocol)]; + _connection.exportedInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SPUInstallerAgentProtocol)]; _connection.exportedObject = self; _connection.remoteObjectInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SUInstallerAgentInitiationProtocol)]; @@ -171,7 +171,7 @@ static const NSTimeInterval SUTerminationTimeDelay = 0.3; [self cleanupAndExitWithStatus:EXIT_FAILURE]; } - NSRunningApplication *runningApplication = [SUApplicationInfo runningApplicationWithBundle:relaunchBundle]; + NSRunningApplication *runningApplication = [SPUApplicationInfo runningApplicationWithBundle:relaunchBundle]; NSNumber *processIdentifier = (runningApplication == nil || runningApplication.terminated) ? nil : @(runningApplication.processIdentifier); reply(processIdentifier); @@ -218,7 +218,7 @@ static const NSTimeInterval SUTerminationTimeDelay = 0.3; TransformProcessType(&psn, kProcessTransformToForegroundApplication); // Note: the application icon needs to be set after showing the icon in the dock - self.application.applicationIconImage = [SUApplicationInfo bestIconForBundle:self.hostBundle]; + self.application.applicationIconImage = [SPUApplicationInfo bestIconForBundle:self.hostBundle]; // Activate ourselves otherwise we will probably be in the background [self.application activateIgnoringOtherApps:YES]; diff --git a/Sparkle/InstallerProgress/SUInstallerAgentProtocol.h b/Sparkle/InstallerProgress/SPUInstallerAgentProtocol.h similarity index 88% rename from Sparkle/InstallerProgress/SUInstallerAgentProtocol.h rename to Sparkle/InstallerProgress/SPUInstallerAgentProtocol.h index caed5391..ca01437d 100644 --- a/Sparkle/InstallerProgress/SUInstallerAgentProtocol.h +++ b/Sparkle/InstallerProgress/SPUInstallerAgentProtocol.h @@ -1,5 +1,5 @@ // -// SUInstallerAgentProtocol.h +// SPUInstallerAgentProtocol.h // Sparkle // // Created by Mayur Pawashe on 7/17/16. @@ -10,7 +10,7 @@ NS_ASSUME_NONNULL_BEGIN -@protocol SUInstallerAgentProtocol +@protocol SPUInstallerAgentProtocol - (void)registerRelaunchBundlePath:(NSString *)relaunchBundlePath reply:(void (^)(NSNumber * _Nullable processIdentifier))reply; diff --git a/Sparkle/SUApplicationInfo.h b/Sparkle/SPUApplicationInfo.h similarity index 89% rename from Sparkle/SUApplicationInfo.h rename to Sparkle/SPUApplicationInfo.h index e7758edf..ff0aa388 100644 --- a/Sparkle/SUApplicationInfo.h +++ b/Sparkle/SPUApplicationInfo.h @@ -11,7 +11,7 @@ NS_ASSUME_NONNULL_BEGIN -SU_EXPORT @interface SUApplicationInfo : NSObject +SU_EXPORT @interface SPUApplicationInfo : NSObject + (BOOL)isBackgroundApplication:(NSApplication *)application; diff --git a/Sparkle/SUApplicationInfo.m b/Sparkle/SPUApplicationInfo.m similarity index 92% rename from Sparkle/SUApplicationInfo.m rename to Sparkle/SPUApplicationInfo.m index c0633dd3..61bbcfdd 100644 --- a/Sparkle/SUApplicationInfo.m +++ b/Sparkle/SPUApplicationInfo.m @@ -6,10 +6,10 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUApplicationInfo.h" -#import "SUBundleIcon.h" +#import "SPUApplicationInfo.h" +#import "SPUBundleIcon.h" -@implementation SUApplicationInfo +@implementation SPUApplicationInfo + (BOOL)isBackgroundApplication:(NSApplication *)application { @@ -18,7 +18,7 @@ + (NSImage *)bestIconForBundle:(NSBundle *)bundle { - NSURL *iconURL = [SUBundleIcon iconURLForBundle:bundle]; + NSURL *iconURL = [SPUBundleIcon iconURLForBundle:bundle]; NSImage *icon = (iconURL == nil) ? nil : [[NSImage alloc] initWithContentsOfURL:iconURL]; // Use a default icon if none is defined. diff --git a/Sparkle/SUBundleIcon.h b/Sparkle/SPUBundleIcon.h similarity index 88% rename from Sparkle/SUBundleIcon.h rename to Sparkle/SPUBundleIcon.h index f42be2fd..9f214de8 100644 --- a/Sparkle/SUBundleIcon.h +++ b/Sparkle/SPUBundleIcon.h @@ -10,7 +10,7 @@ NS_ASSUME_NONNULL_BEGIN -@interface SUBundleIcon : NSObject +@interface SPUBundleIcon : NSObject + (NSURL * _Nullable)iconURLForBundle:(NSBundle *)bundle; diff --git a/Sparkle/SUBundleIcon.m b/Sparkle/SPUBundleIcon.m similarity index 93% rename from Sparkle/SUBundleIcon.m rename to Sparkle/SPUBundleIcon.m index 30a831a8..7fe5aca0 100644 --- a/Sparkle/SUBundleIcon.m +++ b/Sparkle/SPUBundleIcon.m @@ -6,13 +6,13 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUBundleIcon.h" +#import "SPUBundleIcon.h" #ifdef _APPKITDEFINES_H #error This is a "core" class and should NOT import AppKit #endif -@implementation SUBundleIcon +@implementation SPUBundleIcon + (NSURL *)iconURLForBundle:(NSBundle *)bundle { diff --git a/Sparkle/SPUInstallationType.h b/Sparkle/SPUInstallationType.h new file mode 100644 index 00000000..2199a61b --- /dev/null +++ b/Sparkle/SPUInstallationType.h @@ -0,0 +1,20 @@ +// +// SPUInstallationType.h +// Sparkle +// +// Created by Mayur Pawashe on 7/24/16. +// Copyright © 2016 Sparkle Project. All rights reserved. +// + +#ifndef SPUInstallationType_h +#define SPUInstallationType_h + +#define SPUInstallationTypeApplication @"application" // the default installation type for ordinary application updates +#define SPUInstallationTypeGuidedPackage @"package" // the preferred installation type for package installations +#define SPUInstallationTypeInteractivePackage @"interactive-package" // the deprecated installation type; use guided package instead + +#define SPUInstallationTypeDefault SPUInstallationTypeApplication +#define SPUInstallationTypesArray (@[SPUInstallationTypeApplication, SPUInstallationTypeGuidedPackage, SPUInstallationTypeInteractivePackage]) +#define SPUValidInstallationType(x) ((x != nil) && [SPUInstallationTypesArray containsObject:x]) + +#endif /* SPUInstallationType_h */ diff --git a/Sparkle/SULocalCacheDirectory.h b/Sparkle/SPULocalCacheDirectory.h similarity index 97% rename from Sparkle/SULocalCacheDirectory.h rename to Sparkle/SPULocalCacheDirectory.h index c202e470..eff88ba9 100644 --- a/Sparkle/SULocalCacheDirectory.h +++ b/Sparkle/SPULocalCacheDirectory.h @@ -10,7 +10,7 @@ NS_ASSUME_NONNULL_BEGIN -@interface SULocalCacheDirectory : NSObject +@interface SPULocalCacheDirectory : NSObject // Returns a path to a suitable cache directory to create specifically for Sparkle // Intermediate directories to this path may not exist yet diff --git a/Sparkle/SULocalCacheDirectory.m b/Sparkle/SPULocalCacheDirectory.m similarity index 97% rename from Sparkle/SULocalCacheDirectory.m rename to Sparkle/SPULocalCacheDirectory.m index 7f94ae62..d126972d 100644 --- a/Sparkle/SULocalCacheDirectory.m +++ b/Sparkle/SPULocalCacheDirectory.m @@ -6,12 +6,12 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SULocalCacheDirectory.h" +#import "SPULocalCacheDirectory.h" #import "SULog.h" static NSTimeInterval OLD_ITEM_DELETION_INTERVAL = 86400 * 10; // 10 days -@implementation SULocalCacheDirectory +@implementation SPULocalCacheDirectory // 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 diff --git a/Sparkle/SUSecureCoding.h b/Sparkle/SPUSecureCoding.h similarity index 52% rename from Sparkle/SUSecureCoding.h rename to Sparkle/SPUSecureCoding.h index 0b7c6184..85d149bb 100644 --- a/Sparkle/SUSecureCoding.h +++ b/Sparkle/SPUSecureCoding.h @@ -1,5 +1,5 @@ // -// SUSecureCoding.h +// SPUSecureCoding.h // Sparkle // // Created by Mayur Pawashe on 3/24/16. @@ -10,8 +10,8 @@ NS_ASSUME_NONNULL_BEGIN -NSData * _Nullable SUArchiveRootObjectSecurely(id rootObject); +NSData * _Nullable SPUArchiveRootObjectSecurely(id rootObject); -id _Nullable SUUnarchiveRootObjectSecurely(NSData *data, Class klass); +id _Nullable SPUUnarchiveRootObjectSecurely(NSData *data, Class klass); NS_ASSUME_NONNULL_END diff --git a/Sparkle/SUSecureCoding.m b/Sparkle/SPUSecureCoding.m similarity index 85% rename from Sparkle/SUSecureCoding.m rename to Sparkle/SPUSecureCoding.m index 5878cf37..157ef27b 100644 --- a/Sparkle/SUSecureCoding.m +++ b/Sparkle/SPUSecureCoding.m @@ -1,17 +1,17 @@ // -// SUSecureCoding.m +// SPUSecureCoding.m // Sparkle // // Created by Mayur Pawashe on 3/24/16. // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUSecureCoding.h" +#import "SPUSecureCoding.h" #import "SULog.h" static NSString *SURootObjectArchiveKey = @"SURootObjectArchive"; -NSData * _Nullable SUArchiveRootObjectSecurely(id rootObject) +NSData * _Nullable SPUArchiveRootObjectSecurely(id rootObject) { NSMutableData *data = [NSMutableData data]; NSKeyedArchiver *keyedArchiver = [[NSKeyedArchiver alloc] initForWritingWithMutableData:data]; @@ -28,7 +28,7 @@ NSData * _Nullable SUArchiveRootObjectSecurely(id rootObject) } } -id _Nullable SUUnarchiveRootObjectSecurely(NSData *data, Class klass) +id _Nullable SPUUnarchiveRootObjectSecurely(NSData *data, Class klass) { NSKeyedUnarchiver *unarchiver = [[NSKeyedUnarchiver alloc] initForReadingWithData:data]; unarchiver.requiresSecureCoding = YES; diff --git a/Sparkle/SUStandardUpdaterController.h b/Sparkle/SPUStandardUpdaterController.h similarity index 89% rename from Sparkle/SUStandardUpdaterController.h rename to Sparkle/SPUStandardUpdaterController.h index 746d7cbe..9fb6cec2 100644 --- a/Sparkle/SUStandardUpdaterController.h +++ b/Sparkle/SPUStandardUpdaterController.h @@ -11,7 +11,7 @@ NS_ASSUME_NONNULL_BEGIN @class SPUUpdater; -@protocol SUUserDriver, SUStandardUserDriver, SUUpdaterDelegate, SUStandardUserDriverDelegate; +@protocol SPUUserDriver, SPUStandardUserDriverProtocol, SUUpdaterDelegate, SPUStandardUserDriverDelegate; /*! A controller class that instantiates a SUUpdater and allows binding UI to it. @@ -30,7 +30,7 @@ NS_ASSUME_NONNULL_BEGIN * You don't want to use a convenience class that provides very little glue ;) */ -@interface SUStandardUpdaterController : NSObject +@interface SPUStandardUpdaterController : NSObject /*! Interface builder outlet for the updater's delegate. @@ -44,7 +44,7 @@ NS_ASSUME_NONNULL_BEGIN This property should only be set using Interface Builder by creating a connection using the outlet */ -@property (nonatomic, weak, nullable) IBOutlet id userDriverDelegate; +@property (nonatomic, weak, nullable) IBOutlet id userDriverDelegate; /*! Accessible property for the updater. Some properties on the updater can be binded via KVO @@ -60,7 +60,7 @@ NS_ASSUME_NONNULL_BEGIN This is nil before being loaded from the nib. You may access this property after your application has finished launching, or after your window controller has finished loading. */ -@property (nonatomic, readonly, nullable) id userDriver; +@property (nonatomic, readonly, nullable) id userDriver; /*! Explicitly checks for updates and displays a progress dialog while doing so. diff --git a/Sparkle/SUStandardUpdaterController.m b/Sparkle/SPUStandardUpdaterController.m similarity index 84% rename from Sparkle/SUStandardUpdaterController.m rename to Sparkle/SPUStandardUpdaterController.m index 458f853f..e90c75e3 100644 --- a/Sparkle/SUStandardUpdaterController.m +++ b/Sparkle/SPUStandardUpdaterController.m @@ -6,25 +6,25 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUStandardUpdaterController.h" +#import "SPUStandardUpdaterController.h" #import "SPUUpdater.h" #import "SUHost.h" -#import "SUStandardUserDriver.h" +#import "SPUStandardUserDriver.h" #import "SUConstants.h" #import "SULog.h" -#import "SUStandardUserDriver.h" +#import "SPUStandardUserDriver.h" static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObservationContext"; -@interface SUStandardUpdaterController () +@interface SPUStandardUpdaterController () @property (nonatomic) SPUUpdater *updater; -@property (nonatomic) id userDriver; +@property (nonatomic) id userDriver; @property (nonatomic) BOOL initializedUpdater; @end -@implementation SUStandardUpdaterController +@implementation SPUStandardUpdaterController @synthesize updater = _updater; @synthesize userDriver = _userDriver; @@ -41,7 +41,7 @@ static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaults self.initializedUpdater = YES; NSBundle *hostBundle = [NSBundle mainBundle]; - id userDriver = [[SUStandardUserDriver alloc] initWithHostBundle:hostBundle delegate:self.userDriverDelegate]; + id userDriver = [[SPUStandardUserDriver alloc] initWithHostBundle:hostBundle delegate:self.userDriverDelegate]; self.updater = [[SPUUpdater alloc] initWithHostBundle:hostBundle userDriver:userDriver delegate:self.updaterDelegate]; self.userDriver = userDriver; diff --git a/Sparkle/SUStandardUserDriver.h b/Sparkle/SPUStandardUserDriver.h similarity index 70% rename from Sparkle/SUStandardUserDriver.h rename to Sparkle/SPUStandardUserDriver.h index 262cd30b..53b537a9 100644 --- a/Sparkle/SUStandardUserDriver.h +++ b/Sparkle/SPUStandardUserDriver.h @@ -7,18 +7,18 @@ // #import -#import "SUUserDriver.h" -#import "SUStandardUserDriverProtocol.h" +#import "SPUUserDriver.h" +#import "SPUStandardUserDriverProtocol.h" #import "SUExport.h" NS_ASSUME_NONNULL_BEGIN -@protocol SUStandardUserDriverDelegate; +@protocol SPUStandardUserDriverDelegate; /*! Sparkle's standard built-in user driver for updater interactions */ -SU_EXPORT @interface SUStandardUserDriver : NSObject +SU_EXPORT @interface SPUStandardUserDriver : NSObject /*! Initializes a Sparkle's standard user driver for user update interactions @@ -26,7 +26,7 @@ SU_EXPORT @interface SUStandardUserDriver : NSObject )delegate; +- (instancetype)initWithHostBundle:(NSBundle *)hostBundle delegate:(_Nullable id )delegate; @end diff --git a/Sparkle/SUStandardUserDriver.m b/Sparkle/SPUStandardUserDriver.m similarity index 89% rename from Sparkle/SUStandardUserDriver.m rename to Sparkle/SPUStandardUserDriver.m index b539686d..ca1119c4 100644 --- a/Sparkle/SUStandardUserDriver.m +++ b/Sparkle/SPUStandardUserDriver.m @@ -6,23 +6,23 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUStandardUserDriver.h" -#import "SUUserDriverCoreComponent.h" -#import "SUStandardUserDriverDelegate.h" +#import "SPUStandardUserDriver.h" +#import "SPUUserDriverCoreComponent.h" +#import "SPUStandardUserDriverDelegate.h" #import "SUAppcastItem.h" #import "SUVersionDisplayProtocol.h" #import "SUHost.h" -#import "SUUpdatePermissionPrompt.h" +#import "SPUUpdatePermissionPrompt.h" #import "SUStatusController.h" #import "SUUpdateAlert.h" #import "SULocalizations.h" -#import "SUApplicationInfo.h" +#import "SPUApplicationInfo.h" -@interface SUStandardUserDriver () +@interface SPUStandardUserDriver () @property (nonatomic, readonly) SUHost *host; -@property (nonatomic, readonly) SUUserDriverCoreComponent *coreComponent; +@property (nonatomic, readonly) SPUUserDriverCoreComponent *coreComponent; @property (nonatomic) SUStatusController *checkingController; @property (nonatomic) SUUpdateAlert *activeUpdateAlert; @@ -30,7 +30,7 @@ @end -@implementation SUStandardUserDriver +@implementation SPUStandardUserDriver @synthesize host = _host; @synthesize coreComponent = _coreComponent; @@ -41,13 +41,13 @@ #pragma mark Birth -- (instancetype)initWithHostBundle:(NSBundle *)hostBundle delegate:(id)delegate +- (instancetype)initWithHostBundle:(NSBundle *)hostBundle delegate:(id)delegate { self = [super init]; if (self != nil) { _host = [[SUHost alloc] initWithBundle:hostBundle]; _delegate = delegate; - _coreComponent = [[SUUserDriverCoreComponent alloc] initWithDelegate:delegate]; + _coreComponent = [[SPUUserDriverCoreComponent alloc] initWithDelegate:delegate]; } return self; } @@ -101,13 +101,13 @@ #pragma mark Update Permission -- (void)requestUpdatePermissionWithSystemProfile:(NSArray *)systemProfile reply:(void (^)(SUUpdatePermission *))reply +- (void)requestUpdatePermissionWithSystemProfile:(NSArray *)systemProfile reply:(void (^)(SPUUpdatePermission *))reply { dispatch_async(dispatch_get_main_queue(), ^{ // This shows a modal alert dialog which unlike other alerts cannot be closed until the user makes a decision // This means that we can never programatically close the dialog if something goes horribly wrong // But this dialog should only show up once in the application's lifetime so this may be an OK decision - [SUUpdatePermissionPrompt promptWithHost:self.host systemProfile:systemProfile reply:reply]; + [SPUUpdatePermissionPrompt promptWithHost:self.host systemProfile:systemProfile reply:reply]; }); } @@ -121,7 +121,7 @@ // If the app is a menubar app or the like, we need to focus it first and alter the // update prompt to behave like a normal window. Otherwise if the window were hidden // there may be no way for the application to be activated to make it visible again. - if ([SUApplicationInfo isBackgroundApplication:NSApp]) { + if ([SPUApplicationInfo isBackgroundApplication:NSApp]) { [self.activeUpdateAlert.window setHidesOnDeactivate:NO]; [NSApp activateIgnoringOtherApps:YES]; @@ -142,7 +142,7 @@ #pragma mark Update Found -- (void)showUpdateFoundWithAlertHandler:(SUUpdateAlert *(^)(SUStandardUserDriver *, SUHost *, id))alertHandler +- (void)showUpdateFoundWithAlertHandler:(SUUpdateAlert *(^)(SPUStandardUserDriver *, SUHost *, id))alertHandler { dispatch_async(dispatch_get_main_queue(), ^{ id versionDisplayer = nil; @@ -150,7 +150,7 @@ versionDisplayer = [self.delegate userDriverRequestsVersionDisplayer]; } - __weak SUStandardUserDriver *weakSelf = self; + __weak SPUStandardUserDriver *weakSelf = self; SUHost *host = self.host; self.activeUpdateAlert = alertHandler(weakSelf, host, versionDisplayer); @@ -160,7 +160,7 @@ - (void)showUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SUUpdateAlertChoice))reply { - [self showUpdateFoundWithAlertHandler:^SUUpdateAlert *(SUStandardUserDriver *weakSelf, SUHost *host, id versionDisplayer) { + [self showUpdateFoundWithAlertHandler:^SUUpdateAlert *(SPUStandardUserDriver *weakSelf, SUHost *host, id versionDisplayer) { return [[SUUpdateAlert alloc] initWithAppcastItem:appcastItem alreadyDownloaded:NO host:host versionDisplayer:versionDisplayer completionBlock:^(SUUpdateAlertChoice choice) { reply(choice); weakSelf.activeUpdateAlert = nil; @@ -170,7 +170,7 @@ - (void)showDownloadedUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SUUpdateAlertChoice))reply { - [self showUpdateFoundWithAlertHandler:^SUUpdateAlert *(SUStandardUserDriver *weakSelf, SUHost *host, id versionDisplayer) { + [self showUpdateFoundWithAlertHandler:^SUUpdateAlert *(SPUStandardUserDriver *weakSelf, SUHost *host, id versionDisplayer) { return [[SUUpdateAlert alloc] initWithAppcastItem:appcastItem alreadyDownloaded:YES host:host versionDisplayer:versionDisplayer completionBlock:^(SUUpdateAlertChoice choice) { reply(choice); weakSelf.activeUpdateAlert = nil; @@ -180,7 +180,7 @@ - (void)showResumableUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SUInstallUpdateStatus))reply { - [self showUpdateFoundWithAlertHandler:^SUUpdateAlert *(SUStandardUserDriver *weakSelf, SUHost *host, id versionDisplayer) { + [self showUpdateFoundWithAlertHandler:^SUUpdateAlert *(SPUStandardUserDriver *weakSelf, SUHost *host, id versionDisplayer) { return [[SUUpdateAlert alloc] initWithAppcastItem:appcastItem host:host versionDisplayer:versionDisplayer resumableCompletionBlock:^(SUInstallUpdateStatus choice) { reply(choice); weakSelf.activeUpdateAlert = nil; @@ -241,7 +241,7 @@ // For background applications, obtain focus. // Useful if the update check is requested from another app like System Preferences. - if ([SUApplicationInfo isBackgroundApplication:NSApp]) + if ([SPUApplicationInfo isBackgroundApplication:NSApp]) { [NSApp activateIgnoringOtherApps:YES]; } @@ -306,7 +306,7 @@ - (void)showAlert:(NSAlert *)alert { dispatch_async(dispatch_get_main_queue(), ^{ - id delegate = self.delegate; + id delegate = self.delegate; if ([delegate respondsToSelector:@selector(userDriverWillShowModalAlert)]) { [delegate userDriverWillShowModalAlert]; @@ -314,9 +314,9 @@ // When showing a modal alert we need to ensure that background applications // are focused to inform the user since there is no dock icon to notify them. - if ([SUApplicationInfo isBackgroundApplication:NSApp]) { [NSApp activateIgnoringOtherApps:YES]; } + if ([SPUApplicationInfo isBackgroundApplication:NSApp]) { [NSApp activateIgnoringOtherApps:YES]; } - [alert setIcon:[SUApplicationInfo bestIconForBundle:self.host.bundle]]; + [alert setIcon:[SPUApplicationInfo bestIconForBundle:self.host.bundle]]; [alert runModal]; if ([delegate respondsToSelector:@selector(userDriverDidShowModalAlert)]) { @@ -422,7 +422,7 @@ [self.statusController close]; self.statusController = nil; - NSRunningApplication *runningApplication = [SUApplicationInfo runningApplicationWithBundle:self.host.bundle]; + NSRunningApplication *runningApplication = [SPUApplicationInfo runningApplicationWithBundle:self.host.bundle]; [runningApplication terminate]; }); } diff --git a/Sparkle/SUStandardUserDriverDelegate.h b/Sparkle/SPUStandardUserDriverDelegate.h similarity index 96% rename from Sparkle/SUStandardUserDriverDelegate.h rename to Sparkle/SPUStandardUserDriverDelegate.h index b7529ebb..150258ac 100644 --- a/Sparkle/SUStandardUserDriverDelegate.h +++ b/Sparkle/SPUStandardUserDriverDelegate.h @@ -1,5 +1,5 @@ // -// SUStandardUserDriverDelegate.h +// SPUStandardUserDriverDelegate.h // Sparkle // // Created by Mayur Pawashe on 3/3/16. @@ -15,7 +15,7 @@ This includes methods related to UI interactions and XPC/remote process communication. */ -@protocol SUStandardUserDriverDelegate +@protocol SPUStandardUserDriverDelegate @optional diff --git a/Sparkle/SUStandardUserDriverProtocol.h b/Sparkle/SPUStandardUserDriverProtocol.h similarity index 90% rename from Sparkle/SUStandardUserDriverProtocol.h rename to Sparkle/SPUStandardUserDriverProtocol.h index 341a8570..4db240f8 100644 --- a/Sparkle/SUStandardUserDriverProtocol.h +++ b/Sparkle/SPUStandardUserDriverProtocol.h @@ -1,5 +1,5 @@ // -// SUStandardUserDriverProtocol.h +// SPUStandardUserDriverProtocol.h // Sparkle // // Created by Mayur Pawashe on 3/5/16. @@ -8,19 +8,19 @@ #import -@protocol SUStandardUserDriverDelegate; +@protocol SPUStandardUserDriverDelegate; /*! Protocol for Sparkle's standard built-in user driver for updater interactions. Other user drivers may wish to implement this protocol. */ -@protocol SUStandardUserDriver +@protocol SPUStandardUserDriverProtocol /*! Readable and writable property for this user driver's delegate */ -@property (nonatomic, weak, nullable, readonly) id delegate; +@property (nonatomic, weak, nullable, readonly) id delegate; /*! Indicates whether or not an update is in progress as far as the user's perspective is concerned diff --git a/Sparkle/SUSystemAuthorization.h b/Sparkle/SPUSystemAuthorization.h similarity index 64% rename from Sparkle/SUSystemAuthorization.h rename to Sparkle/SPUSystemAuthorization.h index 8833154c..9aa45652 100644 --- a/Sparkle/SUSystemAuthorization.h +++ b/Sparkle/SPUSystemAuthorization.h @@ -1,5 +1,5 @@ // -// SUSystemAuthorization.h +// SPUSystemAuthorization.h // Sparkle // // Created by Mayur Pawashe on 7/11/16. @@ -10,6 +10,6 @@ NS_ASSUME_NONNULL_BEGIN -BOOL SUNeedsSystemAuthorizationAccess(NSString *path, NSString *installationType); +BOOL SPUNeedsSystemAuthorizationAccess(NSString *path, NSString *installationType); NS_ASSUME_NONNULL_END diff --git a/Sparkle/SUSystemAuthorization.m b/Sparkle/SPUSystemAuthorization.m similarity index 55% rename from Sparkle/SUSystemAuthorization.m rename to Sparkle/SPUSystemAuthorization.m index 3ebe5c3a..d00f708d 100644 --- a/Sparkle/SUSystemAuthorization.m +++ b/Sparkle/SPUSystemAuthorization.m @@ -1,20 +1,20 @@ // -// SUSystemAuthorization.m +// SPUSystemAuthorization.m // Sparkle // // Created by Mayur Pawashe on 7/11/16. // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUSystemAuthorization.h" -#import "SUInstallationType.h" +#import "SPUSystemAuthorization.h" +#import "SPUInstallationType.h" -BOOL SUNeedsSystemAuthorizationAccess(NSString *path, NSString *installationType) +BOOL SPUNeedsSystemAuthorizationAccess(NSString *path, NSString *installationType) { BOOL result; - if ([installationType isEqualToString:SUInstallationTypeGuidedPackage]) { + if ([installationType isEqualToString:SPUInstallationTypeGuidedPackage]) { result = YES; - } else if ([installationType isEqualToString:SUInstallationTypeInteractivePackage]) { + } else if ([installationType isEqualToString:SPUInstallationTypeInteractivePackage]) { result = NO; } else { NSFileManager *fileManager = [NSFileManager defaultManager]; diff --git a/Sparkle/SUURLDownload.h b/Sparkle/SPUURLDownload.h similarity index 68% rename from Sparkle/SUURLDownload.h rename to Sparkle/SPUURLDownload.h index 61e52498..30ce2de8 100644 --- a/Sparkle/SUURLDownload.h +++ b/Sparkle/SPUURLDownload.h @@ -1,5 +1,5 @@ // -// SUURLDownload.h +// SPUURLDownload.h // Sparkle // // Created by Mayur Pawashe on 5/13/16. @@ -12,6 +12,6 @@ NS_ASSUME_NONNULL_BEGIN // From the completion block, either data or error can be nil, but not both // The completion block returns on the main queue -void SUDownloadURLWithRequest(NSURLRequest * request, void (^completionBlock)(NSData * _Nullable data, NSError * _Nullable error)); +void SPUDownloadURLWithRequest(NSURLRequest * request, void (^completionBlock)(NSData * _Nullable data, NSError * _Nullable error)); NS_ASSUME_NONNULL_END diff --git a/Sparkle/SUURLDownload.m b/Sparkle/SPUURLDownload.m similarity index 83% rename from Sparkle/SUURLDownload.m rename to Sparkle/SPUURLDownload.m index e5a1f0ba..b24c1000 100644 --- a/Sparkle/SUURLDownload.m +++ b/Sparkle/SPUURLDownload.m @@ -6,20 +6,20 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUURLDownload.h" -#import "SUXPCServiceInfo.h" +#import "SPUURLDownload.h" +#import "SPUXPCServiceInfo.h" #import "SUTemporaryDownloader.h" #import "SUTemporaryDownloaderProtocol.h" -#import "SUURLRequest.h" +#import "SPUURLRequest.h" #import "SUErrors.h" -void SUDownloadURLWithRequest(NSURLRequest * request, void (^completionBlock)(NSData * _Nullable, NSError * _Nullable)) +void SPUDownloadURLWithRequest(NSURLRequest * request, void (^completionBlock)(NSData * _Nullable, NSError * _Nullable)) { id downloader = nil; NSXPCConnection *connection = nil; __block BOOL retrievedDownloadResult = NO; - if (!SUXPCServiceExists(@TEMPORARY_DOWNLOADER_BUNDLE_ID)) { + if (!SPUXPCServiceExists(@TEMPORARY_DOWNLOADER_BUNDLE_ID)) { downloader = [[SUTemporaryDownloader alloc] init]; } else { connection = [[NSXPCConnection alloc] initWithServiceName:@TEMPORARY_DOWNLOADER_BUNDLE_ID]; @@ -57,7 +57,7 @@ void SUDownloadURLWithRequest(NSURLRequest * request, void (^completionBlock)(NS downloader = connection.remoteObjectProxy; } - [downloader startDownloadWithRequest:[SUURLRequest URLRequestWithRequest:request] completion:^(NSData * _Nullable data, NSError * _Nullable error) { + [downloader startDownloadWithRequest:[SPUURLRequest URLRequestWithRequest:request] completion:^(NSData * _Nullable data, NSError * _Nullable error) { dispatch_async(dispatch_get_main_queue(), ^{ retrievedDownloadResult = YES; [connection invalidate]; diff --git a/Sparkle/SUURLRequest.h b/Sparkle/SPUURLRequest.h similarity index 90% rename from Sparkle/SUURLRequest.h rename to Sparkle/SPUURLRequest.h index 445cd5aa..17fa3395 100644 --- a/Sparkle/SUURLRequest.h +++ b/Sparkle/SPUURLRequest.h @@ -1,5 +1,5 @@ // -// SUURLRequest.h +// SPUURLRequest.h // Sparkle // // Created by Mayur Pawashe on 5/19/16. @@ -13,7 +13,7 @@ NS_ASSUME_NONNULL_BEGIN // A class that wraps NSURLRequest and implements NSSecureCoding // This class exists because NSURLRequest did not support NSSecureCoding in macOS 10.8 // I have not verified if NSURLRequest in 10.9 implements NSSecureCoding or not -@interface SUURLRequest : NSObject +@interface SPUURLRequest : NSObject // Creates a new URL request // Only these properties are currently tracked: diff --git a/Sparkle/SUURLRequest.m b/Sparkle/SPUURLRequest.m similarity index 70% rename from Sparkle/SUURLRequest.m rename to Sparkle/SPUURLRequest.m index 02b2063d..f5b789f3 100644 --- a/Sparkle/SUURLRequest.m +++ b/Sparkle/SPUURLRequest.m @@ -1,19 +1,19 @@ // -// SUURLRequest.m +// SPUURLRequest.m // Sparkle // // Created by Mayur Pawashe on 5/19/16. // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUURLRequest.h" +#import "SPUURLRequest.h" -static NSString *SUURLRequestURLKey = @"SUURLRequestURL"; -static NSString *SUURLRequestCachePolicyKey = @"SUURLRequestCachePolicy"; -static NSString *SUURLRequestTimeoutIntervalKey = @"SUURLRequestTimeoutInterval"; -static NSString *SUURLRequestHttpHeaderFieldsKey = @"SUURLRequestHttpHeaderFields"; +static NSString *SPUURLRequestURLKey = @"SPUURLRequestURL"; +static NSString *SPUURLRequestCachePolicyKey = @"SPUURLRequestCachePolicy"; +static NSString *SPUURLRequestTimeoutIntervalKey = @"SPUURLRequestTimeoutInterval"; +static NSString *SPUURLRequestHttpHeaderFieldsKey = @"SPUURLRequestHttpHeaderFields"; -@interface SUURLRequest () +@interface SPUURLRequest () @property (nonatomic, readonly) NSURL *url; @property (nonatomic, readonly) NSURLRequestCachePolicy cachePolicy; @@ -22,7 +22,7 @@ static NSString *SUURLRequestHttpHeaderFieldsKey = @"SUURLRequestHttpHeaderField @end -@implementation SUURLRequest +@implementation SPUURLRequest @synthesize url = _url; @synthesize cachePolicy = _cachePolicy; @@ -53,21 +53,21 @@ static NSString *SUURLRequestHttpHeaderFieldsKey = @"SUURLRequestHttpHeaderField - (void)encodeWithCoder:(NSCoder *)coder { - [coder encodeObject:self.url forKey:SUURLRequestURLKey]; - [coder encodeInteger:self.cachePolicy forKey:SUURLRequestCachePolicyKey]; - [coder encodeDouble:self.timeoutInterval forKey:SUURLRequestTimeoutIntervalKey]; + [coder encodeObject:self.url forKey:SPUURLRequestURLKey]; + [coder encodeInteger:self.cachePolicy forKey:SPUURLRequestCachePolicyKey]; + [coder encodeDouble:self.timeoutInterval forKey:SPUURLRequestTimeoutIntervalKey]; if (self.httpHeaderFields != nil) { - [coder encodeObject:self.httpHeaderFields forKey:SUURLRequestHttpHeaderFieldsKey]; + [coder encodeObject:self.httpHeaderFields forKey:SPUURLRequestHttpHeaderFieldsKey]; } } - (instancetype)initWithCoder:(NSCoder *)decoder { - NSURL *url = [decoder decodeObjectOfClass:[NSURL class] forKey:SUURLRequestURLKey]; - NSURLRequestCachePolicy cachePolicy = (NSURLRequestCachePolicy)[decoder decodeIntegerForKey:SUURLRequestCachePolicyKey]; - NSTimeInterval timeoutInterval = [decoder decodeDoubleForKey:SUURLRequestTimeoutIntervalKey]; - NSDictionary *httpHeaderFields = [decoder decodeObjectOfClasses:[NSSet setWithArray:@[[NSDictionary class], [NSString class]]] forKey:SUURLRequestHttpHeaderFieldsKey]; + NSURL *url = [decoder decodeObjectOfClass:[NSURL class] forKey:SPUURLRequestURLKey]; + NSURLRequestCachePolicy cachePolicy = (NSURLRequestCachePolicy)[decoder decodeIntegerForKey:SPUURLRequestCachePolicyKey]; + NSTimeInterval timeoutInterval = [decoder decodeDoubleForKey:SPUURLRequestTimeoutIntervalKey]; + NSDictionary *httpHeaderFields = [decoder decodeObjectOfClasses:[NSSet setWithArray:@[[NSDictionary class], [NSString class]]] forKey:SPUURLRequestHttpHeaderFieldsKey]; return [self initWithURL:url cachePolicy:cachePolicy timeoutInterval:timeoutInterval httpHeaderFields:httpHeaderFields]; } diff --git a/Sparkle/SPUUpdatePermission.h b/Sparkle/SPUUpdatePermission.h new file mode 100644 index 00000000..9ccdf633 --- /dev/null +++ b/Sparkle/SPUUpdatePermission.h @@ -0,0 +1,24 @@ +// +// SPUUpdatePermission.h +// Sparkle +// +// Created by Mayur Pawashe on 2/8/16. +// Copyright © 2016 Sparkle Project. All rights reserved. +// + +#import +#import "SUExport.h" + +typedef NS_ENUM(NSInteger, SPUCheckUpdatesChoice) { + SUAutomaticallyCheck, + SUDoNotAutomaticallyCheck +}; + +SU_EXPORT @interface SPUUpdatePermission : NSObject + ++ (instancetype)updatePermissionWithChoice:(SPUCheckUpdatesChoice)choice sendProfile:(BOOL)sendProfile; + +@property (nonatomic, readonly) SPUCheckUpdatesChoice choice; +@property (nonatomic, readonly) BOOL sendProfile; + +@end diff --git a/Sparkle/SUUpdatePermission.m b/Sparkle/SPUUpdatePermission.m similarity index 50% rename from Sparkle/SUUpdatePermission.m rename to Sparkle/SPUUpdatePermission.m index 9b6e273e..3a557f88 100644 --- a/Sparkle/SUUpdatePermission.m +++ b/Sparkle/SPUUpdatePermission.m @@ -1,21 +1,21 @@ // -// SUUpdatePermission.m +// SPUUpdatePermission.m // Sparkle // // Created by Mayur Pawashe on 2/8/16. // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUUpdatePermission.h" +#import "SPUUpdatePermission.h" #ifdef _APPKITDEFINES_H #error This is a "core" class and should NOT import AppKit #endif -static NSString *SUUpdatePermissionChoiceKey = @"SUUpdatePermissionChoice"; -static NSString *SUUpdatePermissionSendProfileKey = @"SUUpdatePermissionSendProfile"; +static NSString *SPUUpdatePermissionChoiceKey = @"SPUUpdatePermissionChoice"; +static NSString *SPUUpdatePermissionSendProfileKey = @"SPUUpdatePermissionSendProfile"; -@implementation SUUpdatePermission +@implementation SPUUpdatePermission @synthesize choice = _choice; @synthesize sendProfile = _sendProfile; @@ -27,18 +27,18 @@ static NSString *SUUpdatePermissionSendProfileKey = @"SUUpdatePermissionSendProf - (instancetype)initWithCoder:(NSCoder *)decoder { - NSInteger choice = [decoder decodeIntegerForKey:SUUpdatePermissionChoiceKey]; - BOOL sendProfile = [decoder decodeBoolForKey:SUUpdatePermissionSendProfileKey]; + NSInteger choice = [decoder decodeIntegerForKey:SPUUpdatePermissionChoiceKey]; + BOOL sendProfile = [decoder decodeBoolForKey:SPUUpdatePermissionSendProfileKey]; return [[self class] updatePermissionWithChoice:choice sendProfile:sendProfile]; } - (void)encodeWithCoder:(NSCoder *)encoder { - [encoder encodeInteger:self.choice forKey:SUUpdatePermissionChoiceKey]; - [encoder encodeBool:self.sendProfile forKey:SUUpdatePermissionSendProfileKey]; + [encoder encodeInteger:self.choice forKey:SPUUpdatePermissionChoiceKey]; + [encoder encodeBool:self.sendProfile forKey:SPUUpdatePermissionSendProfileKey]; } -- (instancetype)initWithCheckUpdatesChoice:(SUCheckUpdatesChoice)choice sendProfile:(BOOL)sendProfile +- (instancetype)initWithCheckUpdatesChoice:(SPUCheckUpdatesChoice)choice sendProfile:(BOOL)sendProfile { self = [super init]; if (self != nil) { @@ -48,7 +48,7 @@ static NSString *SUUpdatePermissionSendProfileKey = @"SUUpdatePermissionSendProf return self; } -+ (instancetype)updatePermissionWithChoice:(SUCheckUpdatesChoice)choice sendProfile:(BOOL)sendProfile ++ (instancetype)updatePermissionWithChoice:(SPUCheckUpdatesChoice)choice sendProfile:(BOOL)sendProfile { return [[self alloc] initWithCheckUpdatesChoice:choice sendProfile:sendProfile]; } diff --git a/Sparkle/SUUpdatePermissionPrompt.h b/Sparkle/SPUUpdatePermissionPrompt.h similarity index 72% rename from Sparkle/SUUpdatePermissionPrompt.h rename to Sparkle/SPUUpdatePermissionPrompt.h index a72be144..6d2835ce 100644 --- a/Sparkle/SUUpdatePermissionPrompt.h +++ b/Sparkle/SPUUpdatePermissionPrompt.h @@ -11,11 +11,11 @@ #import -@class SUHost, SUUpdatePermission; +@class SUHost, SPUUpdatePermission; -@interface SUUpdatePermissionPrompt : NSWindowController +@interface SPUUpdatePermissionPrompt : NSWindowController -+ (void)promptWithHost:(SUHost *)host systemProfile:(NSArray *)systemProfile reply:(void (^)(SUUpdatePermission *))reply; ++ (void)promptWithHost:(SUHost *)host systemProfile:(NSArray *)systemProfile reply:(void (^)(SPUUpdatePermission *))reply; - (IBAction)toggleMoreInfo:(id)sender; - (IBAction)finishPrompt:(id)sender; diff --git a/Sparkle/SUUpdatePermissionPrompt.m b/Sparkle/SPUUpdatePermissionPrompt.m similarity index 84% rename from Sparkle/SUUpdatePermissionPrompt.m rename to Sparkle/SPUUpdatePermissionPrompt.m index af1d7967..736c1b93 100644 --- a/Sparkle/SUUpdatePermissionPrompt.m +++ b/Sparkle/SPUUpdatePermissionPrompt.m @@ -6,15 +6,15 @@ // Copyright 2008 Andy Matuschak. All rights reserved. // -#import "SUUpdatePermissionPrompt.h" -#import "SUUpdatePermission.h" +#import "SPUUpdatePermissionPrompt.h" +#import "SPUUpdatePermission.h" #import "SULocalizations.h" #import "SUHost.h" #import "SUConstants.h" -#import "SUApplicationInfo.h" +#import "SPUApplicationInfo.h" -@interface SUUpdatePermissionPrompt () +@interface SPUUpdatePermissionPrompt () @property (assign) BOOL isShowingMoreInfo; @property (assign) BOOL shouldSendProfile; @@ -26,11 +26,11 @@ @property (weak) IBOutlet NSButton *moreInfoButton; @property (weak) IBOutlet NSTableView *profileTableView; -@property (nonatomic, readonly) void (^reply)(SUUpdatePermission *); +@property (nonatomic, readonly) void (^reply)(SPUUpdatePermission *); @end -@implementation SUUpdatePermissionPrompt +@implementation SPUUpdatePermissionPrompt @synthesize reply = _reply; @synthesize isShowingMoreInfo = _isShowingMoreInfo; @@ -42,9 +42,9 @@ @synthesize moreInfoButton; @synthesize profileTableView; -- (instancetype)initPromptWithHost:(SUHost *)theHost systemProfile:(NSArray *)systemProfile reply:(void (^)(SUUpdatePermission *))reply +- (instancetype)initPromptWithHost:(SUHost *)theHost systemProfile:(NSArray *)systemProfile reply:(void (^)(SPUUpdatePermission *))reply { - self = [super initWithWindowNibName:@"SUUpdatePermissionPrompt"]; + self = [super initWithWindowNibName:@"SPUUpdatePermissionPrompt"]; if (self) { _reply = reply; @@ -57,17 +57,17 @@ return self; } -+ (void)promptWithHost:(SUHost *)host systemProfile:(NSArray *)systemProfile reply:(void (^)(SUUpdatePermission *))reply ++ (void)promptWithHost:(SUHost *)host systemProfile:(NSArray *)systemProfile reply:(void (^)(SPUUpdatePermission *))reply { // If this is a background application we need to focus it in order to bring the prompt // to the user's attention. Otherwise the prompt would be hidden behind other applications and // the user would not know why the application was paused. - if ([SUApplicationInfo isBackgroundApplication:NSApp]) { + if ([SPUApplicationInfo isBackgroundApplication:NSApp]) { [[NSApplication sharedApplication] activateIgnoringOtherApps:YES]; } if (![NSApp modalWindow]) { // do not prompt if there is is another modal window on screen - SUUpdatePermissionPrompt *prompt = [[[self class] alloc] initPromptWithHost:host systemProfile:systemProfile reply:reply]; + SPUUpdatePermissionPrompt *prompt = [[[self class] alloc] initPromptWithHost:host systemProfile:systemProfile reply:reply]; NSWindow *window = [prompt window]; if (window) { [NSApp runModalForWindow:window]; @@ -100,7 +100,7 @@ - (NSImage *)icon { - return [SUApplicationInfo bestIconForBundle:self.host.bundle]; + return [SPUApplicationInfo bestIconForBundle:self.host.bundle]; } - (NSString *)promptDescription @@ -153,7 +153,7 @@ - (IBAction)finishPrompt:(id)sender { - self.reply([SUUpdatePermission updatePermissionWithChoice:([sender tag] == 1 ? SUAutomaticallyCheck : SUDoNotAutomaticallyCheck) sendProfile:self.shouldSendProfile]); + self.reply([SPUUpdatePermission updatePermissionWithChoice:([sender tag] == 1 ? SUAutomaticallyCheck : SUDoNotAutomaticallyCheck) sendProfile:self.shouldSendProfile]); [[self window] close]; [NSApp stopModal]; diff --git a/Sparkle/SPUUpdater.h b/Sparkle/SPUUpdater.h index 248866ff..b58f843b 100644 --- a/Sparkle/SPUUpdater.h +++ b/Sparkle/SPUUpdater.h @@ -12,7 +12,7 @@ #import #endif #import "SUExport.h" -#import "SUUserDriver.h" +#import "SPUUserDriver.h" @class SUAppcastItem, SUAppcast; @@ -43,7 +43,7 @@ SU_EXPORT @interface SPUUpdater : NSObject * * This must be called on the main thread. */ -- (instancetype)initWithHostBundle:(NSBundle *)hostBundle userDriver:(id )userDriver delegate:(id )delegate; +- (instancetype)initWithHostBundle:(NSBundle *)hostBundle userDriver:(id )userDriver delegate:(id )delegate; /*! * Starts the updater. @@ -59,7 +59,7 @@ SU_EXPORT @interface SPUUpdater : NSObject - (BOOL)startUpdater:(NSError * __autoreleasing *)error; @property (weak, readonly) id delegate; -@property (nonatomic, readonly) id userDriver; +@property (nonatomic, readonly) id userDriver; @property (readonly, strong) NSBundle *hostBundle; @property (strong, readonly) NSBundle *sparkleBundle; diff --git a/Sparkle/SPUUpdater.m b/Sparkle/SPUUpdater.m index e10ae1a3..0e08b9b6 100644 --- a/Sparkle/SPUUpdater.m +++ b/Sparkle/SPUUpdater.m @@ -8,9 +8,9 @@ #import "SPUUpdater.h" #import "SUUpdaterDelegate.h" -#import "SUUpdaterSettings.h" +#import "SPUUpdaterSettings.h" #import "SUHost.h" -#import "SUUpdatePermission.h" +#import "SPUUpdatePermission.h" #import "SUUpdateDriver.h" #import "SUConstants.h" #import "SULog.h" @@ -22,10 +22,10 @@ #import "SUAutomaticUpdateDriver.h" #import "SUProbeInstallStatus.h" #import "SUAppcastItem.h" -#import "SUInstallationInfo.h" +#import "SPUInstallationInfo.h" #import "SUErrors.h" -#import "SUXPCServiceInfo.h" -#import "SUUpdaterCycle.h" +#import "SPUXPCServiceInfo.h" +#import "SPUUpdaterCycle.h" #import "SUDownloadedUpdate.h" #ifdef _APPKITDEFINES_H @@ -39,15 +39,15 @@ NSString *const SUUpdaterWillRestartNotification = @"SUUpdaterWillRestartNotific NSString *const SUUpdaterAppcastItemNotificationKey = @"SUUpdaterAppcastItemNotificationKey"; NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotificationKey"; -@interface SPUUpdater () +@interface SPUUpdater () @property (readonly, copy) NSURL *parameterizedFeedURL; @property (nonatomic) id driver; @property (nonatomic, weak) id delegator; @property (nonatomic, readonly) SUHost *host; -@property (nonatomic, readonly) SUUpdaterSettings *updaterSettings; -@property (nonatomic, readonly) SUUpdaterCycle *updaterCycle; +@property (nonatomic, readonly) SPUUpdaterSettings *updaterSettings; +@property (nonatomic, readonly) SPUUpdaterCycle *updaterCycle; @property (nonatomic) BOOL startedUpdater; @property (nonatomic, copy) void (^preStartedScheduledUpdateBlock)(void); @property (nonatomic, nullable) SUDownloadedUpdate *resumableUpdate; @@ -79,7 +79,7 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification } #endif -- (instancetype)initWithHostBundle:(NSBundle *)bundle userDriver:(id )userDriver delegate:(id )theDelegate +- (instancetype)initWithHostBundle:(NSBundle *)bundle userDriver:(id )userDriver delegate:(id )theDelegate { self = [super init]; @@ -89,8 +89,8 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification _host = [[SUHost alloc] initWithBundle:bundle]; - _updaterSettings = [[SUUpdaterSettings alloc] initWithHostBundle:bundle]; - _updaterCycle = [[SUUpdaterCycle alloc] initWithDelegate:self]; + _updaterSettings = [[SPUUpdaterSettings alloc] initWithHostBundle:bundle]; + _updaterCycle = [[SPUUpdaterCycle alloc] initWithDelegate:self]; _userDriver = userDriver; @@ -180,12 +180,12 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification BOOL servingOverHttps = [[[feedURL scheme] lowercaseString] isEqualToString:@"https"]; if (!servingOverHttps) { BOOL foundXPCTemporaryDownloaderService = NO; - BOOL foundATSTemporaryIssue = [self checkATSIssueForBundle:SUXPCServiceBundle(@TEMPORARY_DOWNLOADER_BUNDLE_ID) getBundleExists:&foundXPCTemporaryDownloaderService]; + BOOL foundATSTemporaryIssue = [self checkATSIssueForBundle:SPUXPCServiceBundle(@TEMPORARY_DOWNLOADER_BUNDLE_ID) getBundleExists:&foundXPCTemporaryDownloaderService]; BOOL foundXPCPersistentDownloaderService = NO; BOOL foundATSPersistentIssue = NO; if (!foundATSTemporaryIssue) { - foundATSPersistentIssue = [self checkATSIssueForBundle:SUXPCServiceBundle(@PERSISTENT_DOWNLOADER_BUNDLE_ID) getBundleExists:&foundXPCPersistentDownloaderService]; + foundATSPersistentIssue = [self checkATSIssueForBundle:SPUXPCServiceBundle(@PERSISTENT_DOWNLOADER_BUNDLE_ID) getBundleExists:&foundXPCPersistentDownloaderService]; } NSBundle *mainBundle = [NSBundle mainBundle]; @@ -263,7 +263,7 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification } __weak SPUUpdater *weakSelf = self; - [self.userDriver requestUpdatePermissionWithSystemProfile:profileInfo reply:^(SUUpdatePermission *result) { + [self.userDriver requestUpdatePermissionWithSystemProfile:profileInfo reply:^(SPUUpdatePermission *result) { dispatch_async(dispatch_get_main_queue(), ^{ SPUUpdater *strongSelf = weakSelf; if (strongSelf != nil) { @@ -286,7 +286,7 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification } } -- (void)updatePermissionPromptFinishedWithResult:(SUUpdatePermission *)result +- (void)updatePermissionPromptFinishedWithResult:(SPUUpdatePermission *)result { [self.host setBool:result.sendProfile forUserDefaultsKey:SUSendProfileInfoKey]; [self setAutomaticallyChecksForUpdates:(result.choice == SUAutomaticallyCheck)]; @@ -713,7 +713,7 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification { NSString *hostBundleIdentifier = self.host.bundle.bundleIdentifier; assert(hostBundleIdentifier != nil); - [SUProbeInstallStatus probeInstallerUpdateItemForHostBundleIdentifier:hostBundleIdentifier completion:^(SUInstallationInfo * _Nullable installationInfo) { + [SUProbeInstallStatus probeInstallerUpdateItemForHostBundleIdentifier:hostBundleIdentifier completion:^(SPUInstallationInfo * _Nullable installationInfo) { dispatch_async(dispatch_get_main_queue(), ^{ NSTimeInterval regularCheckInterval = [self updateCheckInterval]; if (installationInfo == nil) { diff --git a/Sparkle/SUUpdaterCycle.h b/Sparkle/SPUUpdaterCycle.h similarity index 74% rename from Sparkle/SUUpdaterCycle.h rename to Sparkle/SPUUpdaterCycle.h index b26356cb..2c9c6b15 100644 --- a/Sparkle/SUUpdaterCycle.h +++ b/Sparkle/SPUUpdaterCycle.h @@ -1,5 +1,5 @@ // -// SUUpdaterCycle.h +// SPUUpdaterCycle.h // Sparkle // // Created by Mayur Pawashe on 6/11/16. @@ -10,7 +10,7 @@ NS_ASSUME_NONNULL_BEGIN -@protocol SUUpdaterCycleDelegate +@protocol SPUUpdaterCycleDelegate - (void)resetUpdateCycle; @@ -18,10 +18,10 @@ NS_ASSUME_NONNULL_BEGIN // This notifies the updater for (re-)starting and canceling update cycles // This class is used so that an updater instance isn't kept alive by a pending update cycle -@interface SUUpdaterCycle : NSObject +@interface SPUUpdaterCycle : NSObject // This delegate is weakly referenced -- (instancetype)initWithDelegate:(id)delegate; +- (instancetype)initWithDelegate:(id)delegate; - (void)resetUpdateCycleAfterDelay; diff --git a/Sparkle/SUUpdaterCycle.m b/Sparkle/SPUUpdaterCycle.m similarity index 73% rename from Sparkle/SUUpdaterCycle.m rename to Sparkle/SPUUpdaterCycle.m index 71ad390c..31317212 100644 --- a/Sparkle/SUUpdaterCycle.m +++ b/Sparkle/SPUUpdaterCycle.m @@ -1,28 +1,28 @@ // -// SUUpdaterCycle.m +// SPUUpdaterCycle.m // Sparkle // // Created by Mayur Pawashe on 6/11/16. // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUUpdaterCycle.h" +#import "SPUUpdaterCycle.h" #ifdef _APPKITDEFINES_H #error This is a "core" class and should NOT import AppKit #endif -@interface SUUpdaterCycle () +@interface SPUUpdaterCycle () -@property (nonatomic, weak, readonly) id delegate; +@property (nonatomic, weak, readonly) id delegate; @end -@implementation SUUpdaterCycle +@implementation SPUUpdaterCycle @synthesize delegate = _delegate; -- (instancetype)initWithDelegate:(id)delegate +- (instancetype)initWithDelegate:(id)delegate { self = [super init]; if (self != nil) { diff --git a/Sparkle/SUUpdaterSettings.h b/Sparkle/SPUUpdaterSettings.h similarity index 95% rename from Sparkle/SUUpdaterSettings.h rename to Sparkle/SPUUpdaterSettings.h index 6e6f061a..bdb467a9 100644 --- a/Sparkle/SUUpdaterSettings.h +++ b/Sparkle/SPUUpdaterSettings.h @@ -1,5 +1,5 @@ // -// SUUpdaterSettings.h +// SPUUpdaterSettings.h // Sparkle // // Created by Mayur Pawashe on 3/27/16. @@ -17,7 +17,7 @@ NS_ASSUME_NONNULL_BEGIN It retrieves the settings by first looking into the host's user defaults. If the setting is not found in there, then the host's Info.plist file is looked at. */ -SU_EXPORT @interface SUUpdaterSettings : NSObject +SU_EXPORT @interface SPUUpdaterSettings : NSObject - (instancetype)initWithHostBundle:(NSBundle *)hostBundle; diff --git a/Sparkle/SUUpdaterSettings.m b/Sparkle/SPUUpdaterSettings.m similarity index 93% rename from Sparkle/SUUpdaterSettings.m rename to Sparkle/SPUUpdaterSettings.m index aa239b31..6cb49098 100644 --- a/Sparkle/SUUpdaterSettings.m +++ b/Sparkle/SPUUpdaterSettings.m @@ -1,12 +1,12 @@ // -// SUUpdaterSettings.m +// SPUUpdaterSettings.m // Sparkle // // Created by Mayur Pawashe on 3/27/16. // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUUpdaterSettings.h" +#import "SPUUpdaterSettings.h" #import "SUHost.h" #import "SUConstants.h" @@ -14,13 +14,13 @@ #error This is a "core" class and should NOT import AppKit #endif -@interface SUUpdaterSettings () +@interface SPUUpdaterSettings () @property (nonatomic, readonly) SUHost *host; @end -@implementation SUUpdaterSettings +@implementation SPUUpdaterSettings @synthesize host = _host; diff --git a/Sparkle/SUUserDriver.h b/Sparkle/SPUUserDriver.h similarity index 98% rename from Sparkle/SUUserDriver.h rename to Sparkle/SPUUserDriver.h index e710f2e4..f7ef30a6 100644 --- a/Sparkle/SUUserDriver.h +++ b/Sparkle/SPUUserDriver.h @@ -1,5 +1,5 @@ // -// SUUserDriver.h +// SPUUserDriver.h // Sparkle // // Created by Mayur Pawashe on 2/14/16. @@ -11,7 +11,7 @@ NS_ASSUME_NONNULL_BEGIN -@class SUUpdatePermission, SUAppcastItem; +@class SPUUpdatePermission, SUAppcastItem; /*! The API in Sparkle for controlling the user interaction. @@ -29,7 +29,7 @@ NS_ASSUME_NONNULL_BEGIN An implementor of this protocol should act defensively. For example, it may be possible for an action that says to invalidate or dismiss something to be called multiple times in succession, and the implementor may choose to ignore further requests. */ -@protocol SUUserDriver +@protocol SPUUserDriver /*! * Show that an update can be checked by the user or not @@ -85,7 +85,7 @@ NS_ASSUME_NONNULL_BEGIN * * This can be called from any thread */ -- (void)requestUpdatePermissionWithSystemProfile:(NSArray *)systemProfile reply:(void (^)(SUUpdatePermission *))reply; +- (void)requestUpdatePermissionWithSystemProfile:(NSArray *)systemProfile reply:(void (^)(SPUUpdatePermission *))reply; /*! * Show the user initating an update check diff --git a/Sparkle/SUUserDriverCoreComponent.h b/Sparkle/SPUUserDriverCoreComponent.h similarity index 84% rename from Sparkle/SUUserDriverCoreComponent.h rename to Sparkle/SPUUserDriverCoreComponent.h index d0662172..273f4bf9 100644 --- a/Sparkle/SUUserDriverCoreComponent.h +++ b/Sparkle/SPUUserDriverCoreComponent.h @@ -10,13 +10,13 @@ #import "SUStatusCompletionResults.h" #import "SUExport.h" -@protocol SUStandardUserDriverDelegate; +@protocol SPUStandardUserDriverDelegate; -SU_EXPORT @interface SUUserDriverCoreComponent : NSObject +SU_EXPORT @interface SPUUserDriverCoreComponent : NSObject -- (instancetype)initWithDelegate:(id)delegate; +- (instancetype)initWithDelegate:(id)delegate; -@property (nonatomic, readonly, weak) id delegate; +@property (nonatomic, readonly, weak) id delegate; - (void)idleOnUpdateChecks:(BOOL)shouldIdleOnUpdateChecks; diff --git a/Sparkle/SUUserDriverCoreComponent.m b/Sparkle/SPUUserDriverCoreComponent.m similarity index 96% rename from Sparkle/SUUserDriverCoreComponent.m rename to Sparkle/SPUUserDriverCoreComponent.m index 6307671e..33942f10 100644 --- a/Sparkle/SUUserDriverCoreComponent.m +++ b/Sparkle/SPUUserDriverCoreComponent.m @@ -6,14 +6,14 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUUserDriverCoreComponent.h" -#import "SUStandardUserDriverDelegate.h" +#import "SPUUserDriverCoreComponent.h" +#import "SPUStandardUserDriverDelegate.h" #ifdef _APPKITDEFINES_H #error This is a "core" class and should NOT import AppKit #endif -@interface SUUserDriverCoreComponent () +@interface SPUUserDriverCoreComponent () @property (nonatomic) BOOL idlesOnUpdateChecks; @property (nonatomic) BOOL canCheckForUpdates; @@ -28,7 +28,7 @@ @end -@implementation SUUserDriverCoreComponent +@implementation SPUUserDriverCoreComponent @synthesize delegate = _delegate; @synthesize idlesOnUpdateChecks = _idlesOnUpdateChecks; @@ -42,7 +42,7 @@ #pragma mark Birth -- (instancetype)initWithDelegate:(id)delegate +- (instancetype)initWithDelegate:(id)delegate { self = [super init]; if (self != nil) { diff --git a/Sparkle/SUXPCServiceInfo.h b/Sparkle/SPUXPCServiceInfo.h similarity index 60% rename from Sparkle/SUXPCServiceInfo.h rename to Sparkle/SPUXPCServiceInfo.h index ac660494..b12dbae8 100644 --- a/Sparkle/SUXPCServiceInfo.h +++ b/Sparkle/SPUXPCServiceInfo.h @@ -1,5 +1,5 @@ // -// SUXPCServiceInfo.h +// SPUXPCServiceInfo.h // Sparkle // // Created by Mayur Pawashe on 4/17/16. @@ -10,8 +10,8 @@ NS_ASSUME_NONNULL_BEGIN -BOOL SUXPCServiceExists(NSString *bundleName); +BOOL SPUXPCServiceExists(NSString *bundleName); -NSBundle * _Nullable SUXPCServiceBundle(NSString *bundleName); +NSBundle * _Nullable SPUXPCServiceBundle(NSString *bundleName); NS_ASSUME_NONNULL_END diff --git a/Sparkle/SUXPCServiceInfo.m b/Sparkle/SPUXPCServiceInfo.m similarity index 86% rename from Sparkle/SUXPCServiceInfo.m rename to Sparkle/SPUXPCServiceInfo.m index 535d7f13..3d0cc5a1 100644 --- a/Sparkle/SUXPCServiceInfo.m +++ b/Sparkle/SPUXPCServiceInfo.m @@ -6,11 +6,11 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUXPCServiceInfo.h" +#import "SPUXPCServiceInfo.h" -BOOL SUXPCServiceExists(NSString *bundleName) +BOOL SPUXPCServiceExists(NSString *bundleName) { - NSBundle *xpcBundle = SUXPCServiceBundle(bundleName); + NSBundle *xpcBundle = SPUXPCServiceBundle(bundleName); if (xpcBundle == nil) { return NO; } @@ -27,7 +27,7 @@ BOOL SUXPCServiceExists(NSString *bundleName) return YES; } -NSBundle * _Nullable SUXPCServiceBundle(NSString *bundleName) +NSBundle * _Nullable SPUXPCServiceBundle(NSString *bundleName) { NSBundle *mainBundle = [NSBundle mainBundle]; NSURL *executableURL = mainBundle.executableURL; diff --git a/Sparkle/SUAppcast.m b/Sparkle/SUAppcast.m index 17d0c391..63c195e3 100644 --- a/Sparkle/SUAppcast.m +++ b/Sparkle/SUAppcast.m @@ -13,8 +13,8 @@ #import "SULog.h" #import "SUErrors.h" #import "SULocalizations.h" -#import "SUXPCServiceInfo.h" -#import "SUURLDownload.h" +#import "SPUXPCServiceInfo.h" +#import "SPUURLDownload.h" #ifdef _APPKITDEFINES_H #error This is a "core" class and should NOT import AppKit @@ -76,7 +76,7 @@ [request setValue:@"application/rss+xml,*/*;q=0.1" forHTTPHeaderField:@"Accept"]; - SUDownloadURLWithRequest(request, ^(NSData * _Nullable data, NSError * _Nullable error) { + SPUDownloadURLWithRequest(request, ^(NSData * _Nullable data, NSError * _Nullable error) { if (data != nil) { NSError *parseError = nil; NSArray *appcastItems = [self parseAppcastItemsFromXMLData:data error:&parseError]; diff --git a/Sparkle/SUAppcastItem.m b/Sparkle/SUAppcastItem.m index 1889bbe3..6a6b6697 100644 --- a/Sparkle/SUAppcastItem.m +++ b/Sparkle/SUAppcastItem.m @@ -10,7 +10,7 @@ #import "SUVersionComparisonProtocol.h" #import "SULog.h" #import "SUConstants.h" -#import "SUInstallationType.h" +#import "SPUInstallationType.h" #ifdef _APPKITDEFINES_H #error This is a "core" class and should NOT import AppKit @@ -68,7 +68,7 @@ static NSString *SUAppcastItemInstallationTypeKey = @"SUAppcastItemInstallationT _contentLength = (NSUInteger)[decoder decodeIntegerForKey:SUAppcastItemContentLengthKey]; _installationType = [decoder decodeObjectOfClass:[NSString class] forKey:SUAppcastItemInstallationTypeKey]; - if (!SUValidInstallationType(_installationType)) { + if (!SPUValidInstallationType(_installationType)) { return nil; } @@ -267,14 +267,14 @@ static NSString *SUAppcastItemInstallationTypeKey = @"SUAppcastItemInstallationT _installationType = [enclosure objectForKey:SUAppcastAttributeInstallationType]; if (_installationType == nil) { - _installationType = SUInstallationTypeDefault; - } else if (!SUValidInstallationType(_installationType)) { + _installationType = SPUInstallationTypeDefault; + } else if (!SPUValidInstallationType(_installationType)) { if (error != NULL) { *error = [NSString stringWithFormat:@"Feed item's enclosure lacks valid %@ (found %@)", SUAppcastAttributeInstallationType, _installationType]; } return nil; - } else if ([_installationType isEqualToString:SUInstallationTypeInteractivePackage]) { - SULog(@"warning: '%@' for %@ is deprecated. Use '%@' instead.", SUInstallationTypeInteractivePackage, SUAppcastAttributeInstallationType, SUInstallationTypeGuidedPackage); + } else if ([_installationType isEqualToString:SPUInstallationTypeInteractivePackage]) { + SULog(@"warning: '%@' for %@ is deprecated. Use '%@' instead.", SPUInstallationTypeInteractivePackage, SUAppcastAttributeInstallationType, SPUInstallationTypeGuidedPackage); } // Find the appropriate release notes URL. diff --git a/Sparkle/SUBasicUpdateDriver.m b/Sparkle/SUBasicUpdateDriver.m index cfbecf92..8aa4bc3d 100644 --- a/Sparkle/SUBasicUpdateDriver.m +++ b/Sparkle/SUBasicUpdateDriver.m @@ -15,7 +15,7 @@ #import "SUHost.h" #import "SUAppcastItem.h" #import "SUProbeInstallStatus.h" -#import "SUInstallationInfo.h" +#import "SPUInstallationInfo.h" #import "SUDownloadedUpdate.h" @interface SUBasicUpdateDriver () @@ -87,7 +87,7 @@ NSString *hostBundleIdentifier = self.host.bundle.bundleIdentifier; assert(hostBundleIdentifier != nil); - [SUProbeInstallStatus probeInstallerUpdateItemForHostBundleIdentifier:hostBundleIdentifier completion:^(SUInstallationInfo * _Nullable installationInfo) { + [SUProbeInstallStatus probeInstallerUpdateItemForHostBundleIdentifier:hostBundleIdentifier completion:^(SPUInstallationInfo * _Nullable installationInfo) { dispatch_async(dispatch_get_main_queue(), ^{ [self notifyResumableUpdateItem:installationInfo.appcastItem]; }); diff --git a/Sparkle/SUDownloadDriver.m b/Sparkle/SUDownloadDriver.m index d3a85bd3..1c17fa0b 100644 --- a/Sparkle/SUDownloadDriver.m +++ b/Sparkle/SUDownloadDriver.m @@ -9,14 +9,14 @@ #import "SUDownloadDriver.h" #import "SUPersistentDownloaderDelegate.h" #import "SUPersistentDownloader.h" -#import "SUXPCServiceInfo.h" +#import "SPUXPCServiceInfo.h" #import "SUAppcastItem.h" #import "SUFileManager.h" #import "SULocalizations.h" #import "SUHost.h" #import "SULog.h" #import "SUErrors.h" -#import "SUURLRequest.h" +#import "SPUURLRequest.h" #import "SUDownloadedUpdate.h" #ifdef _APPKITDEFINES_H @@ -65,7 +65,7 @@ _request = [NSMutableURLRequest requestWithURL:updateItem.fileURL]; [_request setValue:userAgent forHTTPHeaderField:@"User-Agent"]; - if (!SUXPCServiceExists(@PERSISTENT_DOWNLOADER_BUNDLE_ID)) { + if (!SPUXPCServiceExists(@PERSISTENT_DOWNLOADER_BUNDLE_ID)) { _downloader = [[SUPersistentDownloader alloc] initWithDelegate:self]; } else { _connection = [[NSXPCConnection alloc] initWithServiceName:@PERSISTENT_DOWNLOADER_BUNDLE_ID]; @@ -118,7 +118,7 @@ [self.delegate downloadDriverWillBeginDownload]; NSString *desiredFilename = [NSString stringWithFormat:@"%@ %@", [self.host name], [self.updateItem versionString]]; - [self.downloader startDownloadWithRequest:[SUURLRequest URLRequestWithRequest:self.request] bundleIdentifier:bundleIdentifier desiredFilename:desiredFilename]; + [self.downloader startDownloadWithRequest:[SPUURLRequest URLRequestWithRequest:self.request] bundleIdentifier:bundleIdentifier desiredFilename:desiredFilename]; } - (void)cleanup diff --git a/Sparkle/SUInstallationType.h b/Sparkle/SUInstallationType.h deleted file mode 100644 index 9dbee945..00000000 --- a/Sparkle/SUInstallationType.h +++ /dev/null @@ -1,20 +0,0 @@ -// -// SUInstallationType.h -// Sparkle -// -// Created by Mayur Pawashe on 7/24/16. -// Copyright © 2016 Sparkle Project. All rights reserved. -// - -#ifndef SUInstallationType_h -#define SUInstallationType_h - -#define SUInstallationTypeApplication @"application" // the default installation type for ordinary application updates -#define SUInstallationTypeGuidedPackage @"package" // the preferred installation type for package installations -#define SUInstallationTypeInteractivePackage @"interactive-package" // the deprecated installation type; use guided package instead - -#define SUInstallationTypeDefault SUInstallationTypeApplication -#define SUInstallationTypesArray (@[SUInstallationTypeApplication, SUInstallationTypeGuidedPackage, SUInstallationTypeInteractivePackage]) -#define SUValidInstallationType(x) ((x != nil) && [SUInstallationTypesArray containsObject:x]) - -#endif /* SUInstallationType_h */ diff --git a/Sparkle/SUInstallerDriver.m b/Sparkle/SUInstallerDriver.m index fac5fbdd..9c65c71c 100644 --- a/Sparkle/SUInstallerDriver.m +++ b/Sparkle/SUInstallerDriver.m @@ -9,7 +9,7 @@ #import "SUInstallerDriver.h" #import "SULog.h" #import "SUMessageTypes.h" -#import "SUXPCServiceInfo.h" +#import "SPUXPCServiceInfo.h" #import "SUUpdaterDelegate.h" #import "SUAppcastItem.h" #import "SULog.h" @@ -17,10 +17,9 @@ #import "SUErrors.h" #import "SUHost.h" #import "SUFileManager.h" -#import "SUSecureCoding.h" -#import "SUInstallationInputData.h" +#import "SPUSecureCoding.h" +#import "SPUInstallationInputData.h" #import "SUInstallerLauncher.h" -#import "SUXPCServiceInfo.h" #import "SUInstallerConnection.h" #import "SUInstallerConnectionProtocol.h" #import "SUXPCInstallerConnection.h" @@ -102,7 +101,7 @@ NSString *hostBundleIdentifier = self.host.bundle.bundleIdentifier; assert(hostBundleIdentifier != nil); - if (!SUXPCServiceExists(@INSTALLER_CONNECTION_BUNDLE_ID)) { + if (!SPUXPCServiceExists(@INSTALLER_CONNECTION_BUNDLE_ID)) { self.installerConnection = [[SUInstallerConnection alloc] initWithDelegate:self]; } else { self.installerConnection = [[SUXPCInstallerConnection alloc] initWithDelegate:self]; @@ -177,9 +176,9 @@ decryptionPassword = [self.updater _decryptionPasswordForSparkleUpdater]; } - SUInstallationInputData *installationData = [[SUInstallationInputData alloc] initWithRelaunchPath:pathToRelaunch hostBundlePath:self.host.bundlePath updateDirectoryPath:self.temporaryDirectory downloadName:self.downloadName installationType:self.updateItem.installationType dsaSignature:dsaSignature decryptionPassword:decryptionPassword]; + SPUInstallationInputData *installationData = [[SPUInstallationInputData alloc] initWithRelaunchPath:pathToRelaunch hostBundlePath:self.host.bundlePath updateDirectoryPath:self.temporaryDirectory downloadName:self.downloadName installationType:self.updateItem.installationType dsaSignature:dsaSignature decryptionPassword:decryptionPassword]; - NSData *archivedData = SUArchiveRootObjectSecurely(installationData); + NSData *archivedData = SPUArchiveRootObjectSecurely(installationData); if (archivedData == nil) { [self.delegate installerIsRequestingAbortInstallWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SUInstallationError userInfo:@{ NSLocalizedDescriptionKey:SULocalizedString(@"An error occurred while encoding the installer parameters. Please try again later.", nil) }]]; return; @@ -248,7 +247,7 @@ // Let the installer keep a copy of the appcast item data // We may want to ask for it later (note the updater can relaunch without the app necessarily having relaunched) - NSData *updateItemData = SUArchiveRootObjectSecurely(self.updateItem); + NSData *updateItemData = SPUArchiveRootObjectSecurely(self.updateItem); if (updateItemData != nil) { [self.installerConnection handleMessageWithIdentifier:SUSentUpdateAppcastItemData data:updateItemData]; @@ -306,7 +305,7 @@ __block BOOL retrievedLaunchStatus = NO; NSXPCConnection *launcherConnection = nil; - if (!SUXPCServiceExists(@INSTALLER_LAUNCHER_BUNDLE_ID)) { + if (!SPUXPCServiceExists(@INSTALLER_LAUNCHER_BUNDLE_ID)) { installerLauncher = [[SUInstallerLauncher alloc] init]; } else { launcherConnection = [[NSXPCConnection alloc] initWithServiceName:@INSTALLER_LAUNCHER_BUNDLE_ID]; diff --git a/Sparkle/SUProbeInstallStatus.h b/Sparkle/SUProbeInstallStatus.h index 80eb4238..81112c0a 100644 --- a/Sparkle/SUProbeInstallStatus.h +++ b/Sparkle/SUProbeInstallStatus.h @@ -10,7 +10,7 @@ NS_ASSUME_NONNULL_BEGIN -@class SUInstallationInfo; +@class SPUInstallationInfo; @interface SUProbeInstallStatus : NSObject @@ -18,7 +18,7 @@ NS_ASSUME_NONNULL_BEGIN // completionHandler may not be sent on main queue // additionally, it may be possible that the installer is in progress but we get a nil installation info back -+ (void)probeInstallerUpdateItemForHostBundleIdentifier:(NSString *)hostBundleIdentifier completion:(void (^)(SUInstallationInfo * _Nullable))completionHandler; ++ (void)probeInstallerUpdateItemForHostBundleIdentifier:(NSString *)hostBundleIdentifier completion:(void (^)(SPUInstallationInfo * _Nullable))completionHandler; @end diff --git a/Sparkle/SUProbeInstallStatus.m b/Sparkle/SUProbeInstallStatus.m index 44a1e291..7f346663 100644 --- a/Sparkle/SUProbeInstallStatus.m +++ b/Sparkle/SUProbeInstallStatus.m @@ -7,10 +7,10 @@ // #import "SUProbeInstallStatus.h" -#import "SUXPCServiceInfo.h" +#import "SPUXPCServiceInfo.h" #import "SUMessageTypes.h" -#import "SUInstallationInfo.h" -#import "SUSecureCoding.h" +#import "SPUInstallationInfo.h" +#import "SPUSecureCoding.h" #import "SUInstallerStatus.h" #import "SUXPCInstallerStatus.h" #import "SULog.h" @@ -24,7 +24,7 @@ + (void)probeInstallerInProgressForHostBundleIdentifier:(NSString *)hostBundleIdentifier completion:(void (^)(BOOL))completionHandler { id installerStatus = nil; - if (!SUXPCServiceExists(@INSTALLER_STATUS_BUNDLE_ID)) { + if (!SPUXPCServiceExists(@INSTALLER_STATUS_BUNDLE_ID)) { installerStatus = [[SUInstallerStatus alloc] init]; } else { installerStatus = [[SUXPCInstallerStatus alloc] init]; @@ -64,10 +64,10 @@ }); } -+ (void)probeInstallerUpdateItemForHostBundleIdentifier:(NSString *)hostBundleIdentifier completion:(void (^)(SUInstallationInfo * _Nullable))completionHandler ++ (void)probeInstallerUpdateItemForHostBundleIdentifier:(NSString *)hostBundleIdentifier completion:(void (^)(SPUInstallationInfo * _Nullable))completionHandler { id installerStatus = nil; - if (!SUXPCServiceExists(@INSTALLER_STATUS_BUNDLE_ID)) { + if (!SPUXPCServiceExists(@INSTALLER_STATUS_BUNDLE_ID)) { installerStatus = [[SUInstallerStatus alloc] init]; } else { installerStatus = [[SUXPCInstallerStatus alloc] init]; @@ -88,9 +88,9 @@ [installerStatus setServiceName:serviceName]; [installerStatus probeStatusInfoWithReply:^(NSData * _Nullable installationInfoData) { - SUInstallationInfo *installationInfo = nil; + SPUInstallationInfo *installationInfo = nil; if (installationInfoData != nil) { - installationInfo = (SUInstallationInfo *)SUUnarchiveRootObjectSecurely((NSData * _Nonnull)installationInfoData, [SUInstallationInfo class]); + installationInfo = (SPUInstallationInfo *)SPUUnarchiveRootObjectSecurely((NSData * _Nonnull)installationInfoData, [SPUInstallationInfo class]); } dispatch_async(dispatch_get_main_queue(), ^{ diff --git a/Sparkle/SUScheduledUpdateDriver.h b/Sparkle/SUScheduledUpdateDriver.h index 183a5e61..4f7d317c 100644 --- a/Sparkle/SUScheduledUpdateDriver.h +++ b/Sparkle/SUScheduledUpdateDriver.h @@ -13,11 +13,11 @@ NS_ASSUME_NONNULL_BEGIN @class SUHost; -@protocol SUUserDriver, SUUpdaterDelegate; +@protocol SPUUserDriver, SUUpdaterDelegate; @interface SUScheduledUpdateDriver : NSObject -- (instancetype)initWithHost:(SUHost *)host sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater userDriver:(id )userDriver updaterDelegate:(nullable id )updaterDelegate; +- (instancetype)initWithHost:(SUHost *)host sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater userDriver:(id )userDriver updaterDelegate:(nullable id )updaterDelegate; @end diff --git a/Sparkle/SUScheduledUpdateDriver.m b/Sparkle/SUScheduledUpdateDriver.m index 92f83908..b768e3ae 100644 --- a/Sparkle/SUScheduledUpdateDriver.m +++ b/Sparkle/SUScheduledUpdateDriver.m @@ -10,7 +10,7 @@ #import "SUHost.h" #import "SUErrors.h" #import "SUUpdaterDelegate.h" -#import "SUUserDriver.h" +#import "SPUUserDriver.h" #ifdef _APPKITDEFINES_H #error This is a "core" class and should NOT import AppKit @@ -26,7 +26,7 @@ @synthesize uiDriver = _uiDriver; -- (instancetype)initWithHost:(SUHost *)host sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater userDriver:(id )userDriver updaterDelegate:(nullable id )updaterDelegate +- (instancetype)initWithHost:(SUHost *)host sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater userDriver:(id )userDriver updaterDelegate:(nullable id )updaterDelegate { self = [super init]; if (self != nil) { diff --git a/Sparkle/SUStatusController.m b/Sparkle/SUStatusController.m index 8fab8396..4dae8b39 100644 --- a/Sparkle/SUStatusController.m +++ b/Sparkle/SUStatusController.m @@ -8,7 +8,7 @@ #import "SUStatusController.h" #import "SUHost.h" -#import "SUApplicationInfo.h" +#import "SPUApplicationInfo.h" #import "SULocalizations.h" @interface SUStatusController () @@ -41,7 +41,7 @@ - (void)windowDidLoad { - if ([SUApplicationInfo isBackgroundApplication:NSApp]) { + if ([SPUApplicationInfo isBackgroundApplication:NSApp]) { [[self window] setLevel:NSFloatingWindowLevel]; } @@ -57,7 +57,7 @@ - (NSImage *)applicationIcon { - return [SUApplicationInfo bestIconForBundle:self.host.bundle]; + return [SPUApplicationInfo bestIconForBundle:self.host.bundle]; } - (void)beginActionWithTitle:(NSString *)aTitle maxProgressValue:(double)aMaxProgressValue statusText:(NSString *)aStatusText diff --git a/Sparkle/SUUIBasedUpdateDriver.h b/Sparkle/SUUIBasedUpdateDriver.h index a4a3bca0..f709df4a 100644 --- a/Sparkle/SUUIBasedUpdateDriver.h +++ b/Sparkle/SUUIBasedUpdateDriver.h @@ -23,11 +23,11 @@ NS_ASSUME_NONNULL_BEGIN @end @class SUHost, SUDownloadedUpdate; -@protocol SUUserDriver, SUUpdaterDelegate; +@protocol SPUUserDriver, SUUpdaterDelegate; @interface SUUIBasedUpdateDriver : NSObject -- (instancetype)initWithHost:(SUHost *)host sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater userDriver:(id )userDriver updaterDelegate:(nullable id )updaterDelegate delegate:(id)delegate; +- (instancetype)initWithHost:(SUHost *)host sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater userDriver:(id )userDriver updaterDelegate:(nullable id )updaterDelegate delegate:(id)delegate; - (void)checkForUpdatesAtAppcastURL:(NSURL *)appcastURL withUserAgent:(NSString *)userAgent httpHeaders:(NSDictionary *)httpHeaders includesSkippedUpdates:(BOOL)includesSkippedUpdates completion:(SUUpdateDriverCompletion)completionBlock; diff --git a/Sparkle/SUUIBasedUpdateDriver.m b/Sparkle/SUUIBasedUpdateDriver.m index 692fd263..9ce94e4d 100644 --- a/Sparkle/SUUIBasedUpdateDriver.m +++ b/Sparkle/SUUIBasedUpdateDriver.m @@ -8,13 +8,13 @@ #import "SUUIBasedUpdateDriver.h" #import "SUCoreBasedUpdateDriver.h" -#import "SUUserDriver.h" +#import "SPUUserDriver.h" #import "SUHost.h" #import "SUConstants.h" #import "SUUpdaterDelegate.h" #import "SUAppcastItem.h" #import "SUErrors.h" -#import "SUURLDownload.h" +#import "SPUURLDownload.h" #ifdef _APPKITDEFINES_H #error This is a "core" class and should NOT import AppKit @@ -27,7 +27,7 @@ @property (nonatomic, weak, readonly) id updater; @property (weak, nonatomic, readonly) id updaterDelegate; @property (nonatomic, weak, readonly) id delegate; -@property (nonatomic, readonly) id userDriver; +@property (nonatomic, readonly) id userDriver; @property (nonatomic) BOOL resumingInstallingUpdate; @property (nonatomic) BOOL resumingDownloadedUpdate; @@ -44,7 +44,7 @@ @synthesize resumingInstallingUpdate = _resumingInstallingUpdate; @synthesize resumingDownloadedUpdate = _resumingDownloadedUpdate; -- (instancetype)initWithHost:(SUHost *)host sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater userDriver:(id )userDriver updaterDelegate:(nullable id )updaterDelegate delegate:(id)delegate +- (instancetype)initWithHost:(SUHost *)host sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater userDriver:(id )userDriver updaterDelegate:(nullable id )updaterDelegate delegate:(id)delegate { self = [super init]; if (self != nil) { @@ -143,8 +143,8 @@ if (updateItem.releaseNotesURL != nil && (![updaterDelegate respondsToSelector:@selector(updaterShouldDownloadReleaseNotes:)] || [updaterDelegate updaterShouldDownloadReleaseNotes:self.updater])) { NSURLRequest *request = [NSURLRequest requestWithURL:updateItem.releaseNotesURL cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:30]; - id userDriver = self.userDriver; - SUDownloadURLWithRequest(request, ^(NSData * _Nullable data, NSError * _Nullable error) { + id userDriver = self.userDriver; + SPUDownloadURLWithRequest(request, ^(NSData * _Nullable data, NSError * _Nullable error) { if (data != nil) { [userDriver showUpdateReleaseNotes:(NSData * _Nonnull)data]; } else { diff --git a/Sparkle/SUUpdateAlert.m b/Sparkle/SUUpdateAlert.m index 488f699d..81e9a3af 100644 --- a/Sparkle/SUUpdateAlert.m +++ b/Sparkle/SUUpdateAlert.m @@ -19,8 +19,8 @@ #import "SULog.h" #import "SULocalizations.h" #import "SUAppcastItem.h" -#import "SUApplicationInfo.h" -#import "SUUpdaterSettings.h" +#import "SPUApplicationInfo.h" +#import "SPUUpdaterSettings.h" // WebKit protocols are not explicitly declared until 10.11 SDK, so // declare dummy protocols to keep the build working on earlier SDKs. @@ -83,7 +83,7 @@ updateItem = item; versionDisplayer = aVersionDisplayer; - SUUpdaterSettings *updaterSettings = [[SUUpdaterSettings alloc] initWithHostBundle:host.bundle]; + SPUUpdaterSettings *updaterSettings = [[SPUUpdaterSettings alloc] initWithHostBundle:host.bundle]; _allowsAutomaticUpdates = updaterSettings.allowsAutomaticUpdates; [self setShouldCascadeWindows:NO]; @@ -239,7 +239,7 @@ [self.window setFrameAutosaveName: showReleaseNotes ? @"SUUpdateAlert" : @"SUUpdateAlertSmall" ]; - if ([SUApplicationInfo isBackgroundApplication:NSApp]) { + if ([SPUApplicationInfo isBackgroundApplication:NSApp]) { [self.window setLevel:NSFloatingWindowLevel]; // This means the window will float over all other apps, if our app is switched out ?! } @@ -293,7 +293,7 @@ - (NSImage *)applicationIcon { - return [SUApplicationInfo bestIconForBundle:self.host.bundle]; + return [SPUApplicationInfo bestIconForBundle:self.host.bundle]; } - (NSString *)titleText diff --git a/Sparkle/SUUpdatePermission.h b/Sparkle/SUUpdatePermission.h deleted file mode 100644 index 683da36d..00000000 --- a/Sparkle/SUUpdatePermission.h +++ /dev/null @@ -1,24 +0,0 @@ -// -// SUUpdatePermission.h -// Sparkle -// -// Created by Mayur Pawashe on 2/8/16. -// Copyright © 2016 Sparkle Project. All rights reserved. -// - -#import -#import "SUExport.h" - -typedef NS_ENUM(NSInteger, SUCheckUpdatesChoice) { - SUAutomaticallyCheck, - SUDoNotAutomaticallyCheck -}; - -SU_EXPORT @interface SUUpdatePermission : NSObject - -+ (instancetype)updatePermissionWithChoice:(SUCheckUpdatesChoice)choice sendProfile:(BOOL)sendProfile; - -@property (nonatomic, readonly) SUCheckUpdatesChoice choice; -@property (nonatomic, readonly) BOOL sendProfile; - -@end diff --git a/Sparkle/SUUpdater.m b/Sparkle/SUUpdater.m index 9c8e8a9b..e27e2c08 100644 --- a/Sparkle/SUUpdater.m +++ b/Sparkle/SUUpdater.m @@ -8,14 +8,14 @@ #import "SUUpdater.h" #import "SPUUpdater.h" -#import "SUStandardUserDriver.h" -#import "SUStandardUserDriverDelegate.h" +#import "SPUStandardUserDriver.h" +#import "SPUStandardUserDriverDelegate.h" #import "SULog.h" -@interface SUUpdater () +@interface SUUpdater () @property (nonatomic, readonly) SPUUpdater *updater; -@property (nonatomic, readonly) SUStandardUserDriver *userDriver; +@property (nonatomic, readonly) SPUStandardUserDriver *userDriver; @end @@ -71,7 +71,7 @@ static NSMutableDictionary *sharedUpdaters = nil; } [sharedUpdaters setObject:self forKey:[NSValue valueWithNonretainedObject:bundle]]; - _userDriver = [[SUStandardUserDriver alloc] initWithHostBundle:bundle delegate:self]; + _userDriver = [[SPUStandardUserDriver alloc] initWithHostBundle:bundle delegate:self]; _updater = [[SPUUpdater alloc] initWithHostBundle:bundle userDriver:_userDriver delegate:nil]; [_updater setUpdaterDelegator:self]; diff --git a/Sparkle/SUUserInitiatedUpdateDriver.h b/Sparkle/SUUserInitiatedUpdateDriver.h index ca24c1a8..ee93a21b 100644 --- a/Sparkle/SUUserInitiatedUpdateDriver.h +++ b/Sparkle/SUUserInitiatedUpdateDriver.h @@ -12,11 +12,11 @@ NS_ASSUME_NONNULL_BEGIN @class SUHost; -@protocol SUUpdaterDelegate, SUUserDriver; +@protocol SUUpdaterDelegate, SPUUserDriver; @interface SUUserInitiatedUpdateDriver : NSObject -- (instancetype)initWithHost:(SUHost *)host sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater userDriver:(id )userDriver updaterDelegate:(nullable id )updaterDelegate; +- (instancetype)initWithHost:(SUHost *)host sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater userDriver:(id )userDriver updaterDelegate:(nullable id )updaterDelegate; @end diff --git a/Sparkle/SUUserInitiatedUpdateDriver.m b/Sparkle/SUUserInitiatedUpdateDriver.m index 4c2c3c12..797585ea 100644 --- a/Sparkle/SUUserInitiatedUpdateDriver.m +++ b/Sparkle/SUUserInitiatedUpdateDriver.m @@ -8,7 +8,7 @@ #import "SUUserInitiatedUpdateDriver.h" #import "SUUIBasedUpdateDriver.h" -#import "SUUserDriver.h" +#import "SPUUserDriver.h" #ifdef _APPKITDEFINES_H #error This is a "core" class and should NOT import AppKit @@ -17,7 +17,7 @@ @interface SUUserInitiatedUpdateDriver () @property (nonatomic, readonly) SUUIBasedUpdateDriver *uiDriver; -@property (nonatomic, readonly) id userDriver; +@property (nonatomic, readonly) id userDriver; @property (nonatomic) BOOL showingUserInitiatedProgress; @end @@ -28,7 +28,7 @@ @synthesize userDriver = _userDriver; @synthesize showingUserInitiatedProgress = _showingUserInitiatedProgress; -- (instancetype)initWithHost:(SUHost *)host sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater userDriver:(id )userDriver updaterDelegate:(nullable id )updaterDelegate +- (instancetype)initWithHost:(SUHost *)host sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater userDriver:(id )userDriver updaterDelegate:(nullable id )updaterDelegate { self = [super init]; if (self != nil) { diff --git a/Sparkle/Sparkle.h b/Sparkle/Sparkle.h index 96cce468..09a84b46 100644 --- a/Sparkle/Sparkle.h +++ b/Sparkle/Sparkle.h @@ -17,17 +17,15 @@ #import "SUStandardVersionComparator.h" #import "SUUpdaterDelegate.h" #import "SPUUpdater.h" -#import "SUUpdaterSettings.h" -#import "SUStandardUpdaterController.h" +#import "SPUUpdaterSettings.h" +#import "SPUStandardUpdaterController.h" #import "SUVersionComparisonProtocol.h" #import "SUVersionDisplayProtocol.h" #import "SUErrors.h" -#import "SUUpdatePermission.h" -#import "SUUserDriver.h" -#import "SUStandardUserDriver.h" -#import "SUStandardUserDriverDelegate.h" -#import "SUStandardUserDriverUIDelegate.h" -#import "SUStandardUserDriverRemoteDelegate.h" -#import "SUUserDriverCoreComponent.h" +#import "SPUUpdatePermission.h" +#import "SPUUserDriver.h" +#import "SPUStandardUserDriver.h" +#import "SPUStandardUserDriverDelegate.h" +#import "SPUUserDriverCoreComponent.h" #endif diff --git a/Sparkle/ar.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/ar.lproj/SPUUpdatePermissionPrompt.xib similarity index 95% rename from Sparkle/ar.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/ar.lproj/SPUUpdatePermissionPrompt.xib index bfc811f3..0d61e433 100755 --- a/Sparkle/ar.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/ar.lproj/SPUUpdatePermissionPrompt.xib @@ -1,11 +1,10 @@ - + - - + - + @@ -29,7 +28,6 @@ - @@ -149,7 +140,6 @@ Gw - Anonymous system profile information is used to help us plan future development work. Please contact us if you have any questions about this. @@ -169,7 +159,6 @@ This is the information that would be sent: - @@ -209,23 +198,18 @@ This is the information that would be sent: - - - diff --git a/Sparkle/cs.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/cs.lproj/SPUUpdatePermissionPrompt.xib similarity index 99% rename from Sparkle/cs.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/cs.lproj/SPUUpdatePermissionPrompt.xib index f43a8078..9c94952a 100644 --- a/Sparkle/cs.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/cs.lproj/SPUUpdatePermissionPrompt.xib @@ -1,10 +1,10 @@ - + - + - + diff --git a/Sparkle/da.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/da.lproj/SPUUpdatePermissionPrompt.xib similarity index 95% rename from Sparkle/da.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/da.lproj/SPUUpdatePermissionPrompt.xib index 2f5404e8..c1801054 100644 --- a/Sparkle/da.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/da.lproj/SPUUpdatePermissionPrompt.xib @@ -1,11 +1,10 @@ - + - - + - + @@ -29,7 +28,6 @@ - @@ -149,7 +140,6 @@ Gw - Anonymous system profile information is used to help us plan future development work. Please contact us if you have any questions about this. @@ -169,7 +159,6 @@ This is the information that would be sent: - @@ -209,23 +198,18 @@ This is the information that would be sent: - - - diff --git a/Sparkle/de.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/de.lproj/SPUUpdatePermissionPrompt.xib similarity index 95% rename from Sparkle/de.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/de.lproj/SPUUpdatePermissionPrompt.xib index 01450e3a..f863db8b 100644 --- a/Sparkle/de.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/de.lproj/SPUUpdatePermissionPrompt.xib @@ -1,11 +1,10 @@ - + - - + - + @@ -29,7 +28,6 @@ - @@ -149,7 +140,6 @@ Gw - Das anonymisierte Systemprofil unterstützt uns bei der zukünftigen Entwicklung. Bitte kontaktieren Sie uns, wenn Sie Fragen hierzu haben. @@ -169,7 +159,6 @@ Diese Informationen würden an uns gesendet: - @@ -209,23 +198,18 @@ Diese Informationen würden an uns gesendet: - - - diff --git a/Sparkle/el.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/el.lproj/SPUUpdatePermissionPrompt.xib similarity index 95% rename from Sparkle/el.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/el.lproj/SPUUpdatePermissionPrompt.xib index 4049a836..26be5ad5 100644 --- a/Sparkle/el.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/el.lproj/SPUUpdatePermissionPrompt.xib @@ -1,11 +1,10 @@ - + - - + - + @@ -29,7 +28,6 @@ - @@ -149,7 +140,6 @@ Gw - Το ανώνυμο προφίλ συστήματος χρησιμοποιείται για να μας βοηθήσει σε μελλοντική ανάπτυξη του προγράμματος. Παρακαλώ επικοινωνήστε μαζί μας άν έχετε ερωτήσεις. @@ -169,7 +159,6 @@ Gw - @@ -209,23 +198,18 @@ Gw - - - diff --git a/Sparkle/en.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/en.lproj/SPUUpdatePermissionPrompt.xib similarity index 95% rename from Sparkle/en.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/en.lproj/SPUUpdatePermissionPrompt.xib index 4ad9171f..16e9d68c 100644 --- a/Sparkle/en.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/en.lproj/SPUUpdatePermissionPrompt.xib @@ -1,11 +1,10 @@ - + - - + - + @@ -29,7 +28,6 @@ - @@ -149,7 +140,6 @@ Gw - Anonymous system profile information is used to help us plan future development work. Please contact us if you have any questions about this. @@ -169,7 +159,6 @@ This is the information that would be sent: - @@ -209,23 +198,18 @@ This is the information that would be sent: - - - diff --git a/Sparkle/es.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/es.lproj/SPUUpdatePermissionPrompt.xib similarity index 95% rename from Sparkle/es.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/es.lproj/SPUUpdatePermissionPrompt.xib index 214daf58..65070bf2 100644 --- a/Sparkle/es.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/es.lproj/SPUUpdatePermissionPrompt.xib @@ -1,11 +1,10 @@ - + - - + - + @@ -29,7 +28,6 @@ - @@ -150,7 +141,6 @@ Gw - La información de perfil de sistema anónimo se usa para ayudarnos a planear el trabajo de desarrollo futuro. Por favor, póngase en cantacto con nosotros si tiene preguntas sobre esto. @@ -170,7 +160,6 @@ Esta es la información que se nos enviaría: - @@ -210,23 +199,18 @@ Esta es la información que se nos enviaría: - - - diff --git a/Sparkle/fr.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/fr.lproj/SPUUpdatePermissionPrompt.xib similarity index 95% rename from Sparkle/fr.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/fr.lproj/SPUUpdatePermissionPrompt.xib index 0a5efa67..ec55af13 100644 --- a/Sparkle/fr.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/fr.lproj/SPUUpdatePermissionPrompt.xib @@ -1,11 +1,10 @@ - + - - + - + @@ -29,7 +28,6 @@ - @@ -149,7 +140,6 @@ Gw - Upplýsingar úr nafnlausum kerfisskýrslum eru notaðar til að hjálpa okkur við framtíðarþróun hugbúnaðarins. Ekki hika við að hafa samband ef spurningar vakna um þetta. @@ -169,7 +159,6 @@ Gw - @@ -209,23 +198,18 @@ Gw - - - diff --git a/Sparkle/it.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/it.lproj/SPUUpdatePermissionPrompt.xib similarity index 95% rename from Sparkle/it.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/it.lproj/SPUUpdatePermissionPrompt.xib index 2501334c..ba31a5a3 100644 --- a/Sparkle/it.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/it.lproj/SPUUpdatePermissionPrompt.xib @@ -1,11 +1,10 @@ - + - - + - + @@ -29,7 +28,6 @@ - @@ -149,7 +140,6 @@ Gw - Le informazioni del profilo di sistema anomino sono utilizzate per aiutarci in futuri lavori di sviluppo. Contattaci se hai dei quesiti sull’argomento. @@ -169,7 +159,6 @@ Queste sono le informazioni che verrebbero inviate: - @@ -209,23 +198,18 @@ Queste sono le informazioni che verrebbero inviate: - - - diff --git a/Sparkle/ja.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/ja.lproj/SPUUpdatePermissionPrompt.xib similarity index 95% rename from Sparkle/ja.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/ja.lproj/SPUUpdatePermissionPrompt.xib index afd45ef0..3e560faa 100644 --- a/Sparkle/ja.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/ja.lproj/SPUUpdatePermissionPrompt.xib @@ -1,11 +1,10 @@ - + - - + - + @@ -29,7 +28,6 @@ - @@ -149,7 +140,6 @@ Gw - 匿名のシステムプロファイル情報は、今後我が社の企画開発を計画する上で参考にさせていただきます。この件に関してご質問があれば、ご連絡下さい。 @@ -169,7 +159,6 @@ Gw - @@ -209,23 +198,18 @@ Gw - - - diff --git a/Sparkle/ko.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/ko.lproj/SPUUpdatePermissionPrompt.xib similarity index 95% rename from Sparkle/ko.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/ko.lproj/SPUUpdatePermissionPrompt.xib index 43399cb2..701bad1f 100644 --- a/Sparkle/ko.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/ko.lproj/SPUUpdatePermissionPrompt.xib @@ -1,11 +1,10 @@ - + - - + - + @@ -29,7 +28,6 @@ - @@ -149,7 +140,6 @@ Gw - 익명으로 보내지는 시스템 정보로 차후 프로그램 개발에 도움이 될 수 있습니다. 질문이 있으시면 연락 주십시오. @@ -169,7 +159,6 @@ Gw - @@ -209,23 +198,18 @@ Gw - - - diff --git a/Sparkle/nb.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/nb.lproj/SPUUpdatePermissionPrompt.xib similarity index 95% rename from Sparkle/nb.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/nb.lproj/SPUUpdatePermissionPrompt.xib index 40ca4e59..fdf54396 100644 --- a/Sparkle/nb.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/nb.lproj/SPUUpdatePermissionPrompt.xib @@ -1,11 +1,10 @@ - + - - + - + @@ -29,7 +28,6 @@ - @@ -150,7 +141,6 @@ Gw - Den anonyme systemprofilen hjelper oss med å planlegge fremtidig utviklingsarbeid. Ta gjerne kontakt med oss hvis du har spørsmål om dette.
 @@ -169,7 +159,6 @@ Følgende innhold vil bli sendt: - @@ -209,23 +198,18 @@ Følgende innhold vil bli sendt: - - - diff --git a/Sparkle/nl.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/nl.lproj/SPUUpdatePermissionPrompt.xib similarity index 95% rename from Sparkle/nl.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/nl.lproj/SPUUpdatePermissionPrompt.xib index 1c796ca9..79f38e01 100644 --- a/Sparkle/nl.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/nl.lproj/SPUUpdatePermissionPrompt.xib @@ -1,11 +1,10 @@ - + - - + - + @@ -29,7 +28,6 @@ - @@ -149,7 +140,6 @@ Gw - Aan de hand van anonieme informatie over het systeemprofiel kunnen wij toekomstige ontwikkelingswerkzaamheden beter plannen. Neem contact met ons op als u hierover vragen hebt. @@ -169,7 +159,6 @@ Dit is de informatie die wordt verzonden: - @@ -209,23 +198,18 @@ Dit is de informatie die wordt verzonden: - - - diff --git a/Sparkle/pl.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/pl.lproj/SPUUpdatePermissionPrompt.xib similarity index 95% rename from Sparkle/pl.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/pl.lproj/SPUUpdatePermissionPrompt.xib index f0c8f3d5..21158c7a 100644 --- a/Sparkle/pl.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/pl.lproj/SPUUpdatePermissionPrompt.xib @@ -1,11 +1,10 @@ - + - - + - + @@ -29,7 +28,6 @@ - @@ -149,7 +140,6 @@ Gw - Anonymous system profile information is used to help us plan future development work. Please contact us if you have any questions about this. @@ -169,7 +159,6 @@ This is the information that would be sent: - @@ -209,23 +198,18 @@ This is the information that would be sent: - - - diff --git a/Sparkle/pt_BR.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/pt_BR.lproj/SPUUpdatePermissionPrompt.xib similarity index 95% rename from Sparkle/pt_BR.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/pt_BR.lproj/SPUUpdatePermissionPrompt.xib index d216ce21..c81921bf 100644 --- a/Sparkle/pt_BR.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/pt_BR.lproj/SPUUpdatePermissionPrompt.xib @@ -1,11 +1,10 @@ - + - - + - + @@ -29,7 +28,6 @@ - @@ -149,7 +140,6 @@ Gw - As informações anônimas do sistema são usadas para nos ajudar a planejar o desenvolvimento futuro do aplicativo. Contate-nos caso tenha dúvidas sobre este procedimento. @@ -169,7 +159,6 @@ As seguintes informações seriam enviadas: - @@ -209,23 +198,18 @@ As seguintes informações seriam enviadas: - - - diff --git a/Sparkle/pt_PT.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/pt_PT.lproj/SPUUpdatePermissionPrompt.xib similarity index 95% rename from Sparkle/pt_PT.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/pt_PT.lproj/SPUUpdatePermissionPrompt.xib index 930a515d..199e3f9d 100644 --- a/Sparkle/pt_PT.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/pt_PT.lproj/SPUUpdatePermissionPrompt.xib @@ -1,11 +1,10 @@ - + - - + - + @@ -29,7 +28,6 @@ - @@ -149,7 +140,6 @@ Gw - A informação anónima do perfil de sistema é usada para no futuro nos ajudar a planear o trabalho de desenvolvimento. Por favor contacte-nos se tiver alguma questão acerca deste assunto. @@ -169,7 +159,6 @@ Esta é a informação que seria enviada: - @@ -209,23 +198,18 @@ Esta é a informação que seria enviada: - - - diff --git a/Sparkle/ro.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/ro.lproj/SPUUpdatePermissionPrompt.xib similarity index 95% rename from Sparkle/ro.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/ro.lproj/SPUUpdatePermissionPrompt.xib index 5318d3d4..48cc2402 100644 --- a/Sparkle/ro.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/ro.lproj/SPUUpdatePermissionPrompt.xib @@ -1,11 +1,10 @@ - + - - + - + @@ -29,7 +28,6 @@ - @@ -149,7 +140,6 @@ Gw - Anonymous system profile information is used to help us plan future development work. Please contact us if you have any questions about this. @@ -169,7 +159,6 @@ This is the information that would be sent: - @@ -209,23 +198,18 @@ This is the information that would be sent: - - - diff --git a/Sparkle/ru.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/ru.lproj/SPUUpdatePermissionPrompt.xib similarity index 95% rename from Sparkle/ru.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/ru.lproj/SPUUpdatePermissionPrompt.xib index 71bd9f2e..878d210c 100644 --- a/Sparkle/ru.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/ru.lproj/SPUUpdatePermissionPrompt.xib @@ -1,11 +1,10 @@ - + - - + - + @@ -29,7 +28,6 @@ - @@ -150,7 +141,6 @@ Gw - Использование анонимного профиля системы помогает нам в планировании будущей работы по разработке. Если у вас есть какие-либо вопросы по этой теме, обращайтесь к нам. @@ -170,7 +160,6 @@ Gw - @@ -210,23 +199,18 @@ Gw - - - diff --git a/Sparkle/sk.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/sk.lproj/SPUUpdatePermissionPrompt.xib similarity index 95% rename from Sparkle/sk.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/sk.lproj/SPUUpdatePermissionPrompt.xib index 6aa62dde..8befe2c9 100644 --- a/Sparkle/sk.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/sk.lproj/SPUUpdatePermissionPrompt.xib @@ -1,11 +1,10 @@ - + - - + - + @@ -29,7 +28,6 @@ - @@ -149,7 +140,6 @@ Gw - Anonymný profil systému nám umožní zlepšiť plánovanie budúceho vývoja aplikácie. Ak máte ohľadom tohto akékoľvek otázky, neváhajte a kontaktujte nás. @@ -169,7 +159,6 @@ Odosielané budú nasledujúce informácie: - @@ -209,23 +198,18 @@ Odosielané budú nasledujúce informácie: - - - diff --git a/Sparkle/sl.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/sl.lproj/SPUUpdatePermissionPrompt.xib similarity index 95% rename from Sparkle/sl.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/sl.lproj/SPUUpdatePermissionPrompt.xib index 081bc487..c86430f3 100644 --- a/Sparkle/sl.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/sl.lproj/SPUUpdatePermissionPrompt.xib @@ -1,11 +1,10 @@ - + - - + - + @@ -29,7 +28,6 @@ - @@ -150,7 +141,6 @@ Gw - Anonimni profil sistema se uporablja za načrtovanje nadaljnega razvoja programa. V primeru vprašanj nas lahko kontaktirate. @@ -170,7 +160,6 @@ Pošljejo se sledeče informacije: - @@ -210,23 +199,18 @@ Pošljejo se sledeče informacije: - - - diff --git a/Sparkle/sv.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/sv.lproj/SPUUpdatePermissionPrompt.xib similarity index 95% rename from Sparkle/sv.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/sv.lproj/SPUUpdatePermissionPrompt.xib index 44ffe6fe..aaa5dd5a 100644 --- a/Sparkle/sv.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/sv.lproj/SPUUpdatePermissionPrompt.xib @@ -1,11 +1,10 @@ - + - - + - + @@ -29,7 +28,6 @@ - @@ -151,7 +142,6 @@ Gw - Anonym systemprofilinformation används för att hjälpa oss att planera framtida utvecklingsarbete. Vänligen kontakta oss ifall du har några frågot om detta. @@ -171,7 +161,6 @@ Detta är informationen som skulle sändas: - @@ -211,23 +200,18 @@ Detta är informationen som skulle sändas: - - - diff --git a/Sparkle/th.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/th.lproj/SPUUpdatePermissionPrompt.xib similarity index 95% rename from Sparkle/th.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/th.lproj/SPUUpdatePermissionPrompt.xib index 51ac9da9..663e242b 100644 --- a/Sparkle/th.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/th.lproj/SPUUpdatePermissionPrompt.xib @@ -1,11 +1,10 @@ - + - - + - + @@ -29,7 +28,6 @@ - @@ -149,7 +140,6 @@ Gw - ข้อมูลระบบแบบนิรนามช่วยในการวางแผนพัฒนาแอปพลิเคชันของเราในอนาคต กรุณาติดต่อเราถ้าคุณมีข้อสงสัยในเรื่องนี้ @@ -169,7 +159,6 @@ Gw - @@ -209,23 +198,18 @@ Gw - - - diff --git a/Sparkle/tr.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/tr.lproj/SPUUpdatePermissionPrompt.xib similarity index 95% rename from Sparkle/tr.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/tr.lproj/SPUUpdatePermissionPrompt.xib index b3fc49d4..d0a438a4 100644 --- a/Sparkle/tr.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/tr.lproj/SPUUpdatePermissionPrompt.xib @@ -1,11 +1,10 @@ - + - - + - + @@ -29,7 +28,6 @@ - @@ -149,7 +140,6 @@ Gw - Gönderdiğiniz anonim sistem bilgileri bu yazılımın geliştirilmesi için kullanılacaktır. Konu ile ilgili ayrıntılı bilgi için lütfen bizimle bağlantıya geçiniz. Göndereceğiniz Bilgiler: @@ -167,7 +157,6 @@ Gw - @@ -207,23 +196,18 @@ Gw - - - diff --git a/Sparkle/uk.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/uk.lproj/SPUUpdatePermissionPrompt.xib similarity index 95% rename from Sparkle/uk.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/uk.lproj/SPUUpdatePermissionPrompt.xib index ad98e67d..f94b4f04 100644 --- a/Sparkle/uk.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/uk.lproj/SPUUpdatePermissionPrompt.xib @@ -1,11 +1,10 @@ - + - - + - + @@ -29,7 +28,6 @@ - @@ -150,7 +141,6 @@ Gw - Використання анонімного профілю системи допомагає нам у планування майбутньої розробки. Якщо у вас виникли питання щодо цього, звертайтесь до нас. @@ -170,7 +160,6 @@ Gw - @@ -210,23 +199,18 @@ Gw - - - diff --git a/Sparkle/zh_CN.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/zh_CN.lproj/SPUUpdatePermissionPrompt.xib similarity index 95% rename from Sparkle/zh_CN.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/zh_CN.lproj/SPUUpdatePermissionPrompt.xib index f51d7fc7..e3fecc6b 100644 --- a/Sparkle/zh_CN.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/zh_CN.lproj/SPUUpdatePermissionPrompt.xib @@ -1,11 +1,10 @@ - + - - + - + @@ -29,7 +28,6 @@ - @@ -149,7 +140,6 @@ Gw - 无记名系统概况信息被用于帮助我们安排将来的开发工作。如果对此存在疑问请联系我们。 @@ -169,7 +159,6 @@ Gw - @@ -209,23 +198,18 @@ Gw - - - diff --git a/Sparkle/zh_TW.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/zh_TW.lproj/SPUUpdatePermissionPrompt.xib similarity index 95% rename from Sparkle/zh_TW.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/zh_TW.lproj/SPUUpdatePermissionPrompt.xib index ad2ec755..c281d71d 100644 --- a/Sparkle/zh_TW.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/zh_TW.lproj/SPUUpdatePermissionPrompt.xib @@ -1,11 +1,10 @@ - + - - + - + @@ -29,7 +28,6 @@ - @@ -149,7 +140,6 @@ Gw - 匿名系統描述資訊可用來協助我們計畫未來的開發工作。若您有任何相關問題,請與我們聯繫。 @@ -169,7 +159,6 @@ Gw - @@ -209,23 +198,18 @@ Gw - - - diff --git a/TemporaryDownloader/SUTemporaryDownloader.m b/TemporaryDownloader/SUTemporaryDownloader.m index 6c14a74d..86a73e76 100644 --- a/TemporaryDownloader/SUTemporaryDownloader.m +++ b/TemporaryDownloader/SUTemporaryDownloader.m @@ -7,7 +7,7 @@ // #import "SUTemporaryDownloader.h" -#import "SUURLRequest.h" +#import "SPUURLRequest.h" @interface SUTemporaryDownloader () @@ -23,7 +23,7 @@ @synthesize download = _download; @synthesize downloadFilename = _downloadFilename; -- (void)startDownloadWithRequest:(SUURLRequest *)request completion:(void (^)(NSData * _Nullable data, NSError * _Nullable error))completionBlock +- (void)startDownloadWithRequest:(SPUURLRequest *)request completion:(void (^)(NSData * _Nullable data, NSError * _Nullable error))completionBlock { dispatch_async(dispatch_get_main_queue(), ^{ self.completionBlock = completionBlock; diff --git a/TemporaryDownloader/SUTemporaryDownloaderProtocol.h b/TemporaryDownloader/SUTemporaryDownloaderProtocol.h index 263687f1..db14c056 100644 --- a/TemporaryDownloader/SUTemporaryDownloaderProtocol.h +++ b/TemporaryDownloader/SUTemporaryDownloaderProtocol.h @@ -10,12 +10,12 @@ NS_ASSUME_NONNULL_BEGIN -@class SUURLRequest; +@class SPUURLRequest; // 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 SUTemporaryDownloaderProtocol -- (void)startDownloadWithRequest:(SUURLRequest *)request completion:(void (^)(NSData * _Nullable data, NSError * _Nullable error))completionBlock; +- (void)startDownloadWithRequest:(SPUURLRequest *)request completion:(void (^)(NSData * _Nullable data, NSError * _Nullable error))completionBlock; @end diff --git a/TestAppHelper/TestAppHelper.h b/TestAppHelper/TestAppHelper.h index b1222e9d..b062acc4 100644 --- a/TestAppHelper/TestAppHelper.h +++ b/TestAppHelper/TestAppHelper.h @@ -9,11 +9,11 @@ #import #import "TestAppHelperProtocol.h" -@protocol SUUserDriver; +@protocol SPUUserDriver; // 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 TestAppHelper : NSObject -- (instancetype)initWithUserDriver:(id )userDriver; +- (instancetype)initWithUserDriver:(id )userDriver; @end diff --git a/TestAppHelper/TestAppHelper.m b/TestAppHelper/TestAppHelper.m index 24f2e6d9..ab03b226 100644 --- a/TestAppHelper/TestAppHelper.m +++ b/TestAppHelper/TestAppHelper.m @@ -13,7 +13,7 @@ @interface TestAppHelper () @property (nonatomic) SPUUpdater *updater; -@property (nonatomic) id userDriver; +@property (nonatomic) id userDriver; @end @@ -22,7 +22,7 @@ @synthesize updater = _updater; @synthesize userDriver = _userDriver; -- (instancetype)initWithUserDriver:(id )userDriver +- (instancetype)initWithUserDriver:(id )userDriver { self = [super init]; if (self != nil) { diff --git a/TestAppHelper/main.m b/TestAppHelper/main.m index c34fdaed..b67e2d98 100644 --- a/TestAppHelper/main.m +++ b/TestAppHelper/main.m @@ -8,7 +8,7 @@ #import #import "TestAppHelper.h" -#import "SUUserDriver.h" +#import "SPUUserDriver.h" @interface ServiceDelegate : NSObject @end @@ -22,7 +22,7 @@ // First, set the interface that the exported object implements. newConnection.exportedInterface = [NSXPCInterface interfaceWithProtocol:@protocol(TestAppHelperProtocol)]; - newConnection.remoteObjectInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SUUserDriver)]; + newConnection.remoteObjectInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SPUUserDriver)]; // 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. TestAppHelper *exportedObject = [[TestAppHelper alloc] initWithUserDriver:newConnection.remoteObjectProxy]; diff --git a/TestApplication/SUPopUpTitlebarUserDriver.h b/TestApplication/SUPopUpTitlebarUserDriver.h index 5ab56fbb..8549c17e 100644 --- a/TestApplication/SUPopUpTitlebarUserDriver.h +++ b/TestApplication/SUPopUpTitlebarUserDriver.h @@ -9,10 +9,10 @@ #import #import -@protocol SUStandardUserDriver; +@protocol SPUStandardUserDriverProtocol; -@interface SUPopUpTitlebarUserDriver : NSObject +@interface SUPopUpTitlebarUserDriver : NSObject -- (instancetype)initWithWindow:(NSWindow *)window delegate:(id)delegate; +- (instancetype)initWithWindow:(NSWindow *)window delegate:(id)delegate; @end diff --git a/TestApplication/SUPopUpTitlebarUserDriver.m b/TestApplication/SUPopUpTitlebarUserDriver.m index 5dcea2dc..122ea4b4 100644 --- a/TestApplication/SUPopUpTitlebarUserDriver.m +++ b/TestApplication/SUPopUpTitlebarUserDriver.m @@ -7,14 +7,14 @@ // #import "SUPopUpTitlebarUserDriver.h" -#import "SUStandardUserDriverDelegate.h" -#import "SUUserDriverCoreComponent.h" +#import "SPUStandardUserDriverDelegate.h" +#import "SPUUserDriverCoreComponent.h" #import "SUInstallUpdateViewController.h" @interface SUPopUpTitlebarUserDriver() @property (nonatomic, readonly) NSWindow *window; -@property (nonatomic, readonly) SUUserDriverCoreComponent *coreComponent; +@property (nonatomic, readonly) SPUUserDriverCoreComponent *coreComponent; @property (nonatomic) NSTitlebarAccessoryViewController *accessoryViewController; @property (nonatomic) BOOL addedAccessory; @property (nonatomic) NSButton *updateButton; @@ -36,13 +36,13 @@ @synthesize expectedContentLength = _expectedContentLength; @synthesize contentLengthDownloaded = _contentLengthDownloaded; -- (instancetype)initWithWindow:(NSWindow *)window delegate:(id)delegate +- (instancetype)initWithWindow:(NSWindow *)window delegate:(id)delegate { self = [super init]; if (self != nil) { _window = window; _delegate = delegate; - _coreComponent = [[SUUserDriverCoreComponent alloc] initWithDelegate:delegate]; + _coreComponent = [[SPUUserDriverCoreComponent alloc] initWithDelegate:delegate]; } return self; } @@ -150,11 +150,11 @@ #pragma mark Update Permission -- (void)requestUpdatePermissionWithSystemProfile:(NSArray *)__unused systemProfile reply:(void (^)(SUUpdatePermission *))reply +- (void)requestUpdatePermissionWithSystemProfile:(NSArray *)__unused systemProfile reply:(void (^)(SPUUpdatePermission *))reply { // Just make a decision.. dispatch_async(dispatch_get_main_queue(), ^{ - reply([SUUpdatePermission updatePermissionWithChoice:SUAutomaticallyCheck sendProfile:NO]); + reply([SPUUpdatePermission updatePermissionWithChoice:SUAutomaticallyCheck sendProfile:NO]); }); } diff --git a/TestApplication/SURemoteUpdateSettingsWindowController.h b/TestApplication/SURemoteUpdateSettingsWindowController.h index d1f9cd47..c476ada2 100644 --- a/TestApplication/SURemoteUpdateSettingsWindowController.h +++ b/TestApplication/SURemoteUpdateSettingsWindowController.h @@ -9,8 +9,8 @@ #import #import -@protocol SUStandardUserDriverDelegate; +@protocol SPUStandardUserDriverDelegate; -@interface SURemoteUpdateSettingsWindowController : NSWindowController +@interface SURemoteUpdateSettingsWindowController : NSWindowController @end diff --git a/TestApplication/SURemoteUpdateSettingsWindowController.m b/TestApplication/SURemoteUpdateSettingsWindowController.m index 506dd7d6..a44a4bb2 100644 --- a/TestApplication/SURemoteUpdateSettingsWindowController.m +++ b/TestApplication/SURemoteUpdateSettingsWindowController.m @@ -13,7 +13,7 @@ @interface SURemoteUpdateSettingsWindowController () @property (nonatomic) NSXPCConnection *connection; -@property (nonatomic) id userDriver; +@property (nonatomic) id userDriver; @property (nonatomic) IBOutlet NSButton *automaticallyChecksForUpdatesButton; @property (nonatomic) IBOutlet NSButton *automaticallyDownloadUpdatesButton; @@ -55,7 +55,7 @@ - (void)reloadSettings { - SUUpdaterSettings *settings = [[SUUpdaterSettings alloc] initWithHostBundle:[NSBundle mainBundle]]; + SPUUpdaterSettings *settings = [[SPUUpdaterSettings alloc] initWithHostBundle:[NSBundle mainBundle]]; // Make sure window is loaded [self window]; @@ -75,10 +75,10 @@ { self.connection = [[NSXPCConnection alloc] initWithServiceName:@"org.sparkle-project.TestAppHelper"]; - self.connection.exportedInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SUUserDriver)]; + self.connection.exportedInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SPUUserDriver)]; //self.userDriver = [[SUPopUpTitlebarUserDriver alloc] initWithWindow:self.window delegate:self]; - self.userDriver = [[SUStandardUserDriver alloc] initWithHostBundle:[NSBundle mainBundle] delegate:self]; + self.userDriver = [[SPUStandardUserDriver alloc] initWithHostBundle:[NSBundle mainBundle] delegate:self]; self.connection.exportedObject = self.userDriver; diff --git a/TestApplication/SUUpdateSettingsWindowController.m b/TestApplication/SUUpdateSettingsWindowController.m index 511ea7a8..14848e3b 100644 --- a/TestApplication/SUUpdateSettingsWindowController.m +++ b/TestApplication/SUUpdateSettingsWindowController.m @@ -11,7 +11,7 @@ @interface SUUpdateSettingsWindowController () -@property (nonatomic) IBOutlet SUStandardUpdaterController *updaterController; +@property (nonatomic) IBOutlet SPUStandardUpdaterController *updaterController; @end diff --git a/TestApplication/SUUpdateSettingsWindowController.xib b/TestApplication/SUUpdateSettingsWindowController.xib index e6a6678d..29c5bf64 100644 --- a/TestApplication/SUUpdateSettingsWindowController.xib +++ b/TestApplication/SUUpdateSettingsWindowController.xib @@ -93,6 +93,6 @@ - + diff --git a/Tests/SUInstallerTest.m b/Tests/SUInstallerTest.m index 761a3045..02ed38d4 100644 --- a/Tests/SUInstallerTest.m +++ b/Tests/SUInstallerTest.m @@ -10,9 +10,9 @@ #import #import "SUHost.h" #import "SUInstaller.h" -#import "SUInstallerProtocol.h" +#import "SPUInstallerProtocol.h" #import "SUStandardVersionComparator.h" -#import "SUInstallationType.h" +#import "SPUInstallationType.h" #import @interface SUInstallerTest : XCTestCase @@ -55,7 +55,7 @@ SUHost *host = [[SUHost alloc] initWithBundle:bundle]; NSError *installerError = nil; - id installer = [SUInstaller installerForHost:host expectedInstallationType:SUInstallationTypeGuidedPackage updateDirectory:[path stringByDeletingLastPathComponent] versionComparator:[SUStandardVersionComparator standardVersionComparator] error:&installerError]; + id installer = [SUInstaller installerForHost:host expectedInstallationType:SPUInstallationTypeGuidedPackage updateDirectory:[path stringByDeletingLastPathComponent] versionComparator:[SUStandardVersionComparator standardVersionComparator] error:&installerError]; if (installer == nil) { XCTFail(@"Installer is nil with error: %@", installerError); diff --git a/Tests/SUUpdaterTest.m b/Tests/SUUpdaterTest.m index c1e4b74c..6219cd9b 100644 --- a/Tests/SUUpdaterTest.m +++ b/Tests/SUUpdaterTest.m @@ -9,11 +9,11 @@ #import #import "SUConstants.h" #import "SPUUpdater.h" -#import "SUStandardUserDriver.h" +#import "SPUStandardUserDriver.h" #import "SUUpdaterDelegate.h" // This user driver does nothing -@interface SUUselessUserDriver : NSObject +@interface SUUselessUserDriver : NSObject @end @@ -27,7 +27,7 @@ - (void)invalidateUpdateCheckTimer {} -- (void)requestUpdatePermissionWithSystemProfile:(NSArray *)__unused systemProfile reply:(void (^)(SUUpdatePermission *))__unused reply {} +- (void)requestUpdatePermissionWithSystemProfile:(NSArray *)__unused systemProfile reply:(void (^)(SPUUpdatePermission *))__unused reply {} - (void)showUserInitiatedUpdateCheckWithCompletion:(void (^)(SUUserInitiatedCheckStatus))__unused updateCheckStatusCompletion {} @@ -80,7 +80,7 @@ - (void)setUp { [super setUp]; - self.updater = [[SUUpdater alloc] initWithHostBundle:[NSBundle bundleForClass:[self class]] userDriver:[[SUUselessUserDriver alloc] init] delegate:self]; + self.updater = [[SPUUpdater alloc] initWithHostBundle:[NSBundle bundleForClass:[self class]] userDriver:[[SUUselessUserDriver alloc] init] delegate:self]; NSError *error = nil; if (![self.updater startUpdater:&error]) { diff --git a/sparkle-cli/SUCommandLineDriver.h b/sparkle-cli/SPUCommandLineDriver.h similarity index 62% rename from sparkle-cli/SUCommandLineDriver.h rename to sparkle-cli/SPUCommandLineDriver.h index 2328c611..8af60ae8 100644 --- a/sparkle-cli/SUCommandLineDriver.h +++ b/sparkle-cli/SPUCommandLineDriver.h @@ -10,11 +10,11 @@ NS_ASSUME_NONNULL_BEGIN -@class SUUpdatePermission; +@class SPUUpdatePermission; -@interface SUCommandLineDriver : NSObject +@interface SPUCommandLineDriver : NSObject -- (nullable instancetype)initWithUpdateBundlePath:(NSString *)updateBundlePath applicationBundlePath:(nullable NSString *)applicationBundlePath updatePermission:(nullable SUUpdatePermission *)updatePermission deferInstallation:(BOOL)deferInstallation interactiveInstallation:(BOOL)interactiveInstallation verbose:(BOOL)verbose; +- (nullable instancetype)initWithUpdateBundlePath:(NSString *)updateBundlePath applicationBundlePath:(nullable NSString *)applicationBundlePath updatePermission:(nullable SPUUpdatePermission *)updatePermission deferInstallation:(BOOL)deferInstallation interactiveInstallation:(BOOL)interactiveInstallation verbose:(BOOL)verbose; - (void)runAndCheckForUpdatesNow:(BOOL)checkForUpdatesNow; diff --git a/sparkle-cli/SUCommandLineDriver.m b/sparkle-cli/SPUCommandLineDriver.m similarity index 83% rename from sparkle-cli/SUCommandLineDriver.m rename to sparkle-cli/SPUCommandLineDriver.m index bfca423f..fca1b81e 100644 --- a/sparkle-cli/SUCommandLineDriver.m +++ b/sparkle-cli/SPUCommandLineDriver.m @@ -6,13 +6,13 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUCommandLineDriver.h" +#import "SPUCommandLineDriver.h" #import -#import "SUCommandLineUserDriver.h" +#import "SPUCommandLineUserDriver.h" void _SULogDisableStandardErrorStream(void); -@interface SUCommandLineDriver () +@interface SPUCommandLineDriver () @property (nonatomic, readonly) SPUUpdater *updater; @property (nonatomic, readonly) NSString *applicationBundlePath; @@ -22,7 +22,7 @@ void _SULogDisableStandardErrorStream(void); @end -@implementation SUCommandLineDriver +@implementation SPUCommandLineDriver @synthesize updater = _updater; @synthesize applicationBundlePath = _applicationBundlePath; @@ -30,7 +30,7 @@ void _SULogDisableStandardErrorStream(void); @synthesize probingForUpdates = _probingForUpdates; @synthesize interactive = _interactive; -- (instancetype)initWithUpdateBundlePath:(NSString *)updateBundlePath applicationBundlePath:(nullable NSString *)applicationBundlePath updatePermission:(nullable SUUpdatePermission *)updatePermission deferInstallation:(BOOL)deferInstallation interactiveInstallation:(BOOL)interactiveInstallation verbose:(BOOL)verbose +- (instancetype)initWithUpdateBundlePath:(NSString *)updateBundlePath applicationBundlePath:(nullable NSString *)applicationBundlePath updatePermission:(nullable SPUUpdatePermission *)updatePermission deferInstallation:(BOOL)deferInstallation interactiveInstallation:(BOOL)interactiveInstallation verbose:(BOOL)verbose { self = [super init]; if (self != nil) { @@ -58,8 +58,8 @@ void _SULogDisableStandardErrorStream(void); _SULogDisableStandardErrorStream(); #endif - id userDriver = [[SUCommandLineUserDriver alloc] initWithApplicationBundle:applicationBundle updatePermission:updatePermission deferInstallation:deferInstallation verbose:verbose]; - _updater = [[SUUpdater alloc] initWithHostBundle:updateBundle userDriver:userDriver delegate:self]; + id userDriver = [[SPUCommandLineUserDriver alloc] initWithApplicationBundle:applicationBundle updatePermission:updatePermission deferInstallation:deferInstallation verbose:verbose]; + _updater = [[SPUUpdater alloc] initWithHostBundle:updateBundle userDriver:userDriver delegate:self]; } return self; } @@ -72,7 +72,7 @@ void _SULogDisableStandardErrorStream(void); } // In case we find an update during probing, otherwise we leave this to the user driver -- (void)updater:(SUUpdater *)__unused updater didFindValidUpdate:(SUAppcastItem *)__unused item +- (void)updater:(SPUUpdater *)__unused updater didFindValidUpdate:(SUAppcastItem *)__unused item { if (self.probingForUpdates) { if (self.verbose) { diff --git a/sparkle-cli/SUCommandLineUserDriver.h b/sparkle-cli/SPUCommandLineUserDriver.h similarity index 62% rename from sparkle-cli/SUCommandLineUserDriver.h rename to sparkle-cli/SPUCommandLineUserDriver.h index 0aa79e1b..fc99841b 100644 --- a/sparkle-cli/SUCommandLineUserDriver.h +++ b/sparkle-cli/SPUCommandLineUserDriver.h @@ -11,9 +11,9 @@ NS_ASSUME_NONNULL_BEGIN -@interface SUCommandLineUserDriver : NSObject +@interface SPUCommandLineUserDriver : NSObject -- (instancetype)initWithApplicationBundle:(NSBundle *)applicationBundle updatePermission:(nullable SUUpdatePermission *)updatePermission deferInstallation:(BOOL)deferInstallation verbose:(BOOL)verbose; +- (instancetype)initWithApplicationBundle:(NSBundle *)applicationBundle updatePermission:(nullable SPUUpdatePermission *)updatePermission deferInstallation:(BOOL)deferInstallation verbose:(BOOL)verbose; @end diff --git a/sparkle-cli/SUCommandLineUserDriver.m b/sparkle-cli/SPUCommandLineUserDriver.m similarity index 92% rename from sparkle-cli/SUCommandLineUserDriver.m rename to sparkle-cli/SPUCommandLineUserDriver.m index fbf05d9b..736ba568 100644 --- a/sparkle-cli/SUCommandLineUserDriver.m +++ b/sparkle-cli/SPUCommandLineUserDriver.m @@ -6,25 +6,25 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUCommandLineUserDriver.h" +#import "SPUCommandLineUserDriver.h" #import -#import "SUApplicationInfo.h" +#import "SPUApplicationInfo.h" #define SCHEDULED_UPDATE_TIMER_THRESHOLD 2.0 // seconds -@interface SUCommandLineUserDriver () +@interface SPUCommandLineUserDriver () @property (nonatomic, readonly) NSBundle *applicationBundle; -@property (nonatomic, nullable, readonly) SUUpdatePermission *updatePermission; +@property (nonatomic, nullable, readonly) SPUUpdatePermission *updatePermission; @property (nonatomic, readonly) BOOL deferInstallation; @property (nonatomic, readonly) BOOL verbose; -@property (nonatomic, readonly) SUUserDriverCoreComponent *coreComponent; +@property (nonatomic, readonly) SPUUserDriverCoreComponent *coreComponent; @property (nonatomic) NSUInteger bytesDownloaded; @property (nonatomic) NSUInteger bytesToDownload; @end -@implementation SUCommandLineUserDriver +@implementation SPUCommandLineUserDriver @synthesize applicationBundle = _applicationBundle; @synthesize updatePermission = _updatePermission; @@ -34,7 +34,7 @@ @synthesize bytesDownloaded = _bytesDownloaded; @synthesize bytesToDownload = _bytesToDownload; -- (instancetype)initWithApplicationBundle:(NSBundle *)applicationBundle updatePermission:(nullable SUUpdatePermission *)updatePermission deferInstallation:(BOOL)deferInstallation verbose:(BOOL)verbose +- (instancetype)initWithApplicationBundle:(NSBundle *)applicationBundle updatePermission:(nullable SPUUpdatePermission *)updatePermission deferInstallation:(BOOL)deferInstallation verbose:(BOOL)verbose { self = [super init]; if (self != nil) { @@ -42,7 +42,7 @@ _updatePermission = updatePermission; _deferInstallation = deferInstallation; _verbose = verbose; - _coreComponent = [[SUUserDriverCoreComponent alloc] initWithDelegate:nil]; + _coreComponent = [[SPUUserDriverCoreComponent alloc] initWithDelegate:nil]; } return self; } @@ -87,7 +87,7 @@ }); } -- (void)requestUpdatePermissionWithSystemProfile:(NSArray *)__unused systemProfile reply:(void (^)(SUUpdatePermission *))reply +- (void)requestUpdatePermissionWithSystemProfile:(NSArray *)__unused systemProfile reply:(void (^)(SPUUpdatePermission *))reply { dispatch_async(dispatch_get_main_queue(), ^{ if (self.updatePermission == nil) { @@ -272,7 +272,7 @@ fprintf(stderr, "Deferring Installation.\n"); } [self.coreComponent installUpdateWithChoice:SUDismissUpdateInstallation]; - } else if ([SUApplicationInfo runningApplicationWithBundle:self.applicationBundle] != nil) { + } else if ([SPUApplicationInfo runningApplicationWithBundle:self.applicationBundle] != nil) { [self.coreComponent installUpdateWithChoice:SUInstallAndRelaunchUpdateNow]; } else { [self.coreComponent installUpdateWithChoice:SUInstallUpdateNow]; @@ -311,7 +311,7 @@ - (void)terminateApplication { dispatch_async(dispatch_get_main_queue(), ^{ - NSRunningApplication *runningApplication = [SUApplicationInfo runningApplicationWithBundle:self.applicationBundle]; + NSRunningApplication *runningApplication = [SPUApplicationInfo runningApplicationWithBundle:self.applicationBundle]; if (runningApplication != nil) { if (![runningApplication terminate]) { if (![runningApplication forceTerminate]) { diff --git a/sparkle-cli/main.m b/sparkle-cli/main.m index 94054230..0c248f8d 100644 --- a/sparkle-cli/main.m +++ b/sparkle-cli/main.m @@ -8,7 +8,7 @@ #import #import -#import "SUCommandLineDriver.h" +#import "SPUCommandLineDriver.h" #include #define APPLICATION_FLAG "application" @@ -129,12 +129,12 @@ int main(int argc, char **argv) return EXIT_FAILURE; } - SUUpdatePermission *updatePermission = nil; + SPUUpdatePermission *updatePermission = nil; if (grantAutomaticChecking) { - updatePermission = [SUUpdatePermission updatePermissionWithChoice:SUAutomaticallyCheck sendProfile:sendProfile]; + updatePermission = [SPUUpdatePermission updatePermissionWithChoice:SUAutomaticallyCheck sendProfile:sendProfile]; } - SUCommandLineDriver *driver = [[SUCommandLineDriver alloc] initWithUpdateBundlePath:updatePath applicationBundlePath:applicationPath updatePermission:updatePermission deferInstallation:deferInstall interactiveInstallation:interactive verbose:verbose]; + SPUCommandLineDriver *driver = [[SPUCommandLineDriver alloc] initWithUpdateBundlePath:updatePath applicationBundlePath:applicationPath updatePermission:updatePermission deferInstallation:deferInstall interactiveInstallation:interactive verbose:verbose]; if (driver == nil) { fprintf(stderr, "Error: Failed to initialize updater. Are the bundle paths provided valid?\n"); return EXIT_FAILURE;