mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
* factor out HockeyAppClient * configure Authenticator with HockeyAppClient * move appendPostValue to HockeyAppClient (& add the missing boundary parameter) * move tests over to new file
61 lines
1.7 KiB
Objective-C
61 lines
1.7 KiB
Objective-C
//
|
|
// CNSHockeyBaseManager+Private.h
|
|
// HockeySDK
|
|
//
|
|
// Created by Andreas Linde on 04.06.12.
|
|
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <UIKit/UIKit.h>
|
|
|
|
@class BITHockeyBaseManager;
|
|
@class BITHockeyBaseViewController;
|
|
|
|
@interface BITHockeyBaseManager()
|
|
|
|
@property (nonatomic, strong) NSString *appIdentifier;
|
|
|
|
- (id)initWithAppIdentifier:(NSString *)appIdentifier isAppStoreEnvironemt:(BOOL)isAppStoreEnvironment;
|
|
|
|
- (void)startManager;
|
|
|
|
/** the value this object was initialized with */
|
|
- (BOOL)isAppStoreEnvironment;
|
|
|
|
/** Check if the device is running an iOS version previous to iOS 7 */
|
|
- (BOOL)isPreiOS7Environment;
|
|
|
|
/** by default, just logs the message
|
|
|
|
can be overriden by subclasses to do their own error handling,
|
|
e.g. to show UI
|
|
*/
|
|
- (void)reportError:(NSError *)error;
|
|
|
|
/** url encoded version of the appIdentifier
|
|
|
|
where appIdentifier is either the value this object was initialized with,
|
|
or the main bundles CFBundleIdentifier if appIdentifier ist nil
|
|
*/
|
|
- (NSString *)encodedAppIdentifier;
|
|
|
|
/** device / application helpers */
|
|
- (NSString *)getDevicePlatform;
|
|
- (NSString *)executableUUID;
|
|
|
|
/** UI helpers */
|
|
- (UINavigationController *)customNavigationControllerWithRootViewController:(UIViewController *)viewController presentationStyle:(UIModalPresentationStyle)presentationStyle;
|
|
- (UIWindow *)findVisibleWindow;
|
|
- (void)showView:(UIViewController *)viewController;
|
|
|
|
/** Date helpers */
|
|
- (NSDate *)parseRFC3339Date:(NSString *)dateString;
|
|
|
|
/** keychain helpers */
|
|
- (BOOL)addStringValueToKeychain:(NSString *)stringValue forKey:(NSString *)key;
|
|
- (NSString *)stringValueFromKeychainForKey:(NSString *)key;
|
|
- (BOOL)removeKeyFromKeychain:(NSString *)key;
|
|
|
|
@end
|