Skip to content

Commit

Permalink
Merge pull request #1462 from dawsontoth/TIMOB-7710
Browse files Browse the repository at this point in the history
[TIMOB-7710] Added Analytics to Ti.App
  • Loading branch information
Stephen Tramer committed Feb 21, 2012
2 parents 167e7a8 + 3ee76d0 commit 68acf7f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions iphone/Classes/AppModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
extern NSString * const TI_APPLICATION_DESCRIPTION;
extern NSString * const TI_APPLICATION_COPYRIGHT;
extern NSString * const TI_APPLICATION_GUID;
extern BOOL const TI_APPLICATION_ANALYTICS;

@implementation AppModule

Expand Down Expand Up @@ -416,6 +417,11 @@ -(id)sessionId
return [[TiApp app] sessionId];
}

-(id)analytics
{
return NUMBOOL(TI_APPLICATION_ANALYTICS);
}

#if defined(USE_TI_APPIOS)
-(id)iOS
{
Expand Down

0 comments on commit 68acf7f

Please sign in to comment.