Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.

Commit

Permalink
Merge branch 'develop' into release/2.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
ashtom committed Mar 25, 2012
2 parents 160a850 + b15b274 commit 6058a4f
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,34 @@ Drag & drop the HockeySDK folder from your project directory to your Xcode proje

## Modify Source Code

1. Open your AppDelegate.m file.
1. Open your AppDelegate.h file.

2. Add the following line at the top of the file below your own #import statements:<pre><code>#import "CNSHockeyManager.h"</code></pre>

3. Search for the method application:didFinishLaunchingWithOptions:
3. Let the AppDelegate implement the protocol CNSHockeyManagerDelegate:<pre><code>@interface AppDelegate : UIResponder &lt;CNSHockeyManagerDelegate, UIApplicationDelegate>
</code></pre>

4. Add the following lines:<pre><code>[[CNSHockeyManager sharedHockeyManager] configureWithBetaIdentifier:@"BETA_IDENTIFIER"
4. Search for the method application:didFinishLaunchingWithOptions:

5. Open your AppDelegate.m file.

6. Add the following lines:<pre><code>[[CNSHockeyManager sharedHockeyManager] configureWithBetaIdentifier:@"BETA_IDENTIFIER"
liveIdentifier:@"LIVE_IDENTIFIER"
delegate:nil];</code></pre>
delegate:self];</code></pre>

5. Replace BETA_IDENTIFIER with the app identifier of your beta app. If you don't know what the app identifier is or how to find it, please read [this how-to](http://support.hockeyapp.net/kb/how-tos/how-to-find-the-app-identifier).
7. Replace BETA_IDENTIFIER with the app identifier of your beta app. If you don't know what the app identifier is or how to find it, please read [this how-to](http://support.hockeyapp.net/kb/how-tos/how-to-find-the-app-identifier).

8. Replace LIVE_IDENTIFIER with the app identifier of your release app.

6. Replace LIVE_IDENTIFIER with the app identifier of your release app.
9. Add the following method:<pre><code>-(NSString *)customDeviceIdentifier {
\#ifdef BETA_BUILD
if ([[UIDevice currentDevice] respondsToSelector:@selector(uniqueIdentifier)])
return [[UIDevice currentDevice] performSelector:@selector(uniqueIdentifier)];
\#endif
return nil;
}</code></pre>This assumes that the precompiler macro BETA_BUILD is set for your ad-hoc builds, but not for store builds.

7. If you have added the lines to the method application:didFinishLaunchingWithOptions:, you should be ready to go. If you do some GCD magic or added the lines at a different place, please make sure to invoke the above code on the main thread.
10. If you have added the lines to the method application:didFinishLaunchingWithOptions:, you should be ready to go. If you do some GCD magic or added the lines at a different place, please make sure to invoke the above code on the main thread.

## Optional Delegate Methods

Expand Down

0 comments on commit 6058a4f

Please sign in to comment.