Readd the SUUpdater code

This commit is contained in:
Maurice Parker 2019-10-22 16:42:17 -05:00
parent 57eadcdb22
commit e80a5f92bb
2 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,9 @@ import RSTree
import RSWeb
import Account
import RSCore
#if TEST
import Sparkle
#endif
var appDelegate: AppDelegate!
@ -114,6 +117,10 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations,
func applicationWillFinishLaunching(_ notification: Notification) {
installAppleEventHandlers()
#if TEST
// Don't prompt for updates while running automated tests
SUUpdater.shared()?.automaticallyChecksForUpdates = false
#endif
}
func applicationDidFinishLaunching(_ note: Notification) {

View File

@ -1,3 +1,4 @@
#include "./NetNewsWire_project_debug.xcconfig"
OTHER_SWIFT_FLAGS = -DTEST $(inherited)
FRAMEWORK_SEARCH_PATHS = $(inherited) $(SYMROOT)/Release$(EFFECTIVE_PLATFORM_NAME)