mirror of
https://github.com/zhigang1992/expo.git
synced 2026-01-12 22:47:13 +08:00
19 lines
535 B
Plaintext
19 lines
535 B
Plaintext
#include "EXiOSUtils.h"
|
|
|
|
void EXiOSLog(const char *msg, ...) {
|
|
va_list args;
|
|
va_start(args, msg);
|
|
NSLog(@"%@", [[NSString alloc] initWithFormat:[NSString stringWithUTF8String:msg]
|
|
arguments:args]);
|
|
va_end(args);
|
|
}
|
|
|
|
EXiOSOperatingSystemVersion EXiOSGetOperatingSystemVersion() {
|
|
NSOperatingSystemVersion version = NSProcessInfo.processInfo.operatingSystemVersion;
|
|
return EXiOSOperatingSystemVersion {
|
|
version.majorVersion,
|
|
version.minorVersion,
|
|
version.patchVersion,
|
|
};
|
|
}
|