mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-23 04:34:27 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff13de9ddc | ||
|
|
7c7f1e4955 | ||
|
|
4935893311 | ||
|
|
b0e543de4e | ||
|
|
2a356d4a2a | ||
|
|
99b2514752 | ||
|
|
5b1f7fc88d |
No files matched your search
+2
-2
@@ -34,8 +34,8 @@
|
||||
}
|
||||
|
||||
// Initializes with data from a dictionary provided by the RSS class.
|
||||
- initWithDictionary:(NSDictionary *)dict;
|
||||
- initWithDictionary:(NSDictionary *)dict failureReason:(NSString**)error;
|
||||
- (instancetype)initWithDictionary:(NSDictionary *)dict;
|
||||
- (instancetype)initWithDictionary:(NSDictionary *)dict failureReason:(NSString**)error;
|
||||
|
||||
- (NSString *)title;
|
||||
- (NSString *)versionString;
|
||||
|
||||
+11
-7
@@ -163,13 +163,17 @@
|
||||
|
||||
- (void)unarchiver:(SUUnarchiver *)unarchiver requiresPasswordReturnedViaInvocation:(NSInvocation *)invocation
|
||||
{
|
||||
SUPasswordPrompt *prompt = [[SUPasswordPrompt alloc] initWithHost:host];
|
||||
NSString *password = nil;
|
||||
if([prompt run])
|
||||
{
|
||||
password = [prompt password];
|
||||
}
|
||||
[prompt release];
|
||||
NSString *password = @"";
|
||||
// some users reported sparkle is asking for password randomly
|
||||
// HACK: do not open prompt and pass empty string as a password
|
||||
//
|
||||
// SUPasswordPrompt *prompt = [[SUPasswordPrompt alloc] initWithHost:host];
|
||||
// NSString *password = nil;
|
||||
// if([prompt run])
|
||||
// {
|
||||
// password = [prompt password];
|
||||
// }
|
||||
// [prompt release];
|
||||
[invocation setArgument:&password atIndex:2];
|
||||
[invocation invoke];
|
||||
}
|
||||
|
||||
+11
-9
@@ -140,15 +140,17 @@
|
||||
|
||||
- (BOOL)allowsAutomaticUpdates
|
||||
{
|
||||
BOOL allowAutoUpdates = YES; // Defaults to YES.
|
||||
if( [host objectForInfoDictionaryKey:SUAllowsAutomaticUpdatesKey] )
|
||||
allowAutoUpdates = [host boolForInfoDictionaryKey: SUAllowsAutomaticUpdatesKey];
|
||||
|
||||
// UK 2007-08-31: Give delegate a chance to modify this choice:
|
||||
if( delegate && [delegate respondsToSelector: @selector(updateAlert:shouldAllowAutoUpdate:)] )
|
||||
[delegate updateAlert: self shouldAllowAutoUpdate: &allowAutoUpdates];
|
||||
|
||||
return allowAutoUpdates;
|
||||
// BOOL allowAutoUpdates = YES; // Defaults to YES.
|
||||
// if( [host objectForInfoDictionaryKey:SUAllowsAutomaticUpdatesKey] )
|
||||
// allowAutoUpdates = [host boolForInfoDictionaryKey: SUAllowsAutomaticUpdatesKey];
|
||||
//
|
||||
// // UK 2007-08-31: Give delegate a chance to modify this choice:
|
||||
// if( delegate && [delegate respondsToSelector: @selector(updateAlert:shouldAllowAutoUpdate:)] )
|
||||
// [delegate updateAlert: self shouldAllowAutoUpdate: &allowAutoUpdates];
|
||||
//
|
||||
// return allowAutoUpdates;
|
||||
|
||||
return NO; // HACK: darwin
|
||||
}
|
||||
|
||||
- (void)awakeFromNib
|
||||
|
||||
@@ -27,6 +27,7 @@ extern NSString * const SUUpdateDriverFinishedNotification;
|
||||
- (void)checkForUpdatesAtURL:(NSURL *)URL host:(SUHost *)host;
|
||||
- (void)abortUpdate;
|
||||
- (BOOL)finished;
|
||||
- (void)setFinished:(BOOL) finished;
|
||||
- (SUHost*)host;
|
||||
- (void)setHost:(SUHost*)newHost;
|
||||
|
||||
|
||||
@@ -35,6 +35,10 @@ NSString * const SUUpdateDriverFinishedNotification = @"SUUpdateDriverFinished";
|
||||
|
||||
- (BOOL)finished { return finished; }
|
||||
|
||||
- (void)setFinished:(BOOL) _finished {
|
||||
finished = _finished;
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
[host release];
|
||||
|
||||
+2
-2
@@ -27,12 +27,12 @@
|
||||
|
||||
+ (SUUpdater *)sharedUpdater;
|
||||
+ (SUUpdater *)updaterForBundle:(NSBundle *)bundle;
|
||||
- initForBundle:(NSBundle *)bundle;
|
||||
- (instancetype)initForBundle:(NSBundle *)bundle;
|
||||
|
||||
- (NSBundle *)hostBundle;
|
||||
|
||||
- (void)setDelegate:(id)delegate;
|
||||
- delegate;
|
||||
- (id)delegate;
|
||||
|
||||
- (void)setAutomaticallyChecksForUpdates:(BOOL)automaticallyChecks;
|
||||
- (BOOL)automaticallyChecksForUpdates;
|
||||
|
||||
+7
-6
@@ -407,12 +407,13 @@ static NSString * const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefault
|
||||
|
||||
- (BOOL)automaticallyDownloadsUpdates
|
||||
{
|
||||
// If the SUAllowsAutomaticUpdatesKey exists and is set to NO, return NO.
|
||||
if ([host objectForInfoDictionaryKey:SUAllowsAutomaticUpdatesKey] && [host boolForInfoDictionaryKey:SUAllowsAutomaticUpdatesKey] == NO)
|
||||
return NO;
|
||||
|
||||
// Otherwise, automatically downloading updates is allowed. Does the user want it?
|
||||
return [host boolForUserDefaultsKey:SUAutomaticallyUpdateKey];
|
||||
return NO; // HACK: darwin
|
||||
// // If the SUAllowsAutomaticUpdatesKey exists and is set to NO, return NO.
|
||||
// if ([host objectForInfoDictionaryKey:SUAllowsAutomaticUpdatesKey] && [host boolForInfoDictionaryKey:SUAllowsAutomaticUpdatesKey] == NO)
|
||||
// return NO;
|
||||
//
|
||||
// // Otherwise, automatically downloading updates is allowed. Does the user want it?
|
||||
// return [host boolForUserDefaultsKey:SUAutomaticallyUpdateKey];
|
||||
}
|
||||
|
||||
- (void)setFeedURL:(NSURL *)feedURL
|
||||
|
||||
@@ -663,7 +663,6 @@
|
||||
55C14F04136EF6DB00649790 /* SULog.h */,
|
||||
55C14F05136EF6DB00649790 /* SULog.m */,
|
||||
);
|
||||
includeInIndex = 1;
|
||||
name = "Other Sources";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0500"
|
||||
LastUpgradeVersion = "0510"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
|
||||
Reference in new issue
Block a user