From e6e38d4b92ed797f708b54594de02de9a7cff030 Mon Sep 17 00:00:00 2001 From: Matt Holgate Date: Thu, 10 Jul 2014 16:42:38 +0100 Subject: Crashlytics support for official builds. Add hooks to allow us to pass in the Crashlytics SDK location and the API key from the command line. The SDK and API key will be held in a separate private repository. Should have no effect on regular builds. --- platform/ios/Classes/MuAppDelegate.m | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'platform/ios/Classes') diff --git a/platform/ios/Classes/MuAppDelegate.m b/platform/ios/Classes/MuAppDelegate.m index b88de1cb..2c7c1d7b 100644 --- a/platform/ios/Classes/MuAppDelegate.m +++ b/platform/ios/Classes/MuAppDelegate.m @@ -3,6 +3,10 @@ #import "MuAppDelegate.h" +#ifdef CRASHLYTICS_ENABLE +#import +#endif + @implementation MuAppDelegate { BOOL _isInBackground; @@ -17,6 +21,11 @@ ctx = fz_new_context(NULL, NULL, ResourceCacheMaxSize); fz_register_document_handlers(ctx); +#ifdef CRASHLYTICS_ENABLE + NSLog(@"Starting Crashlytics"); + [Crashlytics startWithAPIKey:CRASHLYTICS_API_KEY]; +#endif + screenScale = [[UIScreen mainScreen] scale]; library = [[MuLibraryController alloc] initWithStyle: UITableViewStylePlain]; -- cgit v1.2.3