mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
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:
parent
c816f4dc19
commit
c71c764303
@ -118,7 +118,7 @@
|
||||
@param appIdentifier The app identifier that should be used.
|
||||
@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 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;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -27,17 +27,19 @@
|
||||
*/
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "BITCrashManagerDelegate.h"
|
||||
#import "BITUpdateManagerDelegate.h"
|
||||
#import "BITFeedbackManagerDelegate.h"
|
||||
|
||||
@class BITHockeyManager;
|
||||
@class BITHockeyBaseManager;
|
||||
|
||||
/**
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user