Files
Sparkle/Sparkle/SPUXPCServiceInfo.m
T
Zorg 80abad4477 Move XPC Services inside Sparkle framework (#1965)
Also bump FRAMEWORK_VERSION from A to B to work around system cache issues.
2021-10-17 23:35:09 -07:00

23 lines
519 B
Objective-C

//
// SUXPCServiceInfo.m
// Sparkle
//
// Created by Mayur Pawashe on 4/17/16.
// Copyright © 2016 Sparkle Project. All rights reserved.
//
#import "SPUXPCServiceInfo.h"
#import "SUErrors.h"
#import "SUConstants.h"
#import "SUHost.h"
#include "AppKitPrevention.h"
BOOL SPUXPCServiceIsEnabled(NSString *enabledKey)
{
NSBundle *mainBundle = [NSBundle mainBundle];
SUHost *mainBundleHost = [[SUHost alloc] initWithBundle:mainBundle];
return [mainBundleHost boolForInfoDictionaryKey:enabledKey];
}