diff --git a/iphone/Maps/Classes/MapsAppDelegate.mm b/iphone/Maps/Classes/MapsAppDelegate.mm index 05e9bab193..3dc24fb59b 100644 --- a/iphone/Maps/Classes/MapsAppDelegate.mm +++ b/iphone/Maps/Classes/MapsAppDelegate.mm @@ -17,8 +17,6 @@ #import "UIColor+MapsMeColor.h" #import "UIFont+MapsMeFonts.h" #import -#import -#import #import #import #import @@ -39,9 +37,14 @@ // If you have a "missing header error" here, then please run configure.sh script in the root repo folder. #import "../../../private.h" +#ifdef OMIM_PRODUCTION +#import +#import #import +#endif + extern NSString * const MapsStatusChangedNotification = @"MapsStatusChangedNotification"; // Alert keys. static NSString * const kUDLastLaunchDateKey = @"LastLaunchDate"; @@ -102,18 +105,17 @@ void InitCrashTrackers() NSString * hockeyKey = @(HOCKEY_APP_KEY); if (hockeyKey.length != 0) { - // Initialize Hockey App Sdk + // Initialize Hockey App SDK. BITHockeyManager * hockeyManager = [BITHockeyManager sharedHockeyManager]; - [hockeyManager configureWithIdentifier:hockeyKey]; // Do some additional configuration if needed here + [hockeyManager configureWithIdentifier:hockeyKey]; [hockeyManager.crashManager setCrashManagerStatus: BITCrashManagerStatusAutoSend]; [hockeyManager startManager]; - [hockeyManager.authenticator authenticateInstallation]; // This line is obsolete in the crash only builds } NSString * fabricKey = @(CRASHLYTICS_IOS_KEY); if (fabricKey.length != 0) { - // Initialize Fabric/Crashlytics Sdk + // Initialize Fabric/Crashlytics SDK. [Fabric with:@[[Crashlytics class]]]; } #endif