Mistakenly thought TARGET_OS_MAC was useful

This commit is contained in:
Scott Kyle 2016-02-18 14:09:11 -08:00
parent f059d57bf4
commit cac3d09bcb
1 changed files with 4 additions and 4 deletions

View File

@ -42,7 +42,7 @@
#import "RealmAnalytics.h" #import "RealmAnalytics.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_MAC #if TARGET_IPHONE_SIMULATOR || !TARGET_OS_IPHONE
#import <CommonCrypto/CommonDigest.h> #import <CommonCrypto/CommonDigest.h>
#import <sys/socket.h> #import <sys/socket.h>
#import <sys/sysctl.h> #import <sys/sysctl.h>
@ -188,10 +188,10 @@ static NSDictionary *RLMAnalyticsPayload() {
@"Framework": @"react-native", @"Framework": @"react-native",
@"Virtual Machine": @"jsc", @"Virtual Machine": @"jsc",
@"Realm Version": [[@(RealmReactVersionString) componentsSeparatedByString:@"-"] lastObject] ?: kUnknownString, @"Realm Version": [[@(RealmReactVersionString) componentsSeparatedByString:@"-"] lastObject] ?: kUnknownString,
#if TARGET_OS_MAC #if TARGET_OS_IPHONE
@"Target OS Type": @"osx",
#else
@"Target OS Type": @"ios", @"Target OS Type": @"ios",
#else
@"Target OS Type": @"osx",
#endif #endif
// Current OS version the app is targetting // Current OS version the app is targetting
@"Target OS Version": [[NSProcessInfo processInfo] operatingSystemVersionString], @"Target OS Version": [[NSProcessInfo processInfo] operatingSystemVersionString],