mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-23 04:34:27 +00:00
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
22 lines
480 B
Objective-C
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
|