Showing
4 changed files
with
52 additions
and
3 deletions
... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
7 | <key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key> | 7 | <key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key> |
8 | <dict> | 8 | <dict> |
9 | <key>orderHint</key> | 9 | <key>orderHint</key> |
10 | - <integer>0</integer> | 10 | + <integer>1</integer> |
11 | </dict> | 11 | </dict> |
12 | </dict> | 12 | </dict> |
13 | </dict> | 13 | </dict> | ... | ... |
... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
7 | <key>SwiftWarplyFramework.xcscheme_^#shared#^_</key> | 7 | <key>SwiftWarplyFramework.xcscheme_^#shared#^_</key> |
8 | <dict> | 8 | <dict> |
9 | <key>orderHint</key> | 9 | <key>orderHint</key> |
10 | - <integer>1</integer> | 10 | + <integer>0</integer> |
11 | </dict> | 11 | </dict> |
12 | </dict> | 12 | </dict> |
13 | </dict> | 13 | </dict> | ... | ... |
No preview for this file type
... | @@ -994,12 +994,21 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) | ... | @@ -994,12 +994,21 @@ 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 | + | ||
997 | if (success) { | 1001 | if (success) { |
998 | success(contextResponse); | 1002 | success(contextResponse); |
999 | } | 1003 | } |
1000 | NSLog(@"**************** WARPLY Response *****************" ); | 1004 | NSLog(@"**************** WARPLY Response *****************" ); |
1001 | NSLog(@"%@", contextResponse ); | 1005 | NSLog(@"%@", contextResponse ); |
1002 | } failureBlock:^(NSError *error) { | 1006 | } failureBlock:^(NSError *error) { |
1007 | + | ||
1008 | + // TODO: DELETE | ||
1009 | + NSLog(@"**************** getProfile error *****************" ); | ||
1010 | + NSLog(@"%@", error ); | ||
1011 | + | ||
1003 | if (failure) { | 1012 | if (failure) { |
1004 | NSDictionary* dict = [NSDictionary alloc]; | 1013 | NSDictionary* dict = [NSDictionary alloc]; |
1005 | dict = [error userInfo]; | 1014 | dict = [error userInfo]; |
... | @@ -1013,6 +1022,11 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) | ... | @@ -1013,6 +1022,11 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) |
1013 | NSLog(@"**************** WARPLY Response *****************" ); | 1022 | NSLog(@"**************** WARPLY Response *****************" ); |
1014 | NSLog(@"%@", contextResponse ); | 1023 | NSLog(@"%@", contextResponse ); |
1015 | } failureBlock:^(NSError *error) { | 1024 | } failureBlock:^(NSError *error) { |
1025 | + | ||
1026 | + // TODO: DELETE | ||
1027 | + NSLog(@"**************** getProfile error 2 *****************" ); | ||
1028 | + NSLog(@"%@", error ); | ||
1029 | + | ||
1016 | if (failure) { | 1030 | if (failure) { |
1017 | failure(error); | 1031 | failure(error); |
1018 | } | 1032 | } |
... | @@ -2841,6 +2855,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) | ... | @@ -2841,6 +2855,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) |
2841 | successBlock:(void (^)(NSDictionary *contextResponse))successBlock | 2855 | successBlock:(void (^)(NSDictionary *contextResponse))successBlock |
2842 | failureBlock:(void (^)(NSError *error))failureBlock | 2856 | failureBlock:(void (^)(NSError *error))failureBlock |
2843 | { | 2857 | { |
2858 | + | ||
2859 | + // TODO: DELETE | ||
2860 | + NSLog(@"**************** getProfile sendContext8 *****************" ); | ||
2861 | + | ||
2844 | BOOL appIsRegisteredWithWarply = [self isRegistrationValid]; | 2862 | BOOL appIsRegisteredWithWarply = [self isRegistrationValid]; |
2845 | 2863 | ||
2846 | if (WL_FEATURE_IS_DISABLED_WITH_KEY(WL_WARPLY_ENABLED)) | 2864 | if (WL_FEATURE_IS_DISABLED_WITH_KEY(WL_WARPLY_ENABLED)) |
... | @@ -3369,6 +3387,10 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2) | ... | @@ -3369,6 +3387,10 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2) |
3369 | successBlock:(void (^)(NSDictionary *contextResponse))successBlock | 3387 | successBlock:(void (^)(NSDictionary *contextResponse))successBlock |
3370 | failureBlock:(void (^)(NSError *error))failureBlock | 3388 | failureBlock:(void (^)(NSError *error))failureBlock |
3371 | { | 3389 | { |
3390 | + | ||
3391 | + // TODO: DELETE | ||
3392 | + NSLog(@"**************** getProfileRequestInvocationWithType *****************" ); | ||
3393 | + | ||
3372 | void (^ successBlockCopy)(void) = [successBlock copy]; | 3394 | void (^ successBlockCopy)(void) = [successBlock copy]; |
3373 | void (^ failureBlockCopy)(void) = [failureBlock copy]; | 3395 | void (^ failureBlockCopy)(void) = [failureBlock copy]; |
3374 | 3396 | ||
... | @@ -4152,7 +4174,9 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2) | ... | @@ -4152,7 +4174,9 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2) |
4152 | WLLOG(@"*************************************************"); | 4174 | WLLOG(@"*************************************************"); |
4153 | NSDictionary *contextResponse=JSON; | 4175 | NSDictionary *contextResponse=JSON; |
4154 | 4176 | ||
4155 | - | 4177 | + // TODO: DELETE |
4178 | + NSLog(@"**************** runGetProfileRequestWithType contextResponse *****************" ); | ||
4179 | + NSLog(@"%@", contextResponse ); | ||
4156 | 4180 | ||
4157 | if ([JSON objectForKey:@"status"]) { | 4181 | if ([JSON objectForKey:@"status"]) { |
4158 | 4182 | ||
... | @@ -4181,20 +4205,45 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2) | ... | @@ -4181,20 +4205,45 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2) |
4181 | 4205 | ||
4182 | if (successBlock) | 4206 | if (successBlock) |
4183 | { | 4207 | { |
4208 | + | ||
4209 | + // TODO: DELETE | ||
4210 | + NSLog(@"**************** runGetProfileRequestWithType successBlock contextResponse *****************" ); | ||
4211 | + NSLog(@"%@", contextResponse ); | ||
4212 | + | ||
4184 | if ([path length]!=0) | 4213 | if ([path length]!=0) |
4185 | { | 4214 | { |
4215 | + | ||
4216 | + // TODO: DELETE | ||
4217 | + NSLog(@"**************** runGetProfileRequestWithType successBlock [contextResponse valueForKey:path] *****************" ); | ||
4218 | + NSLog(@"%@", [contextResponse valueForKey:path] ); | ||
4219 | + | ||
4186 | successBlock([contextResponse valueForKey:path]); | 4220 | successBlock([contextResponse valueForKey:path]); |
4221 | + | ||
4187 | return; | 4222 | return; |
4188 | } | 4223 | } |
4224 | + | ||
4225 | + // TODO: DELETE | ||
4226 | + NSLog(@"**************** runGetProfileRequestWithType successBlock contextResponse 2 *****************" ); | ||
4227 | + NSLog(@"%@", contextResponse ); | ||
4228 | + | ||
4189 | successBlock(contextResponse); | 4229 | successBlock(contextResponse); |
4190 | } | 4230 | } |
4191 | 4231 | ||
4192 | 4232 | ||
4193 | }else{ | 4233 | }else{ |
4234 | + | ||
4235 | + // TODO: DELETE | ||
4236 | + NSLog(@"**************** runGetProfileRequestWithType else *****************" ); | ||
4237 | + NSLog(@"%@", contextResponse ); | ||
4238 | + | ||
4194 | NSError *error = [NSError errorWithDomain:WARP_ERROR_DOMAIN code:1026 userInfo:@{NSLocalizedDescriptionKey: NSLocalizedString(@"Empty response", @"Warply")}]; | 4239 | NSError *error = [NSError errorWithDomain:WARP_ERROR_DOMAIN code:1026 userInfo:@{NSLocalizedDescriptionKey: NSLocalizedString(@"Empty response", @"Warply")}]; |
4195 | if (failureBlock) | 4240 | if (failureBlock) |
4196 | failureBlock(error); | 4241 | failureBlock(error); |
4197 | 4242 | ||
4243 | + // TODO: DELETE | ||
4244 | + NSLog(@"**************** runGetProfileRequestWithType else error *****************" ); | ||
4245 | + NSLog(@"%@", error ); | ||
4246 | + | ||
4198 | } | 4247 | } |
4199 | 4248 | ||
4200 | } | 4249 | } | ... | ... |
-
Please register or login to post a comment