mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-26 04:57:54 +00:00
Don't pollute headers with version checks.
This commit is contained in:
1 parent
d7b4d7c761
commit
7347631d34
2 files changed
+12
-13
No files matched your search
Vendored
+2
-12
@@ -9,19 +9,9 @@
|
||||
#ifndef SUUPDATEALERT_H
|
||||
#define SUUPDATEALERT_H
|
||||
|
||||
#import <WebKit/WebKit.h>
|
||||
#import "SUWindowController.h"
|
||||
#import "SUVersionDisplayProtocol.h"
|
||||
|
||||
// WebKit protocols are not explicitly declared until 10.11 SDK, so
|
||||
// declare dummy protocols to keep the build working on earlier SDKs.
|
||||
#if !defined(MAC_OS_X_VERSION_10_11)
|
||||
@protocol WebFrameLoadDelegate
|
||||
@end
|
||||
@protocol WebPolicyDelegate
|
||||
@end
|
||||
#endif
|
||||
|
||||
@protocol SUUpdateAlertDelegate;
|
||||
|
||||
typedef NS_ENUM(NSInteger, SUUpdateAlertChoice) {
|
||||
@@ -31,8 +21,8 @@ typedef NS_ENUM(NSInteger, SUUpdateAlertChoice) {
|
||||
SUOpenInfoURLChoice
|
||||
};
|
||||
|
||||
@class WebView, SUAppcastItem, SUHost;
|
||||
@interface SUUpdateAlert : SUWindowController <WebFrameLoadDelegate, WebPolicyDelegate>
|
||||
@class SUAppcastItem, SUHost;
|
||||
@interface SUUpdateAlert : SUWindowController
|
||||
|
||||
@property (weak) id<SUVersionDisplay> versionDisplayer;
|
||||
|
||||
|
||||
Vendored
+10
-1
@@ -17,7 +17,16 @@
|
||||
|
||||
#import "SUConstants.h"
|
||||
|
||||
@interface SUUpdateAlert ()
|
||||
// WebKit protocols are not explicitly declared until 10.11 SDK, so
|
||||
// declare dummy protocols to keep the build working on earlier SDKs.
|
||||
#if __MAC_OS_X_VERSION_MAX_ALLOWED < 101100
|
||||
@protocol WebFrameLoadDelegate <NSObject>
|
||||
@end
|
||||
@protocol WebPolicyDelegate <NSObject>
|
||||
@end
|
||||
#endif
|
||||
|
||||
@interface SUUpdateAlert () <WebFrameLoadDelegate, WebPolicyDelegate>
|
||||
|
||||
@property (strong) SUAppcastItem *updateItem;
|
||||
@property (strong) SUHost *host;
|
||||
|
||||
Reference in new issue
Block a user