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
c1ac37fc
Commit
c1ac37fc
authored
9 years ago
by
Dima Bart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove NSURLComponents additions.
parent
a80871f6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
101 deletions
+0
-101
BUYClientTest.m
Mobile Buy SDK/Mobile Buy SDK Tests/BUYClientTest.m
+0
-11
project.pbxproj
Mobile Buy SDK/Mobile Buy SDK.xcodeproj/project.pbxproj
+0
-12
NSURLComponents+BUYAdditions.h
...K/Mobile Buy SDK/Additions/NSURLComponents+BUYAdditions.h
+0
-33
NSURLComponents+BUYAdditions.m
...K/Mobile Buy SDK/Additions/NSURLComponents+BUYAdditions.m
+0
-43
Buy.h
Mobile Buy SDK/Mobile Buy SDK/Buy.h
+0
-1
Buy.h
Mobile Buy SDK/Mobile Buy SDK/Static Framework/Buy.h
+0
-1
No files found.
Mobile Buy SDK/Mobile Buy SDK Tests/BUYClientTest.m
View file @
c1ac37fc
...
...
@@ -30,7 +30,6 @@
#import <Buy/Buy.h>
#import "BUYTestConstants.h"
#import "BUYClientTestBase.h"
#import "NSURLComponents+BUYAdditions.h"
#import "BUYShopifyErrorCodes.h"
#import "BUYAccountCredentials.h"
#import "BUYClient+Customers.h"
...
...
@@ -170,16 +169,6 @@ NSString * const BUYFakeCustomerToken = @"dsfasdgafdg";
XCTAssertEqual
(
BUYStatusComplete
,
status
);
}
-
(
void
)
testQueryItemsConversion
{
NSDictionary
*
dictionary
=
@{
@"collection_id"
:
@"1"
,
@"limit"
:
@"25"
,
@"page"
:
@"1"
,
@"sort_by"
:
@"collection-default"
};
NSURLComponents
*
components
=
[[
NSURLComponents
alloc
]
init
];
[
components
setQueryItemsWithDictionary
:
dictionary
];
NSSet
*
componentsQueryItems
=
[
NSSet
setWithArray
:
components
.
queryItems
];
NSSet
*
queryItems
=
[
NSSet
setWithArray
:@[[
NSURLQueryItem
queryItemWithName
:
@"collection_id"
value
:
@"1"
],
[
NSURLQueryItem
queryItemWithName
:
@"limit"
value
:
@"25"
],
[
NSURLQueryItem
queryItemWithName
:
@"page"
value
:
@"1"
],
[
NSURLQueryItem
queryItemWithName
:
@"sort_by"
value
:
@"collection-default"
]]];
XCTAssertEqualObjects
(
componentsQueryItems
,
queryItems
);
}
-
(
void
)
testProductsInCollectionWithSortOrderCollectionDefault
{
BUYRequestOperation
*
task
=
(
BUYRequestOperation
*
)[
self
.
client
getProductsPage
:
1
inCollection
:
@1
sortOrder
:
BUYCollectionSortCollectionDefault
completion
:^
(
NSArray
<
BUYProduct
*>
*
products
,
NSUInteger
page
,
BOOL
reachedEnd
,
NSError
*
error
)
{}];
...
...
This diff is collapsed.
Click to expand it.
Mobile Buy SDK/Mobile Buy SDK.xcodeproj/project.pbxproj
View file @
c1ac37fc
...
...
@@ -69,10 +69,6 @@
841ADE201CB6C942000004B0
/* NSURL+BUYAdditions.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
841ADDFB1CB6C942000004B0
/* NSURL+BUYAdditions.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
841ADE211CB6C942000004B0
/* NSURL+BUYAdditions.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
841ADDFC1CB6C942000004B0
/* NSURL+BUYAdditions.m */
;
};
841ADE221CB6C942000004B0
/* NSURL+BUYAdditions.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
841ADDFC1CB6C942000004B0
/* NSURL+BUYAdditions.m */
;
};
841ADE231CB6C942000004B0
/* NSURLComponents+BUYAdditions.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
841ADDFD1CB6C942000004B0
/* NSURLComponents+BUYAdditions.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
841ADE241CB6C942000004B0
/* NSURLComponents+BUYAdditions.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
841ADDFD1CB6C942000004B0
/* NSURLComponents+BUYAdditions.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
841ADE251CB6C942000004B0
/* NSURLComponents+BUYAdditions.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
841ADDFE1CB6C942000004B0
/* NSURLComponents+BUYAdditions.m */
;
};
841ADE261CB6C942000004B0
/* NSURLComponents+BUYAdditions.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
841ADDFE1CB6C942000004B0
/* NSURLComponents+BUYAdditions.m */
;
};
8443E2D11CE2917500EA08D4
/* BUYPaymentProviderTests.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
8443E2D01CE2917500EA08D4
/* BUYPaymentProviderTests.m */
;
};
849110311CCE708900E53B93
/* BUYArrayAdditionsTests.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
8491102E1CCE708900E53B93
/* BUYArrayAdditionsTests.m */
;
};
849110321CCE708900E53B93
/* BUYRegularExpressionAdditionsTests.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
8491102F1CCE708900E53B93
/* BUYRegularExpressionAdditionsTests.m */
;
};
...
...
@@ -496,8 +492,6 @@
841ADDFA1CB6C942000004B0
/* NSString+BUYAdditions.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
"NSString+BUYAdditions.m"
;
sourceTree
=
"<group>"
;
};
841ADDFB1CB6C942000004B0
/* NSURL+BUYAdditions.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
"NSURL+BUYAdditions.h"
;
sourceTree
=
"<group>"
;
};
841ADDFC1CB6C942000004B0
/* NSURL+BUYAdditions.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
"NSURL+BUYAdditions.m"
;
sourceTree
=
"<group>"
;
};
841ADDFD1CB6C942000004B0
/* NSURLComponents+BUYAdditions.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
"NSURLComponents+BUYAdditions.h"
;
sourceTree
=
"<group>"
;
};
841ADDFE1CB6C942000004B0
/* NSURLComponents+BUYAdditions.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
"NSURLComponents+BUYAdditions.m"
;
sourceTree
=
"<group>"
;
};
8443E2D01CE2917500EA08D4
/* BUYPaymentProviderTests.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYPaymentProviderTests.m
;
sourceTree
=
"<group>"
;
};
8465CF441CC13CFE0010B2E6
/* Templates */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
folder
;
path
=
Templates
;
sourceTree
=
"<group>"
;
};
8491102E1CCE708900E53B93
/* BUYArrayAdditionsTests.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYArrayAdditionsTests.m
;
sourceTree
=
"<group>"
;
};
...
...
@@ -786,8 +780,6 @@
841ADDFA1CB6C942000004B0
/* NSString+BUYAdditions.m */
,
841ADDFB1CB6C942000004B0
/* NSURL+BUYAdditions.h */
,
841ADDFC1CB6C942000004B0
/* NSURL+BUYAdditions.m */
,
841ADDFD1CB6C942000004B0
/* NSURLComponents+BUYAdditions.h */
,
841ADDFE1CB6C942000004B0
/* NSURLComponents+BUYAdditions.m */
,
);
path
=
Additions
;
sourceTree
=
"<group>"
;
...
...
@@ -1263,7 +1255,6 @@
84980F531CB7616900CFAB58
/* BUYDecimalNumberTransformer.h in Headers */
,
901931421BC5B9BC00D1134E
/* BUYMaskedCreditCard.h in Headers */
,
841ADE201CB6C942000004B0
/* NSURL+BUYAdditions.h in Headers */
,
841ADE241CB6C942000004B0
/* NSURLComponents+BUYAdditions.h in Headers */
,
B2653EC41CEF55CC0012D57D
/* BUYModelManager+ApplePay.h in Headers */
,
841ADE141CB6C942000004B0
/* NSException+BUYAdditions.h in Headers */
,
841ADE041CB6C942000004B0
/* NSDate+BUYAdditions.h in Headers */
,
...
...
@@ -1363,7 +1354,6 @@
841ADE0F1CB6C942000004B0
/* NSDictionary+BUYAdditions.h in Headers */
,
841ADE1F1CB6C942000004B0
/* NSURL+BUYAdditions.h in Headers */
,
B2653EC31CEF55CC0012D57D
/* BUYModelManager+ApplePay.h in Headers */
,
841ADE231CB6C942000004B0
/* NSURLComponents+BUYAdditions.h in Headers */
,
84980F2C1CB75B5E00CFAB58
/* BUYModelManagerProtocol.h in Headers */
,
84D73C031CDD1944000F978A
/* BUYAddress.h in Headers */
,
841ADE131CB6C942000004B0
/* NSException+BUYAdditions.h in Headers */
,
...
...
@@ -1669,7 +1659,6 @@
901931121BC5B9BC00D1134E
/* BUYMaskedCreditCard.m in Sources */
,
901931131BC5B9BC00D1134E
/* BUYCheckout.m in Sources */
,
84DD12A61CC63FE600A2442D
/* _BUYOption.m in Sources */
,
841ADE261CB6C942000004B0
/* NSURLComponents+BUYAdditions.m in Sources */
,
8498DCAF1CDD1B2F00BD12A8
/* BUYError+BUYAdditions.m in Sources */
,
84DD12D01CC6401400A2442D
/* BUYCustomer.m in Sources */
,
84980F391CB75C2900CFAB58
/* NSPropertyDescription+BUYAdditions.m in Sources */
,
...
...
@@ -1811,7 +1800,6 @@
BE5DC3641B71022D00B2BC1E
/* BUYMaskedCreditCard.m in Sources */
,
BE9A644C1B503C9F0033E558
/* BUYCheckout.m in Sources */
,
84DD128E1CC63FE600A2442D
/* _BUYOption.m in Sources */
,
841ADE251CB6C942000004B0
/* NSURLComponents+BUYAdditions.m in Sources */
,
8498DCAD1CDD1B2F00BD12A8
/* BUYError+BUYAdditions.m in Sources */
,
84DD12CE1CC6401400A2442D
/* BUYCustomer.m in Sources */
,
84980F381CB75C2900CFAB58
/* NSPropertyDescription+BUYAdditions.m in Sources */
,
...
...
This diff is collapsed.
Click to expand it.
Mobile Buy SDK/Mobile Buy SDK/Additions/NSURLComponents+BUYAdditions.h
deleted
100644 → 0
View file @
a80871f6
//
// NSURLComponents+BUYAdditions.h
// Mobile Buy SDK
//
// Created by Shopify.
// Copyright (c) 2015 Shopify Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
@import
Foundation
;
@interface
NSURLComponents
(
BUYAdditions
)
-
(
void
)
setQueryItemsWithDictionary
:(
NSDictionary
*
)
namesAndValues
;
@end
This diff is collapsed.
Click to expand it.
Mobile Buy SDK/Mobile Buy SDK/Additions/NSURLComponents+BUYAdditions.m
deleted
100644 → 0
View file @
a80871f6
//
// NSURLComponents+BUYAdditions.m
// Mobile Buy SDK
//
// Created by Shopify.
// Copyright (c) 2015 Shopify Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
#import "NSURLComponents+BUYAdditions.h"
@implementation
NSURLComponents
(
BUYAdditions
)
-
(
void
)
setQueryItemsWithDictionary
:(
NSDictionary
*
)
dictionary
{
if
(
dictionary
)
{
NSMutableArray
*
queryItems
=
[
NSMutableArray
array
];
for
(
NSString
*
key
in
[
dictionary
allKeys
])
{
NSString
*
value
=
[
dictionary
[
key
]
length
]
?
dictionary
[
key
]
:
nil
;
[
queryItems
addObject
:[[
NSURLQueryItem
alloc
]
initWithName
:
key
value
:
value
]];
}
self
.
queryItems
=
[
queryItems
copy
];
}
}
@end
This diff is collapsed.
Click to expand it.
Mobile Buy SDK/Mobile Buy SDK/Buy.h
View file @
c1ac37fc
...
...
@@ -90,4 +90,3 @@ FOUNDATION_EXPORT const unsigned char BuyVersionString[];
#import <Buy/NSRegularExpression+BUYAdditions.h>
#import <Buy/NSString+BUYAdditions.h>
#import <Buy/NSURL+BUYAdditions.h>
#import <Buy/NSURLComponents+BUYAdditions.h>
This diff is collapsed.
Click to expand it.
Mobile Buy SDK/Mobile Buy SDK/Static Framework/Buy.h
View file @
c1ac37fc
...
...
@@ -87,4 +87,3 @@
#import "NSRegularExpression+BUYAdditions.h"
#import "NSString+BUYAdditions.h"
#import "NSURL+BUYAdditions.h"
#import "NSURLComponents+BUYAdditions.h"
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