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

@@ -10,7 +10,10 @@
#import "GameViewController.h"
#include "app.h"
#include <WTSonarPenDriver.h>
#import <HockeySDK/HockeySDK.h>
@import AppCenter;
@import AppCenterAnalytics;
@import AppCenterCrashes;
@interface AppDelegate () {
GameViewController* view;
@@ -29,7 +32,7 @@
- (void)hockeyapp_crash
{
[[[BITHockeyManager sharedHockeyManager] crashManager] generateTestCrash];
[MSCrashes generateTestCrash];
}
- (float)sonarpen_pressure
@@ -58,10 +61,11 @@
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[[BITHockeyManager sharedHockeyManager] configureWithIdentifier:@"c2dccca196294ecca8fd5d58af2738cf"];
// Do some additional configuration if needed here
[[BITHockeyManager sharedHockeyManager] startManager];
//[[BITHockeyManager sharedHockeyManager].authenticator authenticateInstallation];
//[[BITHockeyManager sharedHockeyManager] configureWithIdentifier:@"c2dccca196294ecca8fd5d58af2738cf"];
[MSAppCenter start:@"c2dccca1-9629-4ecc-a8fd-5d58af2738cf" withServices:@[
[MSAnalytics class],
[MSCrashes class]
]];
// sonarpen_driver = [[WTSonarPenDriver alloc] initWithApplication:application];
// [sonarpen_driver start];
// [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(penStatusChanged) name:WTSonarPenDriverStateChangedNotification object:nil];

View File

@@ -11,7 +11,7 @@
#include "objc_utils.h"
int main(int argc, char * argv[]) {
install_global_handlers();
//install_global_handlers();
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}