remove hockeyapp and integrate appcenter

This commit is contained in:
2019-08-11 17:30:07 +02:00
parent b43ed85c2a
commit ab10a3e017
9 changed files with 98 additions and 89 deletions

View File

@@ -13,11 +13,14 @@
#include <CoreVideo/CoreVideo.h>
#include <OpenGL/OpenGL.h>
#import "objc_utils.h"
#import <HockeySDK/HockeySDK.h>
#include <deque>
#include <chrono>
@import AppCenter;
@import AppCenterAnalytics;
@import AppCenterCrashes;
@implementation View
{
NSSharingService *airdrop_service;
@@ -36,7 +39,7 @@
}
- (void)hockeyapp_crash
{
[[[BITHockeyManager sharedHockeyManager] crashManager] generateTestCrash];
[MSCrashes generateTestCrash];
}
- (void)async_lock
{
@@ -446,11 +449,10 @@
}
- (void)applicationDidFinishLaunching:(NSNotification *)notification
{
//[[NSUserDefaults standardUserDefaults] registerDefaults:@{ @"NSApplicationCrashOnExceptions": @YES }];
[[BITHockeyManager sharedHockeyManager] configureWithIdentifier:@"1500ff4a32eb4076be3b5147e2d8e27e"];
// Do some additional configuration if needed here
[[BITHockeyManager sharedHockeyManager] startManager];
[MSAppCenter start:@"1500ff4a-32eb-4076-be3b-5147e2d8e27e" withServices:@[
[MSAnalytics class],
[MSCrashes class]
]];
App::I->initLog();
App::I->create();