From 3292c4ea109541e7c65fb932e1104e963886f802 Mon Sep 17 00:00:00 2001 From: "C.W. Betts" Date: Thu, 4 Jun 2015 11:13:48 -0600 Subject: [PATCH] Import the Foundation umbrella header in all the public headers. This should prevent any undefined declaration warnings. --- Sparkle/SUAppcastItem.h | 3 ++- Sparkle/SUBinaryDeltaCommon.h | 5 ++--- Sparkle/SUConstants.h | 2 ++ Sparkle/SUDSAVerifier.h | 2 ++ Sparkle/SUGuidedPackageInstaller.h | 4 ++-- Sparkle/SUHost.h | 1 + Sparkle/SUPackageInstaller.h | 2 ++ Sparkle/SUPlainInstaller.h | 2 ++ Sparkle/SUPlainInstallerInternals.h | 2 ++ Sparkle/SUStandardVersionComparator.h | 1 + Sparkle/SUSystemProfiler.h | 2 +- Sparkle/SUSystemProfiler.m | 1 + Sparkle/SUUnarchiver.h | 2 ++ Sparkle/SUUpdater.h | 1 + Sparkle/Sparkle.h | 2 ++ 15 files changed, 25 insertions(+), 7 deletions(-) diff --git a/Sparkle/SUAppcastItem.h b/Sparkle/SUAppcastItem.h index 551d389b..e4c2a06d 100644 --- a/Sparkle/SUAppcastItem.h +++ b/Sparkle/SUAppcastItem.h @@ -9,7 +9,8 @@ #ifndef SUAPPCASTITEM_H #define SUAPPCASTITEM_H -#include "SUExport.h" +#import +#import "SUExport.h" SU_EXPORT @interface SUAppcastItem : NSObject @property (copy, readonly) NSString *title; diff --git a/Sparkle/SUBinaryDeltaCommon.h b/Sparkle/SUBinaryDeltaCommon.h index 44a5d04e..61fefb4f 100644 --- a/Sparkle/SUBinaryDeltaCommon.h +++ b/Sparkle/SUBinaryDeltaCommon.h @@ -9,6 +9,8 @@ #ifndef SUBINARYDELTACOMMON_H #define SUBINARYDELTACOMMON_H +#import + #include #define PERMISSION_FLAGS (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX) @@ -63,9 +65,6 @@ typedef NS_ENUM(uint16_t, SUBinaryDeltaMinorVersion) #define LATEST_DELTA_DIFF_MAJOR_VERSION SUBeigeMajorVersion -@class NSString; -@class NSData; - extern int compareFiles(const FTSENT **a, const FTSENT **b); extern NSData *hashOfFileContents(FTSENT *ent); extern NSString *hashOfTreeWithVersion(NSString *path, uint16_t majorVersion); diff --git a/Sparkle/SUConstants.h b/Sparkle/SUConstants.h index e6bfcb31..dadef0c2 100644 --- a/Sparkle/SUConstants.h +++ b/Sparkle/SUConstants.h @@ -10,6 +10,8 @@ #ifndef SUCONSTANTS_H #define SUCONSTANTS_H +#import + // ----------------------------------------------------------------------------- // Misc: // ----------------------------------------------------------------------------- diff --git a/Sparkle/SUDSAVerifier.h b/Sparkle/SUDSAVerifier.h index 3e876e19..4c3773a4 100644 --- a/Sparkle/SUDSAVerifier.h +++ b/Sparkle/SUDSAVerifier.h @@ -15,6 +15,8 @@ #ifndef SUDSAVERIFIER_H #define SUDSAVERIFIER_H +#import + @interface SUDSAVerifier : NSObject + (BOOL)validatePath:(NSString *)path withEncodedDSASignature:(NSString *)encodedSignature withPublicDSAKey:(NSString *)pkeyString; diff --git a/Sparkle/SUGuidedPackageInstaller.h b/Sparkle/SUGuidedPackageInstaller.h index 92082a34..292f14af 100644 --- a/Sparkle/SUGuidedPackageInstaller.h +++ b/Sparkle/SUGuidedPackageInstaller.h @@ -22,11 +22,11 @@ A guided installation can be started by applications other than the application #ifndef SUGUIDEDPACKAGEINSTALLER_H #define SUGUIDEDPACKAGEINSTALLER_H +#import #import "Sparkle.h" #import "SUInstaller.h" -@interface SUGuidedPackageInstaller : SUInstaller { -} +@interface SUGuidedPackageInstaller : SUInstaller /*! Perform the guided installation */ + (void)performInstallationToPath:(NSString *)path fromPath:(NSString *)installerGuide host:(SUHost *)host versionComparator:(id)comparator completionHandler:(void (^)(NSError *))completionHandler; diff --git a/Sparkle/SUHost.h b/Sparkle/SUHost.h index 4ec13286..92925e7d 100644 --- a/Sparkle/SUHost.h +++ b/Sparkle/SUHost.h @@ -5,6 +5,7 @@ // Copyright 2008 Andy Matuschak. All rights reserved. // +#import #import "SUUpdater.h" #import "SUAppcast.h" #import "SUAppcastItem.h" diff --git a/Sparkle/SUPackageInstaller.h b/Sparkle/SUPackageInstaller.h index 04b500ee..444ca7fe 100644 --- a/Sparkle/SUPackageInstaller.h +++ b/Sparkle/SUPackageInstaller.h @@ -9,6 +9,8 @@ #ifndef SUPACKAGEINSTALLER_H #define SUPACKAGEINSTALLER_H +#import + #import "SUUpdater.h" #import "SUAppcast.h" diff --git a/Sparkle/SUPlainInstaller.h b/Sparkle/SUPlainInstaller.h index 9fd78f6f..1119aaab 100644 --- a/Sparkle/SUPlainInstaller.h +++ b/Sparkle/SUPlainInstaller.h @@ -9,6 +9,8 @@ #ifndef SUPLAININSTALLER_H #define SUPLAININSTALLER_H +#import + #import "SUUpdater.h" #import "SUAppcast.h" diff --git a/Sparkle/SUPlainInstallerInternals.h b/Sparkle/SUPlainInstallerInternals.h index 1bb645d4..f05cae91 100644 --- a/Sparkle/SUPlainInstallerInternals.h +++ b/Sparkle/SUPlainInstallerInternals.h @@ -9,6 +9,8 @@ #ifndef SUPLAININSTALLERINTERNALS_H #define SUPLAININSTALLERINTERNALS_H +#import + #import "SUPlainInstaller.h" @interface SUPlainInstaller (Internals) diff --git a/Sparkle/SUStandardVersionComparator.h b/Sparkle/SUStandardVersionComparator.h index 73ac968b..d7f2a48c 100644 --- a/Sparkle/SUStandardVersionComparator.h +++ b/Sparkle/SUStandardVersionComparator.h @@ -9,6 +9,7 @@ #ifndef SUSTANDARDVERSIONCOMPARATOR_H #define SUSTANDARDVERSIONCOMPARATOR_H +#import #import "SUExport.h" #import "SUVersionComparisonProtocol.h" diff --git a/Sparkle/SUSystemProfiler.h b/Sparkle/SUSystemProfiler.h index 124f6691..37b4835a 100644 --- a/Sparkle/SUSystemProfiler.h +++ b/Sparkle/SUSystemProfiler.h @@ -9,7 +9,7 @@ #ifndef SUSYSTEMPROFILER_H #define SUSYSTEMPROFILER_H -#import +#import @class SUHost; @interface SUSystemProfiler : NSObject diff --git a/Sparkle/SUSystemProfiler.m b/Sparkle/SUSystemProfiler.m index 9176606e..26bbfe9a 100644 --- a/Sparkle/SUSystemProfiler.m +++ b/Sparkle/SUSystemProfiler.m @@ -7,6 +7,7 @@ // Adapted from Sparkle+, by Tom Harrington. // +#import #import "SUSystemProfiler.h" #import "SUHost.h" diff --git a/Sparkle/SUUnarchiver.h b/Sparkle/SUUnarchiver.h index 9b7d0780..6397fe71 100644 --- a/Sparkle/SUUnarchiver.h +++ b/Sparkle/SUUnarchiver.h @@ -9,6 +9,8 @@ #ifndef SUUNARCHIVER_H #define SUUNARCHIVER_H +#import + @class SUHost; @protocol SUUnarchiverDelegate; diff --git a/Sparkle/SUUpdater.h b/Sparkle/SUUpdater.h index 90d606fa..ea52e53d 100644 --- a/Sparkle/SUUpdater.h +++ b/Sparkle/SUUpdater.h @@ -9,6 +9,7 @@ #ifndef SUUPDATER_H #define SUUPDATER_H +#import #import "SUExport.h" #import "SUVersionComparisonProtocol.h" #import "SUVersionDisplayProtocol.h" diff --git a/Sparkle/Sparkle.h b/Sparkle/Sparkle.h index fe97bae1..7b482064 100644 --- a/Sparkle/Sparkle.h +++ b/Sparkle/Sparkle.h @@ -9,6 +9,8 @@ #ifndef SPARKLE_H #define SPARKLE_H +#import + // 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: