Merge pull request #886 from zorgiepoo/debug-warning

Warn a developer if they're using a debug version of Sparkle
This commit is contained in:
Kornel authored and GitHub committed 2016-09-06 17:03:40 +01:00
commit 3a5c620b60
1 file changed
+9
+9
View File
@@ -59,6 +59,15 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification
static NSMutableDictionary *sharedUpdaters = nil;
static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObservationContext";
#ifdef DEBUG
+ (void)load
{
// Debug builds have different configurations for update check intervals
// We're using NSLog instead of SULog here because we don't want to start Sparkle's logger here
NSLog(@"WARNING: This is running a Debug build of Sparkle; don't use this in production!");
}
#endif
+ (SUUpdater *)sharedUpdater
{
return [self updaterForBundle:[NSBundle mainBundle]];