mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-28 05:14:34 +00:00
Don't include WebKit implementation when not building UI bits
This commit is contained in:
1 parent
7f87d8842e
commit
b6956a480d
7 files changed
+28
No files matched your search
Vendored
+4
@@ -6,6 +6,8 @@
|
||||
// Copyright © 2020 Sparkle Project. All rights reserved.
|
||||
//
|
||||
|
||||
#if SPARKLE_BUILD_UI_BITS
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "SUWebView.h"
|
||||
|
||||
@@ -18,3 +20,5 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
#endif
|
||||
Vendored
+4
@@ -6,6 +6,8 @@
|
||||
// Copyright © 2020 Sparkle Project. All rights reserved.
|
||||
//
|
||||
|
||||
#if SPARKLE_BUILD_UI_BITS
|
||||
|
||||
#import "SULegacyWebView.h"
|
||||
#import "SUWebViewCommon.h"
|
||||
#import "SULog.h"
|
||||
@@ -159,3 +161,5 @@
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
Vendored
+4
@@ -6,6 +6,8 @@
|
||||
// Copyright © 2020 Sparkle Project. All rights reserved.
|
||||
//
|
||||
|
||||
#if SPARKLE_BUILD_UI_BITS
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "SUWebView.h"
|
||||
|
||||
@@ -18,3 +20,5 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
#endif
|
||||
Vendored
+4
@@ -6,6 +6,8 @@
|
||||
// Copyright © 2020 Sparkle Project. All rights reserved.
|
||||
//
|
||||
|
||||
#if SPARKLE_BUILD_UI_BITS
|
||||
|
||||
#import "SUWKWebView.h"
|
||||
#import "SUWebViewCommon.h"
|
||||
#import "SULog.h"
|
||||
@@ -203,3 +205,5 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource)
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
Vendored
+4
@@ -6,6 +6,8 @@
|
||||
// Copyright © 2020 Sparkle Project. All rights reserved.
|
||||
//
|
||||
|
||||
#if SPARKLE_BUILD_UI_BITS
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@class NSView;
|
||||
@@ -27,3 +29,5 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
#endif
|
||||
Vendored
+4
@@ -6,6 +6,8 @@
|
||||
// Copyright © 2020 Sparkle Project. All rights reserved.
|
||||
//
|
||||
|
||||
#if SPARKLE_BUILD_UI_BITS
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@@ -13,3 +15,5 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
BOOL SUWebViewIsSafeURL(NSURL *url, BOOL *isAboutBlankURL);
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
#endif
|
||||
Vendored
+4
@@ -6,6 +6,8 @@
|
||||
// Copyright © 2020 Sparkle Project. All rights reserved.
|
||||
//
|
||||
|
||||
#if SPARKLE_BUILD_UI_BITS
|
||||
|
||||
#import "SUWebViewCommon.h"
|
||||
|
||||
|
||||
@@ -21,3 +23,5 @@ BOOL SUWebViewIsSafeURL(NSURL *url, BOOL *isAboutBlankURL)
|
||||
|
||||
return whitelistedSafe;
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user