Skip to content

Commit

Permalink
Added support for New Relic Mobile Monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
zacshenker committed Mar 26, 2013
1 parent 280a472 commit 2701c56
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
16 changes: 16 additions & 0 deletions AnalyticsKitNewRelicProvider.h
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// AnalyticsKitNewRelicProvider.h
//
//
// Created by Zac Shenker on 26/03/2013.
// Copyright (c) 2013 Collusion. All rights reserved.
//

#import "AnalyticsKit.h"

@interface AnalyticsKitNewRelicProvider : NSObject<AnalyticsKitProvider>

-(id<AnalyticsKitProvider>)initWithAPIKey:(NSString *)apiKey;

@end

46 changes: 46 additions & 0 deletions AnalyticsKitNewRelicProvider.m
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,46 @@
//
// AnalyticsKitNewRelicProvider.m
//
//
// Created by Zac Shenker on 26/03/13.
// Copyright (c) 2013 Collusion. All rights reserved.
//

#import <NewRelicAgent/NewRelicAgent.h>
#import "AnalyticsKitNewRelicProvider.h"

@implementation AnalyticsKitNewRelicProvider

-(id<AnalyticsKitProvider>)initWithAPIKey:(NSString *)apiKey {
self = [super init];
if (self) {
[NewRelicAgent startWithApplicationToken:apiKey];
}
return self;
}

-(void)applicationWillEnterForeground {}
-(void)applicationDidEnterBackground {}
-(void)applicationWillTerminate {}

-(void)uncaughtException:(NSException *)exception {}

-(void)logScreen:(NSString *)screenName {}

-(void)logEvent:(NSString *)event {}

-(void)logEvent:(NSString *)event withProperties:(NSDictionary *)dict {}

-(void)logEvent:(NSString *)event withProperty:(NSString *)key andValue:(NSString *)value {}

- (void)logEvent:(NSString *)eventName timed:(BOOL)timed{}

- (void)logEvent:(NSString *)eventName withProperties:(NSDictionary *)dict timed:(BOOL)timed{}

-(void)endTimedEvent:(NSString *)eventName withProperties:(NSDictionary *)dict{}

-(void)logError:(NSString *)name message:(NSString *)message exception:(NSException *)exception {}

-(void)logError:(NSString *)name message:(NSString *)message error:(NSError *)error {}

@end

0 comments on commit 2701c56

Please sign in to comment.