mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
cleanup header
* remove pre iOS 5 defines * move header guard to end of file * remove BITHockeyParseJSON declaration (imp is already gone)
This commit is contained in:
parent
b02e0673c0
commit
c81a2b0940
@ -73,42 +73,6 @@
|
|||||||
NSBundle *BITHockeyBundle(void);
|
NSBundle *BITHockeyBundle(void);
|
||||||
NSString *BITHockeyLocalizedString(NSString *stringToken);
|
NSString *BITHockeyLocalizedString(NSString *stringToken);
|
||||||
NSString *BITHockeyMD5(NSString *str);
|
NSString *BITHockeyMD5(NSString *str);
|
||||||
id BITHockeyParseJSON(NSString *str, NSError **error);
|
|
||||||
|
|
||||||
|
|
||||||
// compatibility helper
|
|
||||||
#ifdef BITHOCKEY_STATIC_LIBRARY
|
|
||||||
// If HockeySDK is built as a static library and linked into the project
|
|
||||||
// we can't use this project's deployment target to statically decide if
|
|
||||||
// native JSON is available
|
|
||||||
#define BITHOCKEY_NATIVE_JSON_AVAILABLE 0
|
|
||||||
#else
|
|
||||||
#define BITHOCKEY_NATIVE_JSON_AVAILABLE __IPHONE_OS_VERSION_MIN_REQUIRED >= 50000
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef kCFCoreFoundationVersionNumber_iPhoneOS_5_0
|
|
||||||
#define kCFCoreFoundationVersionNumber_iPhoneOS_5_0 674.0
|
|
||||||
#endif
|
|
||||||
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 50000
|
|
||||||
#define BITHOCKEY_IF_IOS5_OR_GREATER(...) \
|
|
||||||
if (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iPhoneOS_5_0) \
|
|
||||||
{ \
|
|
||||||
__VA_ARGS__ \
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
#define BITHOCKEY_IF_IOS5_OR_GREATER(...)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define BITHOCKEY_IF_PRE_IOS5(...) \
|
|
||||||
if (kCFCoreFoundationVersionNumber < kCFCoreFoundationVersionNumber_iPhoneOS_5_0) \
|
|
||||||
{ \
|
|
||||||
__VA_ARGS__ \
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_6_0
|
#if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_6_0
|
||||||
|
|
||||||
@ -126,3 +90,4 @@ __VA_ARGS__ \
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif //HockeySDK_HockeySDKPrivate_h
|
||||||
|
Loading…
x
Reference in New Issue
Block a user