Skip to content

Commit

Permalink
Merge pull request sparkle-project#554 from MaddTheSane/headers
Browse files Browse the repository at this point in the history
Import the Foundation umbrella header in all the public headers.
  • Loading branch information
kornelski committed Jun 4, 2015
2 parents fbc7a7f + 3292c4e commit 2ed2f3d
Show file tree
Hide file tree
Showing 15 changed files with 25 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Sparkle/SUAppcastItem.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
#ifndef SUAPPCASTITEM_H
#define SUAPPCASTITEM_H

#include "SUExport.h"
#import <Foundation/Foundation.h>
#import "SUExport.h"

SU_EXPORT @interface SUAppcastItem : NSObject
@property (copy, readonly) NSString *title;
Expand Down
5 changes: 2 additions & 3 deletions Sparkle/SUBinaryDeltaCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#ifndef SUBINARYDELTACOMMON_H
#define SUBINARYDELTACOMMON_H

#import <Foundation/Foundation.h>

#include <fts.h>

#define PERMISSION_FLAGS (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX)
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions Sparkle/SUConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#ifndef SUCONSTANTS_H
#define SUCONSTANTS_H

#import <Foundation/Foundation.h>

// -----------------------------------------------------------------------------
// Misc:
// -----------------------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions Sparkle/SUDSAVerifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#ifndef SUDSAVERIFIER_H
#define SUDSAVERIFIER_H

#import <Foundation/Foundation.h>

@interface SUDSAVerifier : NSObject

+ (BOOL)validatePath:(NSString *)path withEncodedDSASignature:(NSString *)encodedSignature withPublicDSAKey:(NSString *)pkeyString;
Expand Down
4 changes: 2 additions & 2 deletions Sparkle/SUGuidedPackageInstaller.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ A guided installation can be started by applications other than the application
#ifndef SUGUIDEDPACKAGEINSTALLER_H
#define SUGUIDEDPACKAGEINSTALLER_H

#import <Foundation/Foundation.h>
#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<SUVersionComparison>)comparator completionHandler:(void (^)(NSError *))completionHandler;
Expand Down
1 change: 1 addition & 0 deletions Sparkle/SUHost.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Copyright 2008 Andy Matuschak. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SUUpdater.h"
#import "SUAppcast.h"
#import "SUAppcastItem.h"
Expand Down
2 changes: 2 additions & 0 deletions Sparkle/SUPackageInstaller.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#ifndef SUPACKAGEINSTALLER_H
#define SUPACKAGEINSTALLER_H

#import <Foundation/Foundation.h>

#import "SUUpdater.h"

#import "SUAppcast.h"
Expand Down
2 changes: 2 additions & 0 deletions Sparkle/SUPlainInstaller.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#ifndef SUPLAININSTALLER_H
#define SUPLAININSTALLER_H

#import <Foundation/Foundation.h>

#import "SUUpdater.h"

#import "SUAppcast.h"
Expand Down
2 changes: 2 additions & 0 deletions Sparkle/SUPlainInstallerInternals.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#ifndef SUPLAININSTALLERINTERNALS_H
#define SUPLAININSTALLERINTERNALS_H

#import <Foundation/Foundation.h>

#import "SUPlainInstaller.h"

@interface SUPlainInstaller (Internals)
Expand Down
1 change: 1 addition & 0 deletions Sparkle/SUStandardVersionComparator.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#ifndef SUSTANDARDVERSIONCOMPARATOR_H
#define SUSTANDARDVERSIONCOMPARATOR_H

#import <Foundation/Foundation.h>
#import "SUExport.h"
#import "SUVersionComparisonProtocol.h"

Expand Down
2 changes: 1 addition & 1 deletion Sparkle/SUSystemProfiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#ifndef SUSYSTEMPROFILER_H
#define SUSYSTEMPROFILER_H

#import <Cocoa/Cocoa.h>
#import <Foundation/Foundation.h>

@class SUHost;
@interface SUSystemProfiler : NSObject
Expand Down
1 change: 1 addition & 0 deletions Sparkle/SUSystemProfiler.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
// Adapted from Sparkle+, by Tom Harrington.
//

#import <Cocoa/Cocoa.h>
#import "SUSystemProfiler.h"

#import "SUHost.h"
Expand Down
2 changes: 2 additions & 0 deletions Sparkle/SUUnarchiver.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#ifndef SUUNARCHIVER_H
#define SUUNARCHIVER_H

#import <Foundation/Foundation.h>

@class SUHost;
@protocol SUUnarchiverDelegate;

Expand Down
1 change: 1 addition & 0 deletions Sparkle/SUUpdater.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#ifndef SUUPDATER_H
#define SUUPDATER_H

#import <Foundation/Foundation.h>
#import "SUExport.h"
#import "SUVersionComparisonProtocol.h"
#import "SUVersionDisplayProtocol.h"
Expand Down
2 changes: 2 additions & 0 deletions Sparkle/Sparkle.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#ifndef SPARKLE_H
#define SPARKLE_H

#import <Cocoa/Cocoa.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:

Expand Down

0 comments on commit 2ed2f3d

Please sign in to comment.