Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2022-11-08 19:34:30 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b19169fa173a78bcd93d0f5aa0f39f7dcc86b1ad
b19169fa
1 parent
d9f671e3
timeout 30 sec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
17 deletions
SwiftWarplyFramework/SwiftWarplyFramework/Warply/Warply.m
SwiftWarplyFramework/SwiftWarplyFramework/Warply/Warply.m
View file @
b19169f
...
...
@@ -3886,7 +3886,8 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2)
NSMutableString
*
urlString
=
[
NSMutableString
stringWithFormat
:
@"%@/oauth/%@/login"
,
_baseURL
,
_appUUID
];
WLLOG
(
@"[WARP Trace] HTTP URL: %@"
,
urlString
);
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
100
];
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
30
];
[
request
setTimeoutInterval
:
30
];
NSDictionary
*
parameters
;
...
...
@@ -4013,7 +4014,8 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2)
NSMutableString
*
urlString
=
[
NSMutableString
stringWithFormat
:
@"%@/oauth/%@/web_authorize"
,
_baseURL
,
_appUUID
];
WLLOG
(
@"[WARP Trace] HTTP URL: %@"
,
urlString
);
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
100
];
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
30
];
[
request
setTimeoutInterval
:
30
];
NSDictionary
*
parameters
;
...
...
@@ -4118,7 +4120,8 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2)
NSMutableString
*
urlString
=
[
NSMutableString
stringWithFormat
:
@"%@/oauth/%@/token"
,
_baseURL
,
_appUUID
];
WLLOG
(
@"[WARP Trace] HTTP URL: %@"
,
urlString
);
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
100
];
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
30
];
[
request
setTimeoutInterval
:
30
];
NSDictionary
*
parameters
;
...
...
@@ -4224,7 +4227,8 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2)
NSMutableString
*
urlString
=
[
NSMutableString
stringWithFormat
:
@"%@/user/%@/register"
,
_baseURL
,
_appUUID
];
WLLOG
(
@"[WARP Trace] HTTP URL: %@"
,
urlString
);
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
100
];
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
30
];
[
request
setTimeoutInterval
:
30
];
NSDictionary
*
parameters
;
...
...
@@ -4350,7 +4354,8 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2)
NSMutableString
*
urlString
=
[
NSMutableString
stringWithFormat
:
@"%@/user/%@/change_password"
,
_baseURL
,
_appUUID
];
WLLOG
(
@"[WARP Trace] HTTP URL: %@"
,
urlString
);
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
100
];
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
30
];
[
request
setTimeoutInterval
:
30
];
NSDictionary
*
parameters
;
...
...
@@ -4484,7 +4489,8 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2)
NSMutableString
*
urlString
=
[
NSMutableString
stringWithFormat
:
@"%@/oauth/%@/context"
,
_baseURL
,
_appUUID
];
WLLOG
(
@"[WARP Trace] HTTP URL: %@"
,
urlString
);
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
100
];
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
30
];
[
request
setTimeoutInterval
:
30
];
NSDictionary
*
parameters
;
...
...
@@ -4621,7 +4627,8 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2)
NSMutableString
*
urlString
=
[
NSMutableString
stringWithFormat
:
@"%@/api/%@/handle_image"
,
_baseURL
,
_appUUID
];
WLLOG
(
@"[WARP Trace] HTTP URL: %@"
,
urlString
);
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
100
];
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
30
];
[
request
setTimeoutInterval
:
30
];
NSDictionary
*
parameters
;
...
...
@@ -4746,7 +4753,8 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2)
NSMutableString
*
urlString
=
[
NSMutableString
stringWithFormat
:
@"%@/user/%@/password_reset"
,
_baseURL
,
_appUUID
];
WLLOG
(
@"[WARP Trace] HTTP URL: %@"
,
urlString
);
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
100
];
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
30
];
[
request
setTimeoutInterval
:
30
];
NSDictionary
*
parameters
;
...
...
@@ -4841,7 +4849,8 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2)
NSMutableString
*
urlString
=
[
NSMutableString
stringWithFormat
:
@"%@/user/%@/otp/generate"
,
_baseURL
,
_appUUID
];
WLLOG
(
@"[WARP Trace] HTTP URL: %@"
,
urlString
);
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
100
];
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
30
];
[
request
setTimeoutInterval
:
30
];
NSDictionary
*
parameters
;
...
...
@@ -5028,7 +5037,8 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2)
NSMutableString
*
urlString
=
[
NSMutableString
stringWithFormat
:
@"%@%@"
,
_baseURL
,
VERIFY_URL
];
// /partners/cosmote/verify
WLLOG
(
@"[WARP Trace] HTTP URL: %@"
,
urlString
);
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
100
];
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
30
];
[
request
setTimeoutInterval
:
30
];
NSDictionary
*
parameters
;
...
...
@@ -5124,7 +5134,8 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2)
NSMutableString
*
urlString
=
[
NSMutableString
stringWithFormat
:
@"%@/partners/oauth/%@/token"
,
_baseURL
,
_appUUID
];
// /partners/cosmote/verify
WLLOG
(
@"[WARP Trace] HTTP URL: %@"
,
urlString
);
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
100
];
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
30
];
[
request
setTimeoutInterval
:
30
];
NSDictionary
*
parameters
;
...
...
@@ -5233,7 +5244,8 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2)
WLLOG
(
@"[WARP Trace] HTTP URL: %@"
,
urlString
);
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
100
];
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
30
];
[
request
setTimeoutInterval
:
30
];
NSDictionary
*
parameters
;
...
...
@@ -5361,7 +5373,8 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2)
WLLOG
(
@"[WARP Trace] HTTP URL: %@"
,
urlString
);
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
100
];
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
30
];
[
request
setTimeoutInterval
:
30
];
NSDictionary
*
parameters
;
...
...
@@ -5488,7 +5501,8 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2)
WLLOG
(
@"[WARP Trace] HTTP URL: %@"
,
urlString
);
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
100
];
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
30
];
[
request
setTimeoutInterval
:
30
];
NSDictionary
*
parameters
;
...
...
@@ -5623,7 +5637,8 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2)
WLLOG
(
@"[WARP Trace] HTTP URL: %@"
,
urlString
);
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
100
];
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:[
NSURL
URLWithString
:
urlString
]
cachePolicy
:
NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval
:
30
];
[
request
setTimeoutInterval
:
30
];
NSDictionary
*
parameters
;
...
...
@@ -5717,7 +5732,7 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2)
_waitingForRegistration
=
YES
;
NSString
*
urlString
=
[
NSString
stringWithFormat
:
@"%@/api/mobile/v2/%@/register/"
,
_baseURL
,
_appUUID
];
// NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:urlString] cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:
10
0];
// NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:urlString] cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:
3
0];
// [request setAllHTTPHeaderFields:@{@"Accept-Encoding": @"gzip",
// @"Accept": @"application/json",
// @"User-Agent": @"gzip",
...
...
@@ -5849,7 +5864,7 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2)
_waitingForRegistration
=
YES
;
NSString
*
urlString
=
[
NSString
stringWithFormat
:
@"%@/api/mobile/v2/%@/register/"
,
_baseURL
,
_appUUID
];
// NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:urlString] cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:
10
0];
// NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:urlString] cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:
3
0];
// [request setAllHTTPHeaderFields:@{@"Accept-Encoding": @"gzip",
// @"Accept": @"application/json",
// @"User-Agent": @"gzip",
...
...
Please
register
or
login
to post a comment