From cac3d09bcbda6e11116a5eca5c88cf96a580104f Mon Sep 17 00:00:00 2001 From: Scott Kyle Date: Thu, 18 Feb 2016 14:09:11 -0800 Subject: [PATCH] Mistakenly thought TARGET_OS_MAC was useful --- react-native/RealmAnalytics.mm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/react-native/RealmAnalytics.mm b/react-native/RealmAnalytics.mm index f4d91f19..49d23699 100644 --- a/react-native/RealmAnalytics.mm +++ b/react-native/RealmAnalytics.mm @@ -42,7 +42,7 @@ #import "RealmAnalytics.h" -#if TARGET_IPHONE_SIMULATOR || TARGET_OS_MAC +#if TARGET_IPHONE_SIMULATOR || !TARGET_OS_IPHONE #import #import #import @@ -188,10 +188,10 @@ static NSDictionary *RLMAnalyticsPayload() { @"Framework": @"react-native", @"Virtual Machine": @"jsc", @"Realm Version": [[@(RealmReactVersionString) componentsSeparatedByString:@"-"] lastObject] ?: kUnknownString, -#if TARGET_OS_MAC - @"Target OS Type": @"osx", -#else +#if TARGET_OS_IPHONE @"Target OS Type": @"ios", +#else + @"Target OS Type": @"osx", #endif // Current OS version the app is targetting @"Target OS Version": [[NSProcessInfo processInfo] operatingSystemVersionString],