Files
Sparkle/Sparkle/SUOperatingSystem.m
T
Eitot b0116ef31b Remove obsolete SDK checks (#2111)
Sparkle currently requires at least Xcode 12 (or the macOS 11 SDK), therefore fallbacks for older versions are no longer needed.

* Remove +isOperatingSystemAtLeastVersion: method

* Remove +operatingSystemVersion accessor method

* Remove SUTouchBarForwardDeclarations header
2022-04-23 23:34:20 -07:00

22 lines
480 B
Objective-C

//
// SUOperatingSystem.m
// Sparkle
//
// Copyright © 2015 Sparkle Project. All rights reserved.
//
#import "SUOperatingSystem.h"
#include "AppKitPrevention.h"
@implementation SUOperatingSystem
+ (NSString *)systemVersionString
{
NSOperatingSystemVersion version = [[NSProcessInfo processInfo] operatingSystemVersion];
return [NSString stringWithFormat:@"%ld.%ld.%ld", (long)version.majorVersion, (long)version.minorVersion, (long)version.patchVersion];
}
@end