Skip to content
This repository has been archived by the owner on Aug 24, 2019. It is now read-only.

Commit

Permalink
Improve utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
soffes committed Mar 30, 2012
1 parent e94d4a3 commit 7ab2894
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 6 additions & 0 deletions LocalyticsUtilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
// Copyright (c) 2012 Sam Soffes. All rights reserved.
//

#ifndef ANALYTICS_ENABLED
#define ANALYTICS_ENABLED (!DEBUG && !TARGET_IPHONE_SIMULATOR)
#endif

#if ANALYTICS_ENABLED
#import "LocalyticsSession.h"
#endif

void LLStartSession(NSString *key);
void LLTagEvent(NSString *name);
Expand Down
7 changes: 2 additions & 5 deletions LocalyticsUtilities.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@
//

#import "LocalyticsUtilities.h"
#if ANALYTICS_ENABLED
#import "LocalyticsSession.h"
#endif

void LLStartSession(NSString *key) {
#if ANALYTICS_ENABLED
[[LocalyticsSession sharedLocalyticsSession] startSession:(key)]
[[LocalyticsSession sharedLocalyticsSession] startSession:(key)];
#endif
}

Expand All @@ -32,7 +29,7 @@ void LLTagEventWithAttributes(NSString *name, NSDictionary *attributes) {
}


void LLTagScreen(NSString *name) {
void LLTagScreen(NSString *screen) {
#if ANALYTICS_ENABLED
[[LocalyticsSession sharedLocalyticsSession] tagScreen:screen];
#endif
Expand Down

0 comments on commit 7ab2894

Please sign in to comment.