-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unfortunately, due to the nature of the issue a manual update to a new version will be required. Fixes: #600
- Loading branch information
Showing
262 changed files
with
1,227 additions
and
4,394 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Versions/Current/Modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Versions/Current/PrivateHeaders |
43 changes: 43 additions & 0 deletions
43
macosx/Sparkle.framework/Versions/A/Headers/SPUDownloadData.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// | ||
// SPUDownloadData.h | ||
// Sparkle | ||
// | ||
// Created by Mayur Pawashe on 8/10/16. | ||
// Copyright © 2016 Sparkle Project. All rights reserved. | ||
// | ||
|
||
#if __has_feature(modules) | ||
@import Foundation; | ||
#else | ||
#import <Foundation/Foundation.h> | ||
#endif | ||
|
||
#import "SUExport.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/*! | ||
* A class for containing downloaded data along with some information about it. | ||
*/ | ||
SU_EXPORT @interface SPUDownloadData : NSObject <NSSecureCoding> | ||
|
||
- (instancetype)initWithData:(NSData *)data textEncodingName:(NSString * _Nullable)textEncodingName MIMEType:(NSString * _Nullable)MIMEType; | ||
|
||
/*! | ||
* The raw data that was downloaded. | ||
*/ | ||
@property (nonatomic, readonly) NSData *data; | ||
|
||
/*! | ||
* The IANA charset encoding name if available. Eg: "utf-8" | ||
*/ | ||
@property (nonatomic, readonly, nullable, copy) NSString *textEncodingName; | ||
|
||
/*! | ||
* The MIME type if available. Eg: "text/plain" | ||
*/ | ||
@property (nonatomic, readonly, nullable, copy) NSString *MIMEType; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
25 changes: 25 additions & 0 deletions
25
macosx/Sparkle.framework/Versions/A/Headers/SPUDownloader.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// SPUDownloader.h | ||
// Downloader | ||
// | ||
// Created by Mayur Pawashe on 4/1/16. | ||
// Copyright © 2016 Sparkle Project. All rights reserved. | ||
// | ||
|
||
#if __has_feature(modules) | ||
@import Foundation; | ||
#else | ||
#import <Foundation/Foundation.h> | ||
#endif | ||
#import "SPUDownloaderProtocol.h" | ||
|
||
@protocol SPUDownloaderDelegate; | ||
|
||
// This object implements the protocol which we have defined. It provides the actual behavior for the service. It is 'exported' by the service to make it available to the process hosting the service over an NSXPCConnection. | ||
@interface SPUDownloader : NSObject <SPUDownloaderProtocol> | ||
|
||
// Due to XPC remote object reasons, this delegate is strongly referenced | ||
// Invoke cleanup when done with this instance | ||
- (instancetype)initWithDelegate:(id <SPUDownloaderDelegate>)delegate; | ||
|
||
@end |
38 changes: 38 additions & 0 deletions
38
macosx/Sparkle.framework/Versions/A/Headers/SPUDownloaderDelegate.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// | ||
// SPUDownloaderDelegate.h | ||
// Sparkle | ||
// | ||
// Created by Mayur Pawashe on 4/1/16. | ||
// Copyright © 2016 Sparkle Project. All rights reserved. | ||
// | ||
|
||
#if __has_feature(modules) | ||
@import Foundation; | ||
#else | ||
#import <Foundation/Foundation.h> | ||
#endif | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@class SPUDownloadData; | ||
|
||
@protocol SPUDownloaderDelegate <NSObject> | ||
|
||
// This is only invoked for persistent downloads | ||
- (void)downloaderDidSetDestinationName:(NSString *)destinationName temporaryDirectory:(NSString *)temporaryDirectory; | ||
|
||
// Under rare cases, this may be called more than once, in which case the current progress should be reset back to 0 | ||
// This is only invoked for persistent downloads | ||
- (void)downloaderDidReceiveExpectedContentLength:(int64_t)expectedContentLength; | ||
|
||
// This is only invoked for persistent downloads | ||
- (void)downloaderDidReceiveDataOfLength:(uint64_t)length; | ||
|
||
// downloadData is nil if this is a persisent download, otherwise it's non-nil if it's a temporary download | ||
- (void)downloaderDidFinishWithTemporaryDownloadData:(SPUDownloadData * _Nullable)downloadData; | ||
|
||
- (void)downloaderDidFailWithError:(NSError *)error; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
13 changes: 13 additions & 0 deletions
13
macosx/Sparkle.framework/Versions/A/Headers/SPUDownloaderDeprecated.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// SPUDownloaderDeprecated.h | ||
// Sparkle | ||
// | ||
// Created by Deadpikle on 12/20/17. | ||
// Copyright © 2017 Sparkle Project. All rights reserved. | ||
// | ||
|
||
#import "SPUDownloader.h" | ||
|
||
@interface SPUDownloaderDeprecated : SPUDownloader <SPUDownloaderProtocol> | ||
|
||
@end |
34 changes: 34 additions & 0 deletions
34
macosx/Sparkle.framework/Versions/A/Headers/SPUDownloaderProtocol.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// | ||
// SPUDownloaderProtocol.h | ||
// PersistentDownloader | ||
// | ||
// Created by Mayur Pawashe on 4/1/16. | ||
// Copyright © 2016 Sparkle Project. All rights reserved. | ||
// | ||
|
||
#if __has_feature(modules) | ||
@import Foundation; | ||
#else | ||
#import <Foundation/Foundation.h> | ||
#endif | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@class SPUURLRequest; | ||
|
||
// The protocol that this service will vend as its API. This header file will also need to be visible to the process hosting the service. | ||
@protocol SPUDownloaderProtocol | ||
|
||
- (void)startPersistentDownloadWithRequest:(SPUURLRequest *)request bundleIdentifier:(NSString *)bundleIdentifier desiredFilename:(NSString *)desiredFilename; | ||
|
||
- (void)startTemporaryDownloadWithRequest:(SPUURLRequest *)request; | ||
|
||
- (void)downloadDidFinish; | ||
|
||
- (void)cleanup; | ||
|
||
- (void)cancel; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
20 changes: 20 additions & 0 deletions
20
macosx/Sparkle.framework/Versions/A/Headers/SPUDownloaderSession.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// SPUDownloaderSession.h | ||
// Sparkle | ||
// | ||
// Created by Deadpikle on 12/20/17. | ||
// Copyright © 2017 Sparkle Project. All rights reserved. | ||
// | ||
|
||
#if __has_feature(modules) | ||
@import Foundation; | ||
#else | ||
#import <Foundation/Foundation.h> | ||
#endif | ||
#import "SPUDownloader.h" | ||
#import "SPUDownloaderProtocol.h" | ||
|
||
NS_CLASS_AVAILABLE(NSURLSESSION_AVAILABLE, 7_0) | ||
@interface SPUDownloaderSession : SPUDownloader <SPUDownloaderProtocol> | ||
|
||
@end |
35 changes: 35 additions & 0 deletions
35
macosx/Sparkle.framework/Versions/A/Headers/SPUURLRequest.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// SPUURLRequest.h | ||
// Sparkle | ||
// | ||
// Created by Mayur Pawashe on 5/19/16. | ||
// Copyright © 2016 Sparkle Project. All rights reserved. | ||
// | ||
|
||
#if __has_feature(modules) | ||
@import Foundation; | ||
#else | ||
#import <Foundation/Foundation.h> | ||
#endif | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
// A class that wraps NSURLRequest and implements NSSecureCoding | ||
// This class exists because NSURLRequest did not support NSSecureCoding in macOS 10.8 | ||
// I have not verified if NSURLRequest in 10.9 implements NSSecureCoding or not | ||
@interface SPUURLRequest : NSObject <NSSecureCoding> | ||
|
||
// Creates a new URL request | ||
// Only these properties are currently tracked: | ||
// * URL | ||
// * Cache policy | ||
// * Timeout interval | ||
// * HTTP header fields | ||
// * networkServiceType | ||
+ (instancetype)URLRequestWithRequest:(NSURLRequest *)request; | ||
|
||
@property (nonatomic, readonly) NSURLRequest *request; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
macosx/Sparkle.framework/Versions/A/Headers/SUCodeSigningVerifier.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// SUCodeSigningVerifier.h | ||
// Sparkle | ||
// | ||
// Created by Andy Matuschak on 7/5/12. | ||
// | ||
// | ||
|
||
#ifndef SUCODESIGNINGVERIFIER_H | ||
#define SUCODESIGNINGVERIFIER_H | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "SUExport.h" | ||
|
||
SU_EXPORT @interface SUCodeSigningVerifier : NSObject | ||
+ (BOOL)codeSignatureAtBundleURL:(NSURL *)oldBundlePath matchesSignatureAtBundleURL:(NSURL *)newBundlePath error:(NSError **)error; | ||
+ (BOOL)codeSignatureIsValidAtBundleURL:(NSURL *)bundlePath error:(NSError **)error; | ||
+ (BOOL)bundleAtURLIsCodeSigned:(NSURL *)bundlePath; | ||
+ (NSDictionary *)codeSignatureInfoAtBundleURL:(NSURL *)bundlePath; | ||
@end | ||
|
||
#endif |
Oops, something went wrong.