OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #import "systemInfo.h" |
| 6 #include <mach-o/arch.h> |
| 7 |
| 8 @implementation SystemInfo |
| 9 |
| 10 + (NSString *) getArch { |
| 11 const NXArchInfo *arch = NXGetLocalArchInfo(); |
| 12 NSString *archName = [NSString stringWithUTF8String:arch->name]; |
| 13 return archName; |
| 14 } |
| 15 |
| 16 + (NSString *) getOSVersion { |
| 17 NSString *versionString = [[NSProcessInfo processInfo] |
| 18 operatingSystemVersionString]; |
| 19 NSString *versionNumber = [[versionString componentsSeparatedByString:@" "] |
| 20 objectAtIndex:1]; |
| 21 return versionNumber; |
| 22 } |
| 23 @end |
OLD | NEW |