- Upgrade libraries

- Disable NSLog
This commit is contained in:
giuseppenuc committed 2017-01-26 19:28:07 +01:00
1 parent 1ce4f9bc2d
commit dad497ee5f
65 files changed
+337 -139

No files matched your search

+2 -2
View File
@@ -287,12 +287,12 @@ static bool isFirstAccess = YES;
[[self class] POSTWithEndpointAction:@"device/remove-user" parameters:[self removeDeviceFormObject]
progress:uploadProgress
success:^(NSURLSessionDataTask * _Nullable task, NSDictionary * _Nullable responseObject) {
NSLog(@"response %@",responseObject);
NSLogDebug(@"response %@",responseObject);
if(success){
success(YES);
}
} failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
NSLog(@"error : %@",error);
NSLogDebug(@"error : %@",error);
if (failure) {
failure(error);
}
+6 -6
View File
@@ -189,7 +189,7 @@ static bool isFirstAccess = YES;
[[self class] POSTWithEndpointAction:@"registration/register" parameters:[self JSONFormObject]
progress:uploadProgress
success:^(NSURLSessionDataTask * _Nullable task, NSDictionary * _Nullable responseObject) {
NSLog(@"response %@",responseObject);
NSLogDebug(@"response %@",responseObject);
if(success){
[[[self class] currentUser] saveLocally];
success([[self class] currentUser]);
@@ -266,18 +266,18 @@ static bool isFirstAccess = YES;
FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];
[login logInWithReadPermissions: @[@"public_profile",@"email",@"user_birthday"] fromViewController:viewController handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) {
if (error) {
NSLog(@"Process error");
NSLogDebug(@"Process error");
if (failure) {
failure(error);
}
} else if (result.isCancelled) {
NSLog(@"Cancelled");
NSLogDebug(@"Cancelled");
if (failure) {
NSError *error = [NSError errorWithDomain:NSLocalizedString(@"Request cancelled", @"") code:kHTTPStatusCodeMethodNotAllowed userInfo:nil];
failure(error);
}
} else {
NSLog(@"Logged in");
NSLogDebug(@"Logged in");
[self socialLoginFromViewController:viewController blockSuccess:success failure:failure];
}
}];
@@ -455,10 +455,10 @@ static bool isFirstAccess = YES;
NSError* error = nil;
NSData* data = [NSData dataWithContentsOfURL:_profileImageUrl options:NSDataReadingUncached error:&error];
if (error) {
NSLog(@"%@", [error localizedDescription]);
NSLogDebug(@"%@", [error localizedDescription]);
return [UIImage imageNamed:@"userProfileAvatar"];
} else {
NSLog(@"Data has loaded successfully.");
NSLogDebug(@"Data has loaded successfully.");
return [UIImage imageWithData:data];
}
}
+3 -6
View File
@@ -176,8 +176,7 @@
[self setValue:val forKey:propertyName];
}
else {
NSString *errorStr = [NSString stringWithFormat:@"Property '%@' could not be assigned any value.", propertyName];
NSLogDebug(@"%@",errorStr);
NSLogDebug(@"%@",[NSString stringWithFormat:@"Property '%@' could not be assigned any value.", propertyName]);
}
})();
}
@@ -268,8 +267,7 @@
[self setValue:@"" forKey:propertyName];
}
else {
NSString *errorStr = [NSString stringWithFormat:@"Property '%@' could not be assigned any value.", propertyName];
NSLogDebug(@"%@",errorStr);
NSLogDebug(@"%@",[NSString stringWithFormat:@"Property '%@' could not be assigned any value.", propertyName]);
}
})();
}
@@ -419,8 +417,7 @@
}
else {
NSString *errorStr = [NSString stringWithFormat:@"Property '%@' could not be assigned any value.", property];
NSLogDebug(@"%@",errorStr);
NSLogDebug(@"%@",[NSString stringWithFormat:@"Property '%@' could not be assigned any value.", property]);
}
})();
}
+4 -4
View File
@@ -227,7 +227,7 @@ NSString * const PNObjectMappingSelector = @"selector";
type = [properties valueForKey:propertyName];
NSLog(@"PropertyName MappedJsonType PropertyType: %@ - %@ - %@",propertyName,mappedJSONType,type);
NSLogDebug(@"PropertyName MappedJsonType PropertyType: %@ - %@ - %@",propertyName,mappedJSONType,type);
id value;
@@ -343,7 +343,7 @@ NSString * const PNObjectMappingSelector = @"selector";
}
@finally {
//NSLog(@"PropertyName PropertyType Value: %@ - %@ - %@",propertyName,propertyType,value);
//NSLogDebug(@"PropertyName PropertyType Value: %@ - %@ - %@",propertyName,propertyType,value);
}
}
@@ -374,7 +374,7 @@ NSString * const PNObjectMappingSelector = @"selector";
mappedJSONType = [properties valueForKey:propertyName];
}
NSLog(@"PropertyName PropertyType: %@ - %@",propertyName,mappedJSONType);
NSLogDebug(@"PropertyName PropertyType: %@ - %@",propertyName,mappedJSONType);
id value;
@@ -502,7 +502,7 @@ NSString * const PNObjectMappingSelector = @"selector";
}
@finally {
//NSLog(@"PropertyName PropertyType Value: %@ - %@ - %@",propertyName,propertyType,value);
//NSLogDebug(@"PropertyName PropertyType Value: %@ - %@ - %@",propertyName,propertyType,value);
}
}
return JSONFormObject;
-2
View File
@@ -18,8 +18,6 @@
#pragma mark NSLogDebug Macro
#define FORCE_NO_LOG 0
#if defined(FORCE_NO_LOG) && FORCE_NO_LOG == 0
#define NSLogDebug(format, ...) NSLog(@"<%s:%d> %s, " format, strrchr("/" __FILE__, '/') + 1, __LINE__, __PRETTY_FUNCTION__, ## __VA_ARGS__)
#else