mirror of
https://github.com/samsonjs/samhuri.net-ios.git
synced 2026-03-25 09:25:47 +00:00
integrate HockeySDK
This commit is contained in:
parent
570f181b22
commit
aa4b2a4c7d
1 changed files with 8 additions and 0 deletions
|
|
@ -6,6 +6,7 @@
|
|||
// Copyright (c) 2014 Guru Logic Inc. All rights reserved.
|
||||
//
|
||||
|
||||
#import <HockeySDK/HockeySDK.h>
|
||||
#import <dyci/SFDynamicCodeInjection.h>
|
||||
#import "AppDelegate.h"
|
||||
#import "PostsViewController.h"
|
||||
|
|
@ -28,6 +29,7 @@
|
|||
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
||||
[self setupCodeInjection];
|
||||
[self setupHockeySDK];
|
||||
UISplitViewController *splitViewController = (UISplitViewController *)self.window.rootViewController;
|
||||
UINavigationController *navigationController = splitViewController.viewControllers.lastObject;
|
||||
navigationController.topViewController.navigationItem.leftBarButtonItem = splitViewController.displayModeButtonItem;
|
||||
|
|
@ -50,6 +52,12 @@
|
|||
}
|
||||
}
|
||||
|
||||
- (void)setupHockeySDK {
|
||||
[[BITHockeyManager sharedHockeyManager] configureWithIdentifier:@"15435e2af912c96d7068c47c7bc6438f"];
|
||||
[[BITHockeyManager sharedHockeyManager] startManager];
|
||||
[[BITHockeyManager sharedHockeyManager].authenticator authenticateInstallation];
|
||||
}
|
||||
|
||||
- (PostsViewController *)postsViewController {
|
||||
UISplitViewController *splitViewController = (UISplitViewController *)self.window.rootViewController;
|
||||
UINavigationController *navigationController = splitViewController.viewControllers.firstObject;
|
||||
|
|
|
|||
Loading…
Reference in a new issue