Mistakenly thought TARGET_OS_MAC was useful
This commit is contained in:
parent
f059d57bf4
commit
cac3d09bcb
|
@ -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],
|
||||||
|
|
Loading…
Reference in New Issue