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
837e5b9e
Commit
837e5b9e
authored
8 years ago
by
Dima Bart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove getCollections method.
parent
8a119535
master
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
18 deletions
+2
-18
BUYClientTest_Storefront.m
...e Buy SDK/Mobile Buy SDK Tests/BUYClientTest_Storefront.m
+1
-1
BUYClient+Storefront.h
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient+Storefront.h
+1
-10
BUYClient+Storefront.m
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient+Storefront.m
+0
-7
No files found.
Mobile Buy SDK/Mobile Buy SDK Tests/BUYClientTest_Storefront.m
View file @
837e5b9e
...
...
@@ -174,7 +174,7 @@
[
OHHTTPStubs
stubUsingResponseWithKey
:
@"testGetCollection_0"
useMocks
:[
self
shouldUseMocks
]];
XCTestExpectation
*
expectation
=
[
self
expectationWithDescription
:
NSStringFromSelector
(
_cmd
)];
[
self
.
client
getCollections
:
^
(
NSArray
*
collections
,
NSError
*
error
)
{
[
self
.
client
getCollections
Page
:
1
completion
:
^
(
NSArray
<
BUYCollection
*>
*
collections
,
NSUInteger
page
,
BOOL
reachedEnd
,
NSError
*
_Nullable
error
)
{
XCTAssertNotNil
(
collections
);
XCTAssertNil
(
error
);
...
...
This diff is collapsed.
Click to expand it.
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient+Storefront.h
View file @
837e5b9e
...
...
@@ -158,16 +158,7 @@ typedef void (^BUYDataProductListBlock)(NSArray<BUYProduct *> * _Nullable produc
*
* @return The associated BUYRequestOperation
*/
-
(
BUYRequestOperation
*
)
getProductsByIds
:(
NSArray
*
)
productIds
completion
:(
BUYDataProductsBlock
)
block
;
/**
* Fetches the collections on the shop
*
* @param block (^BUYDataCollectionsBlock)(NSArray *collections, NSError *error)
*
* @return The associated BUYRequestOperation
*/
-
(
BUYRequestOperation
*
)
getCollections
:(
BUYDataCollectionsBlock
)
block
;
-
(
BUYRequestOperation
*
)
getProductsByIds
:(
NSArray
<
NSString
*>
*
)
productIds
completion
:(
BUYDataProductsBlock
)
block
;
/**
* Fetches collections based off page
...
...
This diff is collapsed.
Click to expand it.
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient+Storefront.m
View file @
837e5b9e
...
...
@@ -112,13 +112,6 @@ static NSString * const BUYCollectionsKey = @"collection_listings";
}];
}
-
(
BUYRequestOperation
*
)
getCollections
:
(
BUYDataCollectionsBlock
)
block
{
return
[
self
getCollectionsPage
:
1
completion
:
^
(
NSArray
<
BUYCollection
*>
*
collections
,
NSUInteger
page
,
BOOL
reachedEnd
,
NSError
*
error
)
{
block
(
collections
,
error
);
}];
}
-
(
BUYRequestOperation
*
)
getCollectionsPage
:
(
NSUInteger
)
page
completion
:
(
BUYDataCollectionsListBlock
)
block
{
NSURL
*
url
=
[
self
urlForCollectionListingsWithParameters
:@{
...
...
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