-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
actually add appcast.xml, sparkle.framework
- Loading branch information
Showing
173 changed files
with
1,376 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Versions/Current/Headers |
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 |
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/Resources |
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/Sparkle |
40 changes: 40 additions & 0 deletions
40
Frameworks/Sparkle.framework/Versions/A/Headers/SUAppcast.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,40 @@ | ||
// | ||
// SUAppcast.h | ||
// Sparkle | ||
// | ||
// Created by Andy Matuschak on 3/12/06. | ||
// Copyright 2006 Andy Matuschak. All rights reserved. | ||
// | ||
|
||
#ifndef SUAPPCAST_H | ||
#define SUAPPCAST_H | ||
|
||
#if __has_feature(modules) | ||
@import Foundation; | ||
#else | ||
#import <Foundation/Foundation.h> | ||
#endif | ||
#import "SUExport.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@class SUAppcastItem; | ||
SU_EXPORT @interface SUAppcast : NSObject<NSURLDownloadDelegate> | ||
|
||
@property (copy, nullable) NSString *userAgentString; | ||
|
||
#if __has_feature(objc_generics) | ||
@property (copy, nullable) NSDictionary<NSString *, NSString *> *httpHeaders; | ||
#else | ||
@property (copy, nullable) NSDictionary *httpHeaders; | ||
#endif | ||
|
||
- (void)fetchAppcastFromURL:(NSURL *)url inBackground:(BOOL)bg completionBlock:(void (^)(NSError *_Nullable))err; | ||
- (SUAppcast *)copyWithoutDeltaUpdates; | ||
|
||
@property (readonly, copy, nullable) NSArray *items; | ||
@end | ||
|
||
NS_ASSUME_NONNULL_END | ||
|
||
#endif |
51 changes: 51 additions & 0 deletions
51
Frameworks/Sparkle.framework/Versions/A/Headers/SUAppcastItem.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,51 @@ | ||
// | ||
// SUAppcastItem.h | ||
// Sparkle | ||
// | ||
// Created by Andy Matuschak on 3/12/06. | ||
// Copyright 2006 Andy Matuschak. All rights reserved. | ||
// | ||
|
||
#ifndef SUAPPCASTITEM_H | ||
#define SUAPPCASTITEM_H | ||
|
||
#if __has_feature(modules) | ||
@import Foundation; | ||
#else | ||
#import <Foundation/Foundation.h> | ||
#endif | ||
#import "SUExport.h" | ||
|
||
SU_EXPORT @interface SUAppcastItem : NSObject | ||
@property (copy, readonly) NSString *title; | ||
@property (copy, readonly) NSString *dateString; | ||
@property (copy, readonly) NSString *itemDescription; | ||
@property (strong, readonly) NSURL *releaseNotesURL; | ||
@property (copy, readonly) NSString *DSASignature; | ||
@property (copy, readonly) NSString *minimumSystemVersion; | ||
@property (copy, readonly) NSString *maximumSystemVersion; | ||
@property (strong, readonly) NSURL *fileURL; | ||
@property (nonatomic, readonly) uint64_t contentLength; | ||
@property (copy, readonly) NSString *versionString; | ||
@property (copy, readonly) NSString *osString; | ||
@property (copy, readonly) NSString *displayVersionString; | ||
@property (copy, readonly) NSDictionary *deltaUpdates; | ||
@property (strong, readonly) NSURL *infoURL; | ||
|
||
// Initializes with data from a dictionary provided by the RSS class. | ||
- (instancetype)initWithDictionary:(NSDictionary *)dict; | ||
- (instancetype)initWithDictionary:(NSDictionary *)dict failureReason:(NSString **)error; | ||
|
||
@property (getter=isDeltaUpdate, readonly) BOOL deltaUpdate; | ||
@property (getter=isCriticalUpdate, readonly) BOOL criticalUpdate; | ||
@property (getter=isMacOsUpdate, readonly) BOOL macOsUpdate; | ||
@property (getter=isInformationOnlyUpdate, readonly) BOOL informationOnlyUpdate; | ||
|
||
// Returns the dictionary provided in initWithDictionary; this might be useful later for extensions. | ||
@property (readonly, copy) NSDictionary *propertiesDictionary; | ||
|
||
- (NSURL *)infoURL; | ||
|
||
@end | ||
|
||
#endif |
53 changes: 53 additions & 0 deletions
53
Frameworks/Sparkle.framework/Versions/A/Headers/SUErrors.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,53 @@ | ||
// | ||
// SUErrors.h | ||
// Sparkle | ||
// | ||
// Created by C.W. Betts on 10/13/14. | ||
// Copyright (c) 2014 Sparkle Project. All rights reserved. | ||
// | ||
|
||
#ifndef SUERRORS_H | ||
#define SUERRORS_H | ||
|
||
#if __has_feature(modules) | ||
@import Foundation; | ||
#else | ||
#import <Foundation/Foundation.h> | ||
#endif | ||
#import "SUExport.h" | ||
|
||
/** | ||
* Error domain used by Sparkle | ||
*/ | ||
SU_EXPORT extern NSString *const SUSparkleErrorDomain; | ||
|
||
typedef NS_ENUM(OSStatus, SUError) { | ||
// Appcast phase errors. | ||
SUAppcastParseError = 1000, | ||
SUNoUpdateError = 1001, | ||
SUAppcastError = 1002, | ||
SURunningFromDiskImageError = 1003, | ||
|
||
// Download phase errors. | ||
SUTemporaryDirectoryError = 2000, | ||
SUDownloadError = 2001, | ||
|
||
// Extraction phase errors. | ||
SUUnarchivingError = 3000, | ||
SUSignatureError = 3001, | ||
|
||
// Installation phase errors. | ||
SUFileCopyFailure = 4000, | ||
SUAuthenticationFailure = 4001, | ||
SUMissingUpdateError = 4002, | ||
SUMissingInstallerToolError = 4003, | ||
SURelaunchError = 4004, | ||
SUInstallationError = 4005, | ||
SUDowngradeError = 4006, | ||
SUInstallationCancelledError = 4007, | ||
|
||
// System phase errors | ||
SUSystemPowerOffError = 5000 | ||
}; | ||
|
||
#endif |
18 changes: 18 additions & 0 deletions
18
Frameworks/Sparkle.framework/Versions/A/Headers/SUExport.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,18 @@ | ||
// | ||
// SUExport.h | ||
// Sparkle | ||
// | ||
// Created by Jake Petroules on 2014-08-23. | ||
// Copyright (c) 2014 Sparkle Project. All rights reserved. | ||
// | ||
|
||
#ifndef SUEXPORT_H | ||
#define SUEXPORT_H | ||
|
||
#ifdef BUILDING_SPARKLE | ||
#define SU_EXPORT __attribute__((visibility("default"))) | ||
#else | ||
#define SU_EXPORT | ||
#endif | ||
|
||
#endif |
52 changes: 52 additions & 0 deletions
52
Frameworks/Sparkle.framework/Versions/A/Headers/SUStandardVersionComparator.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,52 @@ | ||
// | ||
// SUStandardVersionComparator.h | ||
// Sparkle | ||
// | ||
// Created by Andy Matuschak on 12/21/07. | ||
// Copyright 2007 Andy Matuschak. All rights reserved. | ||
// | ||
|
||
#ifndef SUSTANDARDVERSIONCOMPARATOR_H | ||
#define SUSTANDARDVERSIONCOMPARATOR_H | ||
|
||
#if __has_feature(modules) | ||
@import Foundation; | ||
#else | ||
#import <Foundation/Foundation.h> | ||
#endif | ||
#import "SUExport.h" | ||
#import "SUVersionComparisonProtocol.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/*! | ||
Sparkle's default version comparator. | ||
This comparator is adapted from MacPAD, by Kevin Ballard. | ||
It's "dumb" in that it does essentially string comparison, | ||
in components split by character type. | ||
*/ | ||
SU_EXPORT @interface SUStandardVersionComparator : NSObject <SUVersionComparison> | ||
|
||
/*! | ||
Initializes a new instance of the standard version comparator. | ||
*/ | ||
- (instancetype)init; | ||
|
||
/*! | ||
Returns a singleton instance of the comparator. | ||
It is usually preferred to alloc/init new a comparator instead. | ||
*/ | ||
+ (SUStandardVersionComparator *)defaultComparator; | ||
|
||
/*! | ||
Compares version strings through textual analysis. | ||
See the implementation for more details. | ||
*/ | ||
- (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB; | ||
@end | ||
|
||
NS_ASSUME_NONNULL_END | ||
#endif |
Oops, something went wrong.