[Crashlytics] Move the crash handler initializer
Move the initializer to a function that will be called earlier in the startup stage. Mainly to catch crashes in the playlist importer for legacy playlist formats. Signed-off-by: Christopher Snowhill <kode54@gmail.com>swiftingly
parent
f696dc2205
commit
7cf6a7e03b
|
@ -29,6 +29,8 @@
|
||||||
|
|
||||||
#import <Sparkle/Sparkle.h>
|
#import <Sparkle/Sparkle.h>
|
||||||
|
|
||||||
|
@import Firebase;
|
||||||
|
|
||||||
void *kAppControllerContext = &kAppControllerContext;
|
void *kAppControllerContext = &kAppControllerContext;
|
||||||
|
|
||||||
@implementation AppController {
|
@implementation AppController {
|
||||||
|
@ -141,6 +143,9 @@ void *kAppControllerContext = &kAppControllerContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)awakeFromNib {
|
- (void)awakeFromNib {
|
||||||
|
[[NSUserDefaults standardUserDefaults] registerDefaults:@{ @"NSApplicationCrashOnExceptions": @(YES) }];
|
||||||
|
[FIRApp configure];
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
// Prevent updates automatically in debug builds
|
// Prevent updates automatically in debug builds
|
||||||
[updater setAutomaticallyChecksForUpdates:NO];
|
[updater setAutomaticallyChecksForUpdates:NO];
|
||||||
|
|
|
@ -16,8 +16,6 @@
|
||||||
#import <MediaPlayer/MPRemoteCommandCenter.h>
|
#import <MediaPlayer/MPRemoteCommandCenter.h>
|
||||||
#import <MediaPlayer/MPRemoteCommandEvent.h>
|
#import <MediaPlayer/MPRemoteCommandEvent.h>
|
||||||
|
|
||||||
@import Firebase;
|
|
||||||
|
|
||||||
@implementation MediaKeysApplication {
|
@implementation MediaKeysApplication {
|
||||||
AppController *_appController;
|
AppController *_appController;
|
||||||
}
|
}
|
||||||
|
@ -26,9 +24,6 @@
|
||||||
[super finishLaunching];
|
[super finishLaunching];
|
||||||
_appController = (AppController *)[self delegate];
|
_appController = (AppController *)[self delegate];
|
||||||
|
|
||||||
[[NSUserDefaults standardUserDefaults] registerDefaults:@{@"NSApplicationCrashOnExceptions" : @(YES)}];
|
|
||||||
[FIRApp configure];
|
|
||||||
|
|
||||||
MPRemoteCommandCenter *remoteCommandCenter = [MPRemoteCommandCenter sharedCommandCenter];
|
MPRemoteCommandCenter *remoteCommandCenter = [MPRemoteCommandCenter sharedCommandCenter];
|
||||||
|
|
||||||
[remoteCommandCenter.playCommand setEnabled:YES];
|
[remoteCommandCenter.playCommand setEnabled:YES];
|
||||||
|
|
Loading…
Reference in New Issue