More SU -> SPU renaming

Some of these class names conflicted with the official branch even though they are almost nothing like code-wise now.
This commit is contained in:
Zorg committed 2016-09-04 18:21:41 -04:00
1 parent 32373e8185
commit def9a599a3
27 files changed
+346 -346

No files matched your search

+1 -1
View File
@@ -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.
+118 -118
View File
@@ -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 = "<group>"; };
7223E7621AD1AEFF008E3161 /* sais.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sais.h; sourceTree = "<group>"; };
7229E1B51C97C91100CB50D0 /* SUUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUpdateDriver.h; sourceTree = "<group>"; };
7229E1B71C97CC4D00CB50D0 /* SUScheduledUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUScheduledUpdateDriver.h; sourceTree = "<group>"; };
7229E1B81C97CC4D00CB50D0 /* SUScheduledUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUScheduledUpdateDriver.m; sourceTree = "<group>"; };
7229E1BB1C98EFF200CB50D0 /* SUDownloadDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUDownloadDriver.h; sourceTree = "<group>"; };
7229E1BC1C98EFF200CB50D0 /* SUDownloadDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUDownloadDriver.m; sourceTree = "<group>"; };
7229E1B51C97C91100CB50D0 /* SPUUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUUpdateDriver.h; sourceTree = "<group>"; };
7229E1B71C97CC4D00CB50D0 /* SPUScheduledUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUScheduledUpdateDriver.h; sourceTree = "<group>"; };
7229E1B81C97CC4D00CB50D0 /* SPUScheduledUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUScheduledUpdateDriver.m; sourceTree = "<group>"; };
7229E1BB1C98EFF200CB50D0 /* SPUDownloadDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUDownloadDriver.h; sourceTree = "<group>"; };
7229E1BC1C98EFF200CB50D0 /* SPUDownloadDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUDownloadDriver.m; sourceTree = "<group>"; };
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 = "<group>"; };
7267E5E41D3D90AA00D1BF90 /* SUFileManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUFileManager.m; sourceTree = "<group>"; };
7267E5FB1D3DD1B700D1BF90 /* SUDownloadedUpdate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUDownloadedUpdate.h; sourceTree = "<group>"; };
7267E5FC1D3DD1B700D1BF90 /* SUDownloadedUpdate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUDownloadedUpdate.m; sourceTree = "<group>"; };
7267E5FB1D3DD1B700D1BF90 /* SPUDownloadedUpdate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUDownloadedUpdate.h; sourceTree = "<group>"; };
7267E5FC1D3DD1B700D1BF90 /* SPUDownloadedUpdate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUDownloadedUpdate.m; sourceTree = "<group>"; };
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 = "<group>"; };
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 = "<group>"; };
726F2CE31BC9C33D001971A4 /* SUOperatingSystem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUOperatingSystem.h; sourceTree = "<group>"; };
726F2CE41BC9C33D001971A4 /* SUOperatingSystem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUOperatingSystem.m; sourceTree = "<group>"; };
728337A41C9E6FF40085AA99 /* SUProbeInstallStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUProbeInstallStatus.h; sourceTree = "<group>"; };
728337A51C9E6FF40085AA99 /* SUProbeInstallStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUProbeInstallStatus.m; sourceTree = "<group>"; };
728337A41C9E6FF40085AA99 /* SPUProbeInstallStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUProbeInstallStatus.h; sourceTree = "<group>"; };
728337A51C9E6FF40085AA99 /* SPUProbeInstallStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUProbeInstallStatus.m; sourceTree = "<group>"; };
728638EE1CAF589C00783084 /* ConfigDownloader.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigDownloader.xcconfig; sourceTree = "<group>"; };
7293A1AC1CEE933800B957A7 /* SPUURLRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUURLRequest.h; sourceTree = "<group>"; };
7293A1AD1CEE933800B957A7 /* SPUURLRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUURLRequest.m; sourceTree = "<group>"; };
@@ -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 = "<group>"; };
72B767C91C9B707000A07552 /* SUAppcastDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUAppcastDriver.m; sourceTree = "<group>"; };
72B767CC1C9B924900A07552 /* SUInstallerDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUInstallerDriver.h; sourceTree = "<group>"; };
72B767CD1C9B924900A07552 /* SUInstallerDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUInstallerDriver.m; sourceTree = "<group>"; };
72B767D01C9C7B9300A07552 /* SUProbingUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUProbingUpdateDriver.h; sourceTree = "<group>"; };
72B767D11C9C7B9300A07552 /* SUProbingUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUProbingUpdateDriver.m; sourceTree = "<group>"; };
72B767D41C9C8B5C00A07552 /* SUBasicUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUBasicUpdateDriver.h; sourceTree = "<group>"; };
72B767D51C9C8B5C00A07552 /* SUBasicUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUBasicUpdateDriver.m; sourceTree = "<group>"; };
72B767D81C9CD2E400A07552 /* SUUIBasedUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUIBasedUpdateDriver.h; sourceTree = "<group>"; };
72B767D91C9CD2E400A07552 /* SUUIBasedUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUIBasedUpdateDriver.m; sourceTree = "<group>"; };
72B767DC1C9CDB9700A07552 /* SUUserInitiatedUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUserInitiatedUpdateDriver.h; sourceTree = "<group>"; };
72B767DD1C9CDB9700A07552 /* SUUserInitiatedUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUserInitiatedUpdateDriver.m; sourceTree = "<group>"; };
72B767E01C9CE90A00A07552 /* SUCoreBasedUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUCoreBasedUpdateDriver.h; sourceTree = "<group>"; };
72B767E11C9CE90A00A07552 /* SUCoreBasedUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUCoreBasedUpdateDriver.m; sourceTree = "<group>"; };
72B767E41C9CFD7200A07552 /* SUAutomaticUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUAutomaticUpdateDriver.h; sourceTree = "<group>"; };
72B767E51C9CFD7200A07552 /* SUAutomaticUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUAutomaticUpdateDriver.m; sourceTree = "<group>"; };
72B767CC1C9B924900A07552 /* SPUInstallerDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUInstallerDriver.h; sourceTree = "<group>"; };
72B767CD1C9B924900A07552 /* SPUInstallerDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUInstallerDriver.m; sourceTree = "<group>"; };
72B767D01C9C7B9300A07552 /* SPUProbingUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUProbingUpdateDriver.h; sourceTree = "<group>"; };
72B767D11C9C7B9300A07552 /* SPUProbingUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUProbingUpdateDriver.m; sourceTree = "<group>"; };
72B767D41C9C8B5C00A07552 /* SPUBasicUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUBasicUpdateDriver.h; sourceTree = "<group>"; };
72B767D51C9C8B5C00A07552 /* SPUBasicUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUBasicUpdateDriver.m; sourceTree = "<group>"; };
72B767D81C9CD2E400A07552 /* SPUUIBasedUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUUIBasedUpdateDriver.h; sourceTree = "<group>"; };
72B767D91C9CD2E400A07552 /* SPUUIBasedUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUUIBasedUpdateDriver.m; sourceTree = "<group>"; };
72B767DC1C9CDB9700A07552 /* SPUUserInitiatedUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUUserInitiatedUpdateDriver.h; sourceTree = "<group>"; };
72B767DD1C9CDB9700A07552 /* SPUUserInitiatedUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUUserInitiatedUpdateDriver.m; sourceTree = "<group>"; };
72B767E01C9CE90A00A07552 /* SPUCoreBasedUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUCoreBasedUpdateDriver.h; sourceTree = "<group>"; };
72B767E11C9CE90A00A07552 /* SPUCoreBasedUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUCoreBasedUpdateDriver.m; sourceTree = "<group>"; };
72B767E41C9CFD7200A07552 /* SPUAutomaticUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUAutomaticUpdateDriver.h; sourceTree = "<group>"; };
72B767E51C9CFD7200A07552 /* SPUAutomaticUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUAutomaticUpdateDriver.m; sourceTree = "<group>"; };
72BEBFEE1D7287560019146B /* SUSpotlightImporterTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SUSpotlightImporterTest.swift; sourceTree = "<group>"; };
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 = "<group>";
@@ -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 = "<group>";
@@ -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;
@@ -1,5 +1,5 @@
//
// SUAutomaticUpdateDriver.h
// SPUAutomaticUpdateDriver.h
// Sparkle
//
// Created by Mayur Pawashe on 3/18/16.
@@ -7,14 +7,14 @@
//
#import <Foundation/Foundation.h>
#import "SUUpdateDriver.h"
#import "SPUUpdateDriver.h"
NS_ASSUME_NONNULL_BEGIN
@class SUHost;
@protocol SPUUpdaterDelegate, SPUUserDriver;
@interface SUAutomaticUpdateDriver : NSObject <SUUpdateDriver>
@interface SPUAutomaticUpdateDriver : NSObject <SPUUpdateDriver>
- (instancetype)initWithHost:(SUHost *)host applicationBundle:(NSBundle *)applicationBundle sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater userDriver:(id <SPUUserDriver>)userDriver updaterDelegate:(nullable id <SPUUpdaterDelegate>)updaterDelegate;
@@ -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 () <SUCoreBasedUpdateDriverDelegate>
@interface SPUAutomaticUpdateDriver () <SPUCoreBasedUpdateDriverDelegate>
@property (nonatomic, readonly, weak) id updater;
@property (nonatomic, readonly, weak) id<SPUUserDriver> 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<SPUUpdaterDelegate> 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];
}];
@@ -1,5 +1,5 @@
//
// SUBasicUpdateDriver.h
// SPUBasicUpdateDriver.h
// Sparkle
//
// Created by Mayur Pawashe on 3/18/16.
@@ -7,14 +7,14 @@
//
#import <Foundation/Foundation.h>
#import "SUUpdateDriver.h"
#import "SPUUpdateDriver.h"
NS_ASSUME_NONNULL_BEGIN
@class SUHost, SUAppcastItem;
@protocol SPUUpdaterDelegate;
@protocol SUBasicUpdateDriverDelegate <NSObject>
@protocol SPUBasicUpdateDriverDelegate <NSObject>
- (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 <SPUUpdaterDelegate>)updaterDelegate delegate:(id <SUBasicUpdateDriverDelegate>)delegate;
- (instancetype)initWithHost:(SUHost *)host updater:(id)updater updaterDelegate:(nullable id <SPUUpdaterDelegate>)updaterDelegate delegate:(id <SPUBasicUpdateDriverDelegate>)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
@@ -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 () <SUAppcastDriverDelegate>
@interface SPUBasicUpdateDriver () <SUAppcastDriverDelegate>
@property (nonatomic, weak, readonly) id<SUBasicUpdateDriverDelegate> delegate;
@property (nonatomic, weak, readonly) id<SPUBasicUpdateDriverDelegate> 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 <SPUUpdaterDelegate>)updaterDelegate delegate:(id <SUBasicUpdateDriverDelegate>)delegate
- (instancetype)initWithHost:(SUHost *)host updater:(id)updater updaterDelegate:(id <SPUUpdaterDelegate>)updaterDelegate delegate:(id <SPUBasicUpdateDriverDelegate>)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;
@@ -1,5 +1,5 @@
//
// SUCoreBasedUpdateDriver.h
// SPUCoreBasedUpdateDriver.h
// Sparkle
//
// Created by Mayur Pawashe on 3/18/16.
@@ -8,14 +8,14 @@
#import <Foundation/Foundation.h>
#import "SPUStatusCompletionResults.h"
#import "SUUpdateDriver.h"
#import "SPUUpdateDriver.h"
NS_ASSUME_NONNULL_BEGIN
@class SUHost, SUAppcastItem;
@protocol SPUUpdaterDelegate;
@protocol SUCoreBasedUpdateDriverDelegate <NSObject>
@protocol SPUCoreBasedUpdateDriverDelegate <NSObject>
- (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 <SPUUpdaterDelegate>)updaterDelegate delegate:(id<SUCoreBasedUpdateDriverDelegate>)delegate;
- (instancetype)initWithHost:(SUHost *)host applicationBundle:(NSBundle *)applicationBundle sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater updaterDelegate:(nullable id <SPUUpdaterDelegate>)updaterDelegate delegate:(id<SPUCoreBasedUpdateDriverDelegate>)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;
@@ -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 () <SUBasicUpdateDriverDelegate, SUDownloadDriverDelegate, SUInstallerDriverDelegate>
@interface SPUCoreBasedUpdateDriver () <SPUBasicUpdateDriverDelegate, SPUDownloadDriverDelegate, SPUInstallerDriverDelegate>
@property (nonatomic, readonly) SUBasicUpdateDriver *basicDriver;
@property (nonatomic) SUDownloadDriver *downloadDriver;
@property (nonatomic, readonly) SUInstallerDriver *installerDriver;
@property (nonatomic, weak, readonly) id<SUCoreBasedUpdateDriverDelegate> delegate;
@property (nonatomic, readonly) SPUBasicUpdateDriver *basicDriver;
@property (nonatomic) SPUDownloadDriver *downloadDriver;
@property (nonatomic, readonly) SPUInstallerDriver *installerDriver;
@property (nonatomic, weak, readonly) id<SPUCoreBasedUpdateDriverDelegate> 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 <SPUUpdaterDelegate>)updaterDelegate delegate:(id<SUCoreBasedUpdateDriverDelegate>)delegate
- (instancetype)initWithHost:(SUHost *)host applicationBundle:(NSBundle *)applicationBundle sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater updaterDelegate:(nullable id <SPUUpdaterDelegate>)updaterDelegate delegate:(id<SPUCoreBasedUpdateDriverDelegate>)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];
}
+6 -6
View File
@@ -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 <NSObject>
@protocol SPUDownloadDriverDelegate <NSObject>
- (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<SUDownloadDriverDelegate>)delegate;
- (instancetype)initWithUpdateItem:(SUAppcastItem *)updateItem host:(SUHost *)host userAgent:(NSString *)userAgent delegate:(id<SPUDownloadDriverDelegate>)delegate;
- (void)downloadUpdate;
+11 -11
View File
@@ -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 () <SPUDownloaderDelegate>
@interface SPUDownloadDriver () <SPUDownloaderDelegate>
@property (nonatomic) id<SPUDownloaderProtocol> 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<SUDownloadDriverDelegate> delegate;
@property (nonatomic, weak) id<SPUDownloadDriverDelegate> 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<SUDownloadDriverDelegate>)delegate
- (instancetype)initWithUpdateItem:(SUAppcastItem *)updateItem host:(SUHost *)host userAgent:(NSString *)userAgent delegate:(id<SPUDownloadDriverDelegate>)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];
@@ -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;
@@ -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;
@@ -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 <NSObject>
@protocol SPUInstallerDriverDelegate <NSObject>
- (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<SPUUpdaterDelegate>)updaterDelegate delegate:(nullable id<SUInstallerDriverDelegate>)delegate;
- (instancetype)initWithHost:(SUHost *)host applicationBundle:(NSBundle *)applicationBundle sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater updaterDelegate:(nullable id<SPUUpdaterDelegate>)updaterDelegate delegate:(nullable id<SPUInstallerDriverDelegate>)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;
+13 -13
View File
@@ -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 () <SUInstallerCommunicationProtocol>
@interface SPUInstallerDriver () <SUInstallerCommunicationProtocol>
@property (nonatomic, readonly) SUHost *host;
@property (nonatomic, readonly) NSBundle *applicationBundle;
@property (nonatomic, readonly) NSBundle *sparkleBundle;
@property (nonatomic, weak, readonly) id<SUInstallerDriverDelegate> delegate;
@property (nonatomic, weak, readonly) id<SPUInstallerDriverDelegate> 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<SPUUpdaterDelegate>)updaterDelegate delegate:(nullable id<SUInstallerDriverDelegate>)delegate
- (instancetype)initWithHost:(SUHost *)host applicationBundle:(NSBundle *)applicationBundle sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater updaterDelegate:(id<SPUUpdaterDelegate>)updaterDelegate delegate:(nullable id<SPUInstallerDriverDelegate>)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];
}]) {
@@ -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;
@@ -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
{
@@ -1,5 +1,5 @@
//
// SUProbingUpdateDriver.h
// SPUProbingUpdateDriver.h
// Sparkle
//
// Created by Mayur Pawashe on 3/18/16.
@@ -7,14 +7,14 @@
//
#import <Foundation/Foundation.h>
#import "SUUpdateDriver.h"
#import "SPUUpdateDriver.h"
NS_ASSUME_NONNULL_BEGIN
@class SUHost;
@protocol SPUUpdaterDelegate;
@interface SUProbingUpdateDriver : NSObject <SUUpdateDriver>
@interface SPUProbingUpdateDriver : NSObject <SPUUpdateDriver>
- (instancetype)initWithHost:(SUHost *)host updater:(id)updater updaterDelegate:(nullable id <SPUUpdaterDelegate>)updaterDelegate;
@@ -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 () <SUBasicUpdateDriverDelegate>
@interface SPUProbingUpdateDriver () <SPUBasicUpdateDriverDelegate>
@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;
@@ -1,5 +1,5 @@
//
// SUScheduledUpdateDriver.h
// SPUScheduledUpdateDriver.h
// Sparkle
//
// Created by Mayur Pawashe on 3/15/16.
@@ -7,15 +7,15 @@
//
#import <Foundation/Foundation.h>
#import "SUUpdateDriver.h"
#import "SUUIBasedUpdateDriver.h"
#import "SPUUpdateDriver.h"
#import "SPUUIBasedUpdateDriver.h"
NS_ASSUME_NONNULL_BEGIN
@class SUHost;
@protocol SPUUserDriver, SPUUpdaterDelegate;
@interface SUScheduledUpdateDriver : NSObject <SUUpdateDriver>
@interface SPUScheduledUpdateDriver : NSObject <SPUUpdateDriver>
- (instancetype)initWithHost:(SUHost *)host applicationBundle:(NSBundle *)applicationBundle sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater userDriver:(id <SPUUserDriver>)userDriver updaterDelegate:(nullable id <SPUUpdaterDelegate>)updaterDelegate;
@@ -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() <SUUIBasedUpdateDriverDelegate>
@interface SPUScheduledUpdateDriver() <SPUUIBasedUpdateDriverDelegate>
@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];
}
@@ -1,5 +1,5 @@
//
// SUUIBasedUpdateDriver.h
// SPUUIBasedUpdateDriver.h
// Sparkle
//
// Created by Mayur Pawashe on 3/18/16.
@@ -7,11 +7,11 @@
//
#import <Foundation/Foundation.h>
#import "SUUpdateDriver.h"
#import "SPUUpdateDriver.h"
NS_ASSUME_NONNULL_BEGIN
@protocol SUUIBasedUpdateDriverDelegate <NSObject>
@protocol SPUUIBasedUpdateDriverDelegate <NSObject>
- (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 <SPUUserDriver>)userDriver userInitiated:(BOOL)userInitiated updaterDelegate:(nullable id <SPUUpdaterDelegate>)updaterDelegate delegate:(id<SUUIBasedUpdateDriverDelegate>)delegate;
- (instancetype)initWithHost:(SUHost *)host applicationBundle:(NSBundle *)applicationBundle sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater userDriver:(id <SPUUserDriver>)userDriver userInitiated:(BOOL)userInitiated updaterDelegate:(nullable id <SPUUpdaterDelegate>)updaterDelegate delegate:(id<SPUUIBasedUpdateDriverDelegate>)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;
@@ -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() <SUCoreBasedUpdateDriverDelegate>
@interface SPUUIBasedUpdateDriver() <SPUCoreBasedUpdateDriverDelegate>
@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<SPUUpdaterDelegate> updaterDelegate;
@property (nonatomic, weak, readonly) id<SUUIBasedUpdateDriverDelegate> delegate;
@property (nonatomic, weak, readonly) id<SPUUIBasedUpdateDriverDelegate> delegate;
@property (nonatomic, readonly) id<SPUUserDriver> 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 <SPUUserDriver>)userDriver userInitiated:(BOOL)userInitiated updaterDelegate:(nullable id <SPUUpdaterDelegate>)updaterDelegate delegate:(id<SUUIBasedUpdateDriverDelegate>)delegate
- (instancetype)initWithHost:(SUHost *)host applicationBundle:(NSBundle *)applicationBundle sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater userDriver:(id <SPUUserDriver>)userDriver userInitiated:(BOOL)userInitiated updaterDelegate:(nullable id <SPUUpdaterDelegate>)updaterDelegate delegate:(id<SPUUIBasedUpdateDriverDelegate>)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];
+28
View File
@@ -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 <NSObject>
- (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
+21 -21
View File
@@ -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<SPUUserDriver> userDriver;
@property (weak, readonly, nullable) id<SPUUpdaterDelegate> delegate;
@property (nonatomic) id <SUUpdateDriver> driver;
@property (nonatomic) id <SPUUpdateDriver> 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 <SUUpdateDriver> updateDriver;
id <SPUUpdateDriver> 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 <SUUpdateDriver> theUpdateDriver = [[SUUserInitiatedUpdateDriver alloc] initWithHost:self.host applicationBundle:self.applicationBundle sparkleBundle:self.sparkleBundle updater:self userDriver:self.userDriver updaterDelegate:self.delegate];
id <SPUUpdateDriver> 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 <SUUpdateDriver> )d installerInProgress:(BOOL)installerInProgress preventsInstallerInteraction:(BOOL)preventsInstallerInteraction
- (void)checkForUpdatesWithDriver:(id <SPUUpdateDriver> )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) {
@@ -1,5 +1,5 @@
//
// SUUserInitiatedUpdateDriver.h
// SPUUserInitiatedUpdateDriver.h
// Sparkle
//
// Created by Mayur Pawashe on 3/18/16.
@@ -7,14 +7,14 @@
//
#import <Foundation/Foundation.h>
#import "SUUpdateDriver.h"
#import "SPUUpdateDriver.h"
NS_ASSUME_NONNULL_BEGIN
@class SUHost;
@protocol SPUUpdaterDelegate, SPUUserDriver;
@interface SUUserInitiatedUpdateDriver : NSObject <SUUpdateDriver>
@interface SPUUserInitiatedUpdateDriver : NSObject <SPUUpdateDriver>
- (instancetype)initWithHost:(SUHost *)host applicationBundle:(NSBundle *)applicationBundle sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater userDriver:(id <SPUUserDriver>)userDriver updaterDelegate:(nullable id <SPUUpdaterDelegate>)updaterDelegate;
@@ -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 () <SUUIBasedUpdateDriverDelegate>
@interface SPUUserInitiatedUpdateDriver () <SPUUIBasedUpdateDriverDelegate>
@property (nonatomic, readonly) SUUIBasedUpdateDriver *uiDriver;
@property (nonatomic, readonly) SPUUIBasedUpdateDriver *uiDriver;
@property (nonatomic, readonly) id<SPUUserDriver> 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];
}
-28
View File
@@ -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 <NSObject>
- (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