mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-27 05:04:27 +00:00
Remove userDriver and delegate properties from SPUUpdater
Until I find a good reason to have them there, they should not be publicly available. I actually found a couple bugs from code that was accidently referencing them.
This commit is contained in:
1 parent
32d9fd6526
commit
73f49ce573
3 files changed
+6
-7
No files matched your search
Vendored
+1
-4
@@ -65,9 +65,6 @@ SU_EXPORT @interface SPUUpdater : NSObject
|
||||
*/
|
||||
- (BOOL)startUpdater:(NSError * __autoreleasing *)error;
|
||||
|
||||
@property (weak, readonly, nullable) id<SPUUpdaterDelegate> delegate;
|
||||
@property (nonatomic, readonly) id<SPUUserDriver> userDriver;
|
||||
|
||||
@property (readonly, strong) NSBundle *hostBundle;
|
||||
@property (strong, readonly) NSBundle *sparkleBundle;
|
||||
|
||||
@@ -91,7 +88,7 @@ SU_EXPORT @interface SPUUpdater : NSObject
|
||||
@property (nonatomic) BOOL automaticallyDownloadsUpdates;
|
||||
|
||||
/*!
|
||||
Checks for updates, and displays progress while doing so
|
||||
Checks for updates, and displays progress while doing so.
|
||||
|
||||
This is meant for users initiating an update check
|
||||
*/
|
||||
|
||||
Vendored
+2
@@ -44,6 +44,8 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification
|
||||
|
||||
@property (readonly, copy) NSURL *parameterizedFeedURL;
|
||||
|
||||
@property (nonatomic, readonly) id<SPUUserDriver> userDriver;
|
||||
@property (weak, readonly, nullable) id<SPUUpdaterDelegate> delegate;
|
||||
@property (nonatomic) id <SUUpdateDriver> driver;
|
||||
@property (nonatomic, readonly) SUHost *host;
|
||||
@property (nonatomic, readonly) NSBundle *applicationBundle;
|
||||
|
||||
Vendored
+3
-3
@@ -231,14 +231,14 @@ static NSMutableDictionary *sharedUpdaters = nil;
|
||||
|
||||
- (void)standardUserDriverWillShowModalAlert
|
||||
{
|
||||
if ([self.updater.delegate respondsToSelector:@selector(updaterWillShowModalAlert:)]) {
|
||||
if ([self.delegate respondsToSelector:@selector(updaterWillShowModalAlert:)]) {
|
||||
[self.delegate updaterWillShowModalAlert:self];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)standardUserDriverDidShowModalAlert
|
||||
{
|
||||
if ([self.updater.delegate respondsToSelector:@selector(updaterDidShowModalAlert:)]) {
|
||||
if ([self.delegate respondsToSelector:@selector(updaterDidShowModalAlert:)]) {
|
||||
[self.delegate updaterDidShowModalAlert:self];
|
||||
}
|
||||
}
|
||||
@@ -246,7 +246,7 @@ static NSMutableDictionary *sharedUpdaters = nil;
|
||||
- (_Nullable id <SUVersionDisplay>)standardUserDriverRequestsVersionDisplayer
|
||||
{
|
||||
id <SUVersionDisplay> versionDisplayer = nil;
|
||||
if ([self.updater.delegate respondsToSelector:@selector(versionDisplayerForUpdater:)]) {
|
||||
if ([self.delegate respondsToSelector:@selector(versionDisplayerForUpdater:)]) {
|
||||
versionDisplayer = [self.delegate versionDisplayerForUpdater:self];
|
||||
}
|
||||
return versionDisplayer;
|
||||
|
||||
Reference in new issue
Block a user