aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase/Database/Core/FPersistentConnection.m
diff options
context:
space:
mode:
Diffstat (limited to 'Firebase/Database/Core/FPersistentConnection.m')
-rw-r--r--Firebase/Database/Core/FPersistentConnection.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Firebase/Database/Core/FPersistentConnection.m b/Firebase/Database/Core/FPersistentConnection.m
index 0eb1f9f..9298f6d 100644
--- a/Firebase/Database/Core/FPersistentConnection.m
+++ b/Firebase/Database/Core/FPersistentConnection.m
@@ -922,15 +922,15 @@ static void reachabilityCallback(SCNetworkReachabilityRef ref, SCNetworkReachabi
- (void) sendConnectStats {
NSMutableDictionary *stats = [NSMutableDictionary dictionary];
-#if TARGET_OS_IPHONE
+ #if TARGET_OS_IOS
if (self.config.persistenceEnabled) {
stats[@"persistence.ios.enabled"] = @1;
}
-#else // this must be OSX then
+ #elif TARGET_OS_OSX
if (self.config.persistenceEnabled) {
stats[@"persistence.osx.enabled"] = @1;
}
-#endif
+ #endif
NSString *sdkVersion = [[FIRDatabase sdkVersion] stringByReplacingOccurrencesOfString:@"." withString:@"-"];
NSString *sdkStatName = [NSString stringWithFormat:@"sdk.objc.%@", sdkVersion];
stats[sdkStatName] = @1;