diff --git a/Autoupdate/SUPlainInstaller.m b/Autoupdate/SUPlainInstaller.m index 585771ae..77b9ba9a 100644 --- a/Autoupdate/SUPlainInstaller.m +++ b/Autoupdate/SUPlainInstaller.m @@ -262,28 +262,24 @@ - (BOOL)performInitialInstallation:(NSError * __autoreleasing *)error { - BOOL allowDowngrades = SPARKLE_AUTOMATED_DOWNGRADES; - // Prevent malicious downgrades // Note that we may not be able to do this for package installations, hence this code being done here - if (!allowDowngrades) { - NSString *hostVersion = [self.host version]; + NSString *hostVersion = [self.host version]; + + NSBundle *bundle = [NSBundle bundleWithPath:self.bundlePath]; + SUHost *updateHost = [[SUHost alloc] initWithBundle:bundle]; + NSString *updateVersion = [updateHost objectForInfoDictionaryKey:(__bridge NSString *)kCFBundleVersionKey]; + + id comparator = [[SUStandardVersionComparator alloc] init]; + if (!updateVersion || [comparator compareVersion:hostVersion toVersion:updateVersion] == NSOrderedDescending) { - NSBundle *bundle = [NSBundle bundleWithPath:self.bundlePath]; - SUHost *updateHost = [[SUHost alloc] initWithBundle:bundle]; - NSString *updateVersion = [updateHost objectForInfoDictionaryKey:(__bridge NSString *)kCFBundleVersionKey]; - - id comparator = [[SUStandardVersionComparator alloc] init]; - if (!updateVersion || [comparator compareVersion:hostVersion toVersion:updateVersion] == NSOrderedDescending) { + if (error != NULL) { + NSString *errorMessage = [NSString stringWithFormat:@"For security reasons, updates that downgrade version of the application are not allowed. Refusing to downgrade app from version %@ to %@. Aborting update.", hostVersion, updateVersion]; - if (error != NULL) { - NSString *errorMessage = [NSString stringWithFormat:@"For security reasons, updates that downgrade version of the application are not allowed. Refusing to downgrade app from version %@ to %@. Aborting update.", hostVersion, updateVersion]; - - *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUDowngradeError userInfo:@{ NSLocalizedDescriptionKey: errorMessage }]; - } - - return NO; + *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUDowngradeError userInfo:@{ NSLocalizedDescriptionKey: errorMessage }]; } + + return NO; } return YES; diff --git a/Configurations/CommandLineTool-Shared.xcconfig b/Configurations/CommandLineTool-Shared.xcconfig index a1e48a7f..218fec5c 100644 --- a/Configurations/CommandLineTool-Shared.xcconfig +++ b/Configurations/CommandLineTool-Shared.xcconfig @@ -3,3 +3,4 @@ #include "ConfigSwift.xcconfig" SWIFT_OBJC_BRIDGING_HEADER = $(PRODUCT_NAME)/Bridging-Header.h +GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS) BUILDING_SPARKLE_TOOL=1 diff --git a/Configurations/ConfigCommon.xcconfig b/Configurations/ConfigCommon.xcconfig index 1800f918..fff4a6e2 100644 --- a/Configurations/ConfigCommon.xcconfig +++ b/Configurations/ConfigCommon.xcconfig @@ -4,9 +4,8 @@ SPARKLE_BUNDLE_IDENTIFIER = org.sparkle-project.Sparkle SPARKLE_RELAUNCH_TOOL_NAME = Autoupdate SPARKLE_INSTALLER_PROGRESS_TOOL_NAME = Updater -// Sparkle usually doesn't allow downgrades as they're usually accidental, but -// if your app has a downgrade function or URL handler, turn this on -SPARKLE_AUTOMATED_DOWNGRADES = 0 +// Set to 0 to only build all non-UI bits +SPARKLE_BUILD_UI_BITS = 1 // If your app file on disk is named "MyApp 1.1b4", Sparkle usually updates it // in place, giving you an app named 1.1b4 that is actually 1.2. Turn the @@ -39,7 +38,7 @@ INSTALLER_STATUS_BUNDLE_ID = ${XPC_SERVICE_BUNDLE_ID_PREFIX}.InstallerStatus INSTALLER_LAUNCHER_BUNDLE_ID = ${XPC_SERVICE_BUNDLE_ID_PREFIX}.InstallerLauncher DOWNLOADER_BUNDLE_ID = ${XPC_SERVICE_BUNDLE_ID_PREFIX}.Downloader -GCC_PREPROCESSOR_DEFINITIONS_COMMON = SPARKLE_NORMALIZE_INSTALLED_APPLICATION_NAME=$(SPARKLE_NORMALIZE_INSTALLED_APPLICATION_NAME) SPARKLE_AUTOMATED_DOWNGRADES=$(SPARKLE_AUTOMATED_DOWNGRADES) SPARKLE_BUNDLE_IDENTIFIER=\"$(SPARKLE_BUNDLE_IDENTIFIER)\" CURRENT_PROJECT_VERSION=\"$(CURRENT_PROJECT_VERSION)\" SPARKLE_RELAUNCH_TOOL_NAME=\"$(SPARKLE_RELAUNCH_TOOL_NAME)\" SPARKLE_INSTALLER_PROGRESS_TOOL_NAME=\"$(SPARKLE_INSTALLER_PROGRESS_TOOL_NAME)\" SPARKLE_ICON_NAME=\"$(SPARKLE_ICON_NAME)\" INSTALLER_LAUNCHER_BUNDLE_ID=\"${INSTALLER_LAUNCHER_BUNDLE_ID}\" INSTALLER_CONNECTION_BUNDLE_ID=\"${INSTALLER_CONNECTION_BUNDLE_ID}\" INSTALLER_STATUS_BUNDLE_ID=\"${INSTALLER_STATUS_BUNDLE_ID}\" DOWNLOADER_BUNDLE_ID=\"${DOWNLOADER_BUNDLE_ID}\" +GCC_PREPROCESSOR_DEFINITIONS_COMMON = SPARKLE_NORMALIZE_INSTALLED_APPLICATION_NAME=$(SPARKLE_NORMALIZE_INSTALLED_APPLICATION_NAME) SPARKLE_BUILD_UI_BITS=$(SPARKLE_BUILD_UI_BITS) SPARKLE_BUNDLE_IDENTIFIER=\"$(SPARKLE_BUNDLE_IDENTIFIER)\" CURRENT_PROJECT_VERSION=\"$(CURRENT_PROJECT_VERSION)\" SPARKLE_RELAUNCH_TOOL_NAME=\"$(SPARKLE_RELAUNCH_TOOL_NAME)\" SPARKLE_INSTALLER_PROGRESS_TOOL_NAME=\"$(SPARKLE_INSTALLER_PROGRESS_TOOL_NAME)\" SPARKLE_ICON_NAME=\"$(SPARKLE_ICON_NAME)\" INSTALLER_LAUNCHER_BUNDLE_ID=\"${INSTALLER_LAUNCHER_BUNDLE_ID}\" INSTALLER_CONNECTION_BUNDLE_ID=\"${INSTALLER_CONNECTION_BUNDLE_ID}\" INSTALLER_STATUS_BUNDLE_ID=\"${INSTALLER_STATUS_BUNDLE_ID}\" DOWNLOADER_BUNDLE_ID=\"${DOWNLOADER_BUNDLE_ID}\" CODE_SIGN_IDENTITY = - ENABLE_HARDENED_RUNTIME = YES @@ -65,7 +64,7 @@ CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES = YES CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS = YES CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES -CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO +CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES CLANG_WARN_UNREACHABLE_CODE = YES GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES diff --git a/Configurations/ConfigCommonRelease.xcconfig b/Configurations/ConfigCommonRelease.xcconfig index 7b16ab2e..7f5eceab 100644 --- a/Configurations/ConfigCommonRelease.xcconfig +++ b/Configurations/ConfigCommonRelease.xcconfig @@ -11,7 +11,7 @@ CLANG_WARN_SUSPICIOUS_MOVE = YES; GCC_OPTIMIZATION_LEVEL = s DEBUG_INFORMATION_FORMAT = dwarf-with-dsym GCC_GENERATE_DEBUGGING_SYMBOLS = YES -GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS_COMMON) +GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS_COMMON) DEBUG=0 DEAD_CODE_STRIPPING = YES GCC_TREAT_WARNINGS_AS_ERRORS = NO GCC_WARN_UNINITIALIZED_AUTOS = YES diff --git a/Configurations/ConfigDownloader.xcconfig b/Configurations/ConfigDownloader.xcconfig index 637456da..5acb78f0 100644 --- a/Configurations/ConfigDownloader.xcconfig +++ b/Configurations/ConfigDownloader.xcconfig @@ -5,3 +5,4 @@ WRAPPER_EXTENSION = xpc PRODUCT_BUNDLE_IDENTIFIER = ${DOWNLOADER_BUNDLE_ID} PRODUCT_NAME = ${DOWNLOADER_BUNDLE_ID} CODE_SIGN_ENTITLEMENTS = Downloader/${DOWNLOADER_BUNDLE_ID}.entitlements +GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS) BUILDING_SPARKLE_DOWNLOADER_SERVICE=1 diff --git a/Configurations/ConfigInstallerProgress.xcconfig b/Configurations/ConfigInstallerProgress.xcconfig index 2b0e0005..2538c9d7 100644 --- a/Configurations/ConfigInstallerProgress.xcconfig +++ b/Configurations/ConfigInstallerProgress.xcconfig @@ -2,5 +2,6 @@ INFOPLIST_FILE = Sparkle/InstallerProgress/InstallerProgress-Info.plist PRODUCT_NAME = $(SPARKLE_INSTALLER_PROGRESS_TOOL_NAME) +GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS) BUILDING_SPARKLE=0 SKIP_INSTALL = YES CLANG_ENABLE_MODULES = NO diff --git a/Configurations/ConfigUnitTest.xcconfig b/Configurations/ConfigUnitTest.xcconfig index eb14622d..aca29e5e 100644 --- a/Configurations/ConfigUnitTest.xcconfig +++ b/Configurations/ConfigUnitTest.xcconfig @@ -11,3 +11,4 @@ FRAMEWORK_SEARCH_PATHS = $(inherited) $(DEVELOPER_FRAMEWORKS_DIR) LD_RUNPATH_SEARCH_PATHS = @loader_path/../Frameworks CLANG_ENABLE_MODULES = YES SWIFT_OBJC_BRIDGING_HEADER = Tests/Sparkle Unit Tests-Bridging-Header.h +GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS) BUILDING_SPARKLE_TESTS=1 diff --git a/Configurations/make-release-package.sh b/Configurations/make-release-package.sh index 6f28327b..15fcd604 100755 --- a/Configurations/make-release-package.sh +++ b/Configurations/make-release-package.sh @@ -34,8 +34,6 @@ if [ "$ACTION" = "" ] ; then cp -R "$CONFIGURATION_BUILD_DIR/sparkle.app" "$CONFIGURATION_BUILD_DIR/staging-spm" cp -R "$CONFIGURATION_BUILD_DIR/Sparkle.framework" "$CONFIGURATION_BUILD_DIR/staging" cp -R "$CONFIGURATION_BUILD_DIR/Sparkle.xcframework" "$CONFIGURATION_BUILD_DIR/staging-spm" - cp -R "$CONFIGURATION_BUILD_DIR/SparkleCore.framework" "$CONFIGURATION_BUILD_DIR/staging" - cp -R "$CONFIGURATION_BUILD_DIR/SparkleCore.xcframework" "$CONFIGURATION_BUILD_DIR/staging-spm" mkdir -p "$CONFIGURATION_BUILD_DIR/staging/XPCServices" @@ -60,7 +58,6 @@ if [ "$ACTION" = "" ] ; then cp -R "$CONFIGURATION_BUILD_DIR/sparkle.app.dSYM" "$CONFIGURATION_BUILD_DIR/staging" cp -R "$CONFIGURATION_BUILD_DIR/sparkle.app.dSYM" "$CONFIGURATION_BUILD_DIR/staging-spm" cp -R "$CONFIGURATION_BUILD_DIR/Sparkle.framework.dSYM" "$CONFIGURATION_BUILD_DIR/staging" - cp -R "$CONFIGURATION_BUILD_DIR/SparkleCore.framework.dSYM" "$CONFIGURATION_BUILD_DIR/staging" cp -R "$CONFIGURATION_BUILD_DIR/$INSTALLER_LAUNCHER_BUNDLE_ID.xpc.dSYM" "$CONFIGURATION_BUILD_DIR/staging/XPCServices" cp -R "$CONFIGURATION_BUILD_DIR/$DOWNLOADER_BUNDLE_ID.xpc.dSYM" "$CONFIGURATION_BUILD_DIR/staging/XPCServices" @@ -101,7 +98,6 @@ if [ "$ACTION" = "" ] ; then # Test code signing validity of the extracted products # This guards against our archives being corrupt / created incorrectly codesign --verify -vvv --deep "/tmp/sparkle-extract/Sparkle.framework" - codesign --verify -vvv --deep "/tmp/sparkle-extract/SparkleCore.framework" codesign --verify -vvv --deep "/tmp/sparkle-extract/XPCServices/org.sparkle-project.Downloader.xpc" codesign --verify -vvv --deep "/tmp/sparkle-extract/XPCServices/org.sparkle-project.InstallerConnection.xpc" codesign --verify -vvv --deep "/tmp/sparkle-extract/XPCServices/org.sparkle-project.InstallerLauncher.xpc" diff --git a/InstallerLauncher/SUInstallerLauncher.m b/InstallerLauncher/SUInstallerLauncher.m index a25f72cc..f1466e78 100644 --- a/InstallerLauncher/SUInstallerLauncher.m +++ b/InstallerLauncher/SUInstallerLauncher.m @@ -14,9 +14,9 @@ #import "SPULocalCacheDirectory.h" #import "SPUInstallationType.h" #import "SUHost.h" +#import #import - #include "AppKitPrevention.h" @implementation SUInstallerLauncher diff --git a/Sparkle.xcodeproj/project.pbxproj b/Sparkle.xcodeproj/project.pbxproj index ecb65e20..b77632b7 100644 --- a/Sparkle.xcodeproj/project.pbxproj +++ b/Sparkle.xcodeproj/project.pbxproj @@ -46,7 +46,6 @@ 14732BD019610A0D00593899 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D69BFE84028FC02AAC07 /* Foundation.framework */; }; 14732BD119610A1200593899 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D6A5FE840307C02AAC07 /* AppKit.framework */; }; 14732BD319610A1800593899 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 14732BD219610A1800593899 /* XCTest.framework */; }; - 1495006E195FCE1100BC5B5B /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D6A5FE840307C02AAC07 /* AppKit.framework */; }; 1495006F195FCE1800BC5B5B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D69BFE84028FC02AAC07 /* Foundation.framework */; }; 14950072195FCE4B00BC5B5B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D69BFE84028FC02AAC07 /* Foundation.framework */; }; 14950073195FCE4E00BC5B5B /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D6A5FE840307C02AAC07 /* AppKit.framework */; }; @@ -100,14 +99,12 @@ 61B5F93009C4CFDC00B25A18 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B5F92409C4CFC900B25A18 /* main.m */; }; 61B5FBB709C4FAFF00B25A18 /* SUAppcast.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B5FB9509C4F04600B25A18 /* SUAppcast.m */; }; 61B5FC0D09C4FC8200B25A18 /* SUAppcast.h in Headers */ = {isa = PBXBuildFile; fileRef = 61B5FB9409C4F04600B25A18 /* SUAppcast.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 61B5FC4C09C4FD5E00B25A18 /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 61B5FC3F09C4FD4000B25A18 /* WebKit.framework */; }; 61B5FC6F09C51F4900B25A18 /* SUAppcastItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B5FC5409C5182000B25A18 /* SUAppcastItem.m */; }; 61B5FC7009C51F4A00B25A18 /* SUAppcastItem.h in Headers */ = {isa = PBXBuildFile; fileRef = 61B5FC5309C5182000B25A18 /* SUAppcastItem.h */; settings = {ATTRIBUTES = (Public, ); }; }; 61B5FCDE09C52A9F00B25A18 /* SUUpdateAlert.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B5FCA109C5228F00B25A18 /* SUUpdateAlert.m */; }; 61B5FCDF09C52A9F00B25A18 /* SUUpdateAlert.h in Headers */ = {isa = PBXBuildFile; fileRef = 61B5FCA009C5228F00B25A18 /* SUUpdateAlert.h */; settings = {ATTRIBUTES = (); }; }; 61EF67560E25B58D00F754E0 /* SUHost.m in Sources */ = {isa = PBXBuildFile; fileRef = 61EF67550E25B58D00F754E0 /* SUHost.m */; }; 61EF67590E25C5B400F754E0 /* SUHost.h in Headers */ = {isa = PBXBuildFile; fileRef = 61EF67580E25C5B400F754E0 /* SUHost.h */; }; - 61FA52880E2D9EA400EF58AD /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DC2EF5B0486A6940098B216 /* Sparkle.framework */; settings = {ATTRIBUTES = (Required, ); }; }; 720595EF1D700568000572E8 /* SUApplicationInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 725602D41C83551C00DAA70E /* SUApplicationInfo.m */; }; 7205C4411E13049400E370AE /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7205C4401E13049400E370AE /* main.swift */; }; 7205C44C1E1304CE00E370AE /* Appcast.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7205C4471E1304CE00E370AE /* Appcast.swift */; }; @@ -153,9 +150,7 @@ 721CF1AA1AD7647000D9AC09 /* libxar.1.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D1AF5890FD7678C0065DB48 /* libxar.1.dylib */; }; 721CF1AB1AD764EB00D9AC09 /* libbz2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D06E8FB0FD68D61005AE3F6 /* libbz2.dylib */; }; 721D588D25BE59F900D23BEA /* SUPhasedUpdateGroupInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 721D588B25BE59F900D23BEA /* SUPhasedUpdateGroupInfo.h */; }; - 721D588E25BE59F900D23BEA /* SUPhasedUpdateGroupInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 721D588B25BE59F900D23BEA /* SUPhasedUpdateGroupInfo.h */; }; 721D588F25BE59F900D23BEA /* SUPhasedUpdateGroupInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 721D588C25BE59F900D23BEA /* SUPhasedUpdateGroupInfo.m */; }; - 721D589025BE59F900D23BEA /* SUPhasedUpdateGroupInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 721D588C25BE59F900D23BEA /* SUPhasedUpdateGroupInfo.m */; }; 721D5A8525C65D3F00D23BEA /* SUFlatPackageUnarchiver.m in Sources */ = {isa = PBXBuildFile; fileRef = 721D5A8425C65D3F00D23BEA /* SUFlatPackageUnarchiver.m */; }; 721D5ABC25C680A300D23BEA /* SUFlatPackageUnarchiver.m in Sources */ = {isa = PBXBuildFile; fileRef = 721D5A8425C65D3F00D23BEA /* SUFlatPackageUnarchiver.m */; }; 721D5B1B25C692BB00D23BEA /* SUFlatPackageUnarchiver.m in Sources */ = {isa = PBXBuildFile; fileRef = 721D5A8425C65D3F00D23BEA /* SUFlatPackageUnarchiver.m */; }; @@ -285,12 +280,9 @@ 7267E5FA1D3DAC3600D1BF90 /* StatusInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5A41D3D8A8A00D1BF90 /* StatusInfo.m */; }; 7267E5FD1D3DD1B700D1BF90 /* SPUResumableUpdate.h in Headers */ = {isa = PBXBuildFile; fileRef = 7267E5FB1D3DD1B700D1BF90 /* SPUResumableUpdate.h */; }; 7269E494264798200088C213 /* SPUSkippedUpdate.h in Headers */ = {isa = PBXBuildFile; fileRef = 7269E492264798200088C213 /* SPUSkippedUpdate.h */; }; - 7269E495264798200088C213 /* SPUSkippedUpdate.h in Headers */ = {isa = PBXBuildFile; fileRef = 7269E492264798200088C213 /* SPUSkippedUpdate.h */; }; 7269E496264798200088C213 /* SPUSkippedUpdate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7269E493264798200088C213 /* SPUSkippedUpdate.m */; }; - 7269E497264798200088C213 /* SPUSkippedUpdate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7269E493264798200088C213 /* SPUSkippedUpdate.m */; }; 7269E4982648D3460088C213 /* SPUSkippedUpdate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7269E493264798200088C213 /* SPUSkippedUpdate.m */; }; 7269E49A2648F7C00088C213 /* SPUUserUpdateState.m in Sources */ = {isa = PBXBuildFile; fileRef = 7269E4992648F7C00088C213 /* SPUUserUpdateState.m */; }; - 7269E49B2648F7C00088C213 /* SPUUserUpdateState.m in Sources */ = {isa = PBXBuildFile; fileRef = 7269E4992648F7C00088C213 /* SPUUserUpdateState.m */; }; 726DF88E1C84277600188804 /* SPUUserUpdateState.h in Headers */ = {isa = PBXBuildFile; fileRef = 726DF88D1C84277500188804 /* SPUUserUpdateState.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 */; }; @@ -312,7 +304,6 @@ 726F2CE91BC9C499001971A4 /* SUOperatingSystem.m in Sources */ = {isa = PBXBuildFile; fileRef = 726F2CE41BC9C33D001971A4 /* SUOperatingSystem.m */; }; 726F2CEB1BC9C733001971A4 /* SUConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A5F09CA6EB100B7442F /* SUConstants.m */; }; 727F340B2605321D00020E85 /* SULog+NSError.m in Sources */ = {isa = PBXBuildFile; fileRef = 727F340A2605321D00020E85 /* SULog+NSError.m */; }; - 727F340C2605321D00020E85 /* SULog+NSError.m in Sources */ = {isa = PBXBuildFile; fileRef = 727F340A2605321D00020E85 /* SULog+NSError.m */; }; 727F340D2605321D00020E85 /* SULog+NSError.m in Sources */ = {isa = PBXBuildFile; fileRef = 727F340A2605321D00020E85 /* SULog+NSError.m */; }; 727F340E2605321D00020E85 /* SULog+NSError.m in Sources */ = {isa = PBXBuildFile; fileRef = 727F340A2605321D00020E85 /* SULog+NSError.m */; }; 728337A61C9E6FF40085AA99 /* SPUProbeInstallStatus.h in Headers */ = {isa = PBXBuildFile; fileRef = 728337A41C9E6FF40085AA99 /* SPUProbeInstallStatus.h */; }; @@ -323,82 +314,10 @@ 7293A1AF1CEE933800B957A7 /* SPUURLRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 7293A1AD1CEE933800B957A7 /* SPUURLRequest.m */; }; 7293A1B11CEE9B9F00B957A7 /* SPUURLRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 7293A1AD1CEE933800B957A7 /* SPUURLRequest.m */; }; 729924941DF4A45000DBCDF5 /* SUUpdateValidator.m in Sources */ = {isa = PBXBuildFile; fileRef = 729924931DF4A45000DBCDF5 /* SUUpdateValidator.m */; }; - 729E1D1F26651CF500BF3EFB /* SPUAppcastItemState.h in Headers */ = {isa = PBXBuildFile; fileRef = 729E1D1D26651CF500BF3EFB /* SPUAppcastItemState.h */; }; - 729E1D2026651CF500BF3EFB /* SPUAppcastItemState.h in Headers */ = {isa = PBXBuildFile; fileRef = 729E1D1D26651CF500BF3EFB /* SPUAppcastItemState.h */; }; - 729E1D2126651CF500BF3EFB /* SPUAppcastItemState.m in Sources */ = {isa = PBXBuildFile; fileRef = 729E1D1E26651CF500BF3EFB /* SPUAppcastItemState.m */; }; - 729E1D2226651CF500BF3EFB /* SPUAppcastItemState.m in Sources */ = {isa = PBXBuildFile; fileRef = 729E1D1E26651CF500BF3EFB /* SPUAppcastItemState.m */; }; - 729E1D232665231700BF3EFB /* SPUAppcastItemState.m in Sources */ = {isa = PBXBuildFile; fileRef = 729E1D1E26651CF500BF3EFB /* SPUAppcastItemState.m */; }; - 729E1D242665234700BF3EFB /* SPUAppcastItemState.m in Sources */ = {isa = PBXBuildFile; fileRef = 729E1D1E26651CF500BF3EFB /* SPUAppcastItemState.m */; }; - 729E1D2726652DCF00BF3EFB /* SPUAppcastItemStateResolver.h in Headers */ = {isa = PBXBuildFile; fileRef = 729E1D2526652DCF00BF3EFB /* SPUAppcastItemStateResolver.h */; }; - 729E1D2826652DCF00BF3EFB /* SPUAppcastItemStateResolver.h in Headers */ = {isa = PBXBuildFile; fileRef = 729E1D2526652DCF00BF3EFB /* SPUAppcastItemStateResolver.h */; }; - 729E1D2926652DCF00BF3EFB /* SPUAppcastItemStateResolver.m in Sources */ = {isa = PBXBuildFile; fileRef = 729E1D2626652DCF00BF3EFB /* SPUAppcastItemStateResolver.m */; }; - 729E1D2A26652DCF00BF3EFB /* SPUAppcastItemStateResolver.m in Sources */ = {isa = PBXBuildFile; fileRef = 729E1D2626652DCF00BF3EFB /* SPUAppcastItemStateResolver.m */; }; 72A1C2631CD6849C004CD282 /* SUUpdatePermissionPrompt.h in Headers */ = {isa = PBXBuildFile; fileRef = 612DCBAD0D488BC60015DBEA /* SUUpdatePermissionPrompt.h */; }; 72A450531C69A68900D67EEA /* SUUpdatePermissionResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 72A450511C69A68900D67EEA /* SUUpdatePermissionResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; 72A450541C69A68900D67EEA /* SUUpdatePermissionResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 72A450521C69A68900D67EEA /* SUUpdatePermissionResponse.m */; }; 72A4A2401BB6567D00E7820D /* SUFileManagerTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 72A4A23F1BB6567D00E7820D /* SUFileManagerTest.swift */; }; - 72A5D5A61D6928630009E5AC /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D69BFE84028FC02AAC07 /* Foundation.framework */; }; - 72A5D5AD1D6929F80009E5AC /* SPUXPCServiceInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 72F94F571CC44DE1002DEE68 /* SPUXPCServiceInfo.m */; }; - 72A5D5AE1D6929F80009E5AC /* SUInstallerLauncher.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E07B11CAF08D6001A286B /* SUInstallerLauncher.m */; }; - 72A5D5AF1D6929F80009E5AC /* SPUDownloader.m in Sources */ = {isa = PBXBuildFile; fileRef = 723B5DA31CF7AB0100365F95 /* SPUDownloader.m */; }; - 72A5D5B01D6929F80009E5AC /* SUInstallerConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = 724BB3701D31D0B7005D534A /* SUInstallerConnection.m */; }; - 72A5D5B11D6929F80009E5AC /* SUXPCInstallerConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = 724BB3861D32A167005D534A /* SUXPCInstallerConnection.m */; }; - 72A5D5B21D6929F80009E5AC /* SUInstallerStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 724BB3971D333832005D534A /* SUInstallerStatus.m */; }; - 72A5D5B31D6929F80009E5AC /* SUXPCInstallerStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 724BB3A71D33461B005D534A /* SUXPCInstallerStatus.m */; }; - 72A5D5B41D6929F80009E5AC /* SPUInstallationInputData.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5AD1D3D8AB700D1BF90 /* SPUInstallationInputData.m */; }; - 72A5D5B51D6929F80009E5AC /* SPUMessageTypes.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5B01D3D8AD500D1BF90 /* SPUMessageTypes.m */; }; - 72A5D5B61D6929F80009E5AC /* SPUSecureCoding.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E075B1CA3A6D6001A286B /* SPUSecureCoding.m */; }; - 72A5D5B71D6929F80009E5AC /* SPUInstallationInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5B51D3D8AEE00D1BF90 /* SPUInstallationInfo.m */; }; - 72A5D5B91D6929F80009E5AC /* SUAppcast.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B5FB9509C4F04600B25A18 /* SUAppcast.m */; }; - 72A5D5BA1D6929F80009E5AC /* SUAppcastItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B5FC5409C5182000B25A18 /* SUAppcastItem.m */; }; - 72A5D5BC1D6929F80009E5AC /* SPUURLRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 7293A1AD1CEE933800B957A7 /* SPUURLRequest.m */; }; - 72A5D5BD1D6929F80009E5AC /* SPUDownloadData.m in Sources */ = {isa = PBXBuildFile; fileRef = 72F9EC431D5E9ED8004AC8B6 /* SPUDownloadData.m */; }; - 72A5D5BE1D6929F80009E5AC /* SUStandardVersionComparator.m in Sources */ = {isa = PBXBuildFile; fileRef = 61A225A30D1C4AC000430CCD /* SUStandardVersionComparator.m */; }; - 72A5D5BF1D6929F80009E5AC /* SUSystemProfiler.m in Sources */ = {isa = PBXBuildFile; fileRef = 61A2279B0D1CEE7600430CCD /* SUSystemProfiler.m */; }; - 72A5D5C01D6929F80009E5AC /* SUConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A5F09CA6EB100B7442F /* SUConstants.m */; }; - 72A5D5C11D6929F80009E5AC /* SUHost.m in Sources */ = {isa = PBXBuildFile; fileRef = 61EF67550E25B58D00F754E0 /* SUHost.m */; }; - 72A5D5C21D6929F80009E5AC /* SUFileManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5E41D3D90AA00D1BF90 /* SUFileManager.m */; }; - 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 /* 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 /* SPUProbeInstallStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = 728337A51C9E6FF40085AA99 /* SPUProbeInstallStatus.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 */; }; - 72A5D5D71D6929F80009E5AC /* SUUpdatePermissionResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 72A450521C69A68900D67EEA /* SUUpdatePermissionResponse.m */; }; - 72A5D5D81D6929F80009E5AC /* SPUUpdaterCycle.m in Sources */ = {isa = PBXBuildFile; fileRef = 720E217A1D0D00BF003A311C /* SPUUpdaterCycle.m */; }; - 72A5D5D91D6929F90009E5AC /* SPUUpdaterTimer.m in Sources */ = {isa = PBXBuildFile; fileRef = 72F9EC3E1D5E823F004AC8B6 /* SPUUpdaterTimer.m */; }; - 72A5D5DC1D692A4E0009E5AC /* SUCodeSigningVerifier.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5991D3D8A5A00D1BF90 /* SUCodeSigningVerifier.m */; }; - 72A5D5DE1D692ACC0009E5AC /* SparkleCore.h in Headers */ = {isa = PBXBuildFile; fileRef = 72A5D5DD1D692ACC0009E5AC /* SparkleCore.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 72A5D5DF1D692B570009E5AC /* SUAppcast.h in Headers */ = {isa = PBXBuildFile; fileRef = 61B5FB9409C4F04600B25A18 /* SUAppcast.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 72A5D5E01D692B570009E5AC /* SUAppcastItem.h in Headers */ = {isa = PBXBuildFile; fileRef = 61B5FC5309C5182000B25A18 /* SUAppcastItem.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 72A5D5E11D692B660009E5AC /* SUStandardVersionComparator.h in Headers */ = {isa = PBXBuildFile; fileRef = 61A225A20D1C4AC000430CCD /* SUStandardVersionComparator.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 72A5D5E21D692B770009E5AC /* SPUUpdater.h in Headers */ = {isa = PBXBuildFile; fileRef = 61B5F8E309C4CE3C00B25A18 /* SPUUpdater.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 72A5D5E31D692B770009E5AC /* SPUUpdaterSettings.h in Headers */ = {isa = PBXBuildFile; fileRef = 726E078B1CA891E9001A286B /* SPUUpdaterSettings.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 72A5D5E41D692B770009E5AC /* SPUUpdaterDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 72F9EC471D5EA7D3004AC8B6 /* SPUUpdaterDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 72A5D5E51D692B8C0009E5AC /* SUVersionComparisonProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 61A2259C0D1C495D00430CCD /* SUVersionComparisonProtocol.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 72A5D5E61D692BA20009E5AC /* SUErrors.h in Headers */ = {isa = PBXBuildFile; fileRef = 55E6F33219EC9F6C00005E76 /* SUErrors.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 72A5D5E71D692BB00009E5AC /* SPUUpdatePermissionRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 72DBA37B1D60CC34002594A8 /* SPUUpdatePermissionRequest.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 72A5D5E81D692BBB0009E5AC /* SUUpdatePermissionResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 72A450511C69A68900D67EEA /* SUUpdatePermissionResponse.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 72A5D5E91D692BC80009E5AC /* SPUUserDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 725CB9561C7120410064365A /* SPUUserDriver.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 72A5D5EB1D692BD40009E5AC /* SPUDownloadData.h in Headers */ = {isa = PBXBuildFile; fileRef = 72F9EC421D5E9ED8004AC8B6 /* SPUDownloadData.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 72A5D5EF1D692C440009E5AC /* Autoupdate in Copy Tools */ = {isa = PBXBuildFile; fileRef = 72B398D21D3D879300EE297F /* Autoupdate */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; - 72A5D5F01D692C4B0009E5AC /* Updater.app in Copy Tools */ = {isa = PBXBuildFile; fileRef = 721C24451CB753E6005440CB /* Updater.app */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; - 72A5D5F41D692CF50009E5AC /* SparkleCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A5D59C1D6927730009E5AC /* SparkleCore.framework */; }; - 72A5D5F51D692CFE0009E5AC /* SparkleCore.framework in Copy Sparkle */ = {isa = PBXBuildFile; fileRef = 72A5D59C1D6927730009E5AC /* SparkleCore.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 72A5D5F81D692F2B0009E5AC /* SUExport.h in Headers */ = {isa = PBXBuildFile; fileRef = 14652F8319A9759F00959E44 /* SUExport.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 72A5D5F91D692F4C0009E5AC /* SPUUserUpdateState.h in Headers */ = {isa = PBXBuildFile; fileRef = 726DF88D1C84277500188804 /* SPUUserUpdateState.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 72A5D5FB1D69312F0009E5AC /* SUBundleIcon.m in Sources */ = {isa = PBXBuildFile; fileRef = 7214B8801D456A8500CB5CED /* SUBundleIcon.m */; }; 72A6F98A1C94E2D6005F404C /* SUUpdaterDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 72A6F9891C94E2D6005F404C /* SUUpdaterDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; }; 72AC6B261B9AAC8800F62325 /* SparkleTestCodeSignApp.tar.gz in Resources */ = {isa = PBXBuildFile; fileRef = 72AC6B251B9AAC8800F62325 /* SparkleTestCodeSignApp.tar.gz */; }; 72AC6B281B9AAD6700F62325 /* SparkleTestCodeSignApp.tar in Resources */ = {isa = PBXBuildFile; fileRef = 72AC6B271B9AAD6700F62325 /* SparkleTestCodeSignApp.tar */; }; @@ -408,11 +327,7 @@ 72B3DEC91E23472200457642 /* SPUDownloadedUpdate.h in Headers */ = {isa = PBXBuildFile; fileRef = 72B3DEC71E23472200457642 /* SPUDownloadedUpdate.h */; }; 72B3DECA1E23472200457642 /* SPUDownloadedUpdate.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B3DEC81E23472200457642 /* SPUDownloadedUpdate.m */; }; 72B3DECD1E23479000457642 /* SPUInformationalUpdate.h in Headers */ = {isa = PBXBuildFile; fileRef = 72B3DECB1E23479000457642 /* SPUInformationalUpdate.h */; }; - 72B3DECE1E23479000457642 /* SPUInformationalUpdate.h in Headers */ = {isa = PBXBuildFile; fileRef = 72B3DECB1E23479000457642 /* SPUInformationalUpdate.h */; }; 72B3DECF1E23479000457642 /* SPUInformationalUpdate.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B3DECC1E23479000457642 /* SPUInformationalUpdate.m */; }; - 72B3DED01E23479000457642 /* SPUInformationalUpdate.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B3DECC1E23479000457642 /* SPUInformationalUpdate.m */; }; - 72B3DED11E23479D00457642 /* SPUDownloadedUpdate.m in Sources */ = {isa = PBXBuildFile; fileRef = 72B3DEC81E23472200457642 /* SPUDownloadedUpdate.m */; }; - 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 /* SPUInstallerDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 72B767CC1C9B924900A07552 /* SPUInstallerDriver.h */; }; @@ -446,6 +361,14 @@ 72EB87EA1CB8798800C37F42 /* ShowInstallerProgress.m in Sources */ = {isa = PBXBuildFile; fileRef = 72EB87E91CB8798800C37F42 /* ShowInstallerProgress.m */; }; 72EB87EB1CB8859100C37F42 /* Updater.app in Copy Tools */ = {isa = PBXBuildFile; fileRef = 721C24451CB753E6005440CB /* Updater.app */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 72EB87EC1CB8887E00C37F42 /* SUStatus.xib in Resources */ = {isa = PBXBuildFile; fileRef = 55C14BD8136EF00C00649790 /* SUStatus.xib */; }; + 72EF30BE2675CF38008CE987 /* SPUAppcastItemStateResolver.h in Headers */ = {isa = PBXBuildFile; fileRef = 72EF30BA2675CF38008CE987 /* SPUAppcastItemStateResolver.h */; }; + 72EF30BF2675CF38008CE987 /* SPUAppcastItemState.m in Sources */ = {isa = PBXBuildFile; fileRef = 72EF30BB2675CF38008CE987 /* SPUAppcastItemState.m */; }; + 72EF30C02675CF38008CE987 /* SPUAppcastItemStateResolver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72EF30BC2675CF38008CE987 /* SPUAppcastItemStateResolver.m */; }; + 72EF30C12675CF38008CE987 /* SPUAppcastItemState.h in Headers */ = {isa = PBXBuildFile; fileRef = 72EF30BD2675CF38008CE987 /* SPUAppcastItemState.h */; }; + 72EF30C22675CF67008CE987 /* SPUAppcastItemState.m in Sources */ = {isa = PBXBuildFile; fileRef = 72EF30BB2675CF38008CE987 /* SPUAppcastItemState.m */; }; + 72EF30C32675CF67008CE987 /* SPUAppcastItemStateResolver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72EF30BC2675CF38008CE987 /* SPUAppcastItemStateResolver.m */; }; + 72EF30C42675CFA1008CE987 /* SPUAppcastItemState.m in Sources */ = {isa = PBXBuildFile; fileRef = 72EF30BB2675CF38008CE987 /* SPUAppcastItemState.m */; }; + 72EF30C52675CFA1008CE987 /* SPUAppcastItemStateResolver.m in Sources */ = {isa = PBXBuildFile; fileRef = 72EF30BC2675CF38008CE987 /* SPUAppcastItemStateResolver.m */; }; 72F94F581CC44DE1002DEE68 /* SPUXPCServiceInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 72F94F561CC44DE1002DEE68 /* SPUXPCServiceInfo.h */; }; 72F94F591CC44DE1002DEE68 /* SPUXPCServiceInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 72F94F571CC44DE1002DEE68 /* SPUXPCServiceInfo.m */; }; 72F94F5A1CC450DE002DEE68 /* SUInstallerLauncher.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E07B11CAF08D6001A286B /* SUInstallerLauncher.m */; }; @@ -492,9 +415,7 @@ EA1E286122B66487004AA304 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA1E286022B66487004AA304 /* main.swift */; }; EA1E286A22B6653D004AA304 /* libed25519.a in Frameworks */ = {isa = PBXBuildFile; fileRef = EA1E282D22B660BE004AA304 /* libed25519.a */; }; EA1E286E22B665F0004AA304 /* SUSignatures.h in Headers */ = {isa = PBXBuildFile; fileRef = EA1E286C22B665E8004AA304 /* SUSignatures.h */; }; - EA1E286F22B6661D004AA304 /* SUSignatures.h in Headers */ = {isa = PBXBuildFile; fileRef = EA1E286C22B665E8004AA304 /* SUSignatures.h */; }; EA1E287022B66621004AA304 /* SUSignatures.m in Sources */ = {isa = PBXBuildFile; fileRef = EA1E286D22B665E8004AA304 /* SUSignatures.m */; }; - EA1E287122B66622004AA304 /* SUSignatures.m in Sources */ = {isa = PBXBuildFile; fileRef = EA1E286D22B665E8004AA304 /* SUSignatures.m */; }; EA1E287922B666EB004AA304 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA1E287822B666EB004AA304 /* main.swift */; }; EA1E287E22B66705004AA304 /* libed25519.a in Frameworks */ = {isa = PBXBuildFile; fileRef = EA1E282D22B660BE004AA304 /* libed25519.a */; }; F8761EB11ADC5068000C9034 /* SUCodeSigningVerifierTest.m in Sources */ = {isa = PBXBuildFile; fileRef = F8761EB01ADC5068000C9034 /* SUCodeSigningVerifierTest.m */; }; @@ -644,6 +565,13 @@ remoteGlobalIDString = 721C24441CB753E6005440CB; remoteInfo = "Installer Progress"; }; + 725148E8266D918900247C9C /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 726E07EE1CAF37BD001A286B; + remoteInfo = SparkleDownloader; + }; 726B2B621C645FC900388755 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; @@ -658,20 +586,6 @@ remoteGlobalIDString = 726E4A151C86C88F00C57C6A; remoteInfo = TestAppHelper; }; - 72A5D5A71D6929170009E5AC /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 721C24441CB753E6005440CB; - remoteInfo = "Installer Progress"; - }; - 72A5D5A91D69291F0009E5AC /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 72B398D11D3D879300EE297F; - remoteInfo = Autoupdate; - }; 72A5D5AB1D6929260009E5AC /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; @@ -679,13 +593,6 @@ remoteGlobalIDString = 72B398D11D3D879300EE297F; remoteInfo = Autoupdate; }; - 72A5D5EC1D692C100009E5AC /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 72A5D59B1D6927730009E5AC; - remoteInfo = SparkleCore; - }; 72D954B91CBB6E27006F28BD /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; @@ -714,13 +621,6 @@ remoteGlobalIDString = 726E07AC1CAF08D6001A286B; remoteInfo = SparkleInstallerLauncher; }; - 72F94F6C1CC4A0C8002DEE68 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 726E07EE1CAF37BD001A286B; - remoteInfo = SparkleUpdateDownloader; - }; 895C5DC624D78F700058A82D /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; @@ -812,18 +712,6 @@ name = "Embed XPC Services"; runOnlyForDeploymentPostprocessing = 0; }; - 72A5D5EE1D692C360009E5AC /* Copy Tools */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 6; - files = ( - 72A5D5EF1D692C440009E5AC /* Autoupdate in Copy Tools */, - 72A5D5F01D692C4B0009E5AC /* Updater.app in Copy Tools */, - ); - name = "Copy Tools"; - runOnlyForDeploymentPostprocessing = 0; - }; 72B398D01D3D879300EE297F /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; @@ -839,7 +727,6 @@ dstPath = ""; dstSubfolderSpec = 10; files = ( - 72A5D5F51D692CFE0009E5AC /* SparkleCore.framework in Copy Sparkle */, ); name = "Copy Sparkle"; runOnlyForDeploymentPostprocessing = 0; @@ -1304,17 +1191,11 @@ 729924921DF4A45000DBCDF5 /* SUUpdateValidator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SUUpdateValidator.h; path = Sparkle/SUUpdateValidator.h; sourceTree = SOURCE_ROOT; }; 729924931DF4A45000DBCDF5 /* SUUpdateValidator.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SUUpdateValidator.m; path = Sparkle/SUUpdateValidator.m; sourceTree = SOURCE_ROOT; }; 729BB3D11D503826007C4276 /* org.sparkle-project.Downloader.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.xml; name = "org.sparkle-project.Downloader.entitlements"; path = "Downloader/org.sparkle-project.Downloader.entitlements"; sourceTree = SOURCE_ROOT; }; - 729E1D1D26651CF500BF3EFB /* SPUAppcastItemState.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SPUAppcastItemState.h; sourceTree = ""; }; - 729E1D1E26651CF500BF3EFB /* SPUAppcastItemState.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SPUAppcastItemState.m; sourceTree = ""; }; - 729E1D2526652DCF00BF3EFB /* SPUAppcastItemStateResolver.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SPUAppcastItemStateResolver.h; sourceTree = ""; }; - 729E1D2626652DCF00BF3EFB /* SPUAppcastItemStateResolver.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SPUAppcastItemStateResolver.m; sourceTree = ""; }; 729F10FD1C65A9B500DFCCC5 /* ConfigUITest.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigUITest.xcconfig; sourceTree = ""; }; 729F10FE1C65A9B500DFCCC5 /* ConfigUITestCoverage.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigUITestCoverage.xcconfig; sourceTree = ""; }; 72A450511C69A68900D67EEA /* SUUpdatePermissionResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUpdatePermissionResponse.h; sourceTree = ""; }; 72A450521C69A68900D67EEA /* SUUpdatePermissionResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUpdatePermissionResponse.m; sourceTree = ""; }; 72A4A23F1BB6567D00E7820D /* SUFileManagerTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SUFileManagerTest.swift; sourceTree = ""; }; - 72A5D59C1D6927730009E5AC /* SparkleCore.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SparkleCore.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 72A5D5DD1D692ACC0009E5AC /* SparkleCore.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SparkleCore.h; sourceTree = ""; }; 72A6F9891C94E2D6005F404C /* SUUpdaterDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUpdaterDelegate.h; sourceTree = ""; }; 72AC6B251B9AAC8800F62325 /* SparkleTestCodeSignApp.tar.gz */ = {isa = PBXFileReference; lastKnownFileType = archive.gzip; path = SparkleTestCodeSignApp.tar.gz; sourceTree = ""; }; 72AC6B271B9AAD6700F62325 /* SparkleTestCodeSignApp.tar */ = {isa = PBXFileReference; lastKnownFileType = archive.tar; path = SparkleTestCodeSignApp.tar; sourceTree = ""; }; @@ -1372,6 +1253,10 @@ 72E45CF61B640DAE005C701A /* SUUpdateSettingsWindowController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SUUpdateSettingsWindowController.xib; sourceTree = ""; }; 72E45CFB1B641961005C701A /* sparkletestcast.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = sparkletestcast.xml; sourceTree = ""; }; 72EB87E91CB8798800C37F42 /* ShowInstallerProgress.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ShowInstallerProgress.m; path = Sparkle/InstallerProgress/ShowInstallerProgress.m; sourceTree = SOURCE_ROOT; }; + 72EF30BA2675CF38008CE987 /* SPUAppcastItemStateResolver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUAppcastItemStateResolver.h; sourceTree = ""; }; + 72EF30BB2675CF38008CE987 /* SPUAppcastItemState.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUAppcastItemState.m; sourceTree = ""; }; + 72EF30BC2675CF38008CE987 /* SPUAppcastItemStateResolver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUAppcastItemStateResolver.m; sourceTree = ""; }; + 72EF30BD2675CF38008CE987 /* SPUAppcastItemState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUAppcastItemState.h; sourceTree = ""; }; 72F94ED51CC3441A002DEE68 /* ConfigInstallerLauncherDebug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigInstallerLauncherDebug.xcconfig; sourceTree = ""; }; 72F94ED61CC344A7002DEE68 /* ConfigDownloaderDebug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigDownloaderDebug.xcconfig; sourceTree = ""; }; 72F94EDA1CC36C37002DEE68 /* ConfigTestAppDebug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigTestAppDebug.xcconfig; sourceTree = ""; }; @@ -1467,7 +1352,6 @@ 721CF1AB1AD764EB00D9AC09 /* libbz2.dylib in Frameworks */, 721CF1AA1AD7647000D9AC09 /* libxar.1.dylib in Frameworks */, 14652F8019A9740F00959E44 /* Security.framework in Frameworks */, - 61FA52880E2D9EA400EF58AD /* Sparkle.framework in Frameworks */, 14732BD319610A1800593899 /* XCTest.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; @@ -1546,14 +1430,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 72A5D5981D6927730009E5AC /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 72A5D5A61D6928630009E5AC /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; 72B398CF1D3D879300EE297F /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -1573,7 +1449,6 @@ buildActionMask = 2147483647; files = ( 724F76F91D6EAD0D00ECD062 /* Cocoa.framework in Frameworks */, - 72A5D5F41D692CF50009E5AC /* SparkleCore.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1581,9 +1456,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 1495006E195FCE1100BC5B5B /* AppKit.framework in Frameworks */, 1495006F195FCE1800BC5B5B /* Foundation.framework in Frameworks */, - 61B5FC4C09C4FD5E00B25A18 /* WebKit.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1627,7 +1500,6 @@ 612279D90DB5470200AB99EA /* Sparkle Unit Tests.xctest */, 72D9549E1CBB415B006F28BD /* sparkle.app */, 8DC2EF5B0486A6940098B216 /* Sparkle.framework */, - 72A5D59C1D6927730009E5AC /* SparkleCore.framework */, 726E4A161C86C88F00C57C6A /* TestAppHelper.xpc */, 726B2B5D1C645FC900388755 /* UI Tests.xctest */, 721C24451CB753E6005440CB /* Updater.app */, @@ -1891,10 +1763,10 @@ 61B5FC5309C5182000B25A18 /* SUAppcastItem.h */, 725DED73263D123900E7FA8F /* SUAppcastItem+Private.h */, 61B5FC5409C5182000B25A18 /* SUAppcastItem.m */, - 729E1D1D26651CF500BF3EFB /* SPUAppcastItemState.h */, - 729E1D1E26651CF500BF3EFB /* SPUAppcastItemState.m */, - 729E1D2526652DCF00BF3EFB /* SPUAppcastItemStateResolver.h */, - 729E1D2626652DCF00BF3EFB /* SPUAppcastItemStateResolver.m */, + 72EF30BD2675CF38008CE987 /* SPUAppcastItemState.h */, + 72EF30BB2675CF38008CE987 /* SPUAppcastItemState.m */, + 72EF30BA2675CF38008CE987 /* SPUAppcastItemStateResolver.h */, + 72EF30BC2675CF38008CE987 /* SPUAppcastItemStateResolver.m */, 721D588B25BE59F900D23BEA /* SUPhasedUpdateGroupInfo.h */, 721D588C25BE59F900D23BEA /* SUPhasedUpdateGroupInfo.m */, 61A225A20D1C4AC000430CCD /* SUStandardVersionComparator.h */, @@ -1950,7 +1822,6 @@ isa = PBXGroup; children = ( 61299B3509CB04E000B7442F /* Sparkle.h */, - 72A5D5DD1D692ACC0009E5AC /* SparkleCore.h */, 721BC20C1D1CDE55002BC71E /* SPULocalCacheDirectory.h */, 721BC20D1D1CDE55002BC71E /* SPULocalCacheDirectory.m */, 7214B87F1D456A8500CB5CED /* SUBundleIcon.h */, @@ -2166,10 +2037,10 @@ 725CB9581C7121830064365A /* SPUStandardUserDriver.h */, 725CB9591C7121830064365A /* SPUStandardUserDriver.m */, 726E4A361C89116000C57C6A /* SPUStandardUserDriverDelegate.h */, - 725CB9561C7120410064365A /* SPUUserDriver.h */, 726DF88D1C84277500188804 /* SPUUserUpdateState.h */, 7269E49C2648FC6C0088C213 /* SPUUserUpdateState+Private.h */, 7269E4992648F7C00088C213 /* SPUUserUpdateState.m */, + 725CB9561C7120410064365A /* SPUUserDriver.h */, ); name = "User Driver"; sourceTree = ""; @@ -2413,34 +2284,6 @@ /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ - 72A5D5991D6927730009E5AC /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 729E1D2826652DCF00BF3EFB /* SPUAppcastItemStateResolver.h in Headers */, - 7269E495264798200088C213 /* SPUSkippedUpdate.h in Headers */, - 72A5D5DE1D692ACC0009E5AC /* SparkleCore.h in Headers */, - 72B3DECE1E23479000457642 /* SPUInformationalUpdate.h in Headers */, - 72A5D5EB1D692BD40009E5AC /* SPUDownloadData.h in Headers */, - 721D588E25BE59F900D23BEA /* SUPhasedUpdateGroupInfo.h in Headers */, - 72A5D5F91D692F4C0009E5AC /* SPUUserUpdateState.h in Headers */, - 72A5D5E71D692BB00009E5AC /* SPUUpdatePermissionRequest.h in Headers */, - EA1E286F22B6661D004AA304 /* SUSignatures.h in Headers */, - 72A5D5E21D692B770009E5AC /* SPUUpdater.h in Headers */, - 72A5D5E41D692B770009E5AC /* SPUUpdaterDelegate.h in Headers */, - 72A5D5E31D692B770009E5AC /* SPUUpdaterSettings.h in Headers */, - 72A5D5E91D692BC80009E5AC /* SPUUserDriver.h in Headers */, - 72A5D5DF1D692B570009E5AC /* SUAppcast.h in Headers */, - 729E1D2026651CF500BF3EFB /* SPUAppcastItemState.h in Headers */, - 72A5D5E01D692B570009E5AC /* SUAppcastItem.h in Headers */, - 72A5D5E61D692BA20009E5AC /* SUErrors.h in Headers */, - 72A5D5F81D692F2B0009E5AC /* SUExport.h in Headers */, - 72A5D5E11D692B660009E5AC /* SUStandardVersionComparator.h in Headers */, - 72A5D5E81D692BBB0009E5AC /* SUUpdatePermissionResponse.h in Headers */, - 72A5D5E51D692B8C0009E5AC /* SUVersionComparisonProtocol.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; 8DC2EF500486A6940098B216 /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; @@ -2450,6 +2293,7 @@ 72B767D61C9C8B5C00A07552 /* SPUBasicUpdateDriver.h in Headers */, 72B767E21C9CE90A00A07552 /* SPUCoreBasedUpdateDriver.h in Headers */, 72F9EC441D5E9ED8004AC8B6 /* SPUDownloadData.h in Headers */, + 72EF30C12675CF38008CE987 /* SPUAppcastItemState.h in Headers */, 7229E1BD1C98EFF200CB50D0 /* SPUDownloadDriver.h in Headers */, 7267E5FD1D3DD1B700D1BF90 /* SPUResumableUpdate.h in Headers */, 7267E5B61D3D8AEE00D1BF90 /* SPUInstallationInfo.h in Headers */, @@ -2460,7 +2304,6 @@ 728337A61C9E6FF40085AA99 /* SPUProbeInstallStatus.h in Headers */, 723C8A541E2D60DB00C14942 /* SUTouchBarButtonGroup.h in Headers */, 72B767D21C9C7B9300A07552 /* SPUProbingUpdateDriver.h in Headers */, - 729E1D2726652DCF00BF3EFB /* SPUAppcastItemStateResolver.h in Headers */, 7229E1B91C97CC4D00CB50D0 /* SPUScheduledUpdateDriver.h in Headers */, 726E075C1CA3A6D6001A286B /* SPUSecureCoding.h in Headers */, 7246E0A31C83B685003B4E75 /* SPUStandardUpdaterController.h in Headers */, @@ -2471,6 +2314,7 @@ 7229E1B61C97C91100CB50D0 /* SPUUpdateDriver.h in Headers */, 72DBA37D1D60CC34002594A8 /* SPUUpdatePermissionRequest.h in Headers */, 61B5F8ED09C4CE3C00B25A18 /* SPUUpdater.h in Headers */, + 72EF30BE2675CF38008CE987 /* SPUAppcastItemStateResolver.h in Headers */, 720E217B1D0D00BF003A311C /* SPUUpdaterCycle.h in Headers */, 72F9EC481D5EA904004AC8B6 /* SPUUpdaterDelegate.h in Headers */, 726E078D1CA891E9001A286B /* SPUUpdaterSettings.h in Headers */, @@ -2483,7 +2327,6 @@ 72F94F581CC44DE1002DEE68 /* SPUXPCServiceInfo.h in Headers */, 61B5FC0D09C4FC8200B25A18 /* SUAppcast.h in Headers */, 72B767CA1C9B707000A07552 /* SUAppcastDriver.h in Headers */, - 729E1D1F26651CF500BF3EFB /* SPUAppcastItemState.h in Headers */, 61B5FC7009C51F4A00B25A18 /* SUAppcastItem.h in Headers */, 725602D51C83551C00DAA70E /* SUApplicationInfo.h in Headers */, 7214B8811D456A8500CB5CED /* SUBundleIcon.h in Headers */, @@ -2544,10 +2387,9 @@ buildWorkingDirectory = ""; dependencies = ( 14732BCB1960F73500593899 /* PBXTargetDependency */, - 72A5D5ED1D692C100009E5AC /* PBXTargetDependency */, 72DBA37A1D5FDE95002594A8 /* PBXTargetDependency */, 72F94F6B1CC4A0C8002DEE68 /* PBXTargetDependency */, - 72F94F6D1CC4A0C8002DEE68 /* PBXTargetDependency */, + 725148E9266D918900247C9C /* PBXTargetDependency */, 7218EC352623ED97008FECF3 /* PBXTargetDependency */, 7218EC332623ED94008FECF3 /* PBXTargetDependency */, 1454BA1619637EDB00344E57 /* PBXTargetDependency */, @@ -2767,29 +2609,6 @@ productReference = 726E4A161C86C88F00C57C6A /* TestAppHelper.xpc */; productType = "com.apple.product-type.xpc-service"; }; - 72A5D59B1D6927730009E5AC /* SparkleCore */ = { - isa = PBXNativeTarget; - buildConfigurationList = 72A5D5A41D6927730009E5AC /* Build configuration list for PBXNativeTarget "SparkleCore" */; - buildPhases = ( - 72A5D5991D6927730009E5AC /* Headers */, - 72A5D5971D6927730009E5AC /* Sources */, - 72A5D5981D6927730009E5AC /* Frameworks */, - 72A5D5EE1D692C360009E5AC /* Copy Tools */, - 72A5D5F11D692C860009E5AC /* Run Script: Set Git Version Info */, - 72B4BF081D69805100F5B92D /* Resources */, - 720B4C2225EBFACD005A0592 /* Run Script: Link Tools */, - ); - buildRules = ( - ); - dependencies = ( - 72A5D5AA1D69291F0009E5AC /* PBXTargetDependency */, - 72A5D5A81D6929170009E5AC /* PBXTargetDependency */, - ); - name = SparkleCore; - productName = SparkleCore; - productReference = 72A5D59C1D6927730009E5AC /* SparkleCore.framework */; - productType = "com.apple.product-type.framework"; - }; 72B398D11D3D879300EE297F /* Autoupdate */ = { isa = PBXNativeTarget; buildConfigurationList = 72B398D61D3D879400EE297F /* Build configuration list for PBXNativeTarget "Autoupdate" */; @@ -2978,9 +2797,6 @@ }; }; }; - 72A5D59B1D6927730009E5AC = { - CreatedOnToolsVersion = 7.3.1; - }; 72B398D11D3D879300EE297F = { CreatedOnToolsVersion = 7.3.1; }; @@ -3061,7 +2877,6 @@ projectRoot = ""; targets = ( 8DC2EF4F0486A6940098B216 /* Sparkle */, - 72A5D59B1D6927730009E5AC /* SparkleCore */, 72B398D11D3D879300EE297F /* Autoupdate */, 726E07AC1CAF08D6001A286B /* SparkleInstallerLauncher */, 724BB36B1D31D0B7005D534A /* SparkleInstallerConnection */, @@ -3168,14 +2983,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 72B4BF081D69805100F5B92D /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 72B4BF091D69805900F5B92D /* Sparkle.strings in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; 72D9549C1CBB415B006F28BD /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -3232,24 +3039,6 @@ shellPath = /bin/sh; shellScript = "\"$SRCROOT/Configurations/link-tools.sh\"\n"; }; - 720B4C2225EBFACD005A0592 /* Run Script: Link Tools */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - ); - name = "Run Script: Link Tools"; - outputFileListPaths = ( - ); - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"$SRCROOT/Configurations/link-tools.sh\"\n"; - }; 7269E49D264919C20088C213 /* Run Script: Set Git Version Info */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -3322,21 +3111,6 @@ shellPath = /bin/sh; shellScript = "\"$SRCROOT/Configurations/set-git-version-info.sh\"\n"; }; - 72A5D5F11D692C860009E5AC /* Run Script: Set Git Version Info */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Run Script: Set Git Version Info"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"$SRCROOT/Configurations/set-git-version-info.sh\"\n"; - showEnvVarsInLog = 0; - }; 895C5DC524D78E460058A82D /* ShellScript */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -3352,7 +3126,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "# Deleting old products\nrm -rd \"$BUILT_PRODUCTS_DIR/Sparkle.xcarchive\"\nrm -rd \"$BUILT_PRODUCTS_DIR/Sparkle.xcframework\"\nrm -rd \"$BUILT_PRODUCTS_DIR/SparkleCore.xcarchive\"\nrm -rd \"$BUILT_PRODUCTS_DIR/SparkleCore.xcframework\"\n\nxcodebuild archive -scheme Sparkle -archivePath \"$BUILT_PRODUCTS_DIR/Sparkle.xcarchive\" BUILD_LIBRARY_FOR_DISTRIBUTION=YES SKIP_INSTALL=NO\nxcodebuild archive -scheme SparkleCore -archivePath \"$BUILT_PRODUCTS_DIR/SparkleCore.xcarchive\" BUILD_LIBRARY_FOR_DISTRIBUTION=YES SKIP_INSTALL=NO\n\nif [ $XCODE_VERSION_MAJOR -ge \"1200\" ]; then\nxcodebuild -create-xcframework -framework \"$BUILT_PRODUCTS_DIR/Sparkle.xcarchive/Products/Library/Frameworks/Sparkle.framework\" -debug-symbols \"$BUILT_PRODUCTS_DIR/Sparkle.xcarchive/dSYMs/Sparkle.framework.dSYM\" -output \"$BUILT_PRODUCTS_DIR/Sparkle.xcframework\"\nxcodebuild -create-xcframework -framework \"$BUILT_PRODUCTS_DIR/SparkleCore.xcarchive/Products/Library/Frameworks/SparkleCore.framework\" -debug-symbols \"$BUILT_PRODUCTS_DIR/SparkleCore.xcarchive/dSYMs/SparkleCore.framework.dSYM\" -output \"$BUILT_PRODUCTS_DIR/SparkleCore.xcframework\"\nelse\necho \"warning: Your Xcode version does not support bundling dSYMs in XCFrameworks directly. You should copy them manually into the XCFramework.\"\necho \"note: cp '$BUILT_PRODUCTS_DIR/Sparkle.xcarchive/dSYMs/Sparkle.framework.dSYM' '$BUILT_PRODUCTS_DIR/Sparkle.xcframework/your_architecture/dSYMs'\"\nxcodebuild -create-xcframework -framework \"$BUILT_PRODUCTS_DIR/Sparkle.xcarchive/Products/Library/Frameworks/Sparkle.framework\" -output \"$BUILT_PRODUCTS_DIR/Sparkle.xcframework\"\nxcodebuild -create-xcframework -framework \"$BUILT_PRODUCTS_DIR/SparkleCore.xcarchive/Products/Library/Frameworks/SparkleCore.framework\" -output \"$BUILT_PRODUCTS_DIR/SparkleCore.xcframework\"\nfi\n"; + shellScript = "# Deleting old products\nrm -rd \"$BUILT_PRODUCTS_DIR/Sparkle.xcarchive\"\nrm -rd \"$BUILT_PRODUCTS_DIR/Sparkle.xcframework\"\n\nxcodebuild archive -scheme Sparkle -archivePath \"$BUILT_PRODUCTS_DIR/Sparkle.xcarchive\" BUILD_LIBRARY_FOR_DISTRIBUTION=YES SKIP_INSTALL=NO\n\nif [ $XCODE_VERSION_MAJOR -ge \"1200\" ]; then\nxcodebuild -create-xcframework -framework \"$BUILT_PRODUCTS_DIR/Sparkle.xcarchive/Products/Library/Frameworks/Sparkle.framework\" -debug-symbols \"$BUILT_PRODUCTS_DIR/Sparkle.xcarchive/dSYMs/Sparkle.framework.dSYM\" -output \"$BUILT_PRODUCTS_DIR/Sparkle.xcframework\"\nelse\necho \"warning: Your Xcode version does not support bundling dSYMs in XCFrameworks directly. You should copy them manually into the XCFramework.\"\necho \"note: cp '$BUILT_PRODUCTS_DIR/Sparkle.xcarchive/dSYMs/Sparkle.framework.dSYM' '$BUILT_PRODUCTS_DIR/Sparkle.xcframework/your_architecture/dSYMs'\"\nxcodebuild -create-xcframework -framework \"$BUILT_PRODUCTS_DIR/Sparkle.xcarchive/Products/Library/Frameworks/Sparkle.framework\" -output \"$BUILT_PRODUCTS_DIR/Sparkle.xcframework\"\nfi\n"; }; /* End PBXShellScriptBuildPhase section */ @@ -3453,7 +3227,8 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 729E1D242665234700BF3EFB /* SPUAppcastItemState.m in Sources */, + 72EF30C22675CF67008CE987 /* SPUAppcastItemState.m in Sources */, + 72EF30C32675CF67008CE987 /* SPUAppcastItemStateResolver.m in Sources */, 720AC2DC2618E8A500E25A3E /* SPUSecureCoding.m in Sources */, 720AC2C92618E89500E25A3E /* SUAppcastItem.m in Sources */, 720AC2A42618E85700E25A3E /* SPUInstallationInfo.m in Sources */, @@ -3548,69 +3323,12 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 72A5D5971D6927730009E5AC /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 727F340C2605321D00020E85 /* SULog+NSError.m in Sources */, - 72B3DED11E23479D00457642 /* SPUDownloadedUpdate.m in Sources */, - 72A5D5CB1D6929F80009E5AC /* SPUAutomaticUpdateDriver.m in Sources */, - 72A5D5CE1D6929F80009E5AC /* SPUBasicUpdateDriver.m in Sources */, - 72A5D5CD1D6929F80009E5AC /* SPUCoreBasedUpdateDriver.m in Sources */, - 72A5D5BD1D6929F80009E5AC /* SPUDownloadData.m in Sources */, - 72A5D5D01D6929F80009E5AC /* SPUDownloadDriver.m in Sources */, - EA1E287122B66622004AA304 /* SUSignatures.m in Sources */, - 7269E497264798200088C213 /* SPUSkippedUpdate.m in Sources */, - 72A5D5AF1D6929F80009E5AC /* SPUDownloader.m in Sources */, - 72A5D5B71D6929F80009E5AC /* SPUInstallationInfo.m in Sources */, - 72A5D5B41D6929F80009E5AC /* SPUInstallationInputData.m in Sources */, - 72A5D5CF1D6929F80009E5AC /* SPUInstallerDriver.m in Sources */, - 72A5D5C31D6929F80009E5AC /* SPULocalCacheDirectory.m in Sources */, - 72A5D5B51D6929F80009E5AC /* SPUMessageTypes.m in Sources */, - 72A5D5D21D6929F80009E5AC /* SPUProbeInstallStatus.m in Sources */, - 72A5D5CA1D6929F80009E5AC /* SPUProbingUpdateDriver.m in Sources */, - 72A5D5C91D6929F80009E5AC /* SPUScheduledUpdateDriver.m in Sources */, - 72A5D5B61D6929F80009E5AC /* SPUSecureCoding.m in Sources */, - 72A5D5CC1D6929F80009E5AC /* SPUUIBasedUpdateDriver.m in Sources */, - 72A5D5D61D6929F80009E5AC /* SPUUpdatePermissionRequest.m in Sources */, - 72A5D5D41D6929F80009E5AC /* SPUUpdater.m in Sources */, - 72A5D5D81D6929F80009E5AC /* SPUUpdaterCycle.m in Sources */, - 72A5D5D51D6929F80009E5AC /* SPUUpdaterSettings.m in Sources */, - 72A5D5D91D6929F90009E5AC /* SPUUpdaterTimer.m in Sources */, - 72A5D5BC1D6929F80009E5AC /* SPUURLRequest.m in Sources */, - 72A5D5C81D6929F80009E5AC /* SPUUserInitiatedUpdateDriver.m in Sources */, - 72A5D5AD1D6929F80009E5AC /* SPUXPCServiceInfo.m in Sources */, - 72A5D5B91D6929F80009E5AC /* SUAppcast.m in Sources */, - 72A5D5D11D6929F80009E5AC /* SUAppcastDriver.m in Sources */, - 729E1D2A26652DCF00BF3EFB /* SPUAppcastItemStateResolver.m in Sources */, - 72A5D5BA1D6929F80009E5AC /* SUAppcastItem.m in Sources */, - 72A5D5FB1D69312F0009E5AC /* SUBundleIcon.m in Sources */, - 72A5D5DC1D692A4E0009E5AC /* SUCodeSigningVerifier.m in Sources */, - 72A5D5C01D6929F80009E5AC /* SUConstants.m in Sources */, - 72A5D5C21D6929F80009E5AC /* SUFileManager.m in Sources */, - 72A5D5C11D6929F80009E5AC /* SUHost.m in Sources */, - 721D589025BE59F900D23BEA /* SUPhasedUpdateGroupInfo.m in Sources */, - 72A5D5B01D6929F80009E5AC /* SUInstallerConnection.m in Sources */, - 72A5D5AE1D6929F80009E5AC /* SUInstallerLauncher.m in Sources */, - 72B3DED01E23479000457642 /* SPUInformationalUpdate.m in Sources */, - 7269E49B2648F7C00088C213 /* SPUUserUpdateState.m in Sources */, - 72A5D5B21D6929F80009E5AC /* SUInstallerStatus.m in Sources */, - 72A5D5C51D6929F80009E5AC /* SULog.m in Sources */, - 72A5D5C61D6929F80009E5AC /* SUOperatingSystem.m in Sources */, - 72A5D5BE1D6929F80009E5AC /* SUStandardVersionComparator.m in Sources */, - 72A5D5BF1D6929F80009E5AC /* SUSystemProfiler.m in Sources */, - 729E1D2226651CF500BF3EFB /* SPUAppcastItemState.m in Sources */, - 72A5D5D71D6929F80009E5AC /* SUUpdatePermissionResponse.m in Sources */, - 72A5D5B11D6929F80009E5AC /* SUXPCInstallerConnection.m in Sources */, - 72A5D5B31D6929F80009E5AC /* SUXPCInstallerStatus.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; 72B398CE1D3D879300EE297F /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 729E1D232665231700BF3EFB /* SPUAppcastItemState.m in Sources */, + 72EF30C42675CFA1008CE987 /* SPUAppcastItemState.m in Sources */, + 72EF30C52675CFA1008CE987 /* SPUAppcastItemStateResolver.m in Sources */, 72464F701E1F31E000FB341C /* SUOperatingSystem.m in Sources */, 7267E5A81D3D8A9900D1BF90 /* AgentConnection.m in Sources */, 7267E5A21D3D8A7E00D1BF90 /* AppInstaller.m in Sources */, @@ -3672,9 +3390,9 @@ 7229E1BE1C98EFF200CB50D0 /* SPUDownloadDriver.m in Sources */, 723B5DAA1CF7AB6A00365F95 /* SPUDownloader.m in Sources */, 7267E5B71D3D8AEE00D1BF90 /* SPUInstallationInfo.m in Sources */, - 729E1D2926652DCF00BF3EFB /* SPUAppcastItemStateResolver.m in Sources */, 7267E5DF1D3D8FFA00D1BF90 /* SPUInstallationInputData.m in Sources */, 72B767CF1C9B924900A07552 /* SPUInstallerDriver.m in Sources */, + 72EF30BF2675CF38008CE987 /* SPUAppcastItemState.m in Sources */, 721BC20F1D1CDE55002BC71E /* SPULocalCacheDirectory.m in Sources */, 7267E5B21D3D8AD500D1BF90 /* SPUMessageTypes.m in Sources */, 72B3DECF1E23479000457642 /* SPUInformationalUpdate.m in Sources */, @@ -3687,6 +3405,7 @@ 723C8A551E2D60DB00C14942 /* SUTouchBarButtonGroup.m in Sources */, 72B767DB1C9CD2E400A07552 /* SPUUIBasedUpdateDriver.m in Sources */, 72DBA37E1D60CC34002594A8 /* SPUUpdatePermissionRequest.m in Sources */, + 72EF30C02675CF38008CE987 /* SPUAppcastItemStateResolver.m in Sources */, 61B5F8EE09C4CE3C00B25A18 /* SPUUpdater.m in Sources */, 720E217C1D0D00BF003A311C /* SPUUpdaterCycle.m in Sources */, 726E078E1CA891E9001A286B /* SPUUpdaterSettings.m in Sources */, @@ -3709,7 +3428,6 @@ 724BB3891D32B915005D534A /* SUInstallerConnection.m in Sources */, 72F94F5A1CC450DE002DEE68 /* SUInstallerLauncher.m in Sources */, 724BB3AA1D3347C2005D534A /* SUInstallerStatus.m in Sources */, - 729E1D2126651CF500BF3EFB /* SPUAppcastItemState.m in Sources */, 55C14F07136EF6DB00649790 /* SULog.m in Sources */, 726F2CE61BC9C33D001971A4 /* SUOperatingSystem.m in Sources */, 61A225A50D1C4AC000430CCD /* SUStandardVersionComparator.m in Sources */, @@ -3875,6 +3593,11 @@ target = 721C24441CB753E6005440CB /* Installer Progress */; targetProxy = 721D8A791D4952B60032E472 /* PBXContainerItemProxy */; }; + 725148E9266D918900247C9C /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 726E07EE1CAF37BD001A286B /* SparkleDownloader */; + targetProxy = 725148E8266D918900247C9C /* PBXContainerItemProxy */; + }; 726B2B631C645FC900388755 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 61B5F90109C4CEE200B25A18 /* Sparkle Test App */; @@ -3885,26 +3608,11 @@ target = 726E4A151C86C88F00C57C6A /* TestAppHelper */; targetProxy = 726E4A1F1C86C88F00C57C6A /* PBXContainerItemProxy */; }; - 72A5D5A81D6929170009E5AC /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 721C24441CB753E6005440CB /* Installer Progress */; - targetProxy = 72A5D5A71D6929170009E5AC /* PBXContainerItemProxy */; - }; - 72A5D5AA1D69291F0009E5AC /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 72B398D11D3D879300EE297F /* Autoupdate */; - targetProxy = 72A5D5A91D69291F0009E5AC /* PBXContainerItemProxy */; - }; 72A5D5AC1D6929260009E5AC /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72B398D11D3D879300EE297F /* Autoupdate */; targetProxy = 72A5D5AB1D6929260009E5AC /* PBXContainerItemProxy */; }; - 72A5D5ED1D692C100009E5AC /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 72A5D59B1D6927730009E5AC /* SparkleCore */; - targetProxy = 72A5D5EC1D692C100009E5AC /* PBXContainerItemProxy */; - }; 72D954BA1CBB6E27006F28BD /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 721C24441CB753E6005440CB /* Installer Progress */; @@ -3925,11 +3633,6 @@ target = 726E07AC1CAF08D6001A286B /* SparkleInstallerLauncher */; targetProxy = 72F94F6A1CC4A0C8002DEE68 /* PBXContainerItemProxy */; }; - 72F94F6D1CC4A0C8002DEE68 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 726E07EE1CAF37BD001A286B /* SparkleDownloader */; - targetProxy = 72F94F6C1CC4A0C8002DEE68 /* PBXContainerItemProxy */; - }; 895C5DC724D78F700058A82D /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 895C5DC024D78E210058A82D /* XCFrameworks */; @@ -4448,27 +4151,6 @@ }; name = Release; }; - 72A5D5A11D6927730009E5AC /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FA1941CA0D94A70100DD942E /* ConfigFrameworkDebug.xcconfig */; - buildSettings = { - }; - name = Debug; - }; - 72A5D5A21D6927730009E5AC /* Coverage */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FA1941CA0D94A70100DD942E /* ConfigFrameworkDebug.xcconfig */; - buildSettings = { - }; - name = Coverage; - }; - 72A5D5A31D6927730009E5AC /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FA1941D10D94A70100DD942E /* ConfigFramework.xcconfig */; - buildSettings = { - }; - name = Release; - }; 72B398D71D3D879400EE297F /* Debug */ = { isa = XCBuildConfiguration; baseConfigurationReference = FA1941CE0D94A70100DD942E /* ConfigRelaunch.xcconfig */; @@ -4779,16 +4461,6 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 72A5D5A41D6927730009E5AC /* Build configuration list for PBXNativeTarget "SparkleCore" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 72A5D5A11D6927730009E5AC /* Debug */, - 72A5D5A21D6927730009E5AC /* Coverage */, - 72A5D5A31D6927730009E5AC /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; 72B398D61D3D879400EE297F /* Build configuration list for PBXNativeTarget "Autoupdate" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/Sparkle/AppKitPrevention.h b/Sparkle/AppKitPrevention.h index 0ede52ff..875f72a7 100644 --- a/Sparkle/AppKitPrevention.h +++ b/Sparkle/AppKitPrevention.h @@ -11,10 +11,6 @@ // If this error is triggered, you can have Xcode indicate to you which source file including this header caused the issue -// One may wonder for certain targets where AppKit is banned completely, why just not link AppKit instead. -// Well, Xcode has thing called auto-linking that I don't trust very much. -// Even after trying to disable the setting, I've had targets able to link to AppKit without AppKit being specified in the list of linked libraries. - #ifdef _APPKITDEFINES_H #error This is a core or daemon-safe module and should NOT import AppKit #endif diff --git a/Sparkle/InstallerProgress/InstallerProgress-Info.plist b/Sparkle/InstallerProgress/InstallerProgress-Info.plist index 32be3457..a4694752 100644 --- a/Sparkle/InstallerProgress/InstallerProgress-Info.plist +++ b/Sparkle/InstallerProgress/InstallerProgress-Info.plist @@ -22,11 +22,13 @@ ???? CFBundleVersion ${CURRENT_PROJECT_VERSION} + LSApplicationCategoryType + public.app-category.utilities LSMinimumSystemVersion $(MACOSX_DEPLOYMENT_TARGET) - NSPrincipalClass - NSApplication LSUIElement 1 + NSPrincipalClass + NSApplication diff --git a/Sparkle/SPUDownloadData.h b/Sparkle/SPUDownloadData.h index 15d3cd07..67da4d03 100644 --- a/Sparkle/SPUDownloadData.h +++ b/Sparkle/SPUDownloadData.h @@ -14,7 +14,16 @@ #else #import #endif + +#ifdef BUILDING_SPARKLE_DOWNLOADER_SERVICE +// Ignore incorrect warning +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wquoted-include-in-framework-header" #import "SUExport.h" +#pragma clang diagnostic pop +#else +#import +#endif NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUStandardUpdaterController.h b/Sparkle/SPUStandardUpdaterController.h index a877e485..bcc0bf52 100644 --- a/Sparkle/SPUStandardUpdaterController.h +++ b/Sparkle/SPUStandardUpdaterController.h @@ -10,16 +10,17 @@ #if __has_warning("-Watimport-in-framework-header") #pragma clang diagnostic ignored "-Watimport-in-framework-header" #endif -@import Cocoa; +@import Foundation; #else -#import +#import #endif -#import "SUExport.h" +#import NS_ASSUME_NONNULL_BEGIN @class SPUUpdater; @class SPUStandardUserDriver; +@class NSMenuItem; @protocol SPUUserDriver, SPUUpdaterDelegate, SPUStandardUserDriverDelegate; /*! diff --git a/Sparkle/SPUStandardUpdaterController.m b/Sparkle/SPUStandardUpdaterController.m index 45674d62..c8adff8a 100644 --- a/Sparkle/SPUStandardUpdaterController.m +++ b/Sparkle/SPUStandardUpdaterController.m @@ -6,12 +6,15 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // +#if SPARKLE_BUILD_UI_BITS + #import "SPUStandardUpdaterController.h" #import "SPUUpdater.h" #import "SUHost.h" #import "SPUStandardUserDriver.h" #import "SUConstants.h" #import "SULog.h" +#import static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObservationContext"; @@ -95,3 +98,5 @@ static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaults } @end + +#endif diff --git a/Sparkle/SPUStandardUserDriver.h b/Sparkle/SPUStandardUserDriver.h index d6fa3150..f4081ecd 100644 --- a/Sparkle/SPUStandardUserDriver.h +++ b/Sparkle/SPUStandardUserDriver.h @@ -10,12 +10,12 @@ #if __has_warning("-Watimport-in-framework-header") #pragma clang diagnostic ignored "-Watimport-in-framework-header" #endif -@import Cocoa; +@import Foundation; #else -#import +#import #endif -#import "SPUUserDriver.h" -#import "SUExport.h" +#import +#import NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUStandardUserDriver.m b/Sparkle/SPUStandardUserDriver.m index 78198e98..3275958a 100644 --- a/Sparkle/SPUStandardUserDriver.m +++ b/Sparkle/SPUStandardUserDriver.m @@ -6,6 +6,8 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // +#if SPARKLE_BUILD_UI_BITS + #import "SPUStandardUserDriver.h" #import "SPUStandardUserDriverDelegate.h" #import "SUAppcastItem.h" @@ -19,6 +21,8 @@ #import "SUOperatingSystem.h" #import "SPUUserUpdateState.h" +#import + @interface SPUStandardUserDriver () @property (nonatomic, readonly) SUHost *host; @@ -476,3 +480,5 @@ } @end + +#endif diff --git a/Sparkle/SPUStandardUserDriverDelegate.h b/Sparkle/SPUStandardUserDriverDelegate.h index 23fd98ec..406c969a 100644 --- a/Sparkle/SPUStandardUserDriverDelegate.h +++ b/Sparkle/SPUStandardUserDriverDelegate.h @@ -14,7 +14,7 @@ #else #import #endif -#import "SUExport.h" +#import @protocol SUVersionDisplay; diff --git a/Sparkle/SPUUpdatePermissionRequest.h b/Sparkle/SPUUpdatePermissionRequest.h index 84bdf45c..2b3be9ad 100644 --- a/Sparkle/SPUUpdatePermissionRequest.h +++ b/Sparkle/SPUUpdatePermissionRequest.h @@ -14,7 +14,7 @@ #else #import #endif -#import "SUExport.h" +#import NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUUpdater.h b/Sparkle/SPUUpdater.h index de9e559d..e77c6eb2 100644 --- a/Sparkle/SPUUpdater.h +++ b/Sparkle/SPUUpdater.h @@ -14,8 +14,8 @@ #else #import #endif -#import "SUExport.h" -#import "SPUUserDriver.h" +#import +#import NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUUpdaterDelegate.h b/Sparkle/SPUUpdaterDelegate.h index 94b0b8a0..18bad993 100644 --- a/Sparkle/SPUUpdaterDelegate.h +++ b/Sparkle/SPUUpdaterDelegate.h @@ -14,7 +14,7 @@ #else #import #endif -#import "SUExport.h" +#import @protocol SUVersionComparison; @class SPUUpdater, SUAppcast, SUAppcastItem; diff --git a/Sparkle/SPUUpdaterSettings.h b/Sparkle/SPUUpdaterSettings.h index 2a1ffd59..0108cba7 100644 --- a/Sparkle/SPUUpdaterSettings.h +++ b/Sparkle/SPUUpdaterSettings.h @@ -14,7 +14,7 @@ #else #import #endif -#import "SUExport.h" +#import NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUUserDriver.h b/Sparkle/SPUUserDriver.h index 05344ea9..06853f0d 100644 --- a/Sparkle/SPUUserDriver.h +++ b/Sparkle/SPUUserDriver.h @@ -15,8 +15,8 @@ #import #endif -#import "SPUUserUpdateState.h" -#import "SUExport.h" +#import +#import NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUUserUpdateState.h b/Sparkle/SPUUserUpdateState.h index 58b59be9..ec13c621 100644 --- a/Sparkle/SPUUserUpdateState.h +++ b/Sparkle/SPUUserUpdateState.h @@ -18,7 +18,7 @@ #import #endif -#import "SUExport.h" +#import NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SUAppcast.h b/Sparkle/SUAppcast.h index 4a4f10a8..a5481d61 100644 --- a/Sparkle/SUAppcast.h +++ b/Sparkle/SUAppcast.h @@ -17,7 +17,7 @@ #else #import #endif -#import "SUExport.h" +#import NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SUAppcastItem.h b/Sparkle/SUAppcastItem.h index 54b5e168..ed9c3be1 100644 --- a/Sparkle/SUAppcastItem.h +++ b/Sparkle/SUAppcastItem.h @@ -17,7 +17,17 @@ #else #import #endif + +#ifdef BUILDING_SPARKLE_TESTS +// Ignore incorrect warning +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wquoted-include-in-framework-header" #import "SUExport.h" +#pragma clang diagnostic pop +#else +#import +#endif + @class SUSignatures; @class SPUAppcastItemState; diff --git a/Sparkle/SUApplicationInfo.h b/Sparkle/SUApplicationInfo.h index 9aeeca68..ee98978a 100644 --- a/Sparkle/SUApplicationInfo.h +++ b/Sparkle/SUApplicationInfo.h @@ -6,11 +6,13 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#import +#if SPARKLE_BUILD_UI_BITS || !BUILDING_SPARKLE + +#import NS_ASSUME_NONNULL_BEGIN -@class SUHost; +@class SUHost, NSImage, NSApplication; @interface SUApplicationInfo : NSObject @@ -21,3 +23,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/Sparkle/SUApplicationInfo.m b/Sparkle/SUApplicationInfo.m index 4b32dfa8..0b9e2de8 100644 --- a/Sparkle/SUApplicationInfo.m +++ b/Sparkle/SUApplicationInfo.m @@ -6,9 +6,12 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // +#if SPARKLE_BUILD_UI_BITS || !BUILDING_SPARKLE + #import "SUApplicationInfo.h" #import "SUBundleIcon.h" #import "SUHost.h" +#import @implementation SUApplicationInfo @@ -41,3 +44,5 @@ } @end + +#endif diff --git a/Sparkle/SUErrors.h b/Sparkle/SUErrors.h index 48c0ece5..af6e105b 100644 --- a/Sparkle/SUErrors.h +++ b/Sparkle/SUErrors.h @@ -17,7 +17,16 @@ #else #import #endif + +#if defined(BUILDING_SPARKLE_TOOL) || defined(BUILDING_SPARKLE_TESTS) +// Ignore incorrect warning +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wquoted-include-in-framework-header" #import "SUExport.h" +#pragma clang diagnostic pop +#else +#import +#endif /** * Error domain used by Sparkle diff --git a/Sparkle/SULegacyWebView.h b/Sparkle/SULegacyWebView.h index 90ac25ee..2d0d2205 100644 --- a/Sparkle/SULegacyWebView.h +++ b/Sparkle/SULegacyWebView.h @@ -6,6 +6,8 @@ // Copyright © 2020 Sparkle Project. All rights reserved. // +#if SPARKLE_BUILD_UI_BITS + #import #import "SUWebView.h" @@ -18,3 +20,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/Sparkle/SULegacyWebView.m b/Sparkle/SULegacyWebView.m index bebf9f6f..2b9a2fe9 100644 --- a/Sparkle/SULegacyWebView.m +++ b/Sparkle/SULegacyWebView.m @@ -6,6 +6,8 @@ // Copyright © 2020 Sparkle Project. All rights reserved. // +#if SPARKLE_BUILD_UI_BITS + #import "SULegacyWebView.h" #import "SUWebViewCommon.h" #import "SULog.h" @@ -159,3 +161,5 @@ } @end + +#endif diff --git a/Sparkle/SUSignatures.m b/Sparkle/SUSignatures.m index df4fdb35..123a673d 100644 --- a/Sparkle/SUSignatures.m +++ b/Sparkle/SUSignatures.m @@ -10,6 +10,9 @@ #import #import "SULog.h" + +#include "AppKitPrevention.h" + static NSString *SUDSASignatureKey = @"SUDSASignature"; static NSString *SUDSASignatureStatusKey = @"SUDSASignatureStatus"; static NSString *SUEDSignatureKey = @"SUEDSignature"; diff --git a/Sparkle/SUStandardVersionComparator.h b/Sparkle/SUStandardVersionComparator.h index 0e49c464..ea81fd4f 100644 --- a/Sparkle/SUStandardVersionComparator.h +++ b/Sparkle/SUStandardVersionComparator.h @@ -17,8 +17,18 @@ #else #import #endif + +#ifdef BUILDING_SPARKLE_TOOL +// Ignore incorrect warning +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wquoted-include-in-framework-header" #import "SUExport.h" #import "SUVersionComparisonProtocol.h" +#pragma clang diagnostic pop +#else +#import +#import +#endif NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SUStatusController.h b/Sparkle/SUStatusController.h index 9ad76386..bbca3054 100644 --- a/Sparkle/SUStatusController.h +++ b/Sparkle/SUStatusController.h @@ -6,6 +6,8 @@ // Copyright 2006 Andy Matuschak. All rights reserved. // +#if SPARKLE_BUILD_UI_BITS || !BUILDING_SPARKLE + #ifndef SUSTATUSCONTROLLER_H #define SUSTATUSCONTROLLER_H @@ -34,3 +36,5 @@ @end #endif + +#endif diff --git a/Sparkle/SUStatusController.m b/Sparkle/SUStatusController.m index b9060c42..513d4690 100644 --- a/Sparkle/SUStatusController.m +++ b/Sparkle/SUStatusController.m @@ -6,6 +6,8 @@ // Copyright 2006 Andy Matuschak. All rights reserved. // +#if SPARKLE_BUILD_UI_BITS || !BUILDING_SPARKLE + #import "SUStatusController.h" #import "SUHost.h" #import "SUApplicationInfo.h" @@ -158,3 +160,5 @@ static NSString *const SUStatusControllerTouchBarIndentifier = @"" SPARKLE_BUNDL } @end + +#endif diff --git a/Sparkle/SUTouchBarButtonGroup.h b/Sparkle/SUTouchBarButtonGroup.h index e86f9559..d027a9b5 100644 --- a/Sparkle/SUTouchBarButtonGroup.h +++ b/Sparkle/SUTouchBarButtonGroup.h @@ -6,6 +6,8 @@ // Copyright © 2017 Sparkle Project. All rights reserved. // +#if SPARKLE_BUILD_UI_BITS || !BUILDING_SPARKLE + #import NS_ASSUME_NONNULL_BEGIN @@ -19,3 +21,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/Sparkle/SUTouchBarButtonGroup.m b/Sparkle/SUTouchBarButtonGroup.m index ef27d131..82f5cff6 100644 --- a/Sparkle/SUTouchBarButtonGroup.m +++ b/Sparkle/SUTouchBarButtonGroup.m @@ -6,6 +6,8 @@ // Copyright © 2017 Sparkle Project. All rights reserved. // +#if SPARKLE_BUILD_UI_BITS || !BUILDING_SPARKLE + #import "SUTouchBarButtonGroup.h" #if __MAC_OS_X_VERSION_MAX_ALLOWED < 101200 @@ -73,3 +75,5 @@ } @end + +#endif diff --git a/Sparkle/SUTouchBarForwardDeclarations.h b/Sparkle/SUTouchBarForwardDeclarations.h index e2f93991..71489911 100644 --- a/Sparkle/SUTouchBarForwardDeclarations.h +++ b/Sparkle/SUTouchBarForwardDeclarations.h @@ -6,6 +6,8 @@ // Copyright © 2017 Sparkle Project. All rights reserved. // +#if SPARKLE_BUILD_UI_BITS + // Once Sparkle no longer supports OSX 10.12.0, this file can be deleted. #import @@ -89,3 +91,5 @@ NS_ASSUME_NONNULL_END @class NSCustomTouchBarItem; #endif + +#endif diff --git a/Sparkle/SUUpdateAlert.h b/Sparkle/SUUpdateAlert.h index 41ee55bd..b89e23f9 100644 --- a/Sparkle/SUUpdateAlert.h +++ b/Sparkle/SUUpdateAlert.h @@ -6,6 +6,8 @@ // Copyright 2006 Andy Matuschak. All rights reserved. // +#if SPARKLE_BUILD_UI_BITS + #ifndef SUUPDATEALERT_H #define SUUPDATEALERT_H @@ -34,3 +36,5 @@ @end #endif + +#endif diff --git a/Sparkle/SUUpdateAlert.m b/Sparkle/SUUpdateAlert.m index 7dd0ef0a..965ca601 100644 --- a/Sparkle/SUUpdateAlert.m +++ b/Sparkle/SUUpdateAlert.m @@ -10,6 +10,8 @@ // Headers: // ----------------------------------------------------------------------------- +#if SPARKLE_BUILD_UI_BITS + #import "SUUpdateAlert.h" #import "SUHost.h" @@ -474,3 +476,5 @@ static NSString *const SUUpdateAlertTouchBarIndentifier = @"" SPARKLE_BUNDLE_IDE } @end + +#endif diff --git a/Sparkle/SUUpdatePermissionPrompt.h b/Sparkle/SUUpdatePermissionPrompt.h index a0a519d7..afd7c9ef 100644 --- a/Sparkle/SUUpdatePermissionPrompt.h +++ b/Sparkle/SUUpdatePermissionPrompt.h @@ -6,6 +6,8 @@ // Copyright 2008 Andy Matuschak. All rights reserved. // +#if SPARKLE_BUILD_UI_BITS + #ifndef SUUPDATEPERMISSIONPROMPT_H #define SUUPDATEPERMISSIONPROMPT_H @@ -20,3 +22,5 @@ @end #endif + +#endif diff --git a/Sparkle/SUUpdatePermissionPrompt.m b/Sparkle/SUUpdatePermissionPrompt.m index 6fb12102..cdde16fe 100644 --- a/Sparkle/SUUpdatePermissionPrompt.m +++ b/Sparkle/SUUpdatePermissionPrompt.m @@ -6,6 +6,8 @@ // Copyright 2008 Andy Matuschak. All rights reserved. // +#if SPARKLE_BUILD_UI_BITS + #import "SUUpdatePermissionPrompt.h" #import "SPUUpdatePermissionRequest.h" #import "SUUpdatePermissionResponse.h" @@ -171,3 +173,5 @@ static NSString *const SUUpdatePermissionPromptTouchBarIndentifier = @"" SPARKLE } @end + +#endif diff --git a/Sparkle/SUUpdatePermissionResponse.h b/Sparkle/SUUpdatePermissionResponse.h index affa087e..764eeb7a 100644 --- a/Sparkle/SUUpdatePermissionResponse.h +++ b/Sparkle/SUUpdatePermissionResponse.h @@ -14,7 +14,7 @@ #else #import #endif -#import "SUExport.h" +#import /*! This class represents a response for permission to check updates. diff --git a/Sparkle/SUUpdater.h b/Sparkle/SUUpdater.h index 60e2e5f2..f173c4b6 100644 --- a/Sparkle/SUUpdater.h +++ b/Sparkle/SUUpdater.h @@ -13,14 +13,14 @@ #if __has_warning("-Watimport-in-framework-header") #pragma clang diagnostic ignored "-Watimport-in-framework-header" #endif -@import Cocoa; +@import Foundation; #else -#import +#import #endif -#import "SUExport.h" -#import "SUVersionComparisonProtocol.h" -#import "SUVersionDisplayProtocol.h" -#import "SUUpdaterDelegate.h" +#import +#import +#import +#import @class SUAppcastItem, SUAppcast, NSMenuItem; diff --git a/Sparkle/SUUpdater.m b/Sparkle/SUUpdater.m index cb8c7efe..e9e06198 100644 --- a/Sparkle/SUUpdater.m +++ b/Sparkle/SUUpdater.m @@ -6,12 +6,15 @@ // Copyright 2006 Andy Matuschak. All rights reserved. // +#if SPARKLE_BUILD_UI_BITS + #import "SUUpdater.h" #import "SPUUpdater.h" #import "SPUStandardUserDriver.h" #import "SPUStandardUserDriverDelegate.h" #import "SPUUpdaterDelegate.h" #import "SULog.h" +#import @interface SUUpdater () @@ -493,3 +496,5 @@ static NSMutableDictionary *sharedUpdaters = nil; } @end + +#endif diff --git a/Sparkle/SUUpdaterDelegate.h b/Sparkle/SUUpdaterDelegate.h index 0bd2ec82..79decd4a 100644 --- a/Sparkle/SUUpdaterDelegate.h +++ b/Sparkle/SUUpdaterDelegate.h @@ -14,7 +14,7 @@ #else #import #endif -#import "SUExport.h" +#import @protocol SUVersionComparison, SUVersionDisplay; @class SUUpdater, SUAppcast, SUAppcastItem; diff --git a/Sparkle/SUVersionComparisonProtocol.h b/Sparkle/SUVersionComparisonProtocol.h index b9338b42..1db106f2 100644 --- a/Sparkle/SUVersionComparisonProtocol.h +++ b/Sparkle/SUVersionComparisonProtocol.h @@ -17,7 +17,16 @@ #else #import #endif + +#ifdef BUILDING_SPARKLE_TOOL +// Ignore incorrect warning +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wquoted-include-in-framework-header" #import "SUExport.h" +#pragma clang diagnostic pop +#else +#import +#endif NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SUVersionDisplayProtocol.h b/Sparkle/SUVersionDisplayProtocol.h index c1d87e5b..5ddb92b1 100644 --- a/Sparkle/SUVersionDisplayProtocol.h +++ b/Sparkle/SUVersionDisplayProtocol.h @@ -14,12 +14,12 @@ #else #import #endif -#import "SUExport.h" +#import /*! Applies special display formatting to version numbers. */ -@protocol SUVersionDisplay +SU_EXPORT @protocol SUVersionDisplay /*! Formats two version strings. diff --git a/Sparkle/SUWKWebView.h b/Sparkle/SUWKWebView.h index 2dfb4357..fe818c35 100644 --- a/Sparkle/SUWKWebView.h +++ b/Sparkle/SUWKWebView.h @@ -6,6 +6,8 @@ // Copyright © 2020 Sparkle Project. All rights reserved. // +#if SPARKLE_BUILD_UI_BITS + #import #import "SUWebView.h" @@ -18,3 +20,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/Sparkle/SUWKWebView.m b/Sparkle/SUWKWebView.m index 8e018d49..15e6fb86 100644 --- a/Sparkle/SUWKWebView.m +++ b/Sparkle/SUWKWebView.m @@ -6,6 +6,8 @@ // Copyright © 2020 Sparkle Project. All rights reserved. // +#if SPARKLE_BUILD_UI_BITS + #import "SUWKWebView.h" #import "SUWebViewCommon.h" #import "SULog.h" @@ -203,3 +205,5 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource) } @end + +#endif diff --git a/Sparkle/SUWebView.h b/Sparkle/SUWebView.h index 253536ed..a86b4274 100644 --- a/Sparkle/SUWebView.h +++ b/Sparkle/SUWebView.h @@ -6,6 +6,8 @@ // Copyright © 2020 Sparkle Project. All rights reserved. // +#if SPARKLE_BUILD_UI_BITS + #import @class NSView; @@ -27,3 +29,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/Sparkle/SUWebViewCommon.h b/Sparkle/SUWebViewCommon.h index 0f2e44e0..3755b8b3 100644 --- a/Sparkle/SUWebViewCommon.h +++ b/Sparkle/SUWebViewCommon.h @@ -6,6 +6,8 @@ // Copyright © 2020 Sparkle Project. All rights reserved. // +#if SPARKLE_BUILD_UI_BITS + #import NS_ASSUME_NONNULL_BEGIN @@ -13,3 +15,5 @@ NS_ASSUME_NONNULL_BEGIN BOOL SUWebViewIsSafeURL(NSURL *url, BOOL *isAboutBlankURL); NS_ASSUME_NONNULL_END + +#endif diff --git a/Sparkle/SUWebViewCommon.m b/Sparkle/SUWebViewCommon.m index 6a9ff645..1d7defba 100644 --- a/Sparkle/SUWebViewCommon.m +++ b/Sparkle/SUWebViewCommon.m @@ -6,8 +6,13 @@ // Copyright © 2020 Sparkle Project. All rights reserved. // +#if SPARKLE_BUILD_UI_BITS + #import "SUWebViewCommon.h" + +#include "AppKitPrevention.h" + BOOL SUWebViewIsSafeURL(NSURL *url, BOOL *isAboutBlankURL) { NSString *scheme = url.scheme; @@ -18,3 +23,5 @@ BOOL SUWebViewIsSafeURL(NSURL *url, BOOL *isAboutBlankURL) return whitelistedSafe; } + +#endif diff --git a/Sparkle/Sparkle.h b/Sparkle/Sparkle.h index 8ec3e01e..a048d267 100644 --- a/Sparkle/Sparkle.h +++ b/Sparkle/Sparkle.h @@ -12,31 +12,28 @@ // This list should include the shared headers. It doesn't matter if some of them aren't shared (unless // there are name-space collisions) so we can list all of them to start with: -#pragma clang diagnostic push -// Do not use <> style includes since 2.x has two frameworks that need to work: Sparkle and SparkleCore -#pragma clang diagnostic ignored "-Wquoted-include-in-framework-header" +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import -#import "SUExport.h" -#import "SUAppcast.h" -#import "SUAppcastItem.h" -#import "SUStandardVersionComparator.h" -#import "SPUUpdater.h" -#import "SPUUpdaterDelegate.h" -#import "SPUUpdaterSettings.h" -#import "SPUStandardUpdaterController.h" -#import "SUVersionComparisonProtocol.h" -#import "SUVersionDisplayProtocol.h" -#import "SUErrors.h" -#import "SPUUpdatePermissionRequest.h" -#import "SUUpdatePermissionResponse.h" -#import "SPUUserDriver.h" -#import "SPUStandardUserDriver.h" -#import "SPUStandardUserDriverDelegate.h" -#import "SPUDownloadData.h" +// UI bits +#import +#import +#import -#import "SUUpdater.h" // deprecated -#import "SUUpdaterDelegate.h" // deprecated - -#pragma clang diagnostic pop +// Deprecated bits +#import +#import #endif diff --git a/Sparkle/SparkleCore.h b/Sparkle/SparkleCore.h deleted file mode 100644 index 118672aa..00000000 --- a/Sparkle/SparkleCore.h +++ /dev/null @@ -1,36 +0,0 @@ -// -// SparkleCore.h -// Sparkle -// -// Created by Mayur Pawashe on 8/20/16. -// Copyright © 2016 Sparkle Project. All rights reserved. -// - -// Copied mostly from Sparkle.h - -#ifndef SPARKLE_CORE_H -#define SPARKLE_CORE_H - -// This list should include the shared headers. It doesn't matter if some of them aren't shared (unless -// there are name-space collisions) so we can list all of them to start with: - -#pragma clang diagnostic push -// Do not use <> style includes since 2.x has two frameworks that need to work: Sparkle and SparkleCore -#pragma clang diagnostic ignored "-Wquoted-include-in-framework-header" - -#import "SUAppcast.h" -#import "SUAppcastItem.h" -#import "SUStandardVersionComparator.h" -#import "SPUUpdater.h" -#import "SPUUpdaterDelegate.h" -#import "SPUUpdaterSettings.h" -#import "SUVersionComparisonProtocol.h" -#import "SUErrors.h" -#import "SPUUpdatePermissionRequest.h" -#import "SUUpdatePermissionResponse.h" -#import "SPUUserDriver.h" -#import "SPUDownloadData.h" - -#pragma clang diagnostic pop - -#endif diff --git a/TestApplication/SUPopUpTitlebarUserDriver.h b/TestApplication/SUPopUpTitlebarUserDriver.h index 22a4a57b..f00602a8 100644 --- a/TestApplication/SUPopUpTitlebarUserDriver.h +++ b/TestApplication/SUPopUpTitlebarUserDriver.h @@ -9,6 +9,8 @@ #import #import +@class NSWindow; + @interface SUPopUpTitlebarUserDriver : NSObject - (instancetype)initWithWindow:(NSWindow *)window; diff --git a/TestApplication/SUPopUpTitlebarUserDriver.m b/TestApplication/SUPopUpTitlebarUserDriver.m index 0775d967..abca9f52 100644 --- a/TestApplication/SUPopUpTitlebarUserDriver.m +++ b/TestApplication/SUPopUpTitlebarUserDriver.m @@ -8,6 +8,7 @@ #import "SUPopUpTitlebarUserDriver.h" #import "SUInstallUpdateViewController.h" +#import @interface SUPopUpTitlebarUserDriver() diff --git a/TestApplication/SUTestApplicationDelegate.m b/TestApplication/SUTestApplicationDelegate.m index a15b60c3..176aa0ac 100644 --- a/TestApplication/SUTestApplicationDelegate.m +++ b/TestApplication/SUTestApplicationDelegate.m @@ -45,13 +45,15 @@ static NSString * const UPDATED_VERSION = @"2.0"; [[NSApplication sharedApplication] terminate:nil]; } +#if SPARKLE_BUILD_UI_BITS // Detect as early as possible if the shift key is held down BOOL shiftKeyHeldDown = ([NSEvent modifierFlags] & NSShiftKeyMask) != 0; +#endif // Apple's file manager may not work well over the network (on macOS 10.11.4 as of writing this), but at the same time // I don't want to have to export SUFileManager in release mode. The test app is primarily // aimed to be used in debug mode, so I think this is a good compromise -#ifdef DEBUG +#if DEBUG SUFileManager *fileManager = [[SUFileManager alloc] init]; #else NSFileManager *fileManager = [NSFileManager defaultManager]; @@ -208,11 +210,15 @@ static NSString * const UPDATED_VERSION = @"2.0"; NSBundle *applicationBundle = hostBundle; id userDriver; +#if SPARKLE_BUILD_UI_BITS if (shiftKeyHeldDown) { userDriver = [[SUPopUpTitlebarUserDriver alloc] initWithWindow:settingsWindow]; } else { userDriver = [[SPUStandardUserDriver alloc] initWithHostBundle:hostBundle delegate:nil]; } +#else + userDriver = [[SUPopUpTitlebarUserDriver alloc] initWithWindow:settingsWindow]; +#endif SPUUpdater *updater = [[SPUUpdater alloc] initWithHostBundle:hostBundle applicationBundle:applicationBundle userDriver:userDriver delegate:nil]; diff --git a/sparkle-cli/SPUCommandLineDriver.m b/sparkle-cli/SPUCommandLineDriver.m index 63fac056..83e05c97 100644 --- a/sparkle-cli/SPUCommandLineDriver.m +++ b/sparkle-cli/SPUCommandLineDriver.m @@ -7,7 +7,7 @@ // #import "SPUCommandLineDriver.h" -#import +#import #import "SPUCommandLineUserDriver.h" @interface SPUCommandLineDriver () diff --git a/sparkle-cli/SPUCommandLineUserDriver.h b/sparkle-cli/SPUCommandLineUserDriver.h index b713b144..a54e2957 100644 --- a/sparkle-cli/SPUCommandLineUserDriver.h +++ b/sparkle-cli/SPUCommandLineUserDriver.h @@ -7,7 +7,7 @@ // #import -#import +#import NS_ASSUME_NONNULL_BEGIN diff --git a/sparkle-cli/SPUCommandLineUserDriver.m b/sparkle-cli/SPUCommandLineUserDriver.m index 8f34027d..7e22b4b4 100644 --- a/sparkle-cli/SPUCommandLineUserDriver.m +++ b/sparkle-cli/SPUCommandLineUserDriver.m @@ -8,7 +8,7 @@ #import "SPUCommandLineUserDriver.h" #import -#import +#import #define SCHEDULED_UPDATE_TIMER_THRESHOLD 2.0 // seconds diff --git a/sparkle-cli/main.m b/sparkle-cli/main.m index 642869aa..e6025bb1 100644 --- a/sparkle-cli/main.m +++ b/sparkle-cli/main.m @@ -7,7 +7,7 @@ // #import -#import +#import #import "SPUCommandLineDriver.h" #include