strongly type the BITHockeyManagerDelegate

instead of being id, use the proper protocol. Also
let the BITHockeyManagerDelegate protocol implement
the module protocols.
This commit is contained in:
Stephan Diederich 2013-07-26 15:34:39 +02:00
parent c816f4dc19
commit c71c764303
2 changed files with 7 additions and 5 deletions

View File

@ -118,7 +118,7 @@
@param appIdentifier The app identifier that should be used. @param appIdentifier The app identifier that should be used.
@param delegate `nil` or the class implementing the option protocols @param delegate `nil` or the class implementing the option protocols
*/ */
- (void)configureWithIdentifier:(NSString *)appIdentifier delegate:(id)delegate; - (void)configureWithIdentifier:(NSString *)appIdentifier delegate:(id<BITHockeyManagerDelegate>)delegate;
/** /**
@ -154,7 +154,7 @@
@param liveIdentifier The app identifier for the app store configurations. @param liveIdentifier The app identifier for the app store configurations.
@param delegate `nil` or the class implementing the optional protocols @param delegate `nil` or the class implementing the optional protocols
*/ */
- (void)configureWithBetaIdentifier:(NSString *)betaIdentifier liveIdentifier:(NSString *)liveIdentifier delegate:(id)delegate; - (void)configureWithBetaIdentifier:(NSString *)betaIdentifier liveIdentifier:(NSString *)liveIdentifier delegate:(id<BITHockeyManagerDelegate>)delegate;
/** /**

View File

@ -27,17 +27,19 @@
*/ */
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
#import "BITCrashManagerDelegate.h"
#import "BITUpdateManagerDelegate.h"
#import "BITFeedbackManagerDelegate.h"
@class BITHockeyManager; @class BITHockeyManager;
@class BITHockeyBaseManager; @class BITHockeyBaseManager;
/** /**
The `BITHockeyManagerDelegate` formal protocol defines methods further configuring The `BITHockeyManagerDelegate` formal protocol defines methods further configuring
the behaviour of `BITHockeyManager`. the behaviour of `BITHockeyManager`, as well as the delegate of the modules it manages.
*/ */
@protocol BITHockeyManagerDelegate <NSObject> @protocol BITHockeyManagerDelegate <NSObject, BITCrashManagerDelegate, BITUpdateManagerDelegate, BITFeedbackManagerDelegate>
@optional @optional