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

Commit

Permalink
Merge branch 'release/3.8.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
lumaxis committed Oct 22, 2015
2 parents dc7666b + a7b779d commit 29c1b28
Show file tree
Hide file tree
Showing 56 changed files with 615 additions and 443 deletions.
2 changes: 1 addition & 1 deletion Classes/BITActivityIndicatorButton.m
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ - (void)layoutSubviews {

@end

#endif
#endif /* HOCKEYSDK_FEATURE_FEEDBACK */
2 changes: 1 addition & 1 deletion Classes/BITAppStoreHeader.m
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,4 @@ - (void)setIconImage:(UIImage *)anIconImage {

@end

#endif
#endif /* HOCKEYSDK_FEATURE_UPDATES */
2 changes: 1 addition & 1 deletion Classes/BITArrowImageAnnotation.m
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,4 @@ - (void)layoutSubviews{

@end

#endif
#endif /* HOCKEYSDK_FEATURE_FEEDBACK */
48 changes: 26 additions & 22 deletions Classes/BITAuthenticationViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ - (void)setShowsLoginViaWebButton:(BOOL)showsLoginViaWebButton {
[self updateBarButtons];
[self updateWebLoginButton];
}
}
}
}

- (void) updateWebLoginButton {
Expand Down Expand Up @@ -279,7 +279,7 @@ - (BOOL)textFieldShouldReturn:(UITextField *)textField {
[self saveAction:nil];
}
}
return NO;
return NO;
}

#pragma mark - Actions
Expand All @@ -294,23 +294,26 @@ - (void)saveAction:(id)sender {
if(succeeded) {
//controller should dismiss us shortly..
} else {

// requires iOS 8
id uialertcontrollerClass = NSClassFromString(@"UIAlertController");
if (uialertcontrollerClass) {
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:nil
message:error.localizedDescription
preferredStyle:UIAlertControllerStyleAlert];


UIAlertAction *okAction = [UIAlertAction actionWithTitle:BITHockeyLocalizedString(@"OK")
style:UIAlertActionStyleCancel
handler:^(UIAlertAction * action) {}];

[alertController addAction:okAction];
dispatch_async(dispatch_get_main_queue(), ^{

[self presentViewController:alertController animated:YES completion:nil];
} else {
/* We won't use this for now until we have a more robust solution for displaying UIAlertController
// requires iOS 8
id uialertcontrollerClass = NSClassFromString(@"UIAlertController");
if (uialertcontrollerClass) {
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:nil
message:error.localizedDescription
preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *okAction = [UIAlertAction actionWithTitle:BITHockeyLocalizedString(@"OK")
style:UIAlertActionStyleCancel
handler:^(UIAlertAction * action) {}];
[alertController addAction:okAction];
[self presentViewController:alertController animated:YES completion:nil];
} else {
*/
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:nil
Expand All @@ -320,9 +323,10 @@ - (void)saveAction:(id)sender {
otherButtonTitles:nil];
[alertView show];
#pragma clang diagnostic pop
}
typeof(self) strongSelf = weakSelf;
[strongSelf setLoginUIEnabled:YES];
/*}*/
typeof(self) strongSelf = weakSelf;
[strongSelf setLoginUIEnabled:YES];
});
}
}];
}
Expand All @@ -334,4 +338,4 @@ - (void) setLoginUIEnabled:(BOOL) enabled {

@end

#endif
#endif /* HOCKEYSDK_FEATURE_AUTHENTICATOR */
4 changes: 2 additions & 2 deletions Classes/BITAuthenticator.h
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ typedef NS_ENUM(NSUInteger, BITAuthenticatorAppRestrictionEnforcementFrequency)
* @see authenticateInstallation
* @see validateWithCompletion:
*
* @param completion Block being executed once identification completed
* @param completion Block being executed once identification completed. Be sure to properly dispatch code to the main queue if necessary.
*/
- (void) identifyWithCompletion:(void(^)(BOOL identified, NSError *error)) completion;

Expand Down Expand Up @@ -342,7 +342,7 @@ typedef NS_ENUM(NSUInteger, BITAuthenticatorAppRestrictionEnforcementFrequency)
* @see authenticateInstallation
* @see identifyWithCompletion:
*
* @param completion Block being executed once validation completed
* @param completion Block being executed once validation completed. Be sure to properly dispatch code to the main queue if necessary.
*/
- (void) validateWithCompletion:(void(^)(BOOL validated, NSError *error)) completion;

Expand Down
Loading

0 comments on commit 29c1b28

Please sign in to comment.