diff options
Diffstat (limited to 'platform/ios/Classes')
-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]; |