Protect against unrecognized protocol errors when building for MAC_APP_STORE or TEST.
This commit is contained in:
parent
471c8ce667
commit
8e37881ed8
@ -13,14 +13,21 @@ import RSTree
|
|||||||
import RSWeb
|
import RSWeb
|
||||||
import Account
|
import Account
|
||||||
import RSCore
|
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
|
import Sparkle
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
var appDelegate: AppDelegate!
|
var appDelegate: AppDelegate!
|
||||||
|
|
||||||
@NSApplicationMain
|
@NSApplicationMain
|
||||||
class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations, UNUserNotificationCenterDelegate, UnreadCountProvider, SPUStandardUserDriverDelegate, SPUUpdaterDelegate {
|
class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations, UNUserNotificationCenterDelegate, UnreadCountProvider, SPUStandardUserDriverDelegate, SPUUpdaterDelegate
|
||||||
|
{
|
||||||
|
|
||||||
var userNotificationManager: UserNotificationManager!
|
var userNotificationManager: UserNotificationManager!
|
||||||
var faviconDownloader: FaviconDownloader!
|
var faviconDownloader: FaviconDownloader!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user