Manos Chorianopoulos

test sendDeviceInfo

...@@ -994,10 +994,6 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) ...@@ -994,10 +994,6 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
994 NSDictionary *postDictionary = @{@"consumer_data":@{@"action": @"handle_user_details", @"process": @"get"}}; 994 NSDictionary *postDictionary = @{@"consumer_data":@{@"action": @"handle_user_details", @"process": @"get"}};
995 NSData *jsonData = [NSJSONSerialization dataWithJSONObject:postDictionary options:0 error:NULL]; 995 NSData *jsonData = [NSJSONSerialization dataWithJSONObject:postDictionary options:0 error:NULL];
996 [self sendContext8:jsonData successBlock:^(NSDictionary *contextResponse) { 996 [self sendContext8:jsonData successBlock:^(NSDictionary *contextResponse) {
997 - // TODO: DELETE
998 - NSLog(@"**************** getProfile Response *****************" );
999 - NSLog(@"%@", contextResponse );
1000 -
1001 if (success) { 997 if (success) {
1002 success(contextResponse); 998 success(contextResponse);
1003 } 999 }
...@@ -1005,10 +1001,6 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) ...@@ -1005,10 +1001,6 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
1005 NSLog(@"%@", contextResponse ); 1001 NSLog(@"%@", contextResponse );
1006 } failureBlock:^(NSError *error) { 1002 } failureBlock:^(NSError *error) {
1007 1003
1008 - // TODO: DELETE
1009 - NSLog(@"**************** getProfile error *****************" );
1010 - NSLog(@"%@", error );
1011 -
1012 if (failure) { 1004 if (failure) {
1013 NSDictionary* dict = [NSDictionary alloc]; 1005 NSDictionary* dict = [NSDictionary alloc];
1014 dict = [error userInfo]; 1006 dict = [error userInfo];
...@@ -1023,10 +1015,6 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) ...@@ -1023,10 +1015,6 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
1023 NSLog(@"%@", contextResponse ); 1015 NSLog(@"%@", contextResponse );
1024 } failureBlock:^(NSError *error) { 1016 } failureBlock:^(NSError *error) {
1025 1017
1026 - // TODO: DELETE
1027 - NSLog(@"**************** getProfile error 2 *****************" );
1028 - NSLog(@"%@", error );
1029 -
1030 if (failure) { 1018 if (failure) {
1031 failure(error); 1019 failure(error);
1032 } 1020 }
...@@ -2856,9 +2844,6 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) ...@@ -2856,9 +2844,6 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
2856 failureBlock:(void (^)(NSError *error))failureBlock 2844 failureBlock:(void (^)(NSError *error))failureBlock
2857 { 2845 {
2858 2846
2859 - // TODO: DELETE
2860 - NSLog(@"**************** getProfile sendContext8 *****************" );
2861 -
2862 BOOL appIsRegisteredWithWarply = [self isRegistrationValid]; 2847 BOOL appIsRegisteredWithWarply = [self isRegistrationValid];
2863 2848
2864 if (WL_FEATURE_IS_DISABLED_WITH_KEY(WL_WARPLY_ENABLED)) 2849 if (WL_FEATURE_IS_DISABLED_WITH_KEY(WL_WARPLY_ENABLED))
...@@ -3388,9 +3373,6 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2) ...@@ -3388,9 +3373,6 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2)
3388 failureBlock:(void (^)(NSError *error))failureBlock 3373 failureBlock:(void (^)(NSError *error))failureBlock
3389 { 3374 {
3390 3375
3391 - // TODO: DELETE
3392 - NSLog(@"**************** getProfileRequestInvocationWithType *****************" );
3393 -
3394 void (^ successBlockCopy)(void) = [successBlock copy]; 3376 void (^ successBlockCopy)(void) = [successBlock copy];
3395 void (^ failureBlockCopy)(void) = [failureBlock copy]; 3377 void (^ failureBlockCopy)(void) = [failureBlock copy];
3396 3378
...@@ -4174,10 +4156,6 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2) ...@@ -4174,10 +4156,6 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2)
4174 WLLOG(@"*************************************************"); 4156 WLLOG(@"*************************************************");
4175 NSDictionary *contextResponse=JSON; 4157 NSDictionary *contextResponse=JSON;
4176 4158
4177 - // TODO: DELETE
4178 - NSLog(@"**************** runGetProfileRequestWithType contextResponse *****************" );
4179 - NSLog(@"%@", contextResponse );
4180 -
4181 if ([JSON objectForKey:@"status"]) { 4159 if ([JSON objectForKey:@"status"]) {
4182 4160
4183 int status = [[JSON valueForKey:@"status"] intValue]; 4161 int status = [[JSON valueForKey:@"status"] intValue];
...@@ -4206,44 +4184,24 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2) ...@@ -4206,44 +4184,24 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2)
4206 if (successBlock) 4184 if (successBlock)
4207 { 4185 {
4208 4186
4209 - // TODO: DELETE
4210 - NSLog(@"**************** runGetProfileRequestWithType successBlock contextResponse *****************" );
4211 - NSLog(@"%@", contextResponse );
4212 -
4213 if ([path length]!=0) 4187 if ([path length]!=0)
4214 { 4188 {
4215 4189
4216 - // TODO: DELETE
4217 - NSLog(@"**************** runGetProfileRequestWithType successBlock [contextResponse valueForKey:path] *****************" );
4218 - NSLog(@"%@", [contextResponse valueForKey:path] );
4219 -
4220 successBlock([contextResponse valueForKey:path]); 4190 successBlock([contextResponse valueForKey:path]);
4221 4191
4222 return; 4192 return;
4223 } 4193 }
4224 4194
4225 - // TODO: DELETE
4226 - NSLog(@"**************** runGetProfileRequestWithType successBlock contextResponse 2 *****************" );
4227 - NSLog(@"%@", contextResponse );
4228 -
4229 successBlock(contextResponse); 4195 successBlock(contextResponse);
4230 } 4196 }
4231 4197
4232 4198
4233 }else{ 4199 }else{
4234 4200
4235 - // TODO: DELETE
4236 - NSLog(@"**************** runGetProfileRequestWithType else *****************" );
4237 - NSLog(@"%@", contextResponse );
4238 -
4239 NSError *error = [NSError errorWithDomain:WARP_ERROR_DOMAIN code:1026 userInfo:@{NSLocalizedDescriptionKey: NSLocalizedString(@"Empty response", @"Warply")}]; 4201 NSError *error = [NSError errorWithDomain:WARP_ERROR_DOMAIN code:1026 userInfo:@{NSLocalizedDescriptionKey: NSLocalizedString(@"Empty response", @"Warply")}];
4240 if (failureBlock) 4202 if (failureBlock)
4241 failureBlock(error); 4203 failureBlock(error);
4242 4204
4243 - // TODO: DELETE
4244 - NSLog(@"**************** runGetProfileRequestWithType else error *****************" );
4245 - NSLog(@"%@", error );
4246 -
4247 } 4205 }
4248 4206
4249 } 4207 }
......
...@@ -363,10 +363,17 @@ static const char* jailbreak_apps[] = ...@@ -363,10 +363,17 @@ static const char* jailbreak_apps[] =
363 363
364 NSDictionary *oldApplicationData = [defaults objectForKey:WL_APPLICATION_DATA]; 364 NSDictionary *oldApplicationData = [defaults objectForKey:WL_APPLICATION_DATA];
365 BOOL application_data_has_changed = ![[self applicationData] isEqualToDictionary:oldApplicationData]; 365 BOOL application_data_has_changed = ![[self applicationData] isEqualToDictionary:oldApplicationData];
366 +
367 + // TODO: DELETE
368 + NSLog(@"oldDeviceInfo: %@",oldDeviceInfo);
369 + NSLog(@"device_info_has_changed: %@",device_info_has_changed);
370 + NSLog(@"oldApplicationData: %@",oldApplicationData);
371 + NSLog(@"application_data_has_changed: %@",application_data_has_changed);
372 + NSLog(@"_isMissingDeviceInfo: %@",_isMissingDeviceInfo);
366 373
367 - if (device_info_has_changed || application_data_has_changed || _isMissingDeviceInfo) { 374 + // if (device_info_has_changed || application_data_has_changed || _isMissingDeviceInfo) {
368 [self sendDeviceInfo]; 375 [self sendDeviceInfo];
369 - } 376 + // }
370 } 377 }
371 378
372 /////////////////////////////////////////////////////////////////////////////// 379 ///////////////////////////////////////////////////////////////////////////////
......