Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit 4d8013c

Browse files
committed
Fix a build problem with iOS 6 as base SDK
1 parent bc98e9e commit 4d8013c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Classes/BITHockeyHelper.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,16 @@
115115
}
116116

117117
NSString *bit_base64String(NSData * data, unsigned long length) {
118+
#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_6_1
118119
SEL base64EncodingSelector = NSSelectorFromString(@"base64EncodedStringWithOptions:");
119120
if ([data respondsToSelector:base64EncodingSelector]) {
120121
return [data base64EncodedStringWithOptions:0];
121122
} else {
123+
#endif
122124
return bit_base64StringPreiOS7(data, length);
125+
#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_6_1
123126
}
127+
#endif
124128
}
125129

126130
BOOL bit_validateEmail(NSString *email) {

0 commit comments

Comments
 (0)