2
0

Bump External dependencies.

This commit is contained in:
Maarten Billemont
2013-08-11 00:08:25 -04:00
parent 77439af486
commit 8375808cdc
224 changed files with 13810 additions and 2949 deletions

View File

@@ -113,7 +113,7 @@ finishedWithAuth:(GTMOAuth2Authentication *)auth
clientID:(NSString *)clientID
clientSecret:(NSString *)clientSecret
keychainItemName:(NSString *)keychainItemName
completionHandler:(void (^)(GTMOAuth2ViewControllerTouch *viewController, GTMOAuth2Authentication *auth, NSError *error))handler {
completionHandler:(GTMOAuth2ViewControllerCompletionHandler)handler {
return [[[self alloc] initWithScope:scope
clientID:clientID
clientSecret:clientSecret
@@ -125,7 +125,7 @@ finishedWithAuth:(GTMOAuth2Authentication *)auth
clientID:(NSString *)clientID
clientSecret:(NSString *)clientSecret
keychainItemName:(NSString *)keychainItemName
completionHandler:(void (^)(GTMOAuth2ViewControllerTouch *viewController, GTMOAuth2Authentication *auth, NSError *error))handler {
completionHandler:(GTMOAuth2ViewControllerCompletionHandler)handler {
// convenient entry point for Google authentication
Class signInClass = [[self class] signInClass];
@@ -206,7 +206,7 @@ finishedWithAuth:(GTMOAuth2Authentication *)auth
+ (id)controllerWithAuthentication:(GTMOAuth2Authentication *)auth
authorizationURL:(NSURL *)authorizationURL
keychainItemName:(NSString *)keychainItemName
completionHandler:(void (^)(GTMOAuth2ViewControllerTouch *viewController, GTMOAuth2Authentication *auth, NSError *error))handler {
completionHandler:(GTMOAuth2ViewControllerCompletionHandler)handler {
return [[[self alloc] initWithAuthentication:auth
authorizationURL:authorizationURL
keychainItemName:keychainItemName
@@ -216,7 +216,7 @@ finishedWithAuth:(GTMOAuth2Authentication *)auth
- (id)initWithAuthentication:(GTMOAuth2Authentication *)auth
authorizationURL:(NSURL *)authorizationURL
keychainItemName:(NSString *)keychainItemName
completionHandler:(void (^)(GTMOAuth2ViewControllerTouch *viewController, GTMOAuth2Authentication *auth, NSError *error))handler {
completionHandler:(GTMOAuth2ViewControllerCompletionHandler)handler {
// fall back to the non-blocks init
self = [self initWithAuthentication:auth
authorizationURL:authorizationURL
@@ -365,6 +365,10 @@ finishedWithAuth:(GTMOAuth2Authentication *)auth
- (void)viewDidLoad {
[self setUpNavigation];
}
- (void)setUpNavigation {
rightBarButtonItem_.customView = navButtonsView_;
self.navigationItem.rightBarButtonItem = rightBarButtonItem_;
}
@@ -670,6 +674,9 @@ static Class gSignInClass = Nil;
#pragma mark Protocol implementations
- (void)viewWillAppear:(BOOL)animated {
// See the comment on clearBrowserCookies in viewDidDisappear.
[self clearBrowserCookies];
if (!isViewShown_) {
isViewShown_ = YES;
if ([self isNavigationBarTranslucent]) {
@@ -713,13 +720,18 @@ static Class gSignInClass = Nil;
#endif
}
// prevent the next sign-in from showing in the WebView that the user is
// already signed in
[self clearBrowserCookies];
[super viewWillDisappear:animated];
}
- (void)viewDidDisappear:(BOOL)animated {
[super viewDidDisappear:animated];
// prevent the next sign-in from showing in the WebView that the user is
// already signed in. It's possible for the WebView to set the cookies even
// after this, so we also clear them when the view first appears.
[self clearBrowserCookies];
}
- (void)viewDidLayoutSubviews {
// We don't call super's version of this method because
// -[UIViewController viewDidLayoutSubviews] is documented as a no-op, that