Protect against unrecognized protocol errors when building for MAC_APP_STORE or TEST.

This commit is contained in:
Daniel Jalkut 2019-10-22 19:44:06 -04:00
parent 471c8ce667
commit 8e37881ed8
1 changed files with 9 additions and 2 deletions

View File

@ -13,14 +13,21 @@ import RSTree
import RSWeb
import Account
import RSCore
#if !MAC_APP_STORE && !TEST
// If we're not going to import Sparkle, provide dummy protocols to make it easy
// for AppDelegate to comply
#if MAC_APP_STORE || TEST
protocol SPUStandardUserDriverDelegate {}
protocol SPUUpdaterDelegate {}
#else
import Sparkle
#endif
var appDelegate: AppDelegate!
@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations, UNUserNotificationCenterDelegate, UnreadCountProvider, SPUStandardUserDriverDelegate, SPUUpdaterDelegate {
class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations, UNUserNotificationCenterDelegate, UnreadCountProvider, SPUStandardUserDriverDelegate, SPUUpdaterDelegate
{
var userNotificationManager: UserNotificationManager!
var faviconDownloader: FaviconDownloader!