diff options
author | Matt Holgate <matt@emobix.co.uk> | 2014-07-10 16:42:38 +0100 |
---|---|---|
committer | Matt Holgate <matt@emobix.co.uk> | 2014-07-10 16:42:38 +0100 |
commit | e6e38d4b92ed797f708b54594de02de9a7cff030 (patch) | |
tree | 3282e3ff5d3f4c1d5998ce19bbcc8f3e82d64cdb /platform/ios/Classes/MuAppDelegate.m | |
parent | ea2cb63eb91784fe2e0cdcfb621d95e6a6ec6c71 (diff) | |
download | mupdf-e6e38d4b92ed797f708b54594de02de9a7cff030.tar.xz |
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.
Diffstat (limited to 'platform/ios/Classes/MuAppDelegate.m')
-rw-r--r-- | platform/ios/Classes/MuAppDelegate.m | 9 |
1 files changed, 9 insertions, 0 deletions
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 <Crashlytics/Crashlytics.h> +#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]; |