diff --git a/src/ios/BEMCommunicationHelper.m b/src/ios/BEMCommunicationHelper.m index a0f1cef..a4c9a0e 100644 --- a/src/ios/BEMCommunicationHelper.m +++ b/src/ios/BEMCommunicationHelper.m @@ -12,6 +12,7 @@ #import "BEMCommunicationHelper.h" #import "AuthCompletionHandler.h" #import "BEMConnectionSettings.h" +#import "BEMConstants.h" #import @@ -29,6 +30,10 @@ static NSString* kCustomSettingsPath = @"/profile/settings"; static NSString* kRegisterPath = @"/profile/create"; +static inline NSString* NSStringFromBOOL(BOOL aBool) { + return aBool? @"YES" : @"NO"; +} + @interface CommunicationHelper() { } @end @@ -266,7 +271,7 @@ - (void)postToHost { } } -- (void)finishedWithAuth:(GTMOAuth2Authentication *)auth error:(NSError *)error { +- (void)finishedWithAuth:(GTMOAuth2Authentication *)auth error:(NSError *)error usingController:(UIViewController *)viewController { NSLog(@"CommunicationHelper.finishedWithAuth called with auth = %@ and error = %@", auth, error); if (error != NULL) { NSLog(@"Got error %@ while authenticating", error);