File tree Expand file tree Collapse file tree 5 files changed +18
-2
lines changed Expand file tree Collapse file tree 5 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ before_script:
7
7
- ./scripts/add-key.sh
8
8
- ./scripts/update-bundle.sh
9
9
script :
10
- - xctool -workspace TravisExample.xcworkspace -scheme TravisExample -sdk iphoneos -configuration Release OBJROOT=$PWD/build SYMROOT=$PWD/build ONLY_ACTIVE_ARCH=NO TESTFLIGHT_APP_TOKEN=$TESTFLIGHT_APP_TOKEN
10
+ - xctool -workspace TravisExample.xcworkspace -scheme TravisExample -sdk iphoneos -configuration Release OBJROOT=$PWD/build SYMROOT=$PWD/build ONLY_ACTIVE_ARCH=NO TESTFLIGHT_APP_TOKEN=$TESTFLIGHT_APP_TOKEN HOCKEY_APP_ID=$HOCKEY_APP_ID
11
11
- xctool test -workspace TravisExample.xcworkspace -scheme TravisExampleTests -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO
12
12
after_script :
13
13
- ./scripts/remove-key.sh
Original file line number Diff line number Diff line change 1
1
platform :ios , '5.0'
2
2
3
3
pod 'TestFlightSDK' , '~> 2.0.2'
4
+ pod 'HockeySDK' , '~> 3.5.0-rc3'
4
5
5
6
target :TravisExampleTests , :exclusive => false do
6
7
pod 'Kiwi'
Original file line number Diff line number Diff line change 474
474
buildSettings = {
475
475
GCC_PRECOMPILE_PREFIX_HEADER = YES;
476
476
GCC_PREFIX_HEADER = "TravisExample/TravisExample-Prefix.pch";
477
+ HOCKEY_APP_ID = "";
477
478
INFOPLIST_FILE = "TravisExample/TravisExample-Info.plist";
478
479
PRODUCT_NAME = "$(TARGET_NAME)";
479
480
TESTFLIGHT_APP_TOKEN = "";
495
496
"RELEASE=1",
496
497
"COCOAPODS=1",
497
498
"TESTFLIGHT_APP_TOKEN=$(TESTFLIGHT_APP_TOKEN)",
499
+ "HOCKEY_APP_ID=$(HOCKEY_APP_ID)",
498
500
);
501
+ HOCKEY_APP_ID = "";
499
502
INFOPLIST_FILE = "TravisExample/TravisExample-Info.plist";
500
503
PRODUCT_NAME = "$(TARGET_NAME)";
501
504
PROVISIONING_PROFILE = "";
Original file line number Diff line number Diff line change 7
7
//
8
8
9
9
#import < UIKit/UIKit.h>
10
+ #import " BITHockeyManagerDelegate.h"
10
11
11
- @interface AppDelegate : UIResponder <UIApplicationDelegate>
12
+ @interface AppDelegate : UIResponder <UIApplicationDelegate, BITHockeyManagerDelegate >
12
13
13
14
@property (strong , nonatomic ) UIWindow *window;
14
15
Original file line number Diff line number Diff line change 8
8
9
9
#import " AppDelegate.h"
10
10
#import " TestFlight.h"
11
+ #import " BITHockeyManager.h"
12
+ #import " BITCrashManager.h"
11
13
12
14
#define NSStringize_helper (x ) #x
13
15
#define NSStringize (x ) @NSStringize_helper(x)
@@ -17,7 +19,16 @@ @implementation AppDelegate
17
19
- (BOOL )application : (UIApplication *)application didFinishLaunchingWithOptions : (NSDictionary *)launchOptions
18
20
{
19
21
#ifdef RELEASE
22
+ // Initialize TestFlight
20
23
[TestFlight takeOff: NSStringize(TESTFLIGHT_APP_TOKEN)];
24
+
25
+ // Initialize HockeyApp
26
+ NSString *hockeyAppIdentifier = NSStringize(HOCKEY_APP_ID);
27
+ [[BITHockeyManager sharedHockeyManager ] configureWithBetaIdentifier: hockeyAppIdentifier
28
+ liveIdentifier: hockeyAppIdentifier
29
+ delegate: self ];
30
+ [[BITHockeyManager sharedHockeyManager ] crashManager ].delegate = self;
31
+ [[BITHockeyManager sharedHockeyManager ] startManager ];
21
32
#endif
22
33
return YES ;
23
34
}
You can’t perform that action at this time.
0 commit comments