mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
23 lines
519 B
Objective-C
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];
|
|
}
|