From def9a599a35a1ad9e973cdf5f2d3cdaf761acfec Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 4 Sep 2016 18:15:04 -0400 Subject: [PATCH] More SU -> SPU renaming Some of these class names conflicted with the official branch even though they are almost nothing like code-wise now. --- Documentation/Installation.md | 2 +- Sparkle.xcodeproj/project.pbxproj | 236 +++++++++--------- ...ateDriver.h => SPUAutomaticUpdateDriver.h} | 6 +- ...ateDriver.m => SPUAutomaticUpdateDriver.m} | 28 +-- ...cUpdateDriver.h => SPUBasicUpdateDriver.h} | 18 +- ...cUpdateDriver.m => SPUBasicUpdateDriver.m} | 28 +-- ...ateDriver.h => SPUCoreBasedUpdateDriver.h} | 16 +- ...ateDriver.m => SPUCoreBasedUpdateDriver.m} | 46 ++-- ...SUDownloadDriver.h => SPUDownloadDriver.h} | 12 +- ...SUDownloadDriver.m => SPUDownloadDriver.m} | 22 +- ...wnloadedUpdate.h => SPUDownloadedUpdate.h} | 4 +- ...wnloadedUpdate.m => SPUDownloadedUpdate.m} | 6 +- ...InstallerDriver.h => SPUInstallerDriver.h} | 12 +- ...InstallerDriver.m => SPUInstallerDriver.m} | 26 +- ...nstallStatus.h => SPUProbeInstallStatus.h} | 4 +- ...nstallStatus.m => SPUProbeInstallStatus.m} | 6 +- ...pdateDriver.h => SPUProbingUpdateDriver.h} | 6 +- ...pdateDriver.m => SPUProbingUpdateDriver.m} | 22 +- ...ateDriver.h => SPUScheduledUpdateDriver.h} | 8 +- ...ateDriver.m => SPUScheduledUpdateDriver.m} | 18 +- ...pdateDriver.h => SPUUIBasedUpdateDriver.h} | 18 +- ...pdateDriver.m => SPUUIBasedUpdateDriver.m} | 24 +- Sparkle/SPUUpdateDriver.h | 28 +++ Sparkle/SPUUpdater.m | 42 ++-- ...river.h => SPUUserInitiatedUpdateDriver.h} | 6 +- ...river.m => SPUUserInitiatedUpdateDriver.m} | 20 +- Sparkle/SUUpdateDriver.h | 28 --- 27 files changed, 346 insertions(+), 346 deletions(-) rename Sparkle/{SUAutomaticUpdateDriver.h => SPUAutomaticUpdateDriver.h} (81%) rename Sparkle/{SUAutomaticUpdateDriver.m => SPUAutomaticUpdateDriver.m} (80%) rename Sparkle/{SUBasicUpdateDriver.h => SPUBasicUpdateDriver.h} (60%) rename Sparkle/{SUBasicUpdateDriver.m => SPUBasicUpdateDriver.m} (87%) rename Sparkle/{SUCoreBasedUpdateDriver.h => SPUCoreBasedUpdateDriver.h} (80%) rename Sparkle/{SUCoreBasedUpdateDriver.m => SPUCoreBasedUpdateDriver.m} (87%) rename Sparkle/{SUDownloadDriver.h => SPUDownloadDriver.h} (72%) rename Sparkle/{SUDownloadDriver.m => SPUDownloadDriver.m} (92%) rename Sparkle/{SUDownloadedUpdate.h => SPUDownloadedUpdate.h} (89%) rename Sparkle/{SUDownloadedUpdate.m => SPUDownloadedUpdate.m} (88%) rename Sparkle/{SUInstallerDriver.h => SPUInstallerDriver.h} (73%) rename Sparkle/{SUInstallerDriver.m => SPUInstallerDriver.m} (96%) rename Sparkle/{SUProbeInstallStatus.h => SPUProbeInstallStatus.h} (90%) rename Sparkle/{SUProbeInstallStatus.m => SPUProbeInstallStatus.m} (97%) rename Sparkle/{SUProbingUpdateDriver.h => SPUProbingUpdateDriver.h} (76%) rename Sparkle/{SUProbingUpdateDriver.m => SPUProbingUpdateDriver.m} (70%) rename Sparkle/{SUScheduledUpdateDriver.h => SPUScheduledUpdateDriver.h} (77%) rename Sparkle/{SUScheduledUpdateDriver.m => SPUScheduledUpdateDriver.m} (75%) rename Sparkle/{SUUIBasedUpdateDriver.h => SPUUIBasedUpdateDriver.h} (67%) rename Sparkle/{SUUIBasedUpdateDriver.m => SPUUIBasedUpdateDriver.m} (91%) create mode 100644 Sparkle/SPUUpdateDriver.h rename Sparkle/{SUUserInitiatedUpdateDriver.h => SPUUserInitiatedUpdateDriver.h} (80%) rename Sparkle/{SUUserInitiatedUpdateDriver.m => SPUUserInitiatedUpdateDriver.m} (81%) delete mode 100644 Sparkle/SUUpdateDriver.h diff --git a/Documentation/Installation.md b/Documentation/Installation.md index 84a5004e..47d2de5c 100644 --- a/Documentation/Installation.md +++ b/Documentation/Installation.md @@ -11,7 +11,7 @@ ## After downloading the update: ### Launching the Installer -SUCoreBasedUpdateDriver invokes SUInstallerDriver's extraction method which invokes SUInstallerLauncher's launch installer method. The launcher can be inside a XPC service or running inside the updater/sparkle framework itself. The launcher XPC bundle includes a copy of the installer and agent application in its bundle so it can compute the path to them itself (instead of relying on the updater to pass the paths), which is for security trust reasons. +SPUCoreBasedUpdateDriver invokes SPUInstallerDriver's extraction method which invokes SUInstallerLauncher's launch installer method. The launcher can be inside a XPC service or running inside the updater/sparkle framework itself. The launcher XPC bundle includes a copy of the installer and agent application in its bundle so it can compute the path to them itself (instead of relying on the updater to pass the paths), which is for security trust reasons. First, the launcher makes sure that if the updater delegate doesn't allow interaction, that installation can be done without interaction. If it can't, then the launcher fails. If the updater driver that invoked the launcher doesn't allow for interaction (in particular, the automatic/silent update driver does not allow interaction), then the launcher fails with a hint to try again with interaction enabled (in particular, with a UI based update driver). If this happens, the updater keeps a reference to the downloaded update and appcast item that is used for resuming with a UI based update driver later. The launcher in this case is telling that authorization can only be done if interaction is allowed from the driver, so the user can enter their password to start up the installer as root to install over a location that requires such privileges. diff --git a/Sparkle.xcodeproj/project.pbxproj b/Sparkle.xcodeproj/project.pbxproj index e0ae32c6..8cf2f4cf 100644 --- a/Sparkle.xcodeproj/project.pbxproj +++ b/Sparkle.xcodeproj/project.pbxproj @@ -125,11 +125,11 @@ 721D8A871D4C5BF10032E472 /* SULog.m in Sources */ = {isa = PBXBuildFile; fileRef = 55C14F05136EF6DB00649790 /* SULog.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 */; }; - 7229E1BA1C97CC4D00CB50D0 /* SUScheduledUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 7229E1B81C97CC4D00CB50D0 /* SUScheduledUpdateDriver.m */; }; - 7229E1BD1C98EFF200CB50D0 /* SUDownloadDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 7229E1BB1C98EFF200CB50D0 /* SUDownloadDriver.h */; }; - 7229E1BE1C98EFF200CB50D0 /* SUDownloadDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 7229E1BC1C98EFF200CB50D0 /* SUDownloadDriver.m */; }; + 7229E1B61C97C91100CB50D0 /* SPUUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 7229E1B51C97C91100CB50D0 /* SPUUpdateDriver.h */; }; + 7229E1B91C97CC4D00CB50D0 /* SPUScheduledUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 7229E1B71C97CC4D00CB50D0 /* SPUScheduledUpdateDriver.h */; }; + 7229E1BA1C97CC4D00CB50D0 /* SPUScheduledUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 7229E1B81C97CC4D00CB50D0 /* SPUScheduledUpdateDriver.m */; }; + 7229E1BD1C98EFF200CB50D0 /* SPUDownloadDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 7229E1BB1C98EFF200CB50D0 /* SPUDownloadDriver.h */; }; + 7229E1BE1C98EFF200CB50D0 /* SPUDownloadDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 7229E1BC1C98EFF200CB50D0 /* SPUDownloadDriver.m */; }; 723B252A1CEA7F3B00909873 /* bscommon.c in Sources */ = {isa = PBXBuildFile; fileRef = 72B09CE91CEA18900052EF9E /* bscommon.c */; }; 723B5DA71CF7AB0100365F95 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 723B5DA01CF7AB0100365F95 /* main.m */; }; 723B5DA91CF7AB0100365F95 /* SPUDownloader.m in Sources */ = {isa = PBXBuildFile; fileRef = 723B5DA31CF7AB0100365F95 /* SPUDownloader.m */; }; @@ -235,10 +235,10 @@ 7267E5F81D3D91A800D1BF90 /* SUPipedUnarchiver.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5831D3D89B300D1BF90 /* SUPipedUnarchiver.m */; }; 7267E5F91D3D92DA00D1BF90 /* Autoupdate in CopyFiles */ = {isa = PBXBuildFile; fileRef = 72B398D21D3D879300EE297F /* Autoupdate */; }; 7267E5FA1D3DAC3600D1BF90 /* StatusInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5A41D3D8A8A00D1BF90 /* StatusInfo.m */; }; - 7267E5FD1D3DD1B700D1BF90 /* SUDownloadedUpdate.h in Headers */ = {isa = PBXBuildFile; fileRef = 7267E5FB1D3DD1B700D1BF90 /* SUDownloadedUpdate.h */; }; - 7267E5FE1D3DD1B700D1BF90 /* SUDownloadedUpdate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5FC1D3DD1B700D1BF90 /* SUDownloadedUpdate.m */; }; - 7267E5FF1D3DD1B700D1BF90 /* SUDownloadedUpdate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5FC1D3DD1B700D1BF90 /* SUDownloadedUpdate.m */; }; - 7267E6001D3DD1B700D1BF90 /* SUDownloadedUpdate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5FC1D3DD1B700D1BF90 /* SUDownloadedUpdate.m */; }; + 7267E5FD1D3DD1B700D1BF90 /* SPUDownloadedUpdate.h in Headers */ = {isa = PBXBuildFile; fileRef = 7267E5FB1D3DD1B700D1BF90 /* SPUDownloadedUpdate.h */; }; + 7267E5FE1D3DD1B700D1BF90 /* SPUDownloadedUpdate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5FC1D3DD1B700D1BF90 /* SPUDownloadedUpdate.m */; }; + 7267E5FF1D3DD1B700D1BF90 /* SPUDownloadedUpdate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5FC1D3DD1B700D1BF90 /* SPUDownloadedUpdate.m */; }; + 7267E6001D3DD1B700D1BF90 /* SPUDownloadedUpdate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5FC1D3DD1B700D1BF90 /* SPUDownloadedUpdate.m */; }; 726DF88E1C84277600188804 /* SPUStatusCompletionResults.h in Headers */ = {isa = PBXBuildFile; fileRef = 726DF88D1C84277500188804 /* SPUStatusCompletionResults.h */; settings = {ATTRIBUTES = (Public, ); }; }; 726E075C1CA3A6D6001A286B /* SPUSecureCoding.h in Headers */ = {isa = PBXBuildFile; fileRef = 726E075A1CA3A6D6001A286B /* SPUSecureCoding.h */; }; 726E075D1CA3A6D6001A286B /* SPUSecureCoding.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E075B1CA3A6D6001A286B /* SPUSecureCoding.m */; }; @@ -259,8 +259,8 @@ 726F2CE81BC9C48F001971A4 /* SUConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A5F09CA6EB100B7442F /* SUConstants.m */; }; 726F2CE91BC9C499001971A4 /* SUOperatingSystem.m in Sources */ = {isa = PBXBuildFile; fileRef = 726F2CE41BC9C33D001971A4 /* SUOperatingSystem.m */; }; 726F2CEB1BC9C733001971A4 /* SUConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A5F09CA6EB100B7442F /* SUConstants.m */; }; - 728337A61C9E6FF40085AA99 /* SUProbeInstallStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 728337A41C9E6FF40085AA99 /* SUProbeInstallStatus.h */; }; - 728337A71C9E6FF40085AA99 /* SUProbeInstallStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 728337A51C9E6FF40085AA99 /* SUProbeInstallStatus.m */; }; + 728337A61C9E6FF40085AA99 /* SPUProbeInstallStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 728337A41C9E6FF40085AA99 /* SPUProbeInstallStatus.h */; }; + 728337A71C9E6FF40085AA99 /* SPUProbeInstallStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 728337A51C9E6FF40085AA99 /* SPUProbeInstallStatus.m */; }; 728638ED1CAF50CE00783084 /* SUConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A5F09CA6EB100B7442F /* SUConstants.m */; }; 7293A1AE1CEE933800B957A7 /* SPUURLRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 7293A1AC1CEE933800B957A7 /* SPUURLRequest.h */; }; 7293A1AF1CEE933800B957A7 /* SPUURLRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 7293A1AD1CEE933800B957A7 /* SPUURLRequest.m */; }; @@ -295,18 +295,18 @@ 72A5D5C31D6929F80009E5AC /* SPULocalCacheDirectory.m in Sources */ = {isa = PBXBuildFile; fileRef = 721BC20D1D1CDE55002BC71E /* SPULocalCacheDirectory.m */; }; 72A5D5C51D6929F80009E5AC /* SULog.m in Sources */ = {isa = PBXBuildFile; fileRef = 55C14F05136EF6DB00649790 /* SULog.m */; }; 72A5D5C61D6929F80009E5AC /* SUOperatingSystem.m in Sources */ = {isa = PBXBuildFile; fileRef = 726F2CE41BC9C33D001971A4 /* SUOperatingSystem.m */; }; - 72A5D5C81D6929F80009E5AC /* SUUserInitiatedUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767DD1C9CDB9700A07552 /* SUUserInitiatedUpdateDriver.m */; }; - 72A5D5C91D6929F80009E5AC /* SUScheduledUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 7229E1B81C97CC4D00CB50D0 /* SUScheduledUpdateDriver.m */; }; - 72A5D5CA1D6929F80009E5AC /* SUProbingUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767D11C9C7B9300A07552 /* SUProbingUpdateDriver.m */; }; - 72A5D5CB1D6929F80009E5AC /* SUAutomaticUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767E51C9CFD7200A07552 /* SUAutomaticUpdateDriver.m */; }; - 72A5D5CC1D6929F80009E5AC /* SUUIBasedUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767D91C9CD2E400A07552 /* SUUIBasedUpdateDriver.m */; }; - 72A5D5CD1D6929F80009E5AC /* SUCoreBasedUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767E11C9CE90A00A07552 /* SUCoreBasedUpdateDriver.m */; }; - 72A5D5CE1D6929F80009E5AC /* SUBasicUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767D51C9C8B5C00A07552 /* SUBasicUpdateDriver.m */; }; - 72A5D5CF1D6929F80009E5AC /* SUInstallerDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767CD1C9B924900A07552 /* SUInstallerDriver.m */; }; - 72A5D5D01D6929F80009E5AC /* SUDownloadDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 7229E1BC1C98EFF200CB50D0 /* SUDownloadDriver.m */; }; + 72A5D5C81D6929F80009E5AC /* SPUUserInitiatedUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767DD1C9CDB9700A07552 /* SPUUserInitiatedUpdateDriver.m */; }; + 72A5D5C91D6929F80009E5AC /* SPUScheduledUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 7229E1B81C97CC4D00CB50D0 /* SPUScheduledUpdateDriver.m */; }; + 72A5D5CA1D6929F80009E5AC /* SPUProbingUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767D11C9C7B9300A07552 /* SPUProbingUpdateDriver.m */; }; + 72A5D5CB1D6929F80009E5AC /* SPUAutomaticUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767E51C9CFD7200A07552 /* SPUAutomaticUpdateDriver.m */; }; + 72A5D5CC1D6929F80009E5AC /* SPUUIBasedUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767D91C9CD2E400A07552 /* SPUUIBasedUpdateDriver.m */; }; + 72A5D5CD1D6929F80009E5AC /* SPUCoreBasedUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767E11C9CE90A00A07552 /* SPUCoreBasedUpdateDriver.m */; }; + 72A5D5CE1D6929F80009E5AC /* SPUBasicUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767D51C9C8B5C00A07552 /* SPUBasicUpdateDriver.m */; }; + 72A5D5CF1D6929F80009E5AC /* SPUInstallerDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767CD1C9B924900A07552 /* SPUInstallerDriver.m */; }; + 72A5D5D01D6929F80009E5AC /* SPUDownloadDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 7229E1BC1C98EFF200CB50D0 /* SPUDownloadDriver.m */; }; 72A5D5D11D6929F80009E5AC /* SUAppcastDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767C91C9B707000A07552 /* SUAppcastDriver.m */; }; - 72A5D5D21D6929F80009E5AC /* SUProbeInstallStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 728337A51C9E6FF40085AA99 /* SUProbeInstallStatus.m */; }; - 72A5D5D31D6929F80009E5AC /* SUDownloadedUpdate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5FC1D3DD1B700D1BF90 /* SUDownloadedUpdate.m */; }; + 72A5D5D21D6929F80009E5AC /* SPUProbeInstallStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 728337A51C9E6FF40085AA99 /* SPUProbeInstallStatus.m */; }; + 72A5D5D31D6929F80009E5AC /* SPUDownloadedUpdate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5FC1D3DD1B700D1BF90 /* SPUDownloadedUpdate.m */; }; 72A5D5D41D6929F80009E5AC /* SPUUpdater.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B5F8E409C4CE3C00B25A18 /* SPUUpdater.m */; }; 72A5D5D51D6929F80009E5AC /* SPUUpdaterSettings.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E078C1CA891E9001A286B /* SPUUpdaterSettings.m */; }; 72A5D5D61D6929F80009E5AC /* SPUUpdatePermissionRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 72DBA37C1D60CC34002594A8 /* SPUUpdatePermissionRequest.m */; }; @@ -348,20 +348,20 @@ 72B4BF091D69805900F5B92D /* Sparkle.strings in Resources */ = {isa = PBXBuildFile; fileRef = 61AAE8220A321A7F00D8810D /* Sparkle.strings */; }; 72B767CA1C9B707000A07552 /* SUAppcastDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 72B767C81C9B707000A07552 /* SUAppcastDriver.h */; }; 72B767CB1C9B707000A07552 /* SUAppcastDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767C91C9B707000A07552 /* SUAppcastDriver.m */; }; - 72B767CE1C9B924900A07552 /* SUInstallerDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 72B767CC1C9B924900A07552 /* SUInstallerDriver.h */; }; - 72B767CF1C9B924900A07552 /* SUInstallerDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767CD1C9B924900A07552 /* SUInstallerDriver.m */; }; - 72B767D21C9C7B9300A07552 /* SUProbingUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 72B767D01C9C7B9300A07552 /* SUProbingUpdateDriver.h */; }; - 72B767D31C9C7B9300A07552 /* SUProbingUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767D11C9C7B9300A07552 /* SUProbingUpdateDriver.m */; }; - 72B767D61C9C8B5C00A07552 /* SUBasicUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 72B767D41C9C8B5C00A07552 /* SUBasicUpdateDriver.h */; }; - 72B767D71C9C8B5C00A07552 /* SUBasicUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767D51C9C8B5C00A07552 /* SUBasicUpdateDriver.m */; }; - 72B767DA1C9CD2E400A07552 /* SUUIBasedUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 72B767D81C9CD2E400A07552 /* SUUIBasedUpdateDriver.h */; }; - 72B767DB1C9CD2E400A07552 /* SUUIBasedUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767D91C9CD2E400A07552 /* SUUIBasedUpdateDriver.m */; }; - 72B767DE1C9CDB9700A07552 /* SUUserInitiatedUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 72B767DC1C9CDB9700A07552 /* SUUserInitiatedUpdateDriver.h */; }; - 72B767DF1C9CDB9700A07552 /* SUUserInitiatedUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767DD1C9CDB9700A07552 /* SUUserInitiatedUpdateDriver.m */; }; - 72B767E21C9CE90A00A07552 /* SUCoreBasedUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 72B767E01C9CE90A00A07552 /* SUCoreBasedUpdateDriver.h */; }; - 72B767E31C9CE90A00A07552 /* SUCoreBasedUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767E11C9CE90A00A07552 /* SUCoreBasedUpdateDriver.m */; }; - 72B767E61C9CFD7200A07552 /* SUAutomaticUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 72B767E41C9CFD7200A07552 /* SUAutomaticUpdateDriver.h */; }; - 72B767E71C9CFD7200A07552 /* SUAutomaticUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767E51C9CFD7200A07552 /* SUAutomaticUpdateDriver.m */; }; + 72B767CE1C9B924900A07552 /* SPUInstallerDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 72B767CC1C9B924900A07552 /* SPUInstallerDriver.h */; }; + 72B767CF1C9B924900A07552 /* SPUInstallerDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767CD1C9B924900A07552 /* SPUInstallerDriver.m */; }; + 72B767D21C9C7B9300A07552 /* SPUProbingUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 72B767D01C9C7B9300A07552 /* SPUProbingUpdateDriver.h */; }; + 72B767D31C9C7B9300A07552 /* SPUProbingUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767D11C9C7B9300A07552 /* SPUProbingUpdateDriver.m */; }; + 72B767D61C9C8B5C00A07552 /* SPUBasicUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 72B767D41C9C8B5C00A07552 /* SPUBasicUpdateDriver.h */; }; + 72B767D71C9C8B5C00A07552 /* SPUBasicUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767D51C9C8B5C00A07552 /* SPUBasicUpdateDriver.m */; }; + 72B767DA1C9CD2E400A07552 /* SPUUIBasedUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 72B767D81C9CD2E400A07552 /* SPUUIBasedUpdateDriver.h */; }; + 72B767DB1C9CD2E400A07552 /* SPUUIBasedUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767D91C9CD2E400A07552 /* SPUUIBasedUpdateDriver.m */; }; + 72B767DE1C9CDB9700A07552 /* SPUUserInitiatedUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 72B767DC1C9CDB9700A07552 /* SPUUserInitiatedUpdateDriver.h */; }; + 72B767DF1C9CDB9700A07552 /* SPUUserInitiatedUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767DD1C9CDB9700A07552 /* SPUUserInitiatedUpdateDriver.m */; }; + 72B767E21C9CE90A00A07552 /* SPUCoreBasedUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 72B767E01C9CE90A00A07552 /* SPUCoreBasedUpdateDriver.h */; }; + 72B767E31C9CE90A00A07552 /* SPUCoreBasedUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767E11C9CE90A00A07552 /* SPUCoreBasedUpdateDriver.m */; }; + 72B767E61C9CFD7200A07552 /* SPUAutomaticUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 72B767E41C9CFD7200A07552 /* SPUAutomaticUpdateDriver.h */; }; + 72B767E71C9CFD7200A07552 /* SPUAutomaticUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B767E51C9CFD7200A07552 /* SPUAutomaticUpdateDriver.m */; }; 72BEBFEF1D7287570019146B /* SUSpotlightImporterTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 72BEBFEE1D7287560019146B /* SUSpotlightImporterTest.swift */; }; 72D954811CBACC35006F28BD /* InstallerProgressAppController.m in Sources */ = {isa = PBXBuildFile; fileRef = 72D954801CBACC35006F28BD /* InstallerProgressAppController.m */; }; 72D954831CBAD34F006F28BD /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 72D954821CBAD34F006F28BD /* main.m */; }; @@ -906,11 +906,11 @@ 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 = ""; }; - 7229E1B51C97C91100CB50D0 /* SUUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUpdateDriver.h; sourceTree = ""; }; - 7229E1B71C97CC4D00CB50D0 /* SUScheduledUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUScheduledUpdateDriver.h; sourceTree = ""; }; - 7229E1B81C97CC4D00CB50D0 /* SUScheduledUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUScheduledUpdateDriver.m; sourceTree = ""; }; - 7229E1BB1C98EFF200CB50D0 /* SUDownloadDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUDownloadDriver.h; sourceTree = ""; }; - 7229E1BC1C98EFF200CB50D0 /* SUDownloadDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUDownloadDriver.m; sourceTree = ""; }; + 7229E1B51C97C91100CB50D0 /* SPUUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUUpdateDriver.h; sourceTree = ""; }; + 7229E1B71C97CC4D00CB50D0 /* SPUScheduledUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUScheduledUpdateDriver.h; sourceTree = ""; }; + 7229E1B81C97CC4D00CB50D0 /* SPUScheduledUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUScheduledUpdateDriver.m; sourceTree = ""; }; + 7229E1BB1C98EFF200CB50D0 /* SPUDownloadDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUDownloadDriver.h; sourceTree = ""; }; + 7229E1BC1C98EFF200CB50D0 /* SPUDownloadDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUDownloadDriver.m; sourceTree = ""; }; 723B5D9F1CF7AB0100365F95 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = Downloader/Info.plist; sourceTree = SOURCE_ROOT; }; 723B5DA01CF7AB0100365F95 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = Downloader/main.m; sourceTree = SOURCE_ROOT; }; 723B5DA21CF7AB0100365F95 /* SPUDownloader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SPUDownloader.h; path = Downloader/SPUDownloader.h; sourceTree = SOURCE_ROOT; }; @@ -1006,8 +1006,8 @@ 7267E5DD1D3D8F5A00D1BF90 /* SUStatusInfoProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SUStatusInfoProtocol.h; path = Autoupdate/SUStatusInfoProtocol.h; sourceTree = SOURCE_ROOT; }; 7267E5E31D3D90AA00D1BF90 /* SUFileManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUFileManager.h; sourceTree = ""; }; 7267E5E41D3D90AA00D1BF90 /* SUFileManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUFileManager.m; sourceTree = ""; }; - 7267E5FB1D3DD1B700D1BF90 /* SUDownloadedUpdate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUDownloadedUpdate.h; sourceTree = ""; }; - 7267E5FC1D3DD1B700D1BF90 /* SUDownloadedUpdate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUDownloadedUpdate.m; sourceTree = ""; }; + 7267E5FB1D3DD1B700D1BF90 /* SPUDownloadedUpdate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUDownloadedUpdate.h; sourceTree = ""; }; + 7267E5FC1D3DD1B700D1BF90 /* SPUDownloadedUpdate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUDownloadedUpdate.m; sourceTree = ""; }; 726B2B5D1C645FC900388755 /* UI Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "UI Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 726DF88D1C84277500188804 /* SPUStatusCompletionResults.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUStatusCompletionResults.h; sourceTree = ""; }; 726E075A1CA3A6D6001A286B /* SPUSecureCoding.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SPUSecureCoding.h; path = Sparkle/SPUSecureCoding.h; sourceTree = SOURCE_ROOT; }; @@ -1035,8 +1035,8 @@ 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 = ""; }; - 728337A51C9E6FF40085AA99 /* SUProbeInstallStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUProbeInstallStatus.m; sourceTree = ""; }; + 728337A41C9E6FF40085AA99 /* SPUProbeInstallStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUProbeInstallStatus.h; sourceTree = ""; }; + 728337A51C9E6FF40085AA99 /* SPUProbeInstallStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUProbeInstallStatus.m; sourceTree = ""; }; 728638EE1CAF589C00783084 /* ConfigDownloader.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigDownloader.xcconfig; 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 = ""; }; @@ -1064,20 +1064,20 @@ 72B398D21D3D879300EE297F /* Autoupdate */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = Autoupdate; sourceTree = BUILT_PRODUCTS_DIR; }; 72B767C81C9B707000A07552 /* SUAppcastDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUAppcastDriver.h; sourceTree = ""; }; 72B767C91C9B707000A07552 /* SUAppcastDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUAppcastDriver.m; sourceTree = ""; }; - 72B767CC1C9B924900A07552 /* SUInstallerDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUInstallerDriver.h; sourceTree = ""; }; - 72B767CD1C9B924900A07552 /* SUInstallerDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUInstallerDriver.m; sourceTree = ""; }; - 72B767D01C9C7B9300A07552 /* SUProbingUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUProbingUpdateDriver.h; sourceTree = ""; }; - 72B767D11C9C7B9300A07552 /* SUProbingUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUProbingUpdateDriver.m; sourceTree = ""; }; - 72B767D41C9C8B5C00A07552 /* SUBasicUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUBasicUpdateDriver.h; sourceTree = ""; }; - 72B767D51C9C8B5C00A07552 /* SUBasicUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUBasicUpdateDriver.m; sourceTree = ""; }; - 72B767D81C9CD2E400A07552 /* SUUIBasedUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUIBasedUpdateDriver.h; sourceTree = ""; }; - 72B767D91C9CD2E400A07552 /* SUUIBasedUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUIBasedUpdateDriver.m; sourceTree = ""; }; - 72B767DC1C9CDB9700A07552 /* SUUserInitiatedUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUserInitiatedUpdateDriver.h; sourceTree = ""; }; - 72B767DD1C9CDB9700A07552 /* SUUserInitiatedUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUserInitiatedUpdateDriver.m; sourceTree = ""; }; - 72B767E01C9CE90A00A07552 /* SUCoreBasedUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUCoreBasedUpdateDriver.h; sourceTree = ""; }; - 72B767E11C9CE90A00A07552 /* SUCoreBasedUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUCoreBasedUpdateDriver.m; sourceTree = ""; }; - 72B767E41C9CFD7200A07552 /* SUAutomaticUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUAutomaticUpdateDriver.h; sourceTree = ""; }; - 72B767E51C9CFD7200A07552 /* SUAutomaticUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUAutomaticUpdateDriver.m; sourceTree = ""; }; + 72B767CC1C9B924900A07552 /* SPUInstallerDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUInstallerDriver.h; sourceTree = ""; }; + 72B767CD1C9B924900A07552 /* SPUInstallerDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUInstallerDriver.m; sourceTree = ""; }; + 72B767D01C9C7B9300A07552 /* SPUProbingUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUProbingUpdateDriver.h; sourceTree = ""; }; + 72B767D11C9C7B9300A07552 /* SPUProbingUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUProbingUpdateDriver.m; sourceTree = ""; }; + 72B767D41C9C8B5C00A07552 /* SPUBasicUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUBasicUpdateDriver.h; sourceTree = ""; }; + 72B767D51C9C8B5C00A07552 /* SPUBasicUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUBasicUpdateDriver.m; sourceTree = ""; }; + 72B767D81C9CD2E400A07552 /* SPUUIBasedUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUUIBasedUpdateDriver.h; sourceTree = ""; }; + 72B767D91C9CD2E400A07552 /* SPUUIBasedUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUUIBasedUpdateDriver.m; sourceTree = ""; }; + 72B767DC1C9CDB9700A07552 /* SPUUserInitiatedUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUUserInitiatedUpdateDriver.h; sourceTree = ""; }; + 72B767DD1C9CDB9700A07552 /* SPUUserInitiatedUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUUserInitiatedUpdateDriver.m; sourceTree = ""; }; + 72B767E01C9CE90A00A07552 /* SPUCoreBasedUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUCoreBasedUpdateDriver.h; sourceTree = ""; }; + 72B767E11C9CE90A00A07552 /* SPUCoreBasedUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUCoreBasedUpdateDriver.m; sourceTree = ""; }; + 72B767E41C9CFD7200A07552 /* SPUAutomaticUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUAutomaticUpdateDriver.h; sourceTree = ""; }; + 72B767E51C9CFD7200A07552 /* SPUAutomaticUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUAutomaticUpdateDriver.m; sourceTree = ""; }; 72BEBFEE1D7287560019146B /* SUSpotlightImporterTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SUSpotlightImporterTest.swift; sourceTree = ""; }; 72D9547F1CBACC35006F28BD /* InstallerProgressAppController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = InstallerProgressAppController.h; path = Sparkle/InstallerProgress/InstallerProgressAppController.h; sourceTree = SOURCE_ROOT; }; 72D954801CBACC35006F28BD /* InstallerProgressAppController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = InstallerProgressAppController.m; path = Sparkle/InstallerProgress/InstallerProgressAppController.m; sourceTree = SOURCE_ROOT; }; @@ -1644,22 +1644,22 @@ isa = PBXGroup; children = ( 72B767E81C9D114F00A07552 /* Update Drivers */, - 72B767D81C9CD2E400A07552 /* SUUIBasedUpdateDriver.h */, - 72B767D91C9CD2E400A07552 /* SUUIBasedUpdateDriver.m */, - 72B767E01C9CE90A00A07552 /* SUCoreBasedUpdateDriver.h */, - 72B767E11C9CE90A00A07552 /* SUCoreBasedUpdateDriver.m */, - 72B767D41C9C8B5C00A07552 /* SUBasicUpdateDriver.h */, - 72B767D51C9C8B5C00A07552 /* SUBasicUpdateDriver.m */, - 72B767CC1C9B924900A07552 /* SUInstallerDriver.h */, - 72B767CD1C9B924900A07552 /* SUInstallerDriver.m */, - 7229E1BB1C98EFF200CB50D0 /* SUDownloadDriver.h */, - 7229E1BC1C98EFF200CB50D0 /* SUDownloadDriver.m */, + 72B767D81C9CD2E400A07552 /* SPUUIBasedUpdateDriver.h */, + 72B767D91C9CD2E400A07552 /* SPUUIBasedUpdateDriver.m */, + 72B767E01C9CE90A00A07552 /* SPUCoreBasedUpdateDriver.h */, + 72B767E11C9CE90A00A07552 /* SPUCoreBasedUpdateDriver.m */, + 72B767D41C9C8B5C00A07552 /* SPUBasicUpdateDriver.h */, + 72B767D51C9C8B5C00A07552 /* SPUBasicUpdateDriver.m */, + 72B767CC1C9B924900A07552 /* SPUInstallerDriver.h */, + 72B767CD1C9B924900A07552 /* SPUInstallerDriver.m */, + 7229E1BB1C98EFF200CB50D0 /* SPUDownloadDriver.h */, + 7229E1BC1C98EFF200CB50D0 /* SPUDownloadDriver.m */, 72B767C81C9B707000A07552 /* SUAppcastDriver.h */, 72B767C91C9B707000A07552 /* SUAppcastDriver.m */, - 728337A41C9E6FF40085AA99 /* SUProbeInstallStatus.h */, - 728337A51C9E6FF40085AA99 /* SUProbeInstallStatus.m */, - 7267E5FB1D3DD1B700D1BF90 /* SUDownloadedUpdate.h */, - 7267E5FC1D3DD1B700D1BF90 /* SUDownloadedUpdate.m */, + 728337A41C9E6FF40085AA99 /* SPUProbeInstallStatus.h */, + 728337A51C9E6FF40085AA99 /* SPUProbeInstallStatus.m */, + 7267E5FB1D3DD1B700D1BF90 /* SPUDownloadedUpdate.h */, + 7267E5FC1D3DD1B700D1BF90 /* SPUDownloadedUpdate.m */, ); name = Drivers; sourceTree = ""; @@ -1831,15 +1831,15 @@ 72B767E81C9D114F00A07552 /* Update Drivers */ = { isa = PBXGroup; children = ( - 7229E1B51C97C91100CB50D0 /* SUUpdateDriver.h */, - 72B767DC1C9CDB9700A07552 /* SUUserInitiatedUpdateDriver.h */, - 72B767DD1C9CDB9700A07552 /* SUUserInitiatedUpdateDriver.m */, - 7229E1B71C97CC4D00CB50D0 /* SUScheduledUpdateDriver.h */, - 7229E1B81C97CC4D00CB50D0 /* SUScheduledUpdateDriver.m */, - 72B767D01C9C7B9300A07552 /* SUProbingUpdateDriver.h */, - 72B767D11C9C7B9300A07552 /* SUProbingUpdateDriver.m */, - 72B767E41C9CFD7200A07552 /* SUAutomaticUpdateDriver.h */, - 72B767E51C9CFD7200A07552 /* SUAutomaticUpdateDriver.m */, + 7229E1B51C97C91100CB50D0 /* SPUUpdateDriver.h */, + 72B767DC1C9CDB9700A07552 /* SPUUserInitiatedUpdateDriver.h */, + 72B767DD1C9CDB9700A07552 /* SPUUserInitiatedUpdateDriver.m */, + 7229E1B71C97CC4D00CB50D0 /* SPUScheduledUpdateDriver.h */, + 7229E1B81C97CC4D00CB50D0 /* SPUScheduledUpdateDriver.m */, + 72B767D01C9C7B9300A07552 /* SPUProbingUpdateDriver.h */, + 72B767D11C9C7B9300A07552 /* SPUProbingUpdateDriver.m */, + 72B767E41C9CFD7200A07552 /* SPUAutomaticUpdateDriver.h */, + 72B767E51C9CFD7200A07552 /* SPUAutomaticUpdateDriver.m */, ); name = "Update Drivers"; sourceTree = ""; @@ -1961,14 +1961,14 @@ 726E4A371C89116000C57C6A /* SPUStandardUserDriverDelegate.h in Headers */, 725F97A81C8B42D700265BE4 /* SPUStandardUserDriverProtocol.h in Headers */, 721BC20E1D1CDE55002BC71E /* SPULocalCacheDirectory.h in Headers */, - 72B767DA1C9CD2E400A07552 /* SUUIBasedUpdateDriver.h in Headers */, + 72B767DA1C9CD2E400A07552 /* SPUUIBasedUpdateDriver.h in Headers */, 725CB95A1C7121830064365A /* SPUStandardUserDriver.h in Headers */, 725CB9571C7120410064365A /* SPUUserDriver.h in Headers */, 72162B061C82C8B30013C1C5 /* SUParameterAssert.h in Headers */, 726DF88E1C84277600188804 /* SPUStatusCompletionResults.h in Headers */, 72A450531C69A68900D67EEA /* SPUUpdatePermissionResponse.h in Headers */, 7267E5B61D3D8AEE00D1BF90 /* SPUInstallationInfo.h in Headers */, - 7229E1B61C97C91100CB50D0 /* SUUpdateDriver.h in Headers */, + 7229E1B61C97C91100CB50D0 /* SPUUpdateDriver.h in Headers */, 61299B3609CB04E000B7442F /* Sparkle.h in Headers */, 72F94F581CC44DE1002DEE68 /* SPUXPCServiceInfo.h in Headers */, 72162B081C82C9600013C1C5 /* SULocalizations.h in Headers */, @@ -1978,31 +1978,31 @@ 724BB3A81D33461B005D534A /* SUXPCInstallerStatus.h in Headers */, 7246E0A31C83B685003B4E75 /* SPUStandardUpdaterController.h in Headers */, 61B5FC7009C51F4A00B25A18 /* SUAppcastItem.h in Headers */, - 72B767D61C9C8B5C00A07552 /* SUBasicUpdateDriver.h in Headers */, + 72B767D61C9C8B5C00A07552 /* SPUBasicUpdateDriver.h in Headers */, 61EF67590E25C5B400F754E0 /* SUHost.h in Headers */, 61299A5C09CA6D4500B7442F /* SUConstants.h in Headers */, 55E6F33319EC9F6C00005E76 /* SUErrors.h in Headers */, 14652F8419A978C200959E44 /* SUExport.h in Headers */, - 7267E5FD1D3DD1B700D1BF90 /* SUDownloadedUpdate.h in Headers */, + 7267E5FD1D3DD1B700D1BF90 /* SPUDownloadedUpdate.h in Headers */, 55C14F06136EF6DB00649790 /* SULog.h in Headers */, 726F2CE51BC9C33D001971A4 /* SUOperatingSystem.h in Headers */, - 72B767E61C9CFD7200A07552 /* SUAutomaticUpdateDriver.h in Headers */, - 728337A61C9E6FF40085AA99 /* SUProbeInstallStatus.h in Headers */, + 72B767E61C9CFD7200A07552 /* SPUAutomaticUpdateDriver.h in Headers */, + 728337A61C9E6FF40085AA99 /* SPUProbeInstallStatus.h in Headers */, 72B767CA1C9B707000A07552 /* SUAppcastDriver.h in Headers */, 726E075C1CA3A6D6001A286B /* SPUSecureCoding.h in Headers */, 72F9EC3F1D5E823F004AC8B6 /* SPUUpdaterTimer.h in Headers */, - 72B767E21C9CE90A00A07552 /* SUCoreBasedUpdateDriver.h in Headers */, + 72B767E21C9CE90A00A07552 /* SPUCoreBasedUpdateDriver.h in Headers */, 72B09CE71CE6BCBD0052EF9E /* SPUURLDownload.h in Headers */, 61A225A40D1C4AC000430CCD /* SUStandardVersionComparator.h in Headers */, - 7229E1B91C97CC4D00CB50D0 /* SUScheduledUpdateDriver.h in Headers */, + 7229E1B91C97CC4D00CB50D0 /* SPUScheduledUpdateDriver.h in Headers */, 7214B8811D456A8500CB5CED /* SPUBundleIcon.h in Headers */, 7293A1AE1CEE933800B957A7 /* SPUURLRequest.h in Headers */, 6196CFF909C72148000DC222 /* SUStatusController.h in Headers */, - 72B767DE1C9CDB9700A07552 /* SUUserInitiatedUpdateDriver.h in Headers */, + 72B767DE1C9CDB9700A07552 /* SPUUserInitiatedUpdateDriver.h in Headers */, 61A2279C0D1CEE7600430CCD /* SUSystemProfiler.h in Headers */, - 72B767D21C9C7B9300A07552 /* SUProbingUpdateDriver.h in Headers */, - 7229E1BD1C98EFF200CB50D0 /* SUDownloadDriver.h in Headers */, - 72B767CE1C9B924900A07552 /* SUInstallerDriver.h in Headers */, + 72B767D21C9C7B9300A07552 /* SPUProbingUpdateDriver.h in Headers */, + 7229E1BD1C98EFF200CB50D0 /* SPUDownloadDriver.h in Headers */, + 72B767CE1C9B924900A07552 /* SPUInstallerDriver.h in Headers */, 724BB3871D32A167005D534A /* SUXPCInstallerConnection.h in Headers */, 61B5FCDF09C52A9F00B25A18 /* SUUpdateAlert.h in Headers */, 7267E5B11D3D8AD500D1BF90 /* SPUMessageTypes.h in Headers */, @@ -2762,7 +2762,7 @@ 7267E5781D3D895B00D1BF90 /* SUBinaryDeltaCommon.m in Sources */, 5D06E8E90FD68CDB005AE3F6 /* bsdiff.c in Sources */, 14652F7E19A9728A00959E44 /* bspatch.c in Sources */, - 7267E6001D3DD1B700D1BF90 /* SUDownloadedUpdate.m in Sources */, + 7267E6001D3DD1B700D1BF90 /* SPUDownloadedUpdate.m in Sources */, 7223E7631AD1AEFF008E3161 /* sais.c in Sources */, 72B09CEC1CEA18900052EF9E /* bscommon.c in Sources */, 7267E5761D3D895B00D1BF90 /* SUBinaryDeltaApply.m in Sources */, @@ -2781,7 +2781,7 @@ 7267E5F81D3D91A800D1BF90 /* SUPipedUnarchiver.m in Sources */, 7267E5F71D3D919600D1BF90 /* SUPlainInstaller.m in Sources */, 7267E5F61D3D919000D1BF90 /* SUDiskImageUnarchiver.m in Sources */, - 7267E5FF1D3DD1B700D1BF90 /* SUDownloadedUpdate.m in Sources */, + 7267E5FF1D3DD1B700D1BF90 /* SPUDownloadedUpdate.m in Sources */, 7267E5F41D3D918B00D1BF90 /* SUGuidedPackageInstaller.m in Sources */, 7267E5F51D3D918B00D1BF90 /* SUPackageInstaller.m in Sources */, 7267E5F31D3D918500D1BF90 /* SUCodeSigningVerifier.m in Sources */, @@ -2947,18 +2947,18 @@ 72A5D5C31D6929F80009E5AC /* SPULocalCacheDirectory.m in Sources */, 72A5D5C51D6929F80009E5AC /* SULog.m in Sources */, 72A5D5C61D6929F80009E5AC /* SUOperatingSystem.m in Sources */, - 72A5D5C81D6929F80009E5AC /* SUUserInitiatedUpdateDriver.m in Sources */, - 72A5D5C91D6929F80009E5AC /* SUScheduledUpdateDriver.m in Sources */, - 72A5D5CA1D6929F80009E5AC /* SUProbingUpdateDriver.m in Sources */, - 72A5D5CB1D6929F80009E5AC /* SUAutomaticUpdateDriver.m in Sources */, - 72A5D5CC1D6929F80009E5AC /* SUUIBasedUpdateDriver.m in Sources */, - 72A5D5CD1D6929F80009E5AC /* SUCoreBasedUpdateDriver.m in Sources */, - 72A5D5CE1D6929F80009E5AC /* SUBasicUpdateDriver.m in Sources */, - 72A5D5CF1D6929F80009E5AC /* SUInstallerDriver.m in Sources */, - 72A5D5D01D6929F80009E5AC /* SUDownloadDriver.m in Sources */, + 72A5D5C81D6929F80009E5AC /* SPUUserInitiatedUpdateDriver.m in Sources */, + 72A5D5C91D6929F80009E5AC /* SPUScheduledUpdateDriver.m in Sources */, + 72A5D5CA1D6929F80009E5AC /* SPUProbingUpdateDriver.m in Sources */, + 72A5D5CB1D6929F80009E5AC /* SPUAutomaticUpdateDriver.m in Sources */, + 72A5D5CC1D6929F80009E5AC /* SPUUIBasedUpdateDriver.m in Sources */, + 72A5D5CD1D6929F80009E5AC /* SPUCoreBasedUpdateDriver.m in Sources */, + 72A5D5CE1D6929F80009E5AC /* SPUBasicUpdateDriver.m in Sources */, + 72A5D5CF1D6929F80009E5AC /* SPUInstallerDriver.m in Sources */, + 72A5D5D01D6929F80009E5AC /* SPUDownloadDriver.m in Sources */, 72A5D5D11D6929F80009E5AC /* SUAppcastDriver.m in Sources */, - 72A5D5D21D6929F80009E5AC /* SUProbeInstallStatus.m in Sources */, - 72A5D5D31D6929F80009E5AC /* SUDownloadedUpdate.m in Sources */, + 72A5D5D21D6929F80009E5AC /* SPUProbeInstallStatus.m in Sources */, + 72A5D5D31D6929F80009E5AC /* SPUDownloadedUpdate.m in Sources */, 72A5D5D41D6929F80009E5AC /* SPUUpdater.m in Sources */, 72A5D5D51D6929F80009E5AC /* SPUUpdaterSettings.m in Sources */, 72A5D5D61D6929F80009E5AC /* SPUUpdatePermissionRequest.m in Sources */, @@ -3034,33 +3034,33 @@ 72F94F5A1CC450DE002DEE68 /* SUInstallerLauncher.m in Sources */, 724BB3A91D33461B005D534A /* SUXPCInstallerStatus.m in Sources */, 72F9EC451D5E9ED8004AC8B6 /* SPUDownloadData.m in Sources */, - 72B767E31C9CE90A00A07552 /* SUCoreBasedUpdateDriver.m in Sources */, - 72B767E71C9CFD7200A07552 /* SUAutomaticUpdateDriver.m in Sources */, + 72B767E31C9CE90A00A07552 /* SPUCoreBasedUpdateDriver.m in Sources */, + 72B767E71C9CFD7200A07552 /* SPUAutomaticUpdateDriver.m in Sources */, 7267E5E61D3D90AA00D1BF90 /* SUFileManager.m in Sources */, 61B5FBB709C4FAFF00B25A18 /* SUAppcast.m in Sources */, 72F94F591CC44DE1002DEE68 /* SPUXPCServiceInfo.m in Sources */, 726E078E1CA891E9001A286B /* SPUUpdaterSettings.m in Sources */, - 7229E1BE1C98EFF200CB50D0 /* SUDownloadDriver.m in Sources */, + 7229E1BE1C98EFF200CB50D0 /* SPUDownloadDriver.m in Sources */, 61B5FC6F09C51F4900B25A18 /* SUAppcastItem.m in Sources */, - 72B767D71C9C8B5C00A07552 /* SUBasicUpdateDriver.m in Sources */, + 72B767D71C9C8B5C00A07552 /* SPUBasicUpdateDriver.m in Sources */, 61299A6009CA6EB100B7442F /* SUConstants.m in Sources */, - 728337A71C9E6FF40085AA99 /* SUProbeInstallStatus.m in Sources */, + 728337A71C9E6FF40085AA99 /* SPUProbeInstallStatus.m in Sources */, 725602D61C83551C00DAA70E /* SPUApplicationInfo.m in Sources */, - 72B767DF1C9CDB9700A07552 /* SUUserInitiatedUpdateDriver.m in Sources */, + 72B767DF1C9CDB9700A07552 /* SPUUserInitiatedUpdateDriver.m in Sources */, 72F9EBE31D517E2F004AC8B6 /* SUUpdater.m in Sources */, - 72B767CF1C9B924900A07552 /* SUInstallerDriver.m in Sources */, + 72B767CF1C9B924900A07552 /* SPUInstallerDriver.m in Sources */, 720E217C1D0D00BF003A311C /* SPUUpdaterCycle.m in Sources */, 72A450541C69A68900D67EEA /* SPUUpdatePermissionResponse.m in Sources */, 724BB3881D32A167005D534A /* SUXPCInstallerConnection.m in Sources */, 72DBA37E1D60CC34002594A8 /* SPUUpdatePermissionRequest.m in Sources */, 7214B8821D456A8500CB5CED /* SPUBundleIcon.m in Sources */, 72F9EC401D5E823F004AC8B6 /* SPUUpdaterTimer.m in Sources */, - 7229E1BA1C97CC4D00CB50D0 /* SUScheduledUpdateDriver.m in Sources */, + 7229E1BA1C97CC4D00CB50D0 /* SPUScheduledUpdateDriver.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 */, + 72B767D31C9C7B9300A07552 /* SPUProbingUpdateDriver.m in Sources */, 7293A1AF1CEE933800B957A7 /* SPUURLRequest.m in Sources */, 61A225A50D1C4AC000430CCD /* SUStandardVersionComparator.m in Sources */, 6196CFFA09C72149000DC222 /* SUStatusController.m in Sources */, @@ -3068,13 +3068,13 @@ 7246E0A41C83B685003B4E75 /* SPUStandardUpdaterController.m in Sources */, 725F977C1C8A896F00265BE4 /* SPUUserDriverCoreComponent.m in Sources */, 61B5FCDE09C52A9F00B25A18 /* SUUpdateAlert.m in Sources */, - 7267E5FE1D3DD1B700D1BF90 /* SUDownloadedUpdate.m in Sources */, + 7267E5FE1D3DD1B700D1BF90 /* SPUDownloadedUpdate.m in Sources */, 612DCBB00D488BC60015DBEA /* SPUUpdatePermissionPrompt.m in Sources */, 61B5F8EE09C4CE3C00B25A18 /* SPUUpdater.m in Sources */, 72B767CB1C9B707000A07552 /* SUAppcastDriver.m in Sources */, 726E075D1CA3A6D6001A286B /* SPUSecureCoding.m in Sources */, 7267E5B21D3D8AD500D1BF90 /* SPUMessageTypes.m in Sources */, - 72B767DB1C9CD2E400A07552 /* SUUIBasedUpdateDriver.m in Sources */, + 72B767DB1C9CD2E400A07552 /* SPUUIBasedUpdateDriver.m in Sources */, 72B09CE81CE6BCBD0052EF9E /* SPUURLDownload.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; diff --git a/Sparkle/SUAutomaticUpdateDriver.h b/Sparkle/SPUAutomaticUpdateDriver.h similarity index 81% rename from Sparkle/SUAutomaticUpdateDriver.h rename to Sparkle/SPUAutomaticUpdateDriver.h index eafae87e..50db2175 100644 --- a/Sparkle/SUAutomaticUpdateDriver.h +++ b/Sparkle/SPUAutomaticUpdateDriver.h @@ -1,5 +1,5 @@ // -// SUAutomaticUpdateDriver.h +// SPUAutomaticUpdateDriver.h // Sparkle // // Created by Mayur Pawashe on 3/18/16. @@ -7,14 +7,14 @@ // #import -#import "SUUpdateDriver.h" +#import "SPUUpdateDriver.h" NS_ASSUME_NONNULL_BEGIN @class SUHost; @protocol SPUUpdaterDelegate, SPUUserDriver; -@interface SUAutomaticUpdateDriver : NSObject +@interface SPUAutomaticUpdateDriver : NSObject - (instancetype)initWithHost:(SUHost *)host applicationBundle:(NSBundle *)applicationBundle sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater userDriver:(id )userDriver updaterDelegate:(nullable id )updaterDelegate; diff --git a/Sparkle/SUAutomaticUpdateDriver.m b/Sparkle/SPUAutomaticUpdateDriver.m similarity index 80% rename from Sparkle/SUAutomaticUpdateDriver.m rename to Sparkle/SPUAutomaticUpdateDriver.m index b4cea378..a0c04ab4 100644 --- a/Sparkle/SUAutomaticUpdateDriver.m +++ b/Sparkle/SPUAutomaticUpdateDriver.m @@ -1,16 +1,16 @@ // -// SUAutomaticUpdateDriver.m +// SPUAutomaticUpdateDriver.m // Sparkle // // Created by Mayur Pawashe on 3/18/16. // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUAutomaticUpdateDriver.h" -#import "SUUpdateDriver.h" +#import "SPUAutomaticUpdateDriver.h" +#import "SPUUpdateDriver.h" #import "SUHost.h" #import "SPUUpdaterDelegate.h" -#import "SUCoreBasedUpdateDriver.h" +#import "SPUCoreBasedUpdateDriver.h" #import "SULog.h" #import "SUAppcastItem.h" #import "SPUUserDriver.h" @@ -20,18 +20,18 @@ #error This is a "core" class and should NOT import AppKit #endif -@interface SUAutomaticUpdateDriver () +@interface SPUAutomaticUpdateDriver () @property (nonatomic, readonly, weak) id updater; @property (nonatomic, readonly, weak) id userDriver; @property (nonatomic, readonly, weak, nullable) id updaterDelegate; -@property (nonatomic, readonly) SUCoreBasedUpdateDriver *coreDriver; +@property (nonatomic, readonly) SPUCoreBasedUpdateDriver *coreDriver; @property (nonatomic) SUAppcastItem* updateItem; @property (nonatomic) BOOL willInstallSilently; @end -@implementation SUAutomaticUpdateDriver +@implementation SPUAutomaticUpdateDriver @synthesize updater = _updater; @synthesize userDriver = _userDriver; @@ -48,12 +48,12 @@ // The user driver is only used for a termination callback _userDriver = userDriver; _updaterDelegate = updaterDelegate; - _coreDriver = [[SUCoreBasedUpdateDriver alloc] initWithHost:host applicationBundle:applicationBundle sparkleBundle:sparkleBundle updater:updater updaterDelegate:updaterDelegate delegate:self]; + _coreDriver = [[SPUCoreBasedUpdateDriver alloc] initWithHost:host applicationBundle:applicationBundle sparkleBundle:sparkleBundle updater:updater updaterDelegate:updaterDelegate delegate:self]; } return self; } -- (void)checkForUpdatesAtAppcastURL:(NSURL *)appcastURL withUserAgent:(NSString *)userAgent httpHeaders:(NSDictionary * _Nullable)httpHeaders preventingInstallerInteraction:(BOOL)preventsInstallerInteraction completion:(SUUpdateDriverCompletion)completionBlock +- (void)checkForUpdatesAtAppcastURL:(NSURL *)appcastURL withUserAgent:(NSString *)userAgent httpHeaders:(NSDictionary * _Nullable)httpHeaders preventingInstallerInteraction:(BOOL)preventsInstallerInteraction completion:(SPUUpdateDriverCompletion)completionBlock { [self.coreDriver prepareCheckForUpdatesWithCompletion:completionBlock]; @@ -66,17 +66,17 @@ }]; } -- (void)resumeInstallingUpdateWithCompletion:(SUUpdateDriverCompletion)__unused completionBlock __attribute__((noreturn)) +- (void)resumeInstallingUpdateWithCompletion:(SPUUpdateDriverCompletion)__unused completionBlock __attribute__((noreturn)) { // Nothing really to do here.. this shouldn't be called. - SULog(@"Error: resumeInstallingUpdateWithCompletion: called on SUAutomaticUpdateDriver"); + SULog(@"Error: resumeInstallingUpdateWithCompletion: called on SPUAutomaticUpdateDriver"); abort(); } -- (void)resumeDownloadedUpdate:(SUDownloadedUpdate *)__unused downloadedUpdate completion:(SUUpdateDriverCompletion)__unused completionBlock __attribute__((noreturn)) +- (void)resumeDownloadedUpdate:(SPUDownloadedUpdate *)__unused downloadedUpdate completion:(SPUUpdateDriverCompletion)__unused completionBlock __attribute__((noreturn)) { // Nothing really to do here.. this shouldn't be called. - SULog(@"Error: resumeDownloadedUpdate:completion: called on SUAutomaticUpdateDriver"); + SULog(@"Error: resumeDownloadedUpdate:completion: called on SPUAutomaticUpdateDriver"); abort(); } @@ -95,7 +95,7 @@ BOOL installationHandledByDelegate = NO; id updaterDelegate = self.updaterDelegate; if (self.willInstallSilently && [updaterDelegate respondsToSelector:@selector(updater:willInstallUpdateOnQuit:immediateInstallationBlock:)]) { - __weak SUAutomaticUpdateDriver *weakSelf = self; + __weak SPUAutomaticUpdateDriver *weakSelf = self; installationHandledByDelegate = [updaterDelegate updater:self.updater willInstallUpdateOnQuit:self.updateItem immediateInstallationBlock:^{ [weakSelf.coreDriver finishInstallationWithResponse:SPUInstallAndRelaunchUpdateNow displayingUserInterface:NO]; }]; diff --git a/Sparkle/SUBasicUpdateDriver.h b/Sparkle/SPUBasicUpdateDriver.h similarity index 60% rename from Sparkle/SUBasicUpdateDriver.h rename to Sparkle/SPUBasicUpdateDriver.h index a20f99dc..fa8f7447 100644 --- a/Sparkle/SUBasicUpdateDriver.h +++ b/Sparkle/SPUBasicUpdateDriver.h @@ -1,5 +1,5 @@ // -// SUBasicUpdateDriver.h +// SPUBasicUpdateDriver.h // Sparkle // // Created by Mayur Pawashe on 3/18/16. @@ -7,14 +7,14 @@ // #import -#import "SUUpdateDriver.h" +#import "SPUUpdateDriver.h" NS_ASSUME_NONNULL_BEGIN @class SUHost, SUAppcastItem; @protocol SPUUpdaterDelegate; -@protocol SUBasicUpdateDriverDelegate +@protocol SPUBasicUpdateDriverDelegate - (void)basicDriverDidFindUpdateWithAppcastItem:(SUAppcastItem *)appcastItem; @@ -26,21 +26,21 @@ NS_ASSUME_NONNULL_BEGIN @end -@interface SUBasicUpdateDriver : NSObject +@interface SPUBasicUpdateDriver : NSObject -- (instancetype)initWithHost:(SUHost *)host updater:(id)updater updaterDelegate:(nullable id )updaterDelegate delegate:(id )delegate; +- (instancetype)initWithHost:(SUHost *)host updater:(id)updater updaterDelegate:(nullable id )updaterDelegate delegate:(id )delegate; -- (void)prepareCheckForUpdatesWithCompletion:(SUUpdateDriverCompletion)completionBlock; +- (void)prepareCheckForUpdatesWithCompletion:(SPUUpdateDriverCompletion)completionBlock; - (void)checkForUpdatesAtAppcastURL:(NSURL *)appcastURL withUserAgent:(NSString *)userAgent httpHeaders:(NSDictionary * _Nullable)httpHeaders includesSkippedUpdates:(BOOL)includesSkippedUpdates; -- (void)resumeInstallingUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock; +- (void)resumeInstallingUpdateWithCompletion:(SPUUpdateDriverCompletion)completionBlock; -- (void)resumeDownloadedUpdate:(SUDownloadedUpdate *)downloadedUpdate completion:(SUUpdateDriverCompletion)completionBlock; +- (void)resumeDownloadedUpdate:(SPUDownloadedUpdate *)downloadedUpdate completion:(SPUUpdateDriverCompletion)completionBlock; @property (nullable, nonatomic, readonly) SUAppcastItem *nonDeltaUpdateItem; -- (void)abortUpdateAndShowNextUpdateImmediately:(BOOL)shouldSignalShowingUpdate downloadedUpdate:(SUDownloadedUpdate * _Nullable)downloadedUpdate error:(nullable NSError *)error; +- (void)abortUpdateAndShowNextUpdateImmediately:(BOOL)shouldSignalShowingUpdate downloadedUpdate:(SPUDownloadedUpdate * _Nullable)downloadedUpdate error:(nullable NSError *)error; @end diff --git a/Sparkle/SUBasicUpdateDriver.m b/Sparkle/SPUBasicUpdateDriver.m similarity index 87% rename from Sparkle/SUBasicUpdateDriver.m rename to Sparkle/SPUBasicUpdateDriver.m index 8caae969..53dc5750 100644 --- a/Sparkle/SUBasicUpdateDriver.m +++ b/Sparkle/SPUBasicUpdateDriver.m @@ -1,12 +1,12 @@ // -// SUBasicUpdateDriver.m +// SPUBasicUpdateDriver.m // Sparkle // // Created by Mayur Pawashe on 3/18/16. // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUBasicUpdateDriver.h" +#import "SPUBasicUpdateDriver.h" #import "SUAppcastDriver.h" #import "SPUUpdaterDelegate.h" #import "SUErrors.h" @@ -14,19 +14,19 @@ #import "SULocalizations.h" #import "SUHost.h" #import "SUAppcastItem.h" -#import "SUProbeInstallStatus.h" +#import "SPUProbeInstallStatus.h" #import "SPUInstallationInfo.h" -#import "SUDownloadedUpdate.h" +#import "SPUDownloadedUpdate.h" #ifdef _APPKITDEFINES_H #error This is a "core" class and should NOT import AppKit #endif -@interface SUBasicUpdateDriver () +@interface SPUBasicUpdateDriver () -@property (nonatomic, weak, readonly) id delegate; +@property (nonatomic, weak, readonly) id delegate; @property (nonatomic, readonly) SUAppcastDriver *appcastDriver; -@property (nonatomic, copy) SUUpdateDriverCompletion completionBlock; +@property (nonatomic, copy) SPUUpdateDriverCompletion completionBlock; @property (nonatomic, readonly) SUHost *host; @property (nonatomic, readonly, weak) id updater; // if we didn't have legacy support, I'd remove this.. @@ -36,7 +36,7 @@ @end -@implementation SUBasicUpdateDriver +@implementation SPUBasicUpdateDriver @synthesize host = _host; @synthesize updater = _updater; @@ -46,7 +46,7 @@ @synthesize completionBlock = _completionBlock; @synthesize aborted = _aborted; -- (instancetype)initWithHost:(SUHost *)host updater:(id)updater updaterDelegate:(id )updaterDelegate delegate:(id )delegate +- (instancetype)initWithHost:(SUHost *)host updater:(id)updater updaterDelegate:(id )updaterDelegate delegate:(id )delegate { self = [super init]; if (self != nil) { @@ -60,7 +60,7 @@ return self; } -- (void)prepareCheckForUpdatesWithCompletion:(SUUpdateDriverCompletion)completionBlock +- (void)prepareCheckForUpdatesWithCompletion:(SPUUpdateDriverCompletion)completionBlock { self.completionBlock = completionBlock; } @@ -88,20 +88,20 @@ } } -- (void)resumeInstallingUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock +- (void)resumeInstallingUpdateWithCompletion:(SPUUpdateDriverCompletion)completionBlock { self.completionBlock = completionBlock; NSString *hostBundleIdentifier = self.host.bundle.bundleIdentifier; assert(hostBundleIdentifier != nil); - [SUProbeInstallStatus probeInstallerUpdateItemForHostBundleIdentifier:hostBundleIdentifier completion:^(SPUInstallationInfo * _Nullable installationInfo) { + [SPUProbeInstallStatus probeInstallerUpdateItemForHostBundleIdentifier:hostBundleIdentifier completion:^(SPUInstallationInfo * _Nullable installationInfo) { dispatch_async(dispatch_get_main_queue(), ^{ [self notifyResumableUpdateItem:installationInfo.appcastItem]; }); }]; } -- (void)resumeDownloadedUpdate:(SUDownloadedUpdate *)downloadedUpdate completion:(SUUpdateDriverCompletion)completionBlock +- (void)resumeDownloadedUpdate:(SPUDownloadedUpdate *)downloadedUpdate completion:(SPUUpdateDriverCompletion)completionBlock { self.completionBlock = completionBlock; @@ -173,7 +173,7 @@ } } -- (void)abortUpdateAndShowNextUpdateImmediately:(BOOL)shouldShowUpdateImmediately downloadedUpdate:(SUDownloadedUpdate * _Nullable)downloadedUpdate error:(nullable NSError *)error +- (void)abortUpdateAndShowNextUpdateImmediately:(BOOL)shouldShowUpdateImmediately downloadedUpdate:(SPUDownloadedUpdate * _Nullable)downloadedUpdate error:(nullable NSError *)error { self.aborted = YES; diff --git a/Sparkle/SUCoreBasedUpdateDriver.h b/Sparkle/SPUCoreBasedUpdateDriver.h similarity index 80% rename from Sparkle/SUCoreBasedUpdateDriver.h rename to Sparkle/SPUCoreBasedUpdateDriver.h index c586d480..a483f212 100644 --- a/Sparkle/SUCoreBasedUpdateDriver.h +++ b/Sparkle/SPUCoreBasedUpdateDriver.h @@ -1,5 +1,5 @@ // -// SUCoreBasedUpdateDriver.h +// SPUCoreBasedUpdateDriver.h // Sparkle // // Created by Mayur Pawashe on 3/18/16. @@ -8,14 +8,14 @@ #import #import "SPUStatusCompletionResults.h" -#import "SUUpdateDriver.h" +#import "SPUUpdateDriver.h" NS_ASSUME_NONNULL_BEGIN @class SUHost, SUAppcastItem; @protocol SPUUpdaterDelegate; -@protocol SUCoreBasedUpdateDriverDelegate +@protocol SPUCoreBasedUpdateDriverDelegate - (void)basicDriverDidFindUpdateWithAppcastItem:(SUAppcastItem *)updateItem; @@ -47,19 +47,19 @@ NS_ASSUME_NONNULL_BEGIN @end -@interface SUCoreBasedUpdateDriver : NSObject +@interface SPUCoreBasedUpdateDriver : NSObject -- (instancetype)initWithHost:(SUHost *)host applicationBundle:(NSBundle *)applicationBundle sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater updaterDelegate:(nullable id )updaterDelegate delegate:(id)delegate; +- (instancetype)initWithHost:(SUHost *)host applicationBundle:(NSBundle *)applicationBundle sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater updaterDelegate:(nullable id )updaterDelegate delegate:(id)delegate; -- (void)prepareCheckForUpdatesWithCompletion:(SUUpdateDriverCompletion)completionBlock; +- (void)prepareCheckForUpdatesWithCompletion:(SPUUpdateDriverCompletion)completionBlock; - (void)preflightForUpdatePermissionPreventingInstallerInteraction:(BOOL)preventsInstallerInteraction reply:(void (^)(NSError * _Nullable))reply; - (void)checkForUpdatesAtAppcastURL:(NSURL *)appcastURL withUserAgent:(NSString *)userAgent httpHeaders:(NSDictionary * _Nullable)httpHeaders includesSkippedUpdates:(BOOL)includesSkippedUpdates requiresSilentInstall:(BOOL)silentInstall; -- (void)resumeInstallingUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock; +- (void)resumeInstallingUpdateWithCompletion:(SPUUpdateDriverCompletion)completionBlock; -- (void)resumeDownloadedUpdate:(SUDownloadedUpdate *)downloadedUpdate completion:(SUUpdateDriverCompletion)completionBlock; +- (void)resumeDownloadedUpdate:(SPUDownloadedUpdate *)downloadedUpdate completion:(SPUUpdateDriverCompletion)completionBlock; - (void)downloadUpdateFromAppcastItem:(SUAppcastItem *)updateItem; diff --git a/Sparkle/SUCoreBasedUpdateDriver.m b/Sparkle/SPUCoreBasedUpdateDriver.m similarity index 87% rename from Sparkle/SUCoreBasedUpdateDriver.m rename to Sparkle/SPUCoreBasedUpdateDriver.m index f55c18f7..cfb82834 100644 --- a/Sparkle/SUCoreBasedUpdateDriver.m +++ b/Sparkle/SPUCoreBasedUpdateDriver.m @@ -1,20 +1,20 @@ // -// SUCoreBasedUpdateDriver.m +// SPUCoreBasedUpdateDriver.m // Sparkle // // Created by Mayur Pawashe on 3/18/16. // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUCoreBasedUpdateDriver.h" +#import "SPUCoreBasedUpdateDriver.h" #import "SUHost.h" #import "SPUUpdaterDelegate.h" -#import "SUBasicUpdateDriver.h" -#import "SUInstallerDriver.h" -#import "SUDownloadDriver.h" +#import "SPUBasicUpdateDriver.h" +#import "SPUInstallerDriver.h" +#import "SPUDownloadDriver.h" #import "SULog.h" #import "SUErrors.h" -#import "SUDownloadedUpdate.h" +#import "SPUDownloadedUpdate.h" #import "SUAppcastItem.h" #import "SULocalizations.h" #import "SPUInstallationType.h" @@ -23,14 +23,14 @@ #error This is a "core" class and should NOT import AppKit #endif -@interface SUCoreBasedUpdateDriver () +@interface SPUCoreBasedUpdateDriver () -@property (nonatomic, readonly) SUBasicUpdateDriver *basicDriver; -@property (nonatomic) SUDownloadDriver *downloadDriver; -@property (nonatomic, readonly) SUInstallerDriver *installerDriver; -@property (nonatomic, weak, readonly) id delegate; +@property (nonatomic, readonly) SPUBasicUpdateDriver *basicDriver; +@property (nonatomic) SPUDownloadDriver *downloadDriver; +@property (nonatomic, readonly) SPUInstallerDriver *installerDriver; +@property (nonatomic, weak, readonly) id delegate; @property (nonatomic) SUAppcastItem *updateItem; -@property (nonatomic) SUDownloadedUpdate *downloadedUpdate; +@property (nonatomic) SPUDownloadedUpdate *downloadedUpdate; @property (nonatomic, readonly) SUHost *host; @property (nonatomic) BOOL resumingInstallingUpdate; @@ -42,7 +42,7 @@ @end -@implementation SUCoreBasedUpdateDriver +@implementation SPUCoreBasedUpdateDriver @synthesize basicDriver = _basicDriver; @synthesize downloadDriver = _downloadDriver; @@ -58,7 +58,7 @@ @synthesize userAgent = _userAgent; @synthesize downloadedUpdate = _downloadedUpdate; -- (instancetype)initWithHost:(SUHost *)host applicationBundle:(NSBundle *)applicationBundle sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater updaterDelegate:(nullable id )updaterDelegate delegate:(id)delegate +- (instancetype)initWithHost:(SUHost *)host applicationBundle:(NSBundle *)applicationBundle sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater updaterDelegate:(nullable id )updaterDelegate delegate:(id)delegate { self = [super init]; if (self != nil) { @@ -67,8 +67,8 @@ NSString *bundleIdentifier = host.bundle.bundleIdentifier; assert(bundleIdentifier != nil); - _basicDriver = [[SUBasicUpdateDriver alloc] initWithHost:host updater:updater updaterDelegate:updaterDelegate delegate:self]; - _installerDriver = [[SUInstallerDriver alloc] initWithHost:host applicationBundle:applicationBundle sparkleBundle:sparkleBundle updater:updater updaterDelegate:updaterDelegate delegate:self]; + _basicDriver = [[SPUBasicUpdateDriver alloc] initWithHost:host updater:updater updaterDelegate:updaterDelegate delegate:self]; + _installerDriver = [[SPUInstallerDriver alloc] initWithHost:host applicationBundle:applicationBundle sparkleBundle:sparkleBundle updater:updater updaterDelegate:updaterDelegate delegate:self]; _host = host; _updater = updater; @@ -77,7 +77,7 @@ return self; } -- (void)prepareCheckForUpdatesWithCompletion:(SUUpdateDriverCompletion)completionBlock +- (void)prepareCheckForUpdatesWithCompletion:(SPUUpdateDriverCompletion)completionBlock { [self.basicDriver prepareCheckForUpdatesWithCompletion:completionBlock]; } @@ -114,7 +114,7 @@ [self.basicDriver checkForUpdatesAtAppcastURL:appcastURL withUserAgent:userAgent httpHeaders:httpHeaders includesSkippedUpdates:includesSkippedUpdates]; } -- (void)resumeInstallingUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock +- (void)resumeInstallingUpdateWithCompletion:(SPUUpdateDriverCompletion)completionBlock { self.resumingInstallingUpdate = YES; self.silentInstall = NO; @@ -122,7 +122,7 @@ [self.basicDriver resumeInstallingUpdateWithCompletion:completionBlock]; } -- (void)resumeDownloadedUpdate:(SUDownloadedUpdate *)downloadedUpdate completion:(SUUpdateDriverCompletion)completionBlock +- (void)resumeDownloadedUpdate:(SPUDownloadedUpdate *)downloadedUpdate completion:(SPUUpdateDriverCompletion)completionBlock { self.downloadedUpdate = downloadedUpdate; self.silentInstall = NO; @@ -165,7 +165,7 @@ - (void)downloadUpdateFromAppcastItem:(SUAppcastItem *)updateItem { - self.downloadDriver = [[SUDownloadDriver alloc] initWithUpdateItem:updateItem host:self.host userAgent:self.userAgent delegate:self]; + self.downloadDriver = [[SPUDownloadDriver alloc] initWithUpdateItem:updateItem host:self.host userAgent:self.userAgent delegate:self]; if ([self.updaterDelegate respondsToSelector:@selector(updater:willDownloadUpdate:withRequest:)]) { [self.updaterDelegate updater:self.updater @@ -197,7 +197,7 @@ } } -- (void)downloadDriverDidDownloadUpdate:(SUDownloadedUpdate *)downloadedUpdate +- (void)downloadDriverDidDownloadUpdate:(SPUDownloadedUpdate *)downloadedUpdate { self.downloadedUpdate = downloadedUpdate; [self extractUpdate:downloadedUpdate]; @@ -214,7 +214,7 @@ self.downloadedUpdate = nil; } -- (void)extractUpdate:(SUDownloadedUpdate *)downloadedUpdate +- (void)extractUpdate:(SPUDownloadedUpdate *)downloadedUpdate { // Now we have to extract the downloaded archive. if ([self.delegate respondsToSelector:@selector(coreDriverDidStartExtractingUpdate)]) { @@ -341,7 +341,7 @@ [self.installerDriver abortInstall]; [self.downloadDriver cleanup]; - SUDownloadedUpdate *downloadedUpdate = (error == nil || error.code == SUInstallationAuthorizeLaterError) ? self.downloadedUpdate : nil; + SPUDownloadedUpdate *downloadedUpdate = (error == nil || error.code == SUInstallationAuthorizeLaterError) ? self.downloadedUpdate : nil; [self.basicDriver abortUpdateAndShowNextUpdateImmediately:shouldShowUpdateImmediately downloadedUpdate:downloadedUpdate error:error]; } diff --git a/Sparkle/SUDownloadDriver.h b/Sparkle/SPUDownloadDriver.h similarity index 72% rename from Sparkle/SUDownloadDriver.h rename to Sparkle/SPUDownloadDriver.h index a38c0867..b022f736 100644 --- a/Sparkle/SUDownloadDriver.h +++ b/Sparkle/SPUDownloadDriver.h @@ -1,5 +1,5 @@ // -// SUDownloadDriver.h +// SPUDownloadDriver.h // Sparkle // // Created by Mayur Pawashe on 3/15/16. @@ -10,9 +10,9 @@ NS_ASSUME_NONNULL_BEGIN -@class SUAppcastItem, SUHost, SUDownloadedUpdate; +@class SUAppcastItem, SUHost, SPUDownloadedUpdate; -@protocol SUDownloadDriverDelegate +@protocol SPUDownloadDriverDelegate - (void)downloadDriverWillBeginDownload; @@ -20,15 +20,15 @@ NS_ASSUME_NONNULL_BEGIN - (void)downloadDriverDidReceiveDataOfLength:(NSUInteger)length; -- (void)downloadDriverDidDownloadUpdate:(SUDownloadedUpdate *)downloadedUpdate; +- (void)downloadDriverDidDownloadUpdate:(SPUDownloadedUpdate *)downloadedUpdate; - (void)downloadDriverDidFailToDownloadUpdateWithError:(NSError *)error; @end -@interface SUDownloadDriver : NSObject +@interface SPUDownloadDriver : NSObject -- (instancetype)initWithUpdateItem:(SUAppcastItem *)updateItem host:(SUHost *)host userAgent:(NSString *)userAgent delegate:(id)delegate; +- (instancetype)initWithUpdateItem:(SUAppcastItem *)updateItem host:(SUHost *)host userAgent:(NSString *)userAgent delegate:(id)delegate; - (void)downloadUpdate; diff --git a/Sparkle/SUDownloadDriver.m b/Sparkle/SPUDownloadDriver.m similarity index 92% rename from Sparkle/SUDownloadDriver.m rename to Sparkle/SPUDownloadDriver.m index 821ec924..1e2b30af 100644 --- a/Sparkle/SUDownloadDriver.m +++ b/Sparkle/SPUDownloadDriver.m @@ -1,12 +1,12 @@ // -// SUDownloadDriver.m +// SPUDownloadDriver.m // Sparkle // // Created by Mayur Pawashe on 3/15/16. // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUDownloadDriver.h" +#import "SPUDownloadDriver.h" #import "SPUDownloaderDelegate.h" #import "SPUDownloader.h" #import "SPUXPCServiceInfo.h" @@ -17,14 +17,14 @@ #import "SULog.h" #import "SUErrors.h" #import "SPUURLRequest.h" -#import "SUDownloadedUpdate.h" +#import "SPUDownloadedUpdate.h" #import "SPUDownloadData.h" #ifdef _APPKITDEFINES_H #error This is a "core" class and should NOT import AppKit #endif -@interface SUDownloadDriver () +@interface SPUDownloadDriver () @property (nonatomic) id downloader; @property (nonatomic) NSXPCConnection *connection; @@ -32,7 +32,7 @@ @property (nonatomic, readonly) SUHost *host; @property (nonatomic, copy) NSString *temporaryDirectory; @property (nonatomic, copy) NSString *downloadName; -@property (nonatomic, weak) id delegate; +@property (nonatomic, weak) id delegate; @property (nonatomic) BOOL retrievedDownloadResult; @property (nonatomic) BOOL retrievedDownloadResponse; @property (nonatomic) NSUInteger expectedContentLength; @@ -40,7 +40,7 @@ @end -@implementation SUDownloadDriver +@implementation SPUDownloadDriver @synthesize downloader = _downloader; @synthesize connection = _connection; @@ -55,7 +55,7 @@ @synthesize expectedContentLength = _expectedContentLength; @synthesize cleaningUp = _cleaningUp; -- (instancetype)initWithUpdateItem:(SUAppcastItem *)updateItem host:(SUHost *)host userAgent:(NSString *)userAgent delegate:(id)delegate +- (instancetype)initWithUpdateItem:(SUAppcastItem *)updateItem host:(SUHost *)host userAgent:(NSString *)userAgent delegate:(id)delegate { self = [super init]; if (self != nil) { @@ -85,11 +85,11 @@ NSString *bundleIdentifier = self.host.bundle.bundleIdentifier; assert(bundleIdentifier != nil); - __weak SUDownloadDriver *weakSelf = self; + __weak SPUDownloadDriver *weakSelf = self; self.connection.interruptionHandler = ^{ dispatch_async(dispatch_get_main_queue(), ^{ - SUDownloadDriver *strongSelf = weakSelf; + SPUDownloadDriver *strongSelf = weakSelf; if (strongSelf != nil && !strongSelf.retrievedDownloadResult) { [strongSelf.connection invalidate]; } @@ -98,7 +98,7 @@ self.connection.invalidationHandler = ^{ dispatch_async(dispatch_get_main_queue(), ^{ - SUDownloadDriver *strongSelf = weakSelf; + SPUDownloadDriver *strongSelf = weakSelf; if (strongSelf != nil && !strongSelf.retrievedDownloadResult && !strongSelf.cleaningUp) { SULog(@"Connection to update downloader was invalidated"); @@ -143,7 +143,7 @@ SULog(@"Warning: Downloader's expected content length (%lu) != Appcast item's length (%lu)", self.expectedContentLength, self.updateItem.contentLength); } - SUDownloadedUpdate *downloadedUpdate = [[SUDownloadedUpdate alloc] initWithAppcastItem:self.updateItem downloadName:self.downloadName temporaryDirectory:self.temporaryDirectory]; + SPUDownloadedUpdate *downloadedUpdate = [[SPUDownloadedUpdate alloc] initWithAppcastItem:self.updateItem downloadName:self.downloadName temporaryDirectory:self.temporaryDirectory]; [self.delegate downloadDriverDidDownloadUpdate:downloadedUpdate]; [self cleanup]; diff --git a/Sparkle/SUDownloadedUpdate.h b/Sparkle/SPUDownloadedUpdate.h similarity index 89% rename from Sparkle/SUDownloadedUpdate.h rename to Sparkle/SPUDownloadedUpdate.h index fd729dae..aa8db1ec 100644 --- a/Sparkle/SUDownloadedUpdate.h +++ b/Sparkle/SPUDownloadedUpdate.h @@ -1,5 +1,5 @@ // -// SUDownloadedUpdate.h +// SPUDownloadedUpdate.h // Sparkle // // Created by Mayur Pawashe on 7/18/16. @@ -12,7 +12,7 @@ NS_ASSUME_NONNULL_BEGIN @class SUAppcastItem; -@interface SUDownloadedUpdate : NSObject +@interface SPUDownloadedUpdate : NSObject - (instancetype)initWithAppcastItem:(SUAppcastItem *)updateItem downloadName:(NSString *)downloadName temporaryDirectory:(NSString *)temporaryDirectory; diff --git a/Sparkle/SUDownloadedUpdate.m b/Sparkle/SPUDownloadedUpdate.m similarity index 88% rename from Sparkle/SUDownloadedUpdate.m rename to Sparkle/SPUDownloadedUpdate.m index 954fb90a..bd670566 100644 --- a/Sparkle/SUDownloadedUpdate.m +++ b/Sparkle/SPUDownloadedUpdate.m @@ -1,18 +1,18 @@ // -// SUDownloadedUpdate.m +// SPUDownloadedUpdate.m // Sparkle // // Created by Mayur Pawashe on 7/18/16. // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUDownloadedUpdate.h" +#import "SPUDownloadedUpdate.h" #ifdef _APPKITDEFINES_H #error This is a "core" class and should NOT import AppKit #endif -@implementation SUDownloadedUpdate +@implementation SPUDownloadedUpdate @synthesize updateItem = _updateItem; @synthesize downloadName = _downloadName; diff --git a/Sparkle/SUInstallerDriver.h b/Sparkle/SPUInstallerDriver.h similarity index 73% rename from Sparkle/SUInstallerDriver.h rename to Sparkle/SPUInstallerDriver.h index cdb2e4a3..3819c8dc 100644 --- a/Sparkle/SUInstallerDriver.h +++ b/Sparkle/SPUInstallerDriver.h @@ -1,5 +1,5 @@ // -// SUInstallerDriver.h +// SPUInstallerDriver.h // Sparkle // // Created by Mayur Pawashe on 3/17/16. @@ -11,9 +11,9 @@ NS_ASSUME_NONNULL_BEGIN @protocol SPUUpdaterDelegate; -@class SUHost, SUAppcastItem, SUDownloadedUpdate; +@class SUHost, SUAppcastItem, SPUDownloadedUpdate; -@protocol SUInstallerDriverDelegate +@protocol SPUInstallerDriverDelegate - (void)installerDidStartInstalling; - (void)installerDidExtractUpdateWithProgress:(double)progress; @@ -27,15 +27,15 @@ NS_ASSUME_NONNULL_BEGIN @end -@interface SUInstallerDriver : NSObject +@interface SPUInstallerDriver : NSObject -- (instancetype)initWithHost:(SUHost *)host applicationBundle:(NSBundle *)applicationBundle sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater updaterDelegate:(nullable id)updaterDelegate delegate:(nullable id)delegate; +- (instancetype)initWithHost:(SUHost *)host applicationBundle:(NSBundle *)applicationBundle sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater updaterDelegate:(nullable id)updaterDelegate delegate:(nullable id)delegate; - (void)resumeInstallingUpdateWithUpdateItem:(SUAppcastItem *)updateItem; - (void)checkIfApplicationInstallationRequiresAuthorizationWithReply:(void (^)(BOOL requiresAuthorization))reply; -- (void)extractDownloadedUpdate:(SUDownloadedUpdate *)downloadedUpdate silently:(BOOL)silently preventsInstallerInteraction:(BOOL)preventsInstallerInteraction completion:(void (^)(NSError * _Nullable))completionHandler; +- (void)extractDownloadedUpdate:(SPUDownloadedUpdate *)downloadedUpdate silently:(BOOL)silently preventsInstallerInteraction:(BOOL)preventsInstallerInteraction completion:(void (^)(NSError * _Nullable))completionHandler; - (void)installWithToolAndRelaunch:(BOOL)relaunch displayingUserInterface:(BOOL)showUI; diff --git a/Sparkle/SUInstallerDriver.m b/Sparkle/SPUInstallerDriver.m similarity index 96% rename from Sparkle/SUInstallerDriver.m rename to Sparkle/SPUInstallerDriver.m index 0d8dbb99..4a6d4598 100644 --- a/Sparkle/SUInstallerDriver.m +++ b/Sparkle/SPUInstallerDriver.m @@ -1,12 +1,12 @@ // -// SUInstallerDriver.m +// SPUInstallerDriver.m // Sparkle // // Created by Mayur Pawashe on 3/17/16. // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUInstallerDriver.h" +#import "SPUInstallerDriver.h" #import "SULog.h" #import "SPUMessageTypes.h" #import "SPUXPCServiceInfo.h" @@ -23,7 +23,7 @@ #import "SUInstallerConnection.h" #import "SUInstallerConnectionProtocol.h" #import "SUXPCInstallerConnection.h" -#import "SUDownloadedUpdate.h" +#import "SPUDownloadedUpdate.h" #import "SPUInstallationType.h" #ifdef _APPKITDEFINES_H @@ -38,12 +38,12 @@ @end -@interface SUInstallerDriver () +@interface SPUInstallerDriver () @property (nonatomic, readonly) SUHost *host; @property (nonatomic, readonly) NSBundle *applicationBundle; @property (nonatomic, readonly) NSBundle *sparkleBundle; -@property (nonatomic, weak, readonly) id delegate; +@property (nonatomic, weak, readonly) id delegate; @property (nonatomic) SPUInstallerMessageType currentStage; @property (nonatomic) BOOL startedInstalling; @@ -63,7 +63,7 @@ @end -@implementation SUInstallerDriver +@implementation SPUInstallerDriver @synthesize host = _host; @synthesize applicationBundle = _applicationBundle; @@ -82,7 +82,7 @@ @synthesize temporaryDirectory = _temporaryDirectory; @synthesize aborted = _aborted; -- (instancetype)initWithHost:(SUHost *)host applicationBundle:(NSBundle *)applicationBundle sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater updaterDelegate:(id)updaterDelegate delegate:(nullable id)delegate +- (instancetype)initWithHost:(SUHost *)host applicationBundle:(NSBundle *)applicationBundle sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater updaterDelegate:(id)updaterDelegate delegate:(nullable id)delegate { self = [super init]; if (self != nil) { @@ -111,10 +111,10 @@ self.installerConnection = [[SUXPCInstallerConnection alloc] initWithDelegate:self]; } - __weak SUInstallerDriver *weakSelf = self; + __weak SPUInstallerDriver *weakSelf = self; [self.installerConnection setInvalidationHandler:^{ dispatch_async(dispatch_get_main_queue(), ^{ - SUInstallerDriver *strongSelf = weakSelf; + SPUInstallerDriver *strongSelf = weakSelf; if (strongSelf.installerConnection != nil && !strongSelf.aborted) { NSError *remoteError = [NSError @@ -140,7 +140,7 @@ } // This can be called multiple times (eg: if a delta update fails, this may be called again with a regular update item) -- (void)extractDownloadedUpdate:(SUDownloadedUpdate *)downloadedUpdate silently:(BOOL)silently preventsInstallerInteraction:(BOOL)preventsInstallerInteraction completion:(void (^)(NSError * _Nullable))completionHandler +- (void)extractDownloadedUpdate:(SPUDownloadedUpdate *)downloadedUpdate silently:(BOOL)silently preventsInstallerInteraction:(BOOL)preventsInstallerInteraction completion:(void (^)(NSError * _Nullable))completionHandler { self.updateItem = downloadedUpdate.updateItem; self.temporaryDirectory = downloadedUpdate.temporaryDirectory; @@ -197,9 +197,9 @@ // This also handles the case when a delta extraction fails and tries to re-try another extraction attempt later // We will also want to make sure current stage is still SUInstallerNotStarted because it may not be due to resumability NSUInteger currentExtractionAttempts = self.extractionAttempts; - __weak SUInstallerDriver *weakSelf = self; + __weak SPUInstallerDriver *weakSelf = self; dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(FIRST_INSTALLER_MESSAGE_TIMEOUT * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ - SUInstallerDriver *strongSelf = weakSelf; + SPUInstallerDriver *strongSelf = weakSelf; if (strongSelf != nil && strongSelf.currentStage == SPUInstallerNotStarted && currentExtractionAttempts == self.extractionAttempts) { SULog(@"Timeout: Installer never started archive extraction"); [strongSelf.delegate installerIsRequestingAbortInstallWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SUInstallationError userInfo:@{ NSLocalizedDescriptionKey:SULocalizedString(@"An error occurred while starting the installer. Please try again later.", nil) }]]; @@ -473,7 +473,7 @@ { if ([self.updaterDelegate respondsToSelector:@selector(updater:shouldPostponeRelaunchForUpdate:untilInvokingBlock:)]) { self.postponedOnce = YES; - __weak SUInstallerDriver *weakSelf = self; + __weak SPUInstallerDriver *weakSelf = self; if ([self.updaterDelegate updater:self.updater shouldPostponeRelaunchForUpdate:self.updateItem untilInvokingBlock:^{ [weakSelf installWithToolAndRelaunch:relaunch displayingUserInterface:showUI]; }]) { diff --git a/Sparkle/SUProbeInstallStatus.h b/Sparkle/SPUProbeInstallStatus.h similarity index 90% rename from Sparkle/SUProbeInstallStatus.h rename to Sparkle/SPUProbeInstallStatus.h index 81112c0a..ee919b92 100644 --- a/Sparkle/SUProbeInstallStatus.h +++ b/Sparkle/SPUProbeInstallStatus.h @@ -1,5 +1,5 @@ // -// SUProbeInstallStatus.h +// SPUProbeInstallStatus.h // Sparkle // // Created by Mayur Pawashe on 3/20/16. @@ -12,7 +12,7 @@ NS_ASSUME_NONNULL_BEGIN @class SPUInstallationInfo; -@interface SUProbeInstallStatus : NSObject +@interface SPUProbeInstallStatus : NSObject + (void)probeInstallerInProgressForHostBundleIdentifier:(NSString *)hostBundleIdentifier completion:(void (^)(BOOL))completionHandler; diff --git a/Sparkle/SUProbeInstallStatus.m b/Sparkle/SPUProbeInstallStatus.m similarity index 97% rename from Sparkle/SUProbeInstallStatus.m rename to Sparkle/SPUProbeInstallStatus.m index d186d961..dcd6d096 100644 --- a/Sparkle/SUProbeInstallStatus.m +++ b/Sparkle/SPUProbeInstallStatus.m @@ -1,12 +1,12 @@ // -// SUProbeInstallStatus.m +// SPUProbeInstallStatus.m // Sparkle // // Created by Mayur Pawashe on 3/20/16. // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUProbeInstallStatus.h" +#import "SPUProbeInstallStatus.h" #import "SPUXPCServiceInfo.h" #import "SPUMessageTypes.h" #import "SPUInstallationInfo.h" @@ -23,7 +23,7 @@ // It should be at least more than 1 second since a probe can take around that much time #define PROBE_TIMEOUT 7 -@implementation SUProbeInstallStatus +@implementation SPUProbeInstallStatus + (void)probeInstallerInProgressForHostBundleIdentifier:(NSString *)hostBundleIdentifier completion:(void (^)(BOOL))completionHandler { diff --git a/Sparkle/SUProbingUpdateDriver.h b/Sparkle/SPUProbingUpdateDriver.h similarity index 76% rename from Sparkle/SUProbingUpdateDriver.h rename to Sparkle/SPUProbingUpdateDriver.h index 38bd3fb6..2e101695 100644 --- a/Sparkle/SUProbingUpdateDriver.h +++ b/Sparkle/SPUProbingUpdateDriver.h @@ -1,5 +1,5 @@ // -// SUProbingUpdateDriver.h +// SPUProbingUpdateDriver.h // Sparkle // // Created by Mayur Pawashe on 3/18/16. @@ -7,14 +7,14 @@ // #import -#import "SUUpdateDriver.h" +#import "SPUUpdateDriver.h" NS_ASSUME_NONNULL_BEGIN @class SUHost; @protocol SPUUpdaterDelegate; -@interface SUProbingUpdateDriver : NSObject +@interface SPUProbingUpdateDriver : NSObject - (instancetype)initWithHost:(SUHost *)host updater:(id)updater updaterDelegate:(nullable id )updaterDelegate; diff --git a/Sparkle/SUProbingUpdateDriver.m b/Sparkle/SPUProbingUpdateDriver.m similarity index 70% rename from Sparkle/SUProbingUpdateDriver.m rename to Sparkle/SPUProbingUpdateDriver.m index e211efc4..53f5c8f4 100644 --- a/Sparkle/SUProbingUpdateDriver.m +++ b/Sparkle/SPUProbingUpdateDriver.m @@ -1,26 +1,26 @@ // -// SUProbingUpdateDriver.m +// SPUProbingUpdateDriver.m // Sparkle // // Created by Mayur Pawashe on 3/18/16. // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUProbingUpdateDriver.h" -#import "SUBasicUpdateDriver.h" +#import "SPUProbingUpdateDriver.h" +#import "SPUBasicUpdateDriver.h" #ifdef _APPKITDEFINES_H #error This is a "core" class and should NOT import AppKit #endif -@interface SUProbingUpdateDriver () +@interface SPUProbingUpdateDriver () -@property (nonatomic, readonly) SUBasicUpdateDriver *basicDriver; -@property (nonatomic) SUDownloadedUpdate *downloadedUpdate; +@property (nonatomic, readonly) SPUBasicUpdateDriver *basicDriver; +@property (nonatomic) SPUDownloadedUpdate *downloadedUpdate; @end -@implementation SUProbingUpdateDriver +@implementation SPUProbingUpdateDriver @synthesize basicDriver = _basicDriver; @synthesize downloadedUpdate = _downloadedUpdate; @@ -29,12 +29,12 @@ { self = [super init]; if (self != nil) { - _basicDriver = [[SUBasicUpdateDriver alloc] initWithHost:host updater:updater updaterDelegate:updaterDelegate delegate:self]; + _basicDriver = [[SPUBasicUpdateDriver alloc] initWithHost:host updater:updater updaterDelegate:updaterDelegate delegate:self]; } return self; } -- (void)checkForUpdatesAtAppcastURL:(NSURL *)appcastURL withUserAgent:(NSString *)userAgent httpHeaders:(NSDictionary * _Nullable)httpHeaders preventingInstallerInteraction:(BOOL)__unused preventsInstallerInteraction completion:(SUUpdateDriverCompletion)completionBlock +- (void)checkForUpdatesAtAppcastURL:(NSURL *)appcastURL withUserAgent:(NSString *)userAgent httpHeaders:(NSDictionary * _Nullable)httpHeaders preventingInstallerInteraction:(BOOL)__unused preventsInstallerInteraction completion:(SPUUpdateDriverCompletion)completionBlock { // We don't preflight for update permission in this driver because we are just interested if an update is available @@ -43,12 +43,12 @@ [self.basicDriver checkForUpdatesAtAppcastURL:appcastURL withUserAgent:userAgent httpHeaders:httpHeaders includesSkippedUpdates:NO]; } -- (void)resumeInstallingUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock +- (void)resumeInstallingUpdateWithCompletion:(SPUUpdateDriverCompletion)completionBlock { [self.basicDriver resumeInstallingUpdateWithCompletion:completionBlock]; } -- (void)resumeDownloadedUpdate:(SUDownloadedUpdate *)downloadedUpdate completion:(SUUpdateDriverCompletion)completionBlock +- (void)resumeDownloadedUpdate:(SPUDownloadedUpdate *)downloadedUpdate completion:(SPUUpdateDriverCompletion)completionBlock { self.downloadedUpdate = downloadedUpdate; diff --git a/Sparkle/SUScheduledUpdateDriver.h b/Sparkle/SPUScheduledUpdateDriver.h similarity index 77% rename from Sparkle/SUScheduledUpdateDriver.h rename to Sparkle/SPUScheduledUpdateDriver.h index 05659c82..7929b7df 100644 --- a/Sparkle/SUScheduledUpdateDriver.h +++ b/Sparkle/SPUScheduledUpdateDriver.h @@ -1,5 +1,5 @@ // -// SUScheduledUpdateDriver.h +// SPUScheduledUpdateDriver.h // Sparkle // // Created by Mayur Pawashe on 3/15/16. @@ -7,15 +7,15 @@ // #import -#import "SUUpdateDriver.h" -#import "SUUIBasedUpdateDriver.h" +#import "SPUUpdateDriver.h" +#import "SPUUIBasedUpdateDriver.h" NS_ASSUME_NONNULL_BEGIN @class SUHost; @protocol SPUUserDriver, SPUUpdaterDelegate; -@interface SUScheduledUpdateDriver : NSObject +@interface SPUScheduledUpdateDriver : NSObject - (instancetype)initWithHost:(SUHost *)host applicationBundle:(NSBundle *)applicationBundle sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater userDriver:(id )userDriver updaterDelegate:(nullable id )updaterDelegate; diff --git a/Sparkle/SUScheduledUpdateDriver.m b/Sparkle/SPUScheduledUpdateDriver.m similarity index 75% rename from Sparkle/SUScheduledUpdateDriver.m rename to Sparkle/SPUScheduledUpdateDriver.m index 048ee080..6be0b400 100644 --- a/Sparkle/SUScheduledUpdateDriver.m +++ b/Sparkle/SPUScheduledUpdateDriver.m @@ -1,12 +1,12 @@ // -// SUScheduledUpdateDriver.m +// SPUScheduledUpdateDriver.m // Sparkle // // Created by Mayur Pawashe on 3/15/16. // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUScheduledUpdateDriver.h" +#import "SPUScheduledUpdateDriver.h" #import "SUHost.h" #import "SUErrors.h" #import "SPUUpdaterDelegate.h" @@ -16,13 +16,13 @@ #error This is a "core" class and should NOT import AppKit #endif -@interface SUScheduledUpdateDriver() +@interface SPUScheduledUpdateDriver() -@property (nonatomic, readonly) SUUIBasedUpdateDriver *uiDriver; +@property (nonatomic, readonly) SPUUIBasedUpdateDriver *uiDriver; @end -@implementation SUScheduledUpdateDriver +@implementation SPUScheduledUpdateDriver @synthesize uiDriver = _uiDriver; @@ -30,12 +30,12 @@ { self = [super init]; if (self != nil) { - _uiDriver = [[SUUIBasedUpdateDriver alloc] initWithHost:host applicationBundle:applicationBundle sparkleBundle:sparkleBundle updater:updater userDriver:userDriver userInitiated:NO updaterDelegate:updaterDelegate delegate:self]; + _uiDriver = [[SPUUIBasedUpdateDriver alloc] initWithHost:host applicationBundle:applicationBundle sparkleBundle:sparkleBundle updater:updater userDriver:userDriver userInitiated:NO updaterDelegate:updaterDelegate delegate:self]; } return self; } -- (void)checkForUpdatesAtAppcastURL:(NSURL *)appcastURL withUserAgent:(NSString *)userAgent httpHeaders:(NSDictionary * _Nullable)httpHeaders preventingInstallerInteraction:(BOOL)preventsInstallerInteraction completion:(SUUpdateDriverCompletion)completionBlock +- (void)checkForUpdatesAtAppcastURL:(NSURL *)appcastURL withUserAgent:(NSString *)userAgent httpHeaders:(NSDictionary * _Nullable)httpHeaders preventingInstallerInteraction:(BOOL)preventsInstallerInteraction completion:(SPUUpdateDriverCompletion)completionBlock { [self.uiDriver prepareCheckForUpdatesWithCompletion:completionBlock]; @@ -49,12 +49,12 @@ }]; } -- (void)resumeInstallingUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock +- (void)resumeInstallingUpdateWithCompletion:(SPUUpdateDriverCompletion)completionBlock { [self.uiDriver resumeInstallingUpdateWithCompletion:completionBlock]; } -- (void)resumeDownloadedUpdate:(SUDownloadedUpdate *)downloadedUpdate completion:(SUUpdateDriverCompletion)completionBlock +- (void)resumeDownloadedUpdate:(SPUDownloadedUpdate *)downloadedUpdate completion:(SPUUpdateDriverCompletion)completionBlock { [self.uiDriver resumeDownloadedUpdate:downloadedUpdate completion:completionBlock]; } diff --git a/Sparkle/SUUIBasedUpdateDriver.h b/Sparkle/SPUUIBasedUpdateDriver.h similarity index 67% rename from Sparkle/SUUIBasedUpdateDriver.h rename to Sparkle/SPUUIBasedUpdateDriver.h index c31f7779..4a47df98 100644 --- a/Sparkle/SUUIBasedUpdateDriver.h +++ b/Sparkle/SPUUIBasedUpdateDriver.h @@ -1,5 +1,5 @@ // -// SUUIBasedUpdateDriver.h +// SPUUIBasedUpdateDriver.h // Sparkle // // Created by Mayur Pawashe on 3/18/16. @@ -7,11 +7,11 @@ // #import -#import "SUUpdateDriver.h" +#import "SPUUpdateDriver.h" NS_ASSUME_NONNULL_BEGIN -@protocol SUUIBasedUpdateDriverDelegate +@protocol SPUUIBasedUpdateDriverDelegate - (void)basicDriverIsRequestingAbortUpdateWithError:(nullable NSError *)error; - (void)coreDriverIsRequestingAbortUpdateWithError:(nullable NSError *)error; @@ -23,22 +23,22 @@ NS_ASSUME_NONNULL_BEGIN @end -@class SUHost, SUDownloadedUpdate; +@class SUHost, SPUDownloadedUpdate; @protocol SPUUserDriver, SPUUpdaterDelegate; -@interface SUUIBasedUpdateDriver : NSObject +@interface SPUUIBasedUpdateDriver : NSObject -- (instancetype)initWithHost:(SUHost *)host applicationBundle:(NSBundle *)applicationBundle sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater userDriver:(id )userDriver userInitiated:(BOOL)userInitiated updaterDelegate:(nullable id )updaterDelegate delegate:(id)delegate; +- (instancetype)initWithHost:(SUHost *)host applicationBundle:(NSBundle *)applicationBundle sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater userDriver:(id )userDriver userInitiated:(BOOL)userInitiated updaterDelegate:(nullable id )updaterDelegate delegate:(id)delegate; -- (void)prepareCheckForUpdatesWithCompletion:(SUUpdateDriverCompletion)completionBlock; +- (void)prepareCheckForUpdatesWithCompletion:(SPUUpdateDriverCompletion)completionBlock; - (void)preflightForUpdatePermissionPreventingInstallerInteraction:(BOOL)preventsInstallerInteraction reply:(void (^)(NSError * _Nullable))reply; - (void)checkForUpdatesAtAppcastURL:(NSURL *)appcastURL withUserAgent:(NSString *)userAgent httpHeaders:(NSDictionary * _Nullable)httpHeaders includesSkippedUpdates:(BOOL)includesSkippedUpdates; -- (void)resumeInstallingUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock; +- (void)resumeInstallingUpdateWithCompletion:(SPUUpdateDriverCompletion)completionBlock; -- (void)resumeDownloadedUpdate:(SUDownloadedUpdate *)downloadedUpdate completion:(SUUpdateDriverCompletion)completionBlock; +- (void)resumeDownloadedUpdate:(SPUDownloadedUpdate *)downloadedUpdate completion:(SPUUpdateDriverCompletion)completionBlock; - (void)abortUpdateWithError:(nullable NSError *)error; diff --git a/Sparkle/SUUIBasedUpdateDriver.m b/Sparkle/SPUUIBasedUpdateDriver.m similarity index 91% rename from Sparkle/SUUIBasedUpdateDriver.m rename to Sparkle/SPUUIBasedUpdateDriver.m index 3f6b01ff..cd8d96fb 100644 --- a/Sparkle/SUUIBasedUpdateDriver.m +++ b/Sparkle/SPUUIBasedUpdateDriver.m @@ -1,13 +1,13 @@ // -// SUUIBasedUpdateDriver.m +// SPUUIBasedUpdateDriver.m // Sparkle // // Created by Mayur Pawashe on 3/18/16. // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUUIBasedUpdateDriver.h" -#import "SUCoreBasedUpdateDriver.h" +#import "SPUUIBasedUpdateDriver.h" +#import "SPUCoreBasedUpdateDriver.h" #import "SPUUserDriver.h" #import "SUHost.h" #import "SUConstants.h" @@ -21,14 +21,14 @@ #error This is a "core" class and should NOT import AppKit #endif -@interface SUUIBasedUpdateDriver() +@interface SPUUIBasedUpdateDriver() -@property (nonatomic, readonly) SUCoreBasedUpdateDriver *coreDriver; +@property (nonatomic, readonly) SPUCoreBasedUpdateDriver *coreDriver; @property (nonatomic, readonly) SUHost *host; @property (nonatomic, weak, readonly) id updater; @property (nonatomic, readonly) BOOL userInitiated; @property (weak, nonatomic, readonly) id updaterDelegate; -@property (nonatomic, weak, readonly) id delegate; +@property (nonatomic, weak, readonly) id delegate; @property (nonatomic, readonly) id userDriver; @property (nonatomic) BOOL resumingInstallingUpdate; @property (nonatomic) BOOL resumingDownloadedUpdate; @@ -36,7 +36,7 @@ @end -@implementation SUUIBasedUpdateDriver +@implementation SPUUIBasedUpdateDriver @synthesize coreDriver = _coreDriver; @synthesize host = _host; @@ -49,7 +49,7 @@ @synthesize resumingDownloadedUpdate = _resumingDownloadedUpdate; @synthesize preventsInstallerInteraction = _preventsInstallerInteraction; -- (instancetype)initWithHost:(SUHost *)host applicationBundle:(NSBundle *)applicationBundle sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater userDriver:(id )userDriver userInitiated:(BOOL)userInitiated updaterDelegate:(nullable id )updaterDelegate delegate:(id)delegate +- (instancetype)initWithHost:(SUHost *)host applicationBundle:(NSBundle *)applicationBundle sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater userDriver:(id )userDriver userInitiated:(BOOL)userInitiated updaterDelegate:(nullable id )updaterDelegate delegate:(id)delegate { self = [super init]; if (self != nil) { @@ -60,12 +60,12 @@ _updaterDelegate = updaterDelegate; _host = host; - _coreDriver = [[SUCoreBasedUpdateDriver alloc] initWithHost:host applicationBundle:applicationBundle sparkleBundle:sparkleBundle updater:updater updaterDelegate:updaterDelegate delegate:self]; + _coreDriver = [[SPUCoreBasedUpdateDriver alloc] initWithHost:host applicationBundle:applicationBundle sparkleBundle:sparkleBundle updater:updater updaterDelegate:updaterDelegate delegate:self]; } return self; } -- (void)prepareCheckForUpdatesWithCompletion:(SUUpdateDriverCompletion)completionBlock +- (void)prepareCheckForUpdatesWithCompletion:(SPUUpdateDriverCompletion)completionBlock { [self.coreDriver prepareCheckForUpdatesWithCompletion:completionBlock]; } @@ -82,13 +82,13 @@ [self.coreDriver checkForUpdatesAtAppcastURL:appcastURL withUserAgent:userAgent httpHeaders:httpHeaders includesSkippedUpdates:includesSkippedUpdates requiresSilentInstall:NO]; } -- (void)resumeInstallingUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock +- (void)resumeInstallingUpdateWithCompletion:(SPUUpdateDriverCompletion)completionBlock { self.resumingInstallingUpdate = YES; [self.coreDriver resumeInstallingUpdateWithCompletion:completionBlock]; } -- (void)resumeDownloadedUpdate:(SUDownloadedUpdate *)downloadedUpdate completion:(SUUpdateDriverCompletion)completionBlock +- (void)resumeDownloadedUpdate:(SPUDownloadedUpdate *)downloadedUpdate completion:(SPUUpdateDriverCompletion)completionBlock { self.resumingDownloadedUpdate = YES; [self.coreDriver resumeDownloadedUpdate:downloadedUpdate completion:completionBlock]; diff --git a/Sparkle/SPUUpdateDriver.h b/Sparkle/SPUUpdateDriver.h new file mode 100644 index 00000000..5b32abed --- /dev/null +++ b/Sparkle/SPUUpdateDriver.h @@ -0,0 +1,28 @@ +// +// SPUUpdateDriver.h +// Sparkle +// +// Created by Mayur Pawashe on 3/15/16. +// Copyright © 2016 Sparkle Project. All rights reserved. +// + +NS_ASSUME_NONNULL_BEGIN + +@class SPUDownloadedUpdate; + +typedef void (^SPUUpdateDriverCompletion)(BOOL shouldShowUpdateImmediately, SPUDownloadedUpdate * _Nullable resumableUpdate); + +@protocol SPUUpdateDriver + +- (void)checkForUpdatesAtAppcastURL:(NSURL *)appcastURL withUserAgent:(NSString *)userAgent httpHeaders:(NSDictionary * _Nullable)httpHeaders preventingInstallerInteraction:(BOOL)preventsInstallerInteraction completion:(SPUUpdateDriverCompletion)completionBlock; + +- (void)resumeInstallingUpdateWithCompletion:(SPUUpdateDriverCompletion)completionBlock; + +- (void)resumeDownloadedUpdate:(SPUDownloadedUpdate *)downloadedUpdate completion:(SPUUpdateDriverCompletion)completionBlock; + +- (void)abortUpdate; +- (void)abortUpdateWithError:(NSError * _Nullable)error; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Sparkle/SPUUpdater.m b/Sparkle/SPUUpdater.m index f023f508..6d3f84ed 100644 --- a/Sparkle/SPUUpdater.m +++ b/Sparkle/SPUUpdater.m @@ -12,23 +12,23 @@ #import "SUHost.h" #import "SPUUpdatePermissionRequest.h" #import "SPUUpdatePermissionResponse.h" -#import "SUUpdateDriver.h" +#import "SPUUpdateDriver.h" #import "SUConstants.h" #import "SULog.h" #import "SUCodeSigningVerifier.h" #import "SUSystemProfiler.h" -#import "SUScheduledUpdateDriver.h" -#import "SUProbingUpdateDriver.h" -#import "SUUserInitiatedUpdateDriver.h" -#import "SUAutomaticUpdateDriver.h" -#import "SUProbeInstallStatus.h" +#import "SPUScheduledUpdateDriver.h" +#import "SPUProbingUpdateDriver.h" +#import "SPUUserInitiatedUpdateDriver.h" +#import "SPUAutomaticUpdateDriver.h" +#import "SPUProbeInstallStatus.h" #import "SUAppcastItem.h" #import "SPUInstallationInfo.h" #import "SUErrors.h" #import "SPUXPCServiceInfo.h" #import "SPUUpdaterCycle.h" #import "SPUUpdaterTimer.h" -#import "SUDownloadedUpdate.h" +#import "SPUDownloadedUpdate.h" #ifdef _APPKITDEFINES_H #error This is a "core" class and should NOT import AppKit @@ -47,7 +47,7 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification @property (nonatomic, readonly) id userDriver; @property (weak, readonly, nullable) id delegate; -@property (nonatomic) id driver; +@property (nonatomic) id driver; @property (nonatomic, readonly) SUHost *host; @property (nonatomic, readonly) NSBundle *applicationBundle; @property (nonatomic, readonly) SPUUpdaterSettings *updaterSettings; @@ -55,7 +55,7 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification @property (nonatomic, readonly) SPUUpdaterTimer *updaterTimer; @property (nonatomic) BOOL startedUpdater; @property (nonatomic, copy) void (^preStartedScheduledUpdateBlock)(void); -@property (nonatomic, nullable) SUDownloadedUpdate *resumableUpdate; +@property (nonatomic, nullable) SPUDownloadedUpdate *resumableUpdate; @property (nonatomic) BOOL loggedATSWarning; @property (nonatomic) BOOL loggedDSAWarning; @@ -406,17 +406,17 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification NSString *hostBundleIdentifier = self.host.bundle.bundleIdentifier; assert(hostBundleIdentifier != nil); - [SUProbeInstallStatus probeInstallerInProgressForHostBundleIdentifier:hostBundleIdentifier completion:^(BOOL installerIsRunning) { + [SPUProbeInstallStatus probeInstallerInProgressForHostBundleIdentifier:hostBundleIdentifier completion:^(BOOL installerIsRunning) { dispatch_async(dispatch_get_main_queue(), ^{ SPUUpdater *strongSelf = weakSelf; if (strongSelf == nil) { return; } - id updateDriver; + id updateDriver; if (!installerIsRunning && [strongSelf automaticallyDownloadsUpdates] && strongSelf.resumableUpdate == nil) { updateDriver = - [[SUAutomaticUpdateDriver alloc] + [[SPUAutomaticUpdateDriver alloc] initWithHost:strongSelf.host applicationBundle:strongSelf.applicationBundle sparkleBundle:strongSelf.sparkleBundle @@ -425,7 +425,7 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification updaterDelegate:strongSelf.delegate]; } else { updateDriver = - [[SUScheduledUpdateDriver alloc] + [[SPUScheduledUpdateDriver alloc] initWithHost:strongSelf.host applicationBundle:strongSelf.applicationBundle sparkleBundle:strongSelf.sparkleBundle @@ -460,11 +460,11 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification return; } - id theUpdateDriver = [[SUUserInitiatedUpdateDriver alloc] initWithHost:self.host applicationBundle:self.applicationBundle sparkleBundle:self.sparkleBundle updater:self userDriver:self.userDriver updaterDelegate:self.delegate]; + id theUpdateDriver = [[SPUUserInitiatedUpdateDriver alloc] initWithHost:self.host applicationBundle:self.applicationBundle sparkleBundle:self.sparkleBundle updater:self userDriver:self.userDriver updaterDelegate:self.delegate]; NSString *bundleIdentifier = self.host.bundle.bundleIdentifier; assert(bundleIdentifier != nil); - [SUProbeInstallStatus probeInstallerInProgressForHostBundleIdentifier:bundleIdentifier completion:^(BOOL installerInProgress) { + [SPUProbeInstallStatus probeInstallerInProgressForHostBundleIdentifier:bundleIdentifier completion:^(BOOL installerInProgress) { dispatch_async(dispatch_get_main_queue(), ^{ SPUUpdater *strongSelf = weakSelf; if (strongSelf != nil) { @@ -493,17 +493,17 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification NSString *bundleIdentifier = self.host.bundle.bundleIdentifier; assert(bundleIdentifier != nil); - [SUProbeInstallStatus probeInstallerInProgressForHostBundleIdentifier:bundleIdentifier completion:^(BOOL installerInProgress) { + [SPUProbeInstallStatus probeInstallerInProgressForHostBundleIdentifier:bundleIdentifier completion:^(BOOL installerInProgress) { dispatch_async(dispatch_get_main_queue(), ^{ SPUUpdater *strongSelf = weakSelf; if (strongSelf != nil) { - [strongSelf checkForUpdatesWithDriver:[[SUProbingUpdateDriver alloc] initWithHost:strongSelf.host updater:strongSelf updaterDelegate:strongSelf.delegate] installerInProgress:installerInProgress preventsInstallerInteraction:NO]; + [strongSelf checkForUpdatesWithDriver:[[SPUProbingUpdateDriver alloc] initWithHost:strongSelf.host updater:strongSelf updaterDelegate:strongSelf.delegate] installerInProgress:installerInProgress preventsInstallerInteraction:NO]; } }); }]; } -- (void)checkForUpdatesWithDriver:(id )d installerInProgress:(BOOL)installerInProgress preventsInstallerInteraction:(BOOL)preventsInstallerInteraction +- (void)checkForUpdatesWithDriver:(id )d installerInProgress:(BOOL)installerInProgress preventsInstallerInteraction:(BOOL)preventsInstallerInteraction { if (self.driver != nil) { return; @@ -548,7 +548,7 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification NSURL *theFeedURL = [self parameterizedFeedURL]; if (theFeedURL) { __weak SPUUpdater *weakSelf = self; - SUUpdateDriverCompletion completionBlock = ^(BOOL shouldShowUpdateImmediately, SUDownloadedUpdate * _Nullable resumableUpdate) { + SPUUpdateDriverCompletion completionBlock = ^(BOOL shouldShowUpdateImmediately, SPUDownloadedUpdate * _Nullable resumableUpdate) { SPUUpdater *strongSelf = weakSelf; if (strongSelf != nil) { strongSelf.resumableUpdate = resumableUpdate; @@ -563,7 +563,7 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification if (installerInProgress) { [self.driver resumeInstallingUpdateWithCompletion:completionBlock]; } else if (self.resumableUpdate != nil) { - [self.driver resumeDownloadedUpdate:(SUDownloadedUpdate * _Nonnull)self.resumableUpdate completion:completionBlock]; + [self.driver resumeDownloadedUpdate:(SPUDownloadedUpdate * _Nonnull)self.resumableUpdate completion:completionBlock]; } else { [self.driver checkForUpdatesAtAppcastURL:theFeedURL withUserAgent:[self userAgentString] httpHeaders:[self httpHeaders] preventingInstallerInteraction:preventsInstallerInteraction completion:completionBlock]; } @@ -789,7 +789,7 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification { NSString *hostBundleIdentifier = self.host.bundle.bundleIdentifier; assert(hostBundleIdentifier != nil); - [SUProbeInstallStatus probeInstallerUpdateItemForHostBundleIdentifier:hostBundleIdentifier completion:^(SPUInstallationInfo * _Nullable installationInfo) { + [SPUProbeInstallStatus probeInstallerUpdateItemForHostBundleIdentifier:hostBundleIdentifier completion:^(SPUInstallationInfo * _Nullable installationInfo) { dispatch_async(dispatch_get_main_queue(), ^{ NSTimeInterval regularCheckInterval = [self updateCheckInterval]; if (installationInfo == nil) { diff --git a/Sparkle/SUUserInitiatedUpdateDriver.h b/Sparkle/SPUUserInitiatedUpdateDriver.h similarity index 80% rename from Sparkle/SUUserInitiatedUpdateDriver.h rename to Sparkle/SPUUserInitiatedUpdateDriver.h index 71d8432c..fc2bedaf 100644 --- a/Sparkle/SUUserInitiatedUpdateDriver.h +++ b/Sparkle/SPUUserInitiatedUpdateDriver.h @@ -1,5 +1,5 @@ // -// SUUserInitiatedUpdateDriver.h +// SPUUserInitiatedUpdateDriver.h // Sparkle // // Created by Mayur Pawashe on 3/18/16. @@ -7,14 +7,14 @@ // #import -#import "SUUpdateDriver.h" +#import "SPUUpdateDriver.h" NS_ASSUME_NONNULL_BEGIN @class SUHost; @protocol SPUUpdaterDelegate, SPUUserDriver; -@interface SUUserInitiatedUpdateDriver : NSObject +@interface SPUUserInitiatedUpdateDriver : NSObject - (instancetype)initWithHost:(SUHost *)host applicationBundle:(NSBundle *)applicationBundle sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater userDriver:(id )userDriver updaterDelegate:(nullable id )updaterDelegate; diff --git a/Sparkle/SUUserInitiatedUpdateDriver.m b/Sparkle/SPUUserInitiatedUpdateDriver.m similarity index 81% rename from Sparkle/SUUserInitiatedUpdateDriver.m rename to Sparkle/SPUUserInitiatedUpdateDriver.m index ff6453a2..44419c4e 100644 --- a/Sparkle/SUUserInitiatedUpdateDriver.m +++ b/Sparkle/SPUUserInitiatedUpdateDriver.m @@ -1,29 +1,29 @@ // -// SUUserInitiatedUpdateDriver.m +// SPUUserInitiatedUpdateDriver.m // Sparkle // // Created by Mayur Pawashe on 3/18/16. // Copyright © 2016 Sparkle Project. All rights reserved. // -#import "SUUserInitiatedUpdateDriver.h" -#import "SUUIBasedUpdateDriver.h" +#import "SPUUserInitiatedUpdateDriver.h" +#import "SPUUIBasedUpdateDriver.h" #import "SPUUserDriver.h" #ifdef _APPKITDEFINES_H #error This is a "core" class and should NOT import AppKit #endif -@interface SUUserInitiatedUpdateDriver () +@interface SPUUserInitiatedUpdateDriver () -@property (nonatomic, readonly) SUUIBasedUpdateDriver *uiDriver; +@property (nonatomic, readonly) SPUUIBasedUpdateDriver *uiDriver; @property (nonatomic, readonly) id userDriver; @property (nonatomic) BOOL showingUserInitiatedProgress; @property (nonatomic) BOOL aborted; @end -@implementation SUUserInitiatedUpdateDriver +@implementation SPUUserInitiatedUpdateDriver @synthesize uiDriver = _uiDriver; @synthesize userDriver = _userDriver; @@ -34,13 +34,13 @@ { self = [super init]; if (self != nil) { - _uiDriver = [[SUUIBasedUpdateDriver alloc] initWithHost:host applicationBundle:applicationBundle sparkleBundle:sparkleBundle updater:updater userDriver:userDriver userInitiated:YES updaterDelegate:updaterDelegate delegate:self]; + _uiDriver = [[SPUUIBasedUpdateDriver alloc] initWithHost:host applicationBundle:applicationBundle sparkleBundle:sparkleBundle updater:updater userDriver:userDriver userInitiated:YES updaterDelegate:updaterDelegate delegate:self]; _userDriver = userDriver; } return self; } -- (void)checkForUpdatesAtAppcastURL:(NSURL *)appcastURL withUserAgent:(NSString *)userAgent httpHeaders:(NSDictionary * _Nullable)httpHeaders preventingInstallerInteraction:(BOOL)preventsInstallerInteraction completion:(SUUpdateDriverCompletion)completionBlock +- (void)checkForUpdatesAtAppcastURL:(NSURL *)appcastURL withUserAgent:(NSString *)userAgent httpHeaders:(NSDictionary * _Nullable)httpHeaders preventingInstallerInteraction:(BOOL)preventsInstallerInteraction completion:(SPUUpdateDriverCompletion)completionBlock { [self.uiDriver prepareCheckForUpdatesWithCompletion:completionBlock]; @@ -71,12 +71,12 @@ }]; } -- (void)resumeInstallingUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock +- (void)resumeInstallingUpdateWithCompletion:(SPUUpdateDriverCompletion)completionBlock { [self.uiDriver resumeInstallingUpdateWithCompletion:completionBlock]; } -- (void)resumeDownloadedUpdate:(SUDownloadedUpdate *)downloadedUpdate completion:(SUUpdateDriverCompletion)completionBlock +- (void)resumeDownloadedUpdate:(SPUDownloadedUpdate *)downloadedUpdate completion:(SPUUpdateDriverCompletion)completionBlock { [self.uiDriver resumeDownloadedUpdate:downloadedUpdate completion:completionBlock]; } diff --git a/Sparkle/SUUpdateDriver.h b/Sparkle/SUUpdateDriver.h deleted file mode 100644 index e3f4050a..00000000 --- a/Sparkle/SUUpdateDriver.h +++ /dev/null @@ -1,28 +0,0 @@ -// -// SUUpdateDriver.h -// Sparkle -// -// Created by Mayur Pawashe on 3/15/16. -// Copyright © 2016 Sparkle Project. All rights reserved. -// - -NS_ASSUME_NONNULL_BEGIN - -@class SUDownloadedUpdate; - -typedef void (^SUUpdateDriverCompletion)(BOOL shouldShowUpdateImmediately, SUDownloadedUpdate * _Nullable resumableUpdate); - -@protocol SUUpdateDriver - -- (void)checkForUpdatesAtAppcastURL:(NSURL *)appcastURL withUserAgent:(NSString *)userAgent httpHeaders:(NSDictionary * _Nullable)httpHeaders preventingInstallerInteraction:(BOOL)preventsInstallerInteraction completion:(SUUpdateDriverCompletion)completionBlock; - -- (void)resumeInstallingUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock; - -- (void)resumeDownloadedUpdate:(SUDownloadedUpdate *)downloadedUpdate completion:(SUUpdateDriverCompletion)completionBlock; - -- (void)abortUpdate; -- (void)abortUpdateWithError:(NSError * _Nullable)error; - -@end - -NS_ASSUME_NONNULL_END