From a266b400cb2f665d48ee22b4b4b827cec79685a3 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sat, 3 Oct 2020 01:37:12 -0700 Subject: [PATCH] Add more missing module imports --- Sparkle/SPUDownloadData.h | 7 +++++++ Sparkle/SPUStandardUpdaterController.h | 7 +++++++ Sparkle/SPUStandardUserDriver.h | 7 +++++++ Sparkle/SPUStandardUserDriverProtocol.h | 7 +++++++ Sparkle/SPUStatusCompletionResults.h | 7 +++++++ Sparkle/SPUUpdatePermissionRequest.h | 7 +++++++ Sparkle/SPUUpdater.h | 3 +++ Sparkle/SPUUpdaterDelegate.h | 7 +++++++ Sparkle/SPUUpdaterSettings.h | 7 +++++++ Sparkle/SPUUserDriver.h | 8 ++++++++ Sparkle/SPUUserDriverCoreComponent.h | 7 +++++++ Sparkle/SUAppcast.h | 3 +++ Sparkle/SUAppcastItem.h | 3 +++ Sparkle/SUErrors.h | 3 +++ Sparkle/SUStandardVersionComparator.h | 3 +++ Sparkle/SUUpdatePermissionResponse.h | 7 +++++++ Sparkle/SUUpdater.h | 3 +++ Sparkle/SUVersionComparisonProtocol.h | 7 +++++++ Sparkle/SUVersionDisplayProtocol.h | 3 +++ 19 files changed, 106 insertions(+) diff --git a/Sparkle/SPUDownloadData.h b/Sparkle/SPUDownloadData.h index dffd271c..87f531a1 100644 --- a/Sparkle/SPUDownloadData.h +++ b/Sparkle/SPUDownloadData.h @@ -6,7 +6,14 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Foundation; +#else #import +#endif #import NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUStandardUpdaterController.h b/Sparkle/SPUStandardUpdaterController.h index 4ac52f2f..9a230a4f 100644 --- a/Sparkle/SPUStandardUpdaterController.h +++ b/Sparkle/SPUStandardUpdaterController.h @@ -6,7 +6,14 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Cocoa; +#else #import +#endif #import NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUStandardUserDriver.h b/Sparkle/SPUStandardUserDriver.h index 6bf3fcf6..3578fcd5 100644 --- a/Sparkle/SPUStandardUserDriver.h +++ b/Sparkle/SPUStandardUserDriver.h @@ -6,7 +6,14 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Cocoa; +#else #import +#endif #import #import #import diff --git a/Sparkle/SPUStandardUserDriverProtocol.h b/Sparkle/SPUStandardUserDriverProtocol.h index a9d8f9f0..b07d028e 100644 --- a/Sparkle/SPUStandardUserDriverProtocol.h +++ b/Sparkle/SPUStandardUserDriverProtocol.h @@ -6,7 +6,14 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Foundation; +#else #import +#endif @protocol SPUStandardUserDriverDelegate; diff --git a/Sparkle/SPUStatusCompletionResults.h b/Sparkle/SPUStatusCompletionResults.h index fdf44398..38d5a6a4 100644 --- a/Sparkle/SPUStatusCompletionResults.h +++ b/Sparkle/SPUStatusCompletionResults.h @@ -9,7 +9,14 @@ #ifndef SPUStatusCompletionResults_h #define SPUStatusCompletionResults_h +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Foundation; +#else #import +#endif typedef NS_ENUM(NSUInteger, SPUUserInitiatedCheckStatus) { SPUUserInitiatedCheckDone, diff --git a/Sparkle/SPUUpdatePermissionRequest.h b/Sparkle/SPUUpdatePermissionRequest.h index 36cccefe..2b3be9ad 100644 --- a/Sparkle/SPUUpdatePermissionRequest.h +++ b/Sparkle/SPUUpdatePermissionRequest.h @@ -6,7 +6,14 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Foundation; +#else #import +#endif #import NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUUpdater.h b/Sparkle/SPUUpdater.h index 14879ff1..19b6e658 100644 --- a/Sparkle/SPUUpdater.h +++ b/Sparkle/SPUUpdater.h @@ -7,6 +7,9 @@ // #if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif @import Foundation; #else #import diff --git a/Sparkle/SPUUpdaterDelegate.h b/Sparkle/SPUUpdaterDelegate.h index bc3ee8ff..1d50f2ad 100644 --- a/Sparkle/SPUUpdaterDelegate.h +++ b/Sparkle/SPUUpdaterDelegate.h @@ -6,7 +6,14 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Foundation; +#else #import +#endif #import @protocol SUVersionComparison; diff --git a/Sparkle/SPUUpdaterSettings.h b/Sparkle/SPUUpdaterSettings.h index 371d5139..0108cba7 100644 --- a/Sparkle/SPUUpdaterSettings.h +++ b/Sparkle/SPUUpdaterSettings.h @@ -6,7 +6,14 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Foundation; +#else #import +#endif #import NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SPUUserDriver.h b/Sparkle/SPUUserDriver.h index 4295d11c..c8a6ece5 100644 --- a/Sparkle/SPUUserDriver.h +++ b/Sparkle/SPUUserDriver.h @@ -6,7 +6,15 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Foundation; +#else #import +#endif + #import #import diff --git a/Sparkle/SPUUserDriverCoreComponent.h b/Sparkle/SPUUserDriverCoreComponent.h index 157196ab..4f0b193a 100644 --- a/Sparkle/SPUUserDriverCoreComponent.h +++ b/Sparkle/SPUUserDriverCoreComponent.h @@ -6,7 +6,14 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Foundation; +#else #import +#endif #import #import diff --git a/Sparkle/SUAppcast.h b/Sparkle/SUAppcast.h index f34dfa3e..b6714761 100644 --- a/Sparkle/SUAppcast.h +++ b/Sparkle/SUAppcast.h @@ -10,6 +10,9 @@ #define SUAPPCAST_H #if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif @import Foundation; #else #import diff --git a/Sparkle/SUAppcastItem.h b/Sparkle/SUAppcastItem.h index 12706aa5..f6ce3673 100644 --- a/Sparkle/SUAppcastItem.h +++ b/Sparkle/SUAppcastItem.h @@ -10,6 +10,9 @@ #define SUAPPCASTITEM_H #if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif @import Foundation; #else #import diff --git a/Sparkle/SUErrors.h b/Sparkle/SUErrors.h index 66f59364..cd832bf8 100644 --- a/Sparkle/SUErrors.h +++ b/Sparkle/SUErrors.h @@ -10,6 +10,9 @@ #define SUERRORS_H #if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif @import Foundation; #else #import diff --git a/Sparkle/SUStandardVersionComparator.h b/Sparkle/SUStandardVersionComparator.h index cf7093b1..b22a9a3b 100644 --- a/Sparkle/SUStandardVersionComparator.h +++ b/Sparkle/SUStandardVersionComparator.h @@ -10,6 +10,9 @@ #define SUSTANDARDVERSIONCOMPARATOR_H #if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif @import Foundation; #else #import diff --git a/Sparkle/SUUpdatePermissionResponse.h b/Sparkle/SUUpdatePermissionResponse.h index bbe6633d..7294c5e9 100644 --- a/Sparkle/SUUpdatePermissionResponse.h +++ b/Sparkle/SUUpdatePermissionResponse.h @@ -6,7 +6,14 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Foundation; +#else #import +#endif #import /*! diff --git a/Sparkle/SUUpdater.h b/Sparkle/SUUpdater.h index eae3405d..99c54a81 100644 --- a/Sparkle/SUUpdater.h +++ b/Sparkle/SUUpdater.h @@ -10,6 +10,9 @@ #define SUUPDATER_H #if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif @import Cocoa; #else #import diff --git a/Sparkle/SUVersionComparisonProtocol.h b/Sparkle/SUVersionComparisonProtocol.h index 62bdd0d5..eb59aa25 100644 --- a/Sparkle/SUVersionComparisonProtocol.h +++ b/Sparkle/SUVersionComparisonProtocol.h @@ -9,7 +9,14 @@ #ifndef SUVERSIONCOMPARISONPROTOCOL_H #define SUVERSIONCOMPARISONPROTOCOL_H +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Foundation; +#else #import +#endif #import NS_ASSUME_NONNULL_BEGIN diff --git a/Sparkle/SUVersionDisplayProtocol.h b/Sparkle/SUVersionDisplayProtocol.h index c8be57fb..d77d60bb 100644 --- a/Sparkle/SUVersionDisplayProtocol.h +++ b/Sparkle/SUVersionDisplayProtocol.h @@ -7,6 +7,9 @@ // #if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif @import Foundation; #else #import