From 8c7adbdca783685815eb53db59dc8629919274fa Mon Sep 17 00:00:00 2001 From: Zorg Date: Fri, 2 Oct 2020 23:58:23 -0700 Subject: [PATCH 1/4] Use double quote includes with pragma ignore warning --- Sparkle/SPUDownloadData.h | 2 +- Sparkle/SUAppcast.h | 2 +- Sparkle/SUAppcastItem.h | 2 +- Sparkle/SUErrors.h | 2 +- Sparkle/SUFileManager.m | 2 +- Sparkle/SUStandardVersionComparator.h | 4 +-- Sparkle/SUUpdater.h | 8 ++--- Sparkle/SUUpdaterDelegate.h | 2 +- Sparkle/SUVersionDisplayProtocol.h | 2 +- Sparkle/Sparkle.h | 45 +++++++++++++++------------ 10 files changed, 38 insertions(+), 33 deletions(-) diff --git a/Sparkle/SPUDownloadData.h b/Sparkle/SPUDownloadData.h index dffd271c..e18e657e 100644 --- a/Sparkle/SPUDownloadData.h +++ b/Sparkle/SPUDownloadData.h @@ -7,7 +7,7 @@ // #import -#import +#import "SUExport.h" NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SUAppcast.h b/Sparkle/SUAppcast.h index b21e59c9..a2f5ff1f 100644 --- a/Sparkle/SUAppcast.h +++ b/Sparkle/SUAppcast.h @@ -10,7 +10,7 @@ #define SUAPPCAST_H #import -#import +#import "SUExport.h" NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SUAppcastItem.h b/Sparkle/SUAppcastItem.h index b85b9865..50999d59 100644 --- a/Sparkle/SUAppcastItem.h +++ b/Sparkle/SUAppcastItem.h @@ -10,7 +10,7 @@ #define SUAPPCASTITEM_H #import -#import +#import "SUExport.h" @class SUSignatures; SU_EXPORT @interface SUAppcastItem : NSObject diff --git a/Sparkle/SUErrors.h b/Sparkle/SUErrors.h index 02e504b7..9a29fed8 100644 --- a/Sparkle/SUErrors.h +++ b/Sparkle/SUErrors.h @@ -10,7 +10,7 @@ #define SUERRORS_H #import -#import +#import "SUExport.h" /** * Error domain used by Sparkle diff --git a/Sparkle/SUFileManager.m b/Sparkle/SUFileManager.m index 2b7f1035..8b29d440 100644 --- a/Sparkle/SUFileManager.m +++ b/Sparkle/SUFileManager.m @@ -7,7 +7,7 @@ // #import "SUFileManager.h" -#import +#import "SUErrors.h" #include #include diff --git a/Sparkle/SUStandardVersionComparator.h b/Sparkle/SUStandardVersionComparator.h index 1190d12c..acd6711e 100644 --- a/Sparkle/SUStandardVersionComparator.h +++ b/Sparkle/SUStandardVersionComparator.h @@ -10,8 +10,8 @@ #define SUSTANDARDVERSIONCOMPARATOR_H #import -#import -#import +#import "SUExport.h" +#import "SUVersionComparisonProtocol.h" NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SUUpdater.h b/Sparkle/SUUpdater.h index c2a1b309..d50fc333 100644 --- a/Sparkle/SUUpdater.h +++ b/Sparkle/SUUpdater.h @@ -10,10 +10,10 @@ #define SUUPDATER_H #import -#import -#import -#import -#import +#import "SUExport.h" +#import "SUVersionComparisonProtocol.h" +#import "SUVersionDisplayProtocol.h" +#import "SUUpdaterDelegate.h" @class SUAppcastItem, SUAppcast, NSMenuItem; diff --git a/Sparkle/SUUpdaterDelegate.h b/Sparkle/SUUpdaterDelegate.h index f50bb3ec..c5f8ac7a 100644 --- a/Sparkle/SUUpdaterDelegate.h +++ b/Sparkle/SUUpdaterDelegate.h @@ -7,7 +7,7 @@ // #import -#import +#import "SUExport.h" @protocol SUVersionComparison, SUVersionDisplay; @class SUUpdater, SUAppcast, SUAppcastItem; diff --git a/Sparkle/SUVersionDisplayProtocol.h b/Sparkle/SUVersionDisplayProtocol.h index 2efc4e7d..623ca16b 100644 --- a/Sparkle/SUVersionDisplayProtocol.h +++ b/Sparkle/SUVersionDisplayProtocol.h @@ -7,7 +7,7 @@ // #import -#import +#import "SUExport.h" /*! Applies special display formatting to version numbers. diff --git a/Sparkle/Sparkle.h b/Sparkle/Sparkle.h index 3b4bfe63..a3ec078f 100644 --- a/Sparkle/Sparkle.h +++ b/Sparkle/Sparkle.h @@ -12,27 +12,32 @@ // 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: -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import +#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 // deprecated -#import // deprecated +#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 "SPUUserDriverCoreComponent.h" +#import "SPUDownloadData.h" +#import "SUUpdater.h" // deprecated +#import "SUUpdaterDelegate.h" // deprecated + +#pragma clang diagnostic pop #endif From 02e11f3c3a8081b6ab2b8b35d30e66db5bc4b747 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sat, 3 Oct 2020 00:10:53 -0700 Subject: [PATCH 2/4] Add -Wno-quoted-include-in-framework-header to ConfigCommon --- Configurations/ConfigCommon.xcconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Configurations/ConfigCommon.xcconfig b/Configurations/ConfigCommon.xcconfig index d77e2b41..1ca6b3c3 100644 --- a/Configurations/ConfigCommon.xcconfig +++ b/Configurations/ConfigCommon.xcconfig @@ -93,4 +93,4 @@ GCC_WARN_UNUSED_VARIABLE = YES WARNING_CFLAGS_EXTRA = -Wno-custom-atomic-properties -Wno-implicit-atomic-properties // Turn on all warnings, then disable a few which are almost impossible to avoid -WARNING_CFLAGS = -Wall -Weverything -Wno-unused-macros -Wno-gnu-statement-expression -Wno-arc-repeated-use-of-weak -Wno-auto-import -Wno-gnu-zero-variadic-macro-arguments -Wno-format-non-iso $(WARNING_CFLAGS_EXTRA) +WARNING_CFLAGS = -Wall -Weverything -Wno-unused-macros -Wno-gnu-statement-expression -Wno-arc-repeated-use-of-weak -Wno-auto-import -Wno-gnu-zero-variadic-macro-arguments -Wno-format-non-iso -Wno-quoted-include-in-framework-header $(WARNING_CFLAGS_EXTRA) From 772e6105377f0d4fc39b01f52d660d1e4500e4dc Mon Sep 17 00:00:00 2001 From: Zorg Date: Sat, 3 Oct 2020 00:38:15 -0700 Subject: [PATCH 3/4] Set CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER instead --- Configurations/ConfigCommon.xcconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Configurations/ConfigCommon.xcconfig b/Configurations/ConfigCommon.xcconfig index 1ca6b3c3..b2157b01 100644 --- a/Configurations/ConfigCommon.xcconfig +++ b/Configurations/ConfigCommon.xcconfig @@ -62,7 +62,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 = YES +CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES CLANG_WARN_UNREACHABLE_CODE = YES GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES @@ -93,4 +93,4 @@ GCC_WARN_UNUSED_VARIABLE = YES WARNING_CFLAGS_EXTRA = -Wno-custom-atomic-properties -Wno-implicit-atomic-properties // Turn on all warnings, then disable a few which are almost impossible to avoid -WARNING_CFLAGS = -Wall -Weverything -Wno-unused-macros -Wno-gnu-statement-expression -Wno-arc-repeated-use-of-weak -Wno-auto-import -Wno-gnu-zero-variadic-macro-arguments -Wno-format-non-iso -Wno-quoted-include-in-framework-header $(WARNING_CFLAGS_EXTRA) +WARNING_CFLAGS = -Wall -Weverything -Wno-unused-macros -Wno-gnu-statement-expression -Wno-arc-repeated-use-of-weak -Wno-auto-import -Wno-gnu-zero-variadic-macro-arguments -Wno-format-non-iso $(WARNING_CFLAGS_EXTRA) From d38fd92668eb3e5d2d0697958a900e9cc00b3dee Mon Sep 17 00:00:00 2001 From: Zorg Date: Sat, 3 Oct 2020 00:41:59 -0700 Subject: [PATCH 4/4] Use double quote includes in a bunch of other places I missed --- Autoupdate/AppInstaller.m | 2 +- Autoupdate/SUGuidedPackageInstaller.m | 2 +- Autoupdate/SUInstaller.m | 2 +- Autoupdate/SUPackageInstaller.m | 2 +- Autoupdate/SUPipedUnarchiver.m | 2 +- Autoupdate/SUPlainInstaller.m | 4 ++-- Autoupdate/SUUnarchiverNotifier.m | 2 +- Downloader/SPUDownloader.m | 4 ++-- Sparkle/SPUAutomaticUpdateDriver.m | 6 +++--- Sparkle/SPUBasicUpdateDriver.m | 4 ++-- Sparkle/SPUCoreBasedUpdateDriver.h | 2 +- Sparkle/SPUCoreBasedUpdateDriver.m | 2 +- Sparkle/SPUDownloadData.m | 2 +- Sparkle/SPUDownloadDriver.m | 6 +++--- Sparkle/SPUInstallerDriver.m | 4 ++-- Sparkle/SPUScheduledUpdateDriver.m | 4 ++-- Sparkle/SPUStandardUpdaterController.h | 2 +- Sparkle/SPUStandardUpdaterController.m | 2 +- Sparkle/SPUStandardUserDriver.h | 6 +++--- Sparkle/SPUStandardUserDriver.m | 8 ++++---- Sparkle/SPUStandardUserDriverDelegate.h | 2 +- Sparkle/SPUUIBasedUpdateDriver.m | 6 +++--- Sparkle/SPUURLDownload.m | 4 ++-- Sparkle/SPUUpdatePermissionRequest.h | 2 +- Sparkle/SPUUpdatePermissionRequest.m | 2 +- Sparkle/SPUUpdater.h | 4 ++-- Sparkle/SPUUpdater.m | 8 ++++---- Sparkle/SPUUpdaterDelegate.h | 2 +- Sparkle/SPUUpdaterSettings.h | 2 +- Sparkle/SPUUpdaterSettings.m | 2 +- Sparkle/SPUUserDriver.h | 4 ++-- Sparkle/SPUUserDriverCoreComponent.h | 4 ++-- Sparkle/SPUUserDriverCoreComponent.m | 2 +- Sparkle/SPUUserInitiatedUpdateDriver.m | 2 +- Sparkle/SUAppcast.m | 12 ++++++------ Sparkle/SUAppcastDriver.m | 6 +++--- Sparkle/SUAppcastItem.m | 4 ++-- Sparkle/SUConstants.m | 2 +- Sparkle/SUFileManager.h | 2 +- Sparkle/SUStandardVersionComparator.m | 4 ++-- Sparkle/SUUpdateAlert.h | 4 ++-- Sparkle/SUUpdateAlert.m | 6 +++--- Sparkle/SUUpdatePermissionPrompt.m | 4 ++-- Sparkle/SUUpdatePermissionResponse.h | 2 +- Sparkle/SUUpdatePermissionResponse.m | 2 +- Sparkle/SUUpdater.m | 10 +++++----- Sparkle/SUVersionComparisonProtocol.h | 2 +- Sparkle/SparkleCore.h | 22 ++++++++++++++-------- Tests/SUUpdaterTest.m | 6 +++--- Tests/SUVersionComparisonTest.m | 2 +- Tests/Sparkle Unit Tests-Bridging-Header.h | 8 ++++---- sparkle-cli/SPUCommandLineUserDriver.m | 1 - 52 files changed, 109 insertions(+), 104 deletions(-) diff --git a/Autoupdate/AppInstaller.m b/Autoupdate/AppInstaller.m index a639024c..2a7b218c 100644 --- a/Autoupdate/AppInstaller.m +++ b/Autoupdate/AppInstaller.m @@ -21,7 +21,7 @@ #import "SUFileManager.h" #import "SPUInstallationInfo.h" #import "SUAppcastItem.h" -#import +#import "SUErrors.h" #import "SUInstallerCommunicationProtocol.h" #import "AgentConnection.h" #import "SPUInstallerAgentProtocol.h" diff --git a/Autoupdate/SUGuidedPackageInstaller.m b/Autoupdate/SUGuidedPackageInstaller.m index 6fd7c41d..cd43bbf4 100644 --- a/Autoupdate/SUGuidedPackageInstaller.m +++ b/Autoupdate/SUGuidedPackageInstaller.m @@ -8,7 +8,7 @@ #import #import "SUGuidedPackageInstaller.h" -#import +#import "SUErrors.h" #include "AppKitPrevention.h" diff --git a/Autoupdate/SUInstaller.m b/Autoupdate/SUInstaller.m index 0b767e7f..bede6aa1 100644 --- a/Autoupdate/SUInstaller.m +++ b/Autoupdate/SUInstaller.m @@ -13,7 +13,7 @@ #import "SUHost.h" #import "SUConstants.h" #import "SULog.h" -#import +#import "SUErrors.h" #import "SPUInstallationType.h" diff --git a/Autoupdate/SUPackageInstaller.m b/Autoupdate/SUPackageInstaller.m index f97a9bbc..251a0561 100644 --- a/Autoupdate/SUPackageInstaller.m +++ b/Autoupdate/SUPackageInstaller.m @@ -8,7 +8,7 @@ #import "SUPackageInstaller.h" #import "SUConstants.h" -#import +#import "SUErrors.h" #import "SULog.h" diff --git a/Autoupdate/SUPipedUnarchiver.m b/Autoupdate/SUPipedUnarchiver.m index c3285daf..1849b85f 100644 --- a/Autoupdate/SUPipedUnarchiver.m +++ b/Autoupdate/SUPipedUnarchiver.m @@ -9,7 +9,7 @@ #import "SUPipedUnarchiver.h" #import "SUUnarchiverNotifier.h" #import "SULog.h" -#import +#import "SUErrors.h" #include "AppKitPrevention.h" diff --git a/Autoupdate/SUPlainInstaller.m b/Autoupdate/SUPlainInstaller.m index 8a8f9909..b0821a55 100644 --- a/Autoupdate/SUPlainInstaller.m +++ b/Autoupdate/SUPlainInstaller.m @@ -11,8 +11,8 @@ #import "SUConstants.h" #import "SUHost.h" #import "SULog.h" -#import -#import +#import "SUErrors.h" +#import "SUVersionComparisonProtocol.h" #import "SUStandardVersionComparator.h" diff --git a/Autoupdate/SUUnarchiverNotifier.m b/Autoupdate/SUUnarchiverNotifier.m index 16559860..643f0eb9 100644 --- a/Autoupdate/SUUnarchiverNotifier.m +++ b/Autoupdate/SUUnarchiverNotifier.m @@ -8,7 +8,7 @@ #import "SUUnarchiverNotifier.h" #import "SULocalizations.h" -#import +#import "SUErrors.h" #include "AppKitPrevention.h" diff --git a/Downloader/SPUDownloader.m b/Downloader/SPUDownloader.m index c7b0e02c..6ea3aed3 100644 --- a/Downloader/SPUDownloader.m +++ b/Downloader/SPUDownloader.m @@ -10,8 +10,8 @@ #import "SPUDownloaderDelegate.h" #import "SPULocalCacheDirectory.h" #import "SPUURLRequest.h" -#import -#import +#import "SPUDownloadData.h" +#import "SUErrors.h" #include "AppKitPrevention.h" diff --git a/Sparkle/SPUAutomaticUpdateDriver.m b/Sparkle/SPUAutomaticUpdateDriver.m index fece7af2..401b7cdc 100644 --- a/Sparkle/SPUAutomaticUpdateDriver.m +++ b/Sparkle/SPUAutomaticUpdateDriver.m @@ -9,12 +9,12 @@ #import "SPUAutomaticUpdateDriver.h" #import "SPUUpdateDriver.h" #import "SUHost.h" -#import +#import "SPUUpdaterDelegate.h" #import "SPUCoreBasedUpdateDriver.h" #import "SULog.h" #import "SUAppcastItem.h" -#import -#import +#import "SPUUserDriver.h" +#import "SUErrors.h" #include "AppKitPrevention.h" diff --git a/Sparkle/SPUBasicUpdateDriver.m b/Sparkle/SPUBasicUpdateDriver.m index 921cc80a..9f6176d2 100644 --- a/Sparkle/SPUBasicUpdateDriver.m +++ b/Sparkle/SPUBasicUpdateDriver.m @@ -8,8 +8,8 @@ #import "SPUBasicUpdateDriver.h" #import "SUAppcastDriver.h" -#import -#import +#import "SPUUpdaterDelegate.h" +#import "SUErrors.h" #import "SULog.h" #import "SULocalizations.h" #import "SUHost.h" diff --git a/Sparkle/SPUCoreBasedUpdateDriver.h b/Sparkle/SPUCoreBasedUpdateDriver.h index 2eca7939..012e7d43 100644 --- a/Sparkle/SPUCoreBasedUpdateDriver.h +++ b/Sparkle/SPUCoreBasedUpdateDriver.h @@ -7,7 +7,7 @@ // #import -#import +#import "SPUStatusCompletionResults.h" #import "SPUUpdateDriver.h" NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUCoreBasedUpdateDriver.m b/Sparkle/SPUCoreBasedUpdateDriver.m index 015972ab..f9bb98ac 100644 --- a/Sparkle/SPUCoreBasedUpdateDriver.m +++ b/Sparkle/SPUCoreBasedUpdateDriver.m @@ -13,7 +13,7 @@ #import "SPUInstallerDriver.h" #import "SPUDownloadDriver.h" #import "SULog.h" -#import +#import "SUErrors.h" #import "SPUResumableUpdate.h" #import "SPUDownloadedUpdate.h" #import "SPUInformationalUpdate.h" diff --git a/Sparkle/SPUDownloadData.m b/Sparkle/SPUDownloadData.m index 6ce24cda..7b5edc80 100644 --- a/Sparkle/SPUDownloadData.m +++ b/Sparkle/SPUDownloadData.m @@ -6,7 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#import +#import "SPUDownloadData.h" #include "AppKitPrevention.h" diff --git a/Sparkle/SPUDownloadDriver.m b/Sparkle/SPUDownloadDriver.m index 6fa69b81..37658a03 100644 --- a/Sparkle/SPUDownloadDriver.m +++ b/Sparkle/SPUDownloadDriver.m @@ -10,15 +10,15 @@ #import "SPUDownloaderDelegate.h" #import "SPUDownloader.h" #import "SPUXPCServiceInfo.h" -#import +#import "SUAppcastItem.h" #import "SUFileManager.h" #import "SULocalizations.h" #import "SUHost.h" #import "SULog.h" -#import +#import "SUErrors.h" #import "SPUURLRequest.h" #import "SPUDownloadedUpdate.h" -#import +#import "SPUDownloadData.h" #include "AppKitPrevention.h" diff --git a/Sparkle/SPUInstallerDriver.m b/Sparkle/SPUInstallerDriver.m index 9bf034e8..e80a76a4 100644 --- a/Sparkle/SPUInstallerDriver.m +++ b/Sparkle/SPUInstallerDriver.m @@ -10,11 +10,11 @@ #import "SULog.h" #import "SPUMessageTypes.h" #import "SPUXPCServiceInfo.h" -#import +#import "SPUUpdaterDelegate.h" #import "SUAppcastItem.h" #import "SULog.h" #import "SULocalizations.h" -#import +#import "SUErrors.h" #import "SUHost.h" #import "SUFileManager.h" #import "SPUSecureCoding.h" diff --git a/Sparkle/SPUScheduledUpdateDriver.m b/Sparkle/SPUScheduledUpdateDriver.m index ba44f776..ffd503f1 100644 --- a/Sparkle/SPUScheduledUpdateDriver.m +++ b/Sparkle/SPUScheduledUpdateDriver.m @@ -8,9 +8,9 @@ #import "SPUScheduledUpdateDriver.h" #import "SUHost.h" -#import +#import "SUErrors.h" #import "SPUUpdaterDelegate.h" -#import +#import "SPUUserDriver.h" #include "AppKitPrevention.h" diff --git a/Sparkle/SPUStandardUpdaterController.h b/Sparkle/SPUStandardUpdaterController.h index 4ac52f2f..ee840921 100644 --- a/Sparkle/SPUStandardUpdaterController.h +++ b/Sparkle/SPUStandardUpdaterController.h @@ -7,7 +7,7 @@ // #import -#import +#import "SUExport.h" NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUStandardUpdaterController.m b/Sparkle/SPUStandardUpdaterController.m index 3a5492f7..573e2001 100644 --- a/Sparkle/SPUStandardUpdaterController.m +++ b/Sparkle/SPUStandardUpdaterController.m @@ -9,7 +9,7 @@ #import "SPUStandardUpdaterController.h" #import "SPUUpdater.h" #import "SUHost.h" -#import +#import "SPUStandardUserDriver.h" #import "SUConstants.h" #import "SULog.h" diff --git a/Sparkle/SPUStandardUserDriver.h b/Sparkle/SPUStandardUserDriver.h index 6bf3fcf6..cc046fb5 100644 --- a/Sparkle/SPUStandardUserDriver.h +++ b/Sparkle/SPUStandardUserDriver.h @@ -7,9 +7,9 @@ // #import -#import -#import -#import +#import "SPUUserDriver.h" +#import "SPUStandardUserDriverProtocol.h" +#import "SUExport.h" NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUStandardUserDriver.m b/Sparkle/SPUStandardUserDriver.m index 16c501f0..b3e3891b 100644 --- a/Sparkle/SPUStandardUserDriver.m +++ b/Sparkle/SPUStandardUserDriver.m @@ -6,11 +6,11 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#import -#import -#import +#import "SPUStandardUserDriver.h" +#import "SPUUserDriverCoreComponent.h" +#import "SPUStandardUserDriverDelegate.h" #import "SUAppcastItem.h" -#import +#import "SUVersionDisplayProtocol.h" #import "SUHost.h" #import "SUUpdatePermissionPrompt.h" #import "SUStatusController.h" diff --git a/Sparkle/SPUStandardUserDriverDelegate.h b/Sparkle/SPUStandardUserDriverDelegate.h index f1facf81..803644aa 100644 --- a/Sparkle/SPUStandardUserDriverDelegate.h +++ b/Sparkle/SPUStandardUserDriverDelegate.h @@ -7,7 +7,7 @@ // #import -#import +#import "SUExport.h" @protocol SUVersionDisplay; diff --git a/Sparkle/SPUUIBasedUpdateDriver.m b/Sparkle/SPUUIBasedUpdateDriver.m index 425b9ca0..57d3b3c1 100644 --- a/Sparkle/SPUUIBasedUpdateDriver.m +++ b/Sparkle/SPUUIBasedUpdateDriver.m @@ -8,14 +8,14 @@ #import "SPUUIBasedUpdateDriver.h" #import "SPUCoreBasedUpdateDriver.h" -#import +#import "SPUUserDriver.h" #import "SUHost.h" #import "SUConstants.h" #import "SPUUpdaterDelegate.h" #import "SUAppcastItem.h" -#import +#import "SUErrors.h" #import "SPUURLDownload.h" -#import +#import "SPUDownloadData.h" #import "SPUResumableUpdate.h" diff --git a/Sparkle/SPUURLDownload.m b/Sparkle/SPUURLDownload.m index 67ceae78..911befed 100644 --- a/Sparkle/SPUURLDownload.m +++ b/Sparkle/SPUURLDownload.m @@ -9,11 +9,11 @@ #import "SPUURLDownload.h" #import "SPUXPCServiceInfo.h" #import "SPUURLRequest.h" -#import +#import "SPUDownloadData.h" #import "SPUDownloaderProtocol.h" #import "SPUDownloaderDelegate.h" #import "SPUDownloader.h" -#import +#import "SUErrors.h" #include "AppKitPrevention.h" diff --git a/Sparkle/SPUUpdatePermissionRequest.h b/Sparkle/SPUUpdatePermissionRequest.h index 36cccefe..d96a79b1 100644 --- a/Sparkle/SPUUpdatePermissionRequest.h +++ b/Sparkle/SPUUpdatePermissionRequest.h @@ -7,7 +7,7 @@ // #import -#import +#import "SUExport.h" NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUUpdatePermissionRequest.m b/Sparkle/SPUUpdatePermissionRequest.m index 321f3a95..aea0f70f 100644 --- a/Sparkle/SPUUpdatePermissionRequest.m +++ b/Sparkle/SPUUpdatePermissionRequest.m @@ -6,7 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#import +#import "SPUUpdatePermissionRequest.h" #include "AppKitPrevention.h" diff --git a/Sparkle/SPUUpdater.h b/Sparkle/SPUUpdater.h index 4c5b1bf0..d5490f62 100644 --- a/Sparkle/SPUUpdater.h +++ b/Sparkle/SPUUpdater.h @@ -7,8 +7,8 @@ // #import -#import -#import +#import "SUExport.h" +#import "SPUUserDriver.h" NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUUpdater.m b/Sparkle/SPUUpdater.m index 0633d04c..91979c3b 100644 --- a/Sparkle/SPUUpdater.m +++ b/Sparkle/SPUUpdater.m @@ -6,12 +6,12 @@ // Copyright 2006 Andy Matuschak. All rights reserved. // -#import +#import "SPUUpdater.h" #import "SPUUpdaterDelegate.h" #import "SPUUpdaterSettings.h" #import "SUHost.h" -#import -#import +#import "SPUUpdatePermissionRequest.h" +#import "SUUpdatePermissionResponse.h" #import "SPUUpdateDriver.h" #import "SUConstants.h" #import "SULog.h" @@ -24,7 +24,7 @@ #import "SPUProbeInstallStatus.h" #import "SUAppcastItem.h" #import "SPUInstallationInfo.h" -#import +#import "SUErrors.h" #import "SPUXPCServiceInfo.h" #import "SPUUpdaterCycle.h" #import "SPUUpdaterTimer.h" diff --git a/Sparkle/SPUUpdaterDelegate.h b/Sparkle/SPUUpdaterDelegate.h index bc3ee8ff..d140000f 100644 --- a/Sparkle/SPUUpdaterDelegate.h +++ b/Sparkle/SPUUpdaterDelegate.h @@ -7,7 +7,7 @@ // #import -#import +#import "SUExport.h" @protocol SUVersionComparison; @class SPUUpdater, SUAppcast, SUAppcastItem; diff --git a/Sparkle/SPUUpdaterSettings.h b/Sparkle/SPUUpdaterSettings.h index 371d5139..bdb467a9 100644 --- a/Sparkle/SPUUpdaterSettings.h +++ b/Sparkle/SPUUpdaterSettings.h @@ -7,7 +7,7 @@ // #import -#import +#import "SUExport.h" NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUUpdaterSettings.m b/Sparkle/SPUUpdaterSettings.m index 017e61d4..be33ea5d 100644 --- a/Sparkle/SPUUpdaterSettings.m +++ b/Sparkle/SPUUpdaterSettings.m @@ -6,7 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#import +#import "SPUUpdaterSettings.h" #import "SUHost.h" #import "SUConstants.h" diff --git a/Sparkle/SPUUserDriver.h b/Sparkle/SPUUserDriver.h index 4295d11c..511eda7e 100644 --- a/Sparkle/SPUUserDriver.h +++ b/Sparkle/SPUUserDriver.h @@ -7,8 +7,8 @@ // #import -#import -#import +#import "SPUStatusCompletionResults.h" +#import "SUExport.h" NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUUserDriverCoreComponent.h b/Sparkle/SPUUserDriverCoreComponent.h index 157196ab..6f60e801 100644 --- a/Sparkle/SPUUserDriverCoreComponent.h +++ b/Sparkle/SPUUserDriverCoreComponent.h @@ -7,8 +7,8 @@ // #import -#import -#import +#import "SPUStatusCompletionResults.h" +#import "SUExport.h" @protocol SPUStandardUserDriverDelegate; diff --git a/Sparkle/SPUUserDriverCoreComponent.m b/Sparkle/SPUUserDriverCoreComponent.m index abc51980..ecac239e 100644 --- a/Sparkle/SPUUserDriverCoreComponent.m +++ b/Sparkle/SPUUserDriverCoreComponent.m @@ -6,7 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#import +#import "SPUUserDriverCoreComponent.h" #include "AppKitPrevention.h" diff --git a/Sparkle/SPUUserInitiatedUpdateDriver.m b/Sparkle/SPUUserInitiatedUpdateDriver.m index 952034d8..dd1b0064 100644 --- a/Sparkle/SPUUserInitiatedUpdateDriver.m +++ b/Sparkle/SPUUserInitiatedUpdateDriver.m @@ -8,7 +8,7 @@ #import "SPUUserInitiatedUpdateDriver.h" #import "SPUUIBasedUpdateDriver.h" -#import +#import "SPUUserDriver.h" #include "AppKitPrevention.h" diff --git a/Sparkle/SUAppcast.m b/Sparkle/SUAppcast.m index 8a76c0ad..8f1fb8f4 100644 --- a/Sparkle/SUAppcast.m +++ b/Sparkle/SUAppcast.m @@ -6,17 +6,17 @@ // Copyright 2006 Andy Matuschak. All rights reserved. // -#import -#import -#import -#import +#import "SUExport.h" +#import "SUAppcast.h" +#import "SUAppcastItem.h" +#import "SUVersionComparisonProtocol.h" #import "SUConstants.h" #import "SULog.h" -#import +#import "SUErrors.h" #import "SULocalizations.h" #import "SPUXPCServiceInfo.h" #import "SPUURLDownload.h" -#import +#import "SPUDownloadData.h" #include "AppKitPrevention.h" diff --git a/Sparkle/SUAppcastDriver.m b/Sparkle/SUAppcastDriver.m index 9a864d81..f952b862 100644 --- a/Sparkle/SUAppcastDriver.m +++ b/Sparkle/SUAppcastDriver.m @@ -7,12 +7,12 @@ // #import "SUAppcastDriver.h" -#import +#import "SUAppcast.h" #import "SUAppcastItem.h" -#import +#import "SUVersionComparisonProtocol.h" #import "SUStandardVersionComparator.h" #import "SUOperatingSystem.h" -#import +#import "SPUUpdaterDelegate.h" #import "SUHost.h" #import "SUConstants.h" diff --git a/Sparkle/SUAppcastItem.m b/Sparkle/SUAppcastItem.m index d8c2143e..b8921817 100644 --- a/Sparkle/SUAppcastItem.m +++ b/Sparkle/SUAppcastItem.m @@ -6,8 +6,8 @@ // Copyright 2006 Andy Matuschak. All rights reserved. // -#import -#import +#import "SUAppcastItem.h" +#import "SUVersionComparisonProtocol.h" #import "SULog.h" #import "SUConstants.h" #import "SUSignatures.h" diff --git a/Sparkle/SUConstants.m b/Sparkle/SUConstants.m index 23a5f136..28fd37e7 100644 --- a/Sparkle/SUConstants.m +++ b/Sparkle/SUConstants.m @@ -7,7 +7,7 @@ // #import "SUConstants.h" -#import +#import "SUErrors.h" #ifndef DEBUG #define DEBUG 0 diff --git a/Sparkle/SUFileManager.h b/Sparkle/SUFileManager.h index be81c529..e465eeda 100644 --- a/Sparkle/SUFileManager.h +++ b/Sparkle/SUFileManager.h @@ -7,7 +7,7 @@ // #import -#import +#import "SUExport.h" NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SUStandardVersionComparator.m b/Sparkle/SUStandardVersionComparator.m index 6b85a0bd..a2958e82 100644 --- a/Sparkle/SUStandardVersionComparator.m +++ b/Sparkle/SUStandardVersionComparator.m @@ -6,8 +6,8 @@ // Copyright 2007 Andy Matuschak. All rights reserved. // -#import -#import +#import "SUVersionComparisonProtocol.h" +#import "SUStandardVersionComparator.h" #include "AppKitPrevention.h" diff --git a/Sparkle/SUUpdateAlert.h b/Sparkle/SUUpdateAlert.h index 2103d511..09f9cbf7 100644 --- a/Sparkle/SUUpdateAlert.h +++ b/Sparkle/SUUpdateAlert.h @@ -10,8 +10,8 @@ #define SUUPDATEALERT_H #import -#import -#import +#import "SUVersionDisplayProtocol.h" +#import "SPUStatusCompletionResults.h" @protocol SUUpdateAlertDelegate; diff --git a/Sparkle/SUUpdateAlert.m b/Sparkle/SUUpdateAlert.m index 75e83e5f..dcb074be 100644 --- a/Sparkle/SUUpdateAlert.m +++ b/Sparkle/SUUpdateAlert.m @@ -18,10 +18,10 @@ #import "SUConstants.h" #import "SULog.h" #import "SULocalizations.h" -#import -#import +#import "SUAppcastItem.h" +#import "SPUDownloadData.h" #import "SUApplicationInfo.h" -#import +#import "SPUUpdaterSettings.h" #import "SUSystemUpdateInfo.h" #import "SUTouchBarForwardDeclarations.h" #import "SUTouchBarButtonGroup.h" diff --git a/Sparkle/SUUpdatePermissionPrompt.m b/Sparkle/SUUpdatePermissionPrompt.m index d7366783..a6cc540d 100644 --- a/Sparkle/SUUpdatePermissionPrompt.m +++ b/Sparkle/SUUpdatePermissionPrompt.m @@ -7,8 +7,8 @@ // #import "SUUpdatePermissionPrompt.h" -#import -#import +#import "SPUUpdatePermissionRequest.h" +#import "SUUpdatePermissionResponse.h" #import "SULocalizations.h" #import "SUHost.h" diff --git a/Sparkle/SUUpdatePermissionResponse.h b/Sparkle/SUUpdatePermissionResponse.h index bbe6633d..7ae7d16c 100644 --- a/Sparkle/SUUpdatePermissionResponse.h +++ b/Sparkle/SUUpdatePermissionResponse.h @@ -7,7 +7,7 @@ // #import -#import +#import "SUExport.h" /*! This class represents a response for permission to check updates. diff --git a/Sparkle/SUUpdatePermissionResponse.m b/Sparkle/SUUpdatePermissionResponse.m index 823ba25f..832e3774 100644 --- a/Sparkle/SUUpdatePermissionResponse.m +++ b/Sparkle/SUUpdatePermissionResponse.m @@ -6,7 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#import +#import "SUUpdatePermissionResponse.h" #include "AppKitPrevention.h" diff --git a/Sparkle/SUUpdater.m b/Sparkle/SUUpdater.m index c382bc3e..5fc6ba1d 100644 --- a/Sparkle/SUUpdater.m +++ b/Sparkle/SUUpdater.m @@ -6,11 +6,11 @@ // Copyright 2006 Andy Matuschak. All rights reserved. // -#import -#import -#import -#import -#import +#import "SUUpdater.h" +#import "SPUUpdater.h" +#import "SPUStandardUserDriver.h" +#import "SPUStandardUserDriverDelegate.h" +#import "SPUUpdaterDelegate.h" #import "SULog.h" @interface SUUpdater () diff --git a/Sparkle/SUVersionComparisonProtocol.h b/Sparkle/SUVersionComparisonProtocol.h index 62bdd0d5..05d01717 100644 --- a/Sparkle/SUVersionComparisonProtocol.h +++ b/Sparkle/SUVersionComparisonProtocol.h @@ -10,7 +10,7 @@ #define SUVERSIONCOMPARISONPROTOCOL_H #import -#import +#import "SUExport.h" NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SparkleCore.h b/Sparkle/SparkleCore.h index 21b4ddbc..5d3521e7 100644 --- a/Sparkle/SparkleCore.h +++ b/Sparkle/SparkleCore.h @@ -14,18 +14,24 @@ // 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: -#import +#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 -#import -#import -#import -#import -#import -#import +#import "SUVersionComparisonProtocol.h" +#import "SUErrors.h" +#import "SPUUpdatePermissionRequest.h" +#import "SUUpdatePermissionResponse.h" +#import "SPUUserDriver.h" +#import "SPUUserDriverCoreComponent.h" +#import "SPUDownloadData.h" + +#pragma clang diagnostic pop #endif diff --git a/Tests/SUUpdaterTest.m b/Tests/SUUpdaterTest.m index 8b3cdca6..6ded7404 100644 --- a/Tests/SUUpdaterTest.m +++ b/Tests/SUUpdaterTest.m @@ -8,9 +8,9 @@ #import #import "SUConstants.h" -#import -#import -#import +#import "SPUUpdater.h" +#import "SPUStandardUserDriver.h" +#import "SPUUpdaterDelegate.h" @interface SUUpdaterTest : XCTestCase @property (strong) SPUUpdater *updater; diff --git a/Tests/SUVersionComparisonTest.m b/Tests/SUVersionComparisonTest.m index 1ea8cfce..6db03746 100644 --- a/Tests/SUVersionComparisonTest.m +++ b/Tests/SUVersionComparisonTest.m @@ -6,7 +6,7 @@ // Copyright 2008 Andy Matuschak. All rights reserved. // -#import +#import #import diff --git a/Tests/Sparkle Unit Tests-Bridging-Header.h b/Tests/Sparkle Unit Tests-Bridging-Header.h index 1a81ade6..9ef42341 100644 --- a/Tests/Sparkle Unit Tests-Bridging-Header.h +++ b/Tests/Sparkle Unit Tests-Bridging-Header.h @@ -8,12 +8,12 @@ #import "SUPipedUnarchiver.h" #import "SUBinaryDeltaCommon.h" #import "SUFileManager.h" -#import +#import "SUExport.h" #import "SUAppcast.h" -#import +#import "SUAppcastItem.h" #import "SUAppcastDriver.h" -#import -#import +#import "SUVersionComparisonProtocol.h" +#import "SUStandardVersionComparator.h" #import "SUUpdateValidator.h" #import "SUHost.h" #import "SUSignatures.h" diff --git a/sparkle-cli/SPUCommandLineUserDriver.m b/sparkle-cli/SPUCommandLineUserDriver.m index 57f6cd6e..31b71385 100644 --- a/sparkle-cli/SPUCommandLineUserDriver.m +++ b/sparkle-cli/SPUCommandLineUserDriver.m @@ -9,7 +9,6 @@ #import "SPUCommandLineUserDriver.h" #import #import -#import #define SCHEDULED_UPDATE_TIMER_THRESHOLD 2.0 // seconds