Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shopify_iossdk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cemarose
shopify_iossdk
Commits
e682b742
Commit
e682b742
authored
8 years ago
by
Dima Bart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove explicit network queue, make request queue private.
parent
1c96e165
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
BUYClient.h
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient.h
+0
-5
BUYClient.m
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient.m
+2
-3
No files found.
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient.h
View file @
e682b742
...
...
@@ -96,11 +96,6 @@ NS_ASSUME_NONNULL_BEGIN
@property
(
nonatomic
,
strong
,
nonnull
)
BUYModelManager
*
modelManager
;
/**
* Queue on which all request operation are executed
*/
@property
(
nonatomic
,
strong
,
readonly
,
nonnull
)
NSOperationQueue
*
requestQueue
;
/**
* Queue on which network completion callbacks will be executed
*/
@property
(
nonatomic
,
strong
,
nonnull
)
NSOperationQueue
*
callbackQueue
;
...
...
This diff is collapsed.
Click to expand it.
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient.m
View file @
e682b742
...
...
@@ -34,7 +34,7 @@ static NSString * const BUYClientJSONMimeType = @"application/json";
@interface
BUYClient
()
<
NSURLSessionDelegate
>
@property
(
nonatomic
,
strong
)
NSURLSession
*
session
;
@property
(
nonatomic
,
strong
)
NSOperationQueue
*
network
Queue
;
@property
(
nonatomic
,
strong
)
NSOperationQueue
*
request
Queue
;
@end
...
...
@@ -62,7 +62,6 @@ static NSString * const BUYClientJSONMimeType = @"application/json";
_callbackQueue
=
[
NSOperationQueue
mainQueue
];
_requestQueue
=
[
NSOperationQueue
new
];
_networkQueue
=
[
NSOperationQueue
new
];
_session
=
[
self
urlSession
];
_pageSize
=
25
;
...
...
@@ -96,7 +95,7 @@ static NSString * const BUYClientJSONMimeType = @"application/json";
NSURLSessionConfiguration
*
config
=
[
NSURLSessionConfiguration
defaultSessionConfiguration
];
config
.
HTTPAdditionalHeaders
=
[
self
additionalHeaders
];
return
[
NSURLSession
sessionWithConfiguration
:
config
delegate
:
self
delegateQueue
:
self
.
networkQueue
];
return
[
NSURLSession
sessionWithConfiguration
:
config
delegate
:
self
delegateQueue
:
nil
];
}
-
(
void
)
setPageSize
:
(
NSUInteger
)
pageSize
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment