[ios] Fixed debug issues with trackers

This commit is contained in:
Alex Zolotarev 2014-11-25 14:22:21 -10:00 committed by Alex Zolotarev
parent 47e39459fa
commit 6d6f0beff9

View file

@ -107,21 +107,29 @@ void InitLocalizedStrings()
// MRGService settings
MRGServiceParams * mrgsParams = [[MRGServiceParams alloc] initWithAppId:appId andSecret:secret];
#ifdef DEBUG
mrgsParams.debug = YES;
#endif
mrgsParams.shouldResetBadge = NO;
mrgsParams.crashReportEnabled = YES;
mrgsParams.allowPushNotificationHooks = YES;
NSString * appleAppId = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"MRGServiceAppleAppID"];
MRGSAppsFlyerParams * appsFlyerParams = [[MRGSAppsFlyerParams alloc] initWithDevKey:@"***REMOVED***" andAppleAppId:appleAppId];
#ifdef DEBUG
appsFlyerParams.debug = YES;
#endif
// Google Analytics
NSString * googleAnalyticsTrackingId = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"GoogleAnalyticsTrackingID"];
MRGSGoogleAnalyticsParams *googleAnalyticsParams = [[MRGSGoogleAnalyticsParams alloc] initWithTrackingId:googleAnalyticsTrackingId];
MRGSGoogleAnalyticsParams * googleAnalyticsParams = [[MRGSGoogleAnalyticsParams alloc] initWithTrackingId:googleAnalyticsTrackingId];
googleAnalyticsParams.enable = NO;
googleAnalyticsParams.exceptionHandlerEnabled = YES;
#ifdef DEBUG
googleAnalyticsParams.logLevel = 4;
#else
googleAnalyticsParams.logLevel = 0;
#endif
NSArray *externalParams = @[appsFlyerParams, googleAnalyticsParams];