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
5c64de6e
Commit
5c64de6e
authored
May 18, 2016
by
Dima Bart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move BUYImageKit and UIFont extensions into sample app.
parent
a8a9b788
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
368 additions
and
46 deletions
+368
-46
BUYImageKit.h
...mple Apps/Sample App Advanced/Library/Utils/BUYImageKit.h
+0
-0
BUYImageKit.m
...mple Apps/Sample App Advanced/Library/Utils/BUYImageKit.m
+0
-0
UIFont+BUYAdditions.h
...s/Sample App Advanced/Library/Utils/UIFont+BUYAdditions.h
+0
-0
UIFont+BUYAdditions.m
...s/Sample App Advanced/Library/Utils/UIFont+BUYAdditions.m
+0
-0
project.pbxproj
.../Mobile Buy SDK Advanced Sample.xcodeproj/project.pbxproj
+20
-0
BUYImageKit.h
...vanced/Mobile Buy SDK Advanced Sample/Utils/BUYImageKit.h
+83
-0
BUYImageKit.m
...vanced/Mobile Buy SDK Advanced Sample/Utils/BUYImageKit.m
+219
-0
UIFont+BUYAdditions.h
...obile Buy SDK Advanced Sample/Utils/UIFont+BUYAdditions.h
+41
-0
UIFont+BUYAdditions.m
...obile Buy SDK Advanced Sample/Utils/UIFont+BUYAdditions.m
+5
-18
project.pbxproj
Mobile Buy SDK/Mobile Buy SDK.xcodeproj/project.pbxproj
+0
-28
No files found.
Mobile Buy SDK
/Mobile Buy SDK
/Utils/BUYImageKit.h
→
Mobile Buy SDK
Sample Apps/Sample App Advanced/Library
/Utils/BUYImageKit.h
View file @
5c64de6e
File moved
Mobile Buy SDK
/Mobile Buy SDK
/Utils/BUYImageKit.m
→
Mobile Buy SDK
Sample Apps/Sample App Advanced/Library
/Utils/BUYImageKit.m
View file @
5c64de6e
File moved
Mobile Buy SDK
/Mobile Buy SDK
/Utils/UIFont+BUYAdditions.h
→
Mobile Buy SDK
Sample Apps/Sample App Advanced/Library
/Utils/UIFont+BUYAdditions.h
View file @
5c64de6e
File moved
Mobile Buy SDK
/Mobile Buy SDK
/Utils/UIFont+BUYAdditions.m
→
Mobile Buy SDK
Sample Apps/Sample App Advanced/Library
/Utils/UIFont+BUYAdditions.m
View file @
5c64de6e
File moved
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample.xcodeproj/project.pbxproj
View file @
5c64de6e
...
...
@@ -52,6 +52,8 @@
90B262411BB0A726006D888F
/* ProductViewControllerToggleTableViewCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
90B262401BB0A726006D888F
/* ProductViewControllerToggleTableViewCell.m */
;
};
90B262441BB18B10006D888F
/* ProductViewControllerThemeTintColorTableViewCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
90B262431BB18B10006D888F
/* ProductViewControllerThemeTintColorTableViewCell.m */
;
};
9A0B0C871CEC8F370037D68F
/* BUYPaymentButton.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A0B0C861CEC8F370037D68F
/* BUYPaymentButton.m */
;
};
9A0B0C921CEC90D40037D68F
/* BUYImageKit.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A0B0C8F1CEC90D40037D68F
/* BUYImageKit.m */
;
};
9A0B0C931CEC90D40037D68F
/* UIFont+BUYAdditions.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A0B0C911CEC90D40037D68F
/* UIFont+BUYAdditions.m */
;
};
BE3437A21BC5C19D00C71330
/* Buy.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
BE34379F1BC5C18400C71330
/* Buy.framework */
;
};
BE3437A31BC5C19D00C71330
/* Buy.framework in Embed Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
BE34379F1BC5C18400C71330
/* Buy.framework */
;
settings
=
{
ATTRIBUTES
=
(
CodeSignOnCopy
,
RemoveHeadersOnCopy
,
);
};
};
BE8B82511B8CF49D00E3F871
/* main.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
BE8B82501B8CF49D00E3F871
/* main.m */
;
};
...
...
@@ -208,6 +210,10 @@
90B262431BB18B10006D888F
/* ProductViewControllerThemeTintColorTableViewCell.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ProductViewControllerThemeTintColorTableViewCell.m
;
sourceTree
=
"<group>"
;
};
9A0B0C851CEC8F370037D68F
/* BUYPaymentButton.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYPaymentButton.h
;
sourceTree
=
"<group>"
;
};
9A0B0C861CEC8F370037D68F
/* BUYPaymentButton.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYPaymentButton.m
;
sourceTree
=
"<group>"
;
};
9A0B0C8E1CEC90D40037D68F
/* BUYImageKit.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYImageKit.h
;
sourceTree
=
"<group>"
;
};
9A0B0C8F1CEC90D40037D68F
/* BUYImageKit.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYImageKit.m
;
sourceTree
=
"<group>"
;
};
9A0B0C901CEC90D40037D68F
/* UIFont+BUYAdditions.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
"UIFont+BUYAdditions.h"
;
sourceTree
=
"<group>"
;
};
9A0B0C911CEC90D40037D68F
/* UIFont+BUYAdditions.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
"UIFont+BUYAdditions.m"
;
sourceTree
=
"<group>"
;
};
BE34378F1BC5C18400C71330
/* Mobile Buy SDK.xcodeproj */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
"wrapper.pb-project"
;
name
=
"Mobile Buy SDK.xcodeproj"
;
path
=
"../../Mobile Buy SDK/Mobile Buy SDK.xcodeproj"
;
sourceTree
=
"<group>"
;
};
BE5E28451B94F5C300D2ECB5
/* Mobile Buy SDK Advanced Sample.entitlements */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
text.xml
;
path
=
"Mobile Buy SDK Advanced Sample.entitlements"
;
sourceTree
=
"<group>"
;
};
BE8B824B1B8CF49D00E3F871
/* Mobile Buy SDK Advanced Sample.app */
=
{
isa
=
PBXFileReference
;
explicitFileType
=
wrapper.application
;
includeInIndex
=
0
;
path
=
"Mobile Buy SDK Advanced Sample.app"
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
...
...
@@ -379,6 +385,17 @@
name
=
"Table View Cells"
;
sourceTree
=
"<group>"
;
};
9A0B0C8D1CEC90D40037D68F
/* Utils */
=
{
isa
=
PBXGroup
;
children
=
(
9A0B0C8E1CEC90D40037D68F
/* BUYImageKit.h */
,
9A0B0C8F1CEC90D40037D68F
/* BUYImageKit.m */
,
9A0B0C901CEC90D40037D68F
/* UIFont+BUYAdditions.h */
,
9A0B0C911CEC90D40037D68F
/* UIFont+BUYAdditions.m */
,
);
path
=
Utils
;
sourceTree
=
"<group>"
;
};
BE3437901BC5C18400C71330
/* Products */
=
{
isa
=
PBXGroup
;
children
=
(
...
...
@@ -412,6 +429,7 @@
children
=
(
BE8B82521B8CF49D00E3F871
/* AppDelegate.h */
,
BE8B82531B8CF49D00E3F871
/* AppDelegate.m */
,
9A0B0C8D1CEC90D40037D68F
/* Utils */
,
847612231CAB047600AB17AA
/* Appearance */
,
8476128F1CAB059100AB17AA
/* PaymentButton */
,
BE948D4C1B95087A009AB20B
/* Images.xcassets */
,
...
...
@@ -602,11 +620,13 @@
902C9B8F1BB0729F00FC456E
/* ShippingRateTableViewCell.m in Sources */
,
BE8B829A1B8E72CC00E3F871
/* CheckoutViewController.m in Sources */
,
847612681CAB047600AB17AA
/* Theme+Additions.m in Sources */
,
9A0B0C931CEC90D40037D68F
/* UIFont+BUYAdditions.m in Sources */
,
847612831CAB047600AB17AA
/* VariantOptionView.m in Sources */
,
847612981CAB059100AB17AA
/* UIImage+PaymentButton.m in Sources */
,
8476126E1CAB047600AB17AA
/* CheckoutButton.m in Sources */
,
8476127E1CAB047600AB17AA
/* OptionSelectionNavigationController.m in Sources */
,
847612971CAB059100AB17AA
/* UIButton+PaymentButton.m in Sources */
,
9A0B0C921CEC90D40037D68F
/* BUYImageKit.m in Sources */
,
847612761CAB047600AB17AA
/* ProductVariantCell.m in Sources */
,
847612691CAB047600AB17AA
/* Theme.m in Sources */
,
847612701CAB047600AB17AA
/* GradientView.m in Sources */
,
...
...
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/Utils/BUYImageKit.h
0 → 100644
View file @
5c64de6e
//
// BUYImageKit.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
;
@import
UIKit
;
/**
* Image generator for a variety of images using the BUYProductViewController.
*/
@interface
BUYImageKit
:
NSObject
/**
* Generates a close button image for the variant selection navigation bar.
*
* @param frame The frame size of the image
*
* @return A close button image
*/
+
(
UIImage
*
)
imageOfVariantCloseImageWithFrame
:
(
CGRect
)
frame
;
/**
* Generates a checkmark image for use of displaying the previously selected variant
*
* @param frame The frame size of the image
*
* @return A checkmark for the previous variant selection
*/
+
(
UIImage
*
)
imageOfPreviousSelectionIndicatorImageWithFrame
:
(
CGRect
)
frame
;
/**
* Generates a custom disclosure indicator image
*
* @param frame The frame size of the image
* @param color The color for the disclosure indicator
*
* @return A disclusore indicator image
*/
+
(
UIImage
*
)
imageOfDisclosureIndicatorImageWithFrame
:
(
CGRect
)
frame
color
:(
UIColor
*
)
color
;
/**
* Generates a close button image for the product view's navigation bar
*
* @param frame The frame size of the image
* @param color The color for the close button image
* @param hasShadow True if the X should have a drop shadow
*
* @return A close button image
*/
+
(
UIImage
*
)
imageOfProductViewCloseImageWithFrame
:
(
CGRect
)
frame
color
:(
UIColor
*
)
color
hasShadow
:(
BOOL
)
hasShadow
;
/**
* Generates a custom back button image for the variant selection navigation bar
*
* @param frame The frame size of the image
*
* @return A custom back button image
*/
+
(
UIImage
*
)
imageOfVariantBackImageWithFrame
:
(
CGRect
)
frame
;
@end
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/Utils/BUYImageKit.m
0 → 100644
View file @
5c64de6e
//
// BUYImageKit.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 "BUYImageKit.h"
@implementation
BUYImageKit
#pragma mark Drawing Methods
+
(
void
)
drawVariantCloseImageWithFrame
:
(
CGRect
)
frame
{
//// Color Declarations
UIColor
*
closeColor
=
[
UIColor
colorWithRed
:
0
.
596
f
green
:
0
.
596
f
blue
:
0
.
596
f
alpha
:
1
];
//// Variant Close Icon Drawing
UIBezierPath
*
variantCloseIconPath
=
UIBezierPath
.
bezierPath
;
[
variantCloseIconPath
moveToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
13971
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
16669
f
*
CGRectGetHeight
(
frame
))];
[
variantCloseIconPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
93886
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
87988
f
*
CGRectGetHeight
(
frame
))];
[
variantCloseIconPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
86029
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
95000
f
*
CGRectGetHeight
(
frame
))];
[
variantCloseIconPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
06114
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
23681
f
*
CGRectGetHeight
(
frame
))];
[
variantCloseIconPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
13971
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
16669
f
*
CGRectGetHeight
(
frame
))];
[
variantCloseIconPath
closePath
];
[
variantCloseIconPath
moveToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
86029
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
16669
f
*
CGRectGetHeight
(
frame
))];
[
variantCloseIconPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
93886
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
23681
f
*
CGRectGetHeight
(
frame
))];
[
variantCloseIconPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
13971
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
95000
f
*
CGRectGetHeight
(
frame
))];
[
variantCloseIconPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
06114
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
87988
f
*
CGRectGetHeight
(
frame
))];
[
variantCloseIconPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
86029
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
16669
f
*
CGRectGetHeight
(
frame
))];
[
variantCloseIconPath
closePath
];
[
closeColor
setFill
];
[
variantCloseIconPath
fill
];
}
+
(
void
)
drawPreviousSelectionIndicatorImageWithFrame
:
(
CGRect
)
frame
{
//// Color Declarations
UIColor
*
indicatorColor
=
[
UIColor
colorWithRed
:
0
green
:
0
blue
:
0
alpha
:
1
];
//// Previous Selection Indicator Drawing
UIBezierPath
*
previousSelectionIndicatorPath
=
UIBezierPath
.
bezierPath
;
[
previousSelectionIndicatorPath
moveToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
50000
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
1
.
00000
f
*
CGRectGetHeight
(
frame
))];
[
previousSelectionIndicatorPath
addCurveToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
00000
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
50000
f
*
CGRectGetHeight
(
frame
))
controlPoint1
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
22386
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
1
.
00000
f
*
CGRectGetHeight
(
frame
))
controlPoint2
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
00000
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
77614
f
*
CGRectGetHeight
(
frame
))];
[
previousSelectionIndicatorPath
addCurveToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
50000
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
00000
f
*
CGRectGetHeight
(
frame
))
controlPoint1
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
00000
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
22386
f
*
CGRectGetHeight
(
frame
))
controlPoint2
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
22386
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
00000
f
*
CGRectGetHeight
(
frame
))];
[
previousSelectionIndicatorPath
addCurveToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
1
.
00000
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
50000
f
*
CGRectGetHeight
(
frame
))
controlPoint1
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
77614
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
00000
f
*
CGRectGetHeight
(
frame
))
controlPoint2
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
1
.
00000
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
22386
f
*
CGRectGetHeight
(
frame
))];
[
previousSelectionIndicatorPath
addCurveToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
50000
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
1
.
00000
f
*
CGRectGetHeight
(
frame
))
controlPoint1
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
1
.
00000
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
77614
f
*
CGRectGetHeight
(
frame
))
controlPoint2
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
77614
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
1
.
00000
f
*
CGRectGetHeight
(
frame
))];
[
previousSelectionIndicatorPath
closePath
];
[
previousSelectionIndicatorPath
moveToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
74926
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
28003
f
*
CGRectGetHeight
(
frame
))];
[
previousSelectionIndicatorPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
40000
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
62929
f
*
CGRectGetHeight
(
frame
))];
[
previousSelectionIndicatorPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
25074
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
48003
f
*
CGRectGetHeight
(
frame
))];
[
previousSelectionIndicatorPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
18002
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
55074
f
*
CGRectGetHeight
(
frame
))];
[
previousSelectionIndicatorPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
39926
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
76997
f
*
CGRectGetHeight
(
frame
))];
[
previousSelectionIndicatorPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
40000
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
76924
f
*
CGRectGetHeight
(
frame
))];
[
previousSelectionIndicatorPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
40073
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
76997
f
*
CGRectGetHeight
(
frame
))];
[
previousSelectionIndicatorPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
81997
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
35074
f
*
CGRectGetHeight
(
frame
))];
[
previousSelectionIndicatorPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
74926
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
28003
f
*
CGRectGetHeight
(
frame
))];
[
previousSelectionIndicatorPath
closePath
];
[
indicatorColor
setFill
];
[
previousSelectionIndicatorPath
fill
];
}
+
(
void
)
drawDisclosureIndicatorImageWithFrame
:
(
CGRect
)
frame
color
:(
UIColor
*
)
arrowColor
{
//// Disclosure Indicator Drawing
UIBezierPath
*
disclosureIndicatorPath
=
UIBezierPath
.
bezierPath
;
[
disclosureIndicatorPath
moveToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
25149
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
06
878
f
*
CGRectGetHeight
(
frame
))];
[
disclosureIndicatorPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
93995
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
49908
f
*
CGRectGetHeight
(
frame
))];
[
disclosureIndicatorPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
79854
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
58746
f
*
CGRectGetHeight
(
frame
))];
[
disclosureIndicatorPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
11004
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
15717
f
*
CGRectGetHeight
(
frame
))];
[
disclosureIndicatorPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
25149
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
06
878
f
*
CGRectGetHeight
(
frame
))];
[
disclosureIndicatorPath
closePath
];
[
disclosureIndicatorPath
moveToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
79854
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
41253
f
*
CGRectGetHeight
(
frame
))];
[
disclosureIndicatorPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
93995
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
50092
f
*
CGRectGetHeight
(
frame
))];
[
disclosureIndicatorPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
25149
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
93121
f
*
CGRectGetHeight
(
frame
))];
[
disclosureIndicatorPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
11004
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
84282
f
*
CGRectGetHeight
(
frame
))];
[
disclosureIndicatorPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
79854
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
41253
f
*
CGRectGetHeight
(
frame
))];
[
disclosureIndicatorPath
closePath
];
[
arrowColor
setFill
];
[
disclosureIndicatorPath
fill
];
}
+
(
void
)
drawProductViewCloseImageWithFrame
:
(
CGRect
)
frame
color
:(
UIColor
*
)
closeColor2
hasShadow
:(
BOOL
)
hasShadow
{
//// General Declarations
CGContextRef
context
=
UIGraphicsGetCurrentContext
();
//// Color Declarations
UIColor
*
closeShadowColor
=
[
UIColor
colorWithRed
:
0
green
:
0
blue
:
0
alpha
:
1
];
//// Shadow Declarations
NSShadow
*
closeDropShadow
=
[[
NSShadow
alloc
]
init
];
[
closeDropShadow
setShadowColor
:
[
closeShadowColor
colorWithAlphaComponent
:
0
.
15
f
]];
[
closeDropShadow
setShadowOffset
:
CGSizeMake
(
0
.
1
f
,
1
.
1
f
)];
[
closeDropShadow
setShadowBlurRadius
:
2
];
//// Close Icon Drawing
UIBezierPath
*
closeIconPath
=
UIBezierPath
.
bezierPath
;
[
closeIconPath
moveToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
11431
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
09548
f
*
CGRectGetHeight
(
frame
))];
[
closeIconPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
85907
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
84024
f
*
CGRectGetHeight
(
frame
))];
[
closeIconPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
79479
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
90452
f
*
CGRectGetHeight
(
frame
))];
[
closeIconPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
05002
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
15976
f
*
CGRectGetHeight
(
frame
))];
[
closeIconPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
11431
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
09548
f
*
CGRectGetHeight
(
frame
))];
[
closeIconPath
closePath
];
[
closeIconPath
moveToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
79479
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
09548
f
*
CGRectGetHeight
(
frame
))];
[
closeIconPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
85907
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
15976
f
*
CGRectGetHeight
(
frame
))];
[
closeIconPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
11431
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
90452
f
*
CGRectGetHeight
(
frame
))];
[
closeIconPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
05002
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
84024
f
*
CGRectGetHeight
(
frame
))];
[
closeIconPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
79479
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
09548
f
*
CGRectGetHeight
(
frame
))];
[
closeIconPath
closePath
];
CGContextSaveGState
(
context
);
if
(
hasShadow
)
{
CGContextSetShadowWithColor
(
context
,
closeDropShadow
.
shadowOffset
,
closeDropShadow
.
shadowBlurRadius
,
[
closeDropShadow
.
shadowColor
CGColor
]);
}
[
closeColor2
setFill
];
[
closeIconPath
fill
];
CGContextRestoreGState
(
context
);
}
+
(
void
)
drawVariantBackImageWithFrame
:
(
CGRect
)
frame
{
//// Color Declarations
UIColor
*
indicatorColor3
=
[
UIColor
colorWithRed
:
0
.
596
f
green
:
0
.
596
f
blue
:
0
.
596
f
alpha
:
1
];
//// Variant Back Indicator Drawing
UIBezierPath
*
variantBackIndicatorPath
=
UIBezierPath
.
bezierPath
;
[
variantBackIndicatorPath
moveToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
20956
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
42225
f
*
CGRectGetHeight
(
frame
))];
[
variantBackIndicatorPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
86663
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
86029
f
*
CGRectGetHeight
(
frame
))];
[
variantBackIndicatorPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
74878
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
93886
f
*
CGRectGetHeight
(
frame
))];
[
variantBackIndicatorPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
09171
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
50082
f
*
CGRectGetHeight
(
frame
))];
[
variantBackIndicatorPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
20956
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
42225
f
*
CGRectGetHeight
(
frame
))];
[
variantBackIndicatorPath
closePath
];
[
variantBackIndicatorPath
moveToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
74878
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
06114
f
*
CGRectGetHeight
(
frame
))];
[
variantBackIndicatorPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
86663
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
13971
f
*
CGRectGetHeight
(
frame
))];
[
variantBackIndicatorPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
20956
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
57775
f
*
CGRectGetHeight
(
frame
))];
[
variantBackIndicatorPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
09171
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
49918
f
*
CGRectGetHeight
(
frame
))];
[
variantBackIndicatorPath
addLineToPoint
:
CGPointMake
(
CGRectGetMinX
(
frame
)
+
0
.
74878
f
*
CGRectGetWidth
(
frame
),
CGRectGetMinY
(
frame
)
+
0
.
06114
f
*
CGRectGetHeight
(
frame
))];
[
variantBackIndicatorPath
closePath
];
[
indicatorColor3
setFill
];
[
variantBackIndicatorPath
fill
];
}
#pragma mark Generated Images
+
(
UIImage
*
)
imageOfVariantCloseImageWithFrame
:
(
CGRect
)
frame
{
UIGraphicsBeginImageContextWithOptions
(
frame
.
size
,
NO
,
0
.
0
f
);
[
BUYImageKit
drawVariantCloseImageWithFrame
:
frame
];
UIImage
*
imageOfVariantCloseImage
=
UIGraphicsGetImageFromCurrentImageContext
();
UIGraphicsEndImageContext
();
return
imageOfVariantCloseImage
;
}
+
(
UIImage
*
)
imageOfPreviousSelectionIndicatorImageWithFrame
:
(
CGRect
)
frame
{
UIGraphicsBeginImageContextWithOptions
(
frame
.
size
,
NO
,
0
.
0
f
);
[
BUYImageKit
drawPreviousSelectionIndicatorImageWithFrame
:
frame
];
UIImage
*
imageOfPreviousSelectionIndicatorImage
=
UIGraphicsGetImageFromCurrentImageContext
();
UIGraphicsEndImageContext
();
return
imageOfPreviousSelectionIndicatorImage
;
}
+
(
UIImage
*
)
imageOfDisclosureIndicatorImageWithFrame
:
(
CGRect
)
frame
color
:(
UIColor
*
)
color
;
{
UIGraphicsBeginImageContextWithOptions
(
frame
.
size
,
NO
,
0
.
0
f
);
[
BUYImageKit
drawDisclosureIndicatorImageWithFrame
:
frame
color
:
color
];
UIImage
*
imageOfDisclosureIndicatorImage
=
UIGraphicsGetImageFromCurrentImageContext
();
UIGraphicsEndImageContext
();
return
imageOfDisclosureIndicatorImage
;
}
+
(
UIImage
*
)
imageOfProductViewCloseImageWithFrame
:
(
CGRect
)
frame
color
:
(
UIColor
*
)
color
hasShadow
:
(
BOOL
)
hasShadow
;
{
UIGraphicsBeginImageContextWithOptions
(
frame
.
size
,
NO
,
0
.
0
f
);
[
BUYImageKit
drawProductViewCloseImageWithFrame
:
frame
color
:
color
hasShadow
:
hasShadow
];
UIImage
*
imageOfProductViewCloseImage
=
UIGraphicsGetImageFromCurrentImageContext
();
UIGraphicsEndImageContext
();
return
imageOfProductViewCloseImage
;
}
+
(
UIImage
*
)
imageOfVariantBackImageWithFrame
:
(
CGRect
)
frame
{
UIGraphicsBeginImageContextWithOptions
(
frame
.
size
,
NO
,
0
.
0
f
);
[
BUYImageKit
drawVariantBackImageWithFrame
:
frame
];
UIImage
*
imageOfVariantBackImage
=
UIGraphicsGetImageFromCurrentImageContext
();
UIGraphicsEndImageContext
();
return
imageOfVariantBackImage
;
}
@end
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/Utils/UIFont+BUYAdditions.h
0 → 100644
View file @
5c64de6e
//
// BUYFont.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
UIKit
;
@interface
UIFont
(
BUYAdditions
)
/**
* Class method to allow system fonts to have increased point sizes from the OS default.
*
* @param style The text style for the font.
* @param size A positive value to increase the default font's point size by.
*
* @return A system font with an optionally increased point size.
*/
+
(
UIFont
*
)
preferredFontForTextStyle
:(
NSString
*
)
style
increasedPointSize
:(
CGFloat
)
size
;
@end
Mobile Buy SDK
/Mobile Buy SDK Tests/BUYFontAdditionsTest
s.m
→
Mobile Buy SDK
Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/Utils/UIFont+BUYAddition
s.m
View file @
5c64de6e
//
// BUYFont
AdditionsTests
.m
// BUYFont.m
// Mobile Buy SDK
//
// Created by Shopify.
...
...
@@ -24,27 +24,14 @@
// THE SOFTWARE.
//
#import <XCTest/XCTest.h>
#import "UIFont+BUYAdditions.h"
@i
nterface
BUYFontAdditionsTests
:
XCTestCase
@i
mplementation
UIFont
(
BUYAdditions
)
@end
@implementation
BUYFontAdditionsTests
-
(
void
)
testIncreasedFontSize
+
(
UIFont
*
)
preferredFontForTextStyle
:(
NSString
*
)
style
increasedPointSize
:(
CGFloat
)
size
{
static
CGFloat
const
increase
=
2
.
0
;
UIFont
*
font
=
[
UIFont
preferredFontForTextStyle
:
UIFontTextStyleBody
];
CGFloat
newSize
=
font
.
pointSize
+
increase
;
NSMutableDictionary
*
attributes
=
[
font
.
fontDescriptor
.
fontAttributes
mutableCopy
];
attributes
[
UIFontDescriptorSizeAttribute
]
=
@
(
newSize
);
UIFont
*
expected
=
[
UIFont
fontWithDescriptor
:[
UIFontDescriptor
fontDescriptorWithFontAttributes
:
attributes
]
size
:
newSize
];
UIFont
*
actual
=
[
UIFont
preferredFontForTextStyle
:
UIFontTextStyleBody
increasedPointSize
:
increase
];
XCTAssertEqualObjects
(
actual
,
expected
);
UIFontDescriptor
*
descriptor
=
[
UIFontDescriptor
preferredFontDescriptorWithTextStyle
:
style
];
return
[
UIFont
fontWithDescriptor
:
descriptor
size
:
descriptor
.
pointSize
+
size
];
}
@end
Mobile Buy SDK/Mobile Buy SDK.xcodeproj/project.pbxproj
View file @
5c64de6e
...
...
@@ -80,7 +80,6 @@
849110351CCE70CE00E53B93
/* BUYDictionaryAdditionsTests.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
849110341CCE70CE00E53B93
/* BUYDictionaryAdditionsTests.m */
;
};
8491103A1CCE718100E53B93
/* BUYExceptionAdditionsTests.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
849110391CCE718100E53B93
/* BUYExceptionAdditionsTests.m */
;
};
8491103C1CCE731900E53B93
/* BUYURLAdditionsTests.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
8491103B1CCE731900E53B93
/* BUYURLAdditionsTests.m */
;
};
8491103E1CCE988600E53B93
/* BUYFontAdditionsTests.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
8491103D1CCE988600E53B93
/* BUYFontAdditionsTests.m */
;
};
849110441CCE9F3F00E53B93
/* BUYTransformerTests.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
849110431CCE9F3F00E53B93
/* BUYTransformerTests.m */
;
};
8491104A1CCEA85C00E53B93
/* BUYObserverTests.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
849110461CCEA85C00E53B93
/* BUYObserverTests.m */
;
};
84980F291CB75AC200CFAB58
/* BUYObjectProtocol.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
84980F281CB75AC200CFAB58
/* BUYObjectProtocol.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
...
...
@@ -268,8 +267,6 @@
84DD12D01CC6401400A2442D
/* BUYCustomer.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
84D915731CC0416800D334FB
/* BUYCustomer.m */
;
};
9003969B1B601DF400226B73
/* BUYCartLineItem.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
900396991B601DF400226B73
/* BUYCartLineItem.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
9003969C1B601DF400226B73
/* BUYCartLineItem.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9003969A1B601DF400226B73
/* BUYCartLineItem.m */
;
};
900E7C841B5DA553006F3C81
/* BUYImageKit.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
900E7C811B5DA32F006F3C81
/* BUYImageKit.h */
;
};
900E7C851B5DA559006F3C81
/* BUYImageKit.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
900E7C821B5DA32F006F3C81
/* BUYImageKit.m */
;
};
901930E31BC5B9BC00D1134E
/* BUYApplePayHelpers.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
BE33B4EE1B15FF4D0067982B
/* BUYApplePayHelpers.m */
;
};
901930E81BC5B9BC00D1134E
/* BUYImageLink.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2AF52A7A1A700B0A0087DB2C
/* BUYImageLink.m */
;
};
901930E91BC5B9BC00D1134E
/* BUYProductVariant.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2AF52A821A700B0A0087DB2C
/* BUYProductVariant.m */
;
};
...
...
@@ -289,10 +286,8 @@
901931121BC5B9BC00D1134E
/* BUYMaskedCreditCard.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
BE5DC3621B71022D00B2BC1E
/* BUYMaskedCreditCard.m */
;
};
901931131BC5B9BC00D1134E
/* BUYCheckout.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F773749519C77C260039681C
/* BUYCheckout.m */
;
};
901931161BC5B9BC00D1134E
/* BUYShippingRate.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
90AFAA651B01398A00F21C23
/* BUYShippingRate.m */
;
};
9019311A1BC5B9BC00D1134E
/* BUYImageKit.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
900E7C821B5DA32F006F3C81
/* BUYImageKit.m */
;
};
9019311C1BC5B9BC00D1134E
/* BUYOption.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2AF52A801A700B0A0087DB2C
/* BUYOption.m */
;
};
9019311D1BC5B9BC00D1134E
/* BUYClient.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F7FDA17119C93F6F00AF4E93
/* BUYClient.m */
;
};
9019311E1BC5B9BC00D1134E
/* UIFont+BUYAdditions.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
909944481B71B76800C40A33
/* UIFont+BUYAdditions.m */
;
};
901931201BC5B9BC00D1134E
/* BUYCreditCard.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F77374AB19C796BD0039681C
/* BUYCreditCard.m */
;
};
901931221BC5B9BC00D1134E
/* BUYShop.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2AF52A841A700B0A0087DB2C
/* BUYShop.m */
;
};
901931231BC5B9BC00D1134E
/* BUYObject.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2AF52A941A7010B20087DB2C
/* BUYObject.m */
;
};
...
...
@@ -308,13 +303,11 @@
9019313D1BC5B9BC00D1134E
/* BUYShippingRate.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
90AFAA641B01398A00F21C23
/* BUYShippingRate.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
9019313E1BC5B9BC00D1134E
/* BUYApplePayAdditions.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F70CE40D1A8BF1D90055BEB8
/* BUYApplePayAdditions.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
901931421BC5B9BC00D1134E
/* BUYMaskedCreditCard.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
BE5DC3611B71022D00B2BC1E
/* BUYMaskedCreditCard.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
901931451BC5B9BC00D1134E
/* UIFont+BUYAdditions.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
909944471B71B76800C40A33
/* UIFont+BUYAdditions.h */
;
};
901931491BC5B9BC00D1134E
/* BUYGiftCard.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
42488B321AB8761A005F21A9
/* BUYGiftCard.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
901931501BC5B9BC00D1134E
/* BUYOrder.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
90E83BC21B9F550E00C95A1B
/* BUYOrder.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
901931571BC5B9BC00D1134E
/* BUYObject.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2AF52A931A7010B20087DB2C
/* BUYObject.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
901931581BC5B9BC00D1134E
/* BUYRuntime.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2AF52A731A700AC80087DB2C
/* BUYRuntime.h */
;
};
901931591BC5B9BC00D1134E
/* BUYCollection.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
BEB74A8E1B55A3D00005A300
/* BUYCollection.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
9019315B1BC5B9BC00D1134E
/* BUYImageKit.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
900E7C811B5DA32F006F3C81
/* BUYImageKit.h */
;
};
9019315E1BC5B9BC00D1134E
/* BUYError.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
BE47340D1B66C4EF00AA721A
/* BUYError.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
901931611BC5B9BC00D1134E
/* BUYClient.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F7FDA17019C93F6F00AF4E93
/* BUYClient.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
901931641BC5B9BC00D1134E
/* BUYCartLineItem.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
900396991B601DF400226B73
/* BUYCartLineItem.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
...
...
@@ -330,8 +323,6 @@
906CF1AD1B8B5F7D001F7D5B
/* BUYNSPersonNameComponents.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
906CF1AC1B8B5F7D001F7D5B
/* BUYNSPersonNameComponents.m */
;
};
906CF1B11B8B66AE001F7D5B
/* BUYCNPostalAddress.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
906CF1B01B8B66AE001F7D5B
/* BUYCNPostalAddress.m */
;
};
9089CC5E1BB48D06009726D6
/* BUYCollection.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9089CC5D1BB48D06009726D6
/* BUYCollection.m */
;
};
909944491B71B76800C40A33
/* UIFont+BUYAdditions.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
909944471B71B76800C40A33
/* UIFont+BUYAdditions.h */
;
};
9099444A1B71B76800C40A33
/* UIFont+BUYAdditions.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
909944481B71B76800C40A33
/* UIFont+BUYAdditions.m */
;
};
90BBCD731B87B6BA00FCCE51
/* BUYPKContact.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
90BBCD701B87B6AB00FCCE51
/* BUYPKContact.m */
;
};
90C27AAF1BB2E8F3008AF7A4
/* libOHHTTPStubs.a in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
BE98DB501BB1ED5500C29564
/* libOHHTTPStubs.a */
;
};
90C856B51BD6B0F300936926
/* Buy.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
90DA8DF11BC6A82D0027BCB7
/* Buy.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
...
...
@@ -480,7 +471,6 @@
849110341CCE70CE00E53B93
/* BUYDictionaryAdditionsTests.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYDictionaryAdditionsTests.m
;
sourceTree
=
"<group>"
;
};
849110391CCE718100E53B93
/* BUYExceptionAdditionsTests.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYExceptionAdditionsTests.m
;
sourceTree
=
"<group>"
;
};
8491103B1CCE731900E53B93
/* BUYURLAdditionsTests.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYURLAdditionsTests.m
;
sourceTree
=
"<group>"
;
};
8491103D1CCE988600E53B93
/* BUYFontAdditionsTests.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYFontAdditionsTests.m
;
sourceTree
=
"<group>"
;
};
849110431CCE9F3F00E53B93
/* BUYTransformerTests.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYTransformerTests.m
;
sourceTree
=
"<group>"
;
};
849110461CCEA85C00E53B93
/* BUYObserverTests.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYObserverTests.m
;
sourceTree
=
"<group>"
;
};
84980F281CB75AC200CFAB58
/* BUYObjectProtocol.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYObjectProtocol.h
;
sourceTree
=
"<group>"
;
};
...
...
@@ -583,8 +573,6 @@
84D915B51CC0417700D334FB
/* _BUYTaxLine.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
_BUYTaxLine.m
;
sourceTree
=
"<group>"
;
};
900396991B601DF400226B73
/* BUYCartLineItem.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYCartLineItem.h
;
sourceTree
=
"<group>"
;
};
9003969A1B601DF400226B73
/* BUYCartLineItem.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYCartLineItem.m
;
sourceTree
=
"<group>"
;
};
900E7C811B5DA32F006F3C81
/* BUYImageKit.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYImageKit.h
;
sourceTree
=
"<group>"
;
};
900E7C821B5DA32F006F3C81
/* BUYImageKit.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYImageKit.m
;
sourceTree
=
"<group>"
;
};
901931701BC5B9BC00D1134E
/* Buy.framework */
=
{
isa
=
PBXFileReference
;
explicitFileType
=
wrapper.framework
;
includeInIndex
=
0
;
path
=
Buy.framework
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
901931761BC5BC9100D1134E
/* libc++.tbd */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
"sourcecode.text-based-dylib-definition"
;
name
=
"libc++.tbd"
;
path
=
"usr/lib/libc++.tbd"
;
sourceTree
=
SDKROOT
;
};
9032F2D81BE9457A00BB9EEF
/* BUYCheckoutAttribute.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYCheckoutAttribute.h
;
sourceTree
=
"<group>"
;
};
...
...
@@ -595,8 +583,6 @@
906CF1AF1B8B66AE001F7D5B
/* BUYCNPostalAddress.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYCNPostalAddress.h
;
sourceTree
=
"<group>"
;
};
906CF1B01B8B66AE001F7D5B
/* BUYCNPostalAddress.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYCNPostalAddress.m
;
sourceTree
=
"<group>"
;
};
9089CC5D1BB48D06009726D6
/* BUYCollection.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYCollection.m
;
sourceTree
=
"<group>"
;
};
909944471B71B76800C40A33
/* UIFont+BUYAdditions.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
"UIFont+BUYAdditions.h"
;
sourceTree
=
"<group>"
;
};
909944481B71B76800C40A33
/* UIFont+BUYAdditions.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
"UIFont+BUYAdditions.m"
;
sourceTree
=
"<group>"
;
};
90AFAA5C1B011EA600F21C23
/* BUYTaxLine.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
lineEnding
=
0
;
path
=
BUYTaxLine.h
;
sourceTree
=
"<group>"
;
xcLanguageSpecificationIdentifier
=
xcode.lang.objcpp
;
};
90AFAA5D1B011EA600F21C23
/* BUYTaxLine.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
lineEnding
=
0
;
path
=
BUYTaxLine.m
;
sourceTree
=
"<group>"
;
xcLanguageSpecificationIdentifier
=
xcode.lang.objc
;
};
90AFAA641B01398A00F21C23
/* BUYShippingRate.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
lineEnding
=
0
;
path
=
BUYShippingRate.h
;
sourceTree
=
"<group>"
;
xcLanguageSpecificationIdentifier
=
xcode.lang.objcpp
;
};
...
...
@@ -931,7 +917,6 @@
8498DCC21CDD208200BD12A8
/* BUYCustomerTests.m */
,
849110341CCE70CE00E53B93
/* BUYDictionaryAdditionsTests.m */
,
849110391CCE718100E53B93
/* BUYExceptionAdditionsTests.m */
,
8491103D1CCE988600E53B93
/* BUYFontAdditionsTests.m */
,
90F592F81B0D5F4C0026B382
/* BUYIntegrationTest.m */
,
90F592FE1B0D5F4C0026B382
/* BUYLineItemTest.m */
,
8498DCC31CDD208200BD12A8
/* BUYModelManagerTests.m */
,
...
...
@@ -1075,13 +1060,9 @@
BE33B4EE1B15FF4D0067982B
/* BUYApplePayHelpers.m */
,
8498DCA71CDD1B1C00BD12A8
/* BUYError+BUYAdditions.h */
,
8498DCA81CDD1B1C00BD12A8
/* BUYError+BUYAdditions.m */
,
900E7C811B5DA32F006F3C81
/* BUYImageKit.h */
,
900E7C821B5DA32F006F3C81
/* BUYImageKit.m */
,
2AF52A731A700AC80087DB2C
/* BUYRuntime.h */
,
2AF52A741A700AC80087DB2C
/* BUYRuntime.m */
,
8498DCA91CDD1B1C00BD12A8
/* BUYShopifyErrorCodes.h */
,
909944471B71B76800C40A33
/* UIFont+BUYAdditions.h */
,
909944481B71B76800C40A33
/* UIFont+BUYAdditions.m */
,
);
path
=
Utils
;
sourceTree
=
"<group>"
;
...
...
@@ -1183,7 +1164,6 @@
841ADE041CB6C942000004B0
/* NSDate+BUYAdditions.h in Headers */
,
84980F2D1CB75B5E00CFAB58
/* BUYModelManagerProtocol.h in Headers */
,
84D73C051CDD1945000F978A
/* BUYAddress.h in Headers */
,
901931451BC5B9BC00D1134E
/* UIFont+BUYAdditions.h in Headers */
,
84B0A73B1CE10ED900253EB0
/* BUYWebCheckoutPaymentProvider.h in Headers */
,
841ADE081CB6C942000004B0
/* NSDateFormatter+BUYAdditions.h in Headers */
,
841ADE001CB6C942000004B0
/* NSArray+BUYAdditions.h in Headers */
,
...
...
@@ -1204,7 +1184,6 @@
84D915441CC0359700D334FB
/* BUYObserver.h in Headers */
,
84980F5F1CB7617E00CFAB58
/* BUYDateTransformer.h in Headers */
,
84980F591CB7617500CFAB58
/* BUYURLTransformer.h in Headers */
,
9019315B1BC5B9BC00D1134E
/* BUYImageKit.h in Headers */
,
84D915501CC03F1600D334FB
/* BUYModelManager.h in Headers */
,
9032F2DB1BE9457A00BB9EEF
/* BUYCheckoutAttribute.h in Headers */
,
9019315E1BC5B9BC00D1134E
/* BUYError.h in Headers */
,
...
...
@@ -1272,7 +1251,6 @@
BE5DC3631B71022D00B2BC1E
/* BUYMaskedCreditCard.h in Headers */
,
90C856B61BD6B0F400936926
/* Buy.h in Headers */
,
8498DCB31CDD1B5400BD12A8
/* BUYClient_Internal.h in Headers */
,
909944491B71B76800C40A33
/* UIFont+BUYAdditions.h in Headers */
,
841ADE0F1CB6C942000004B0
/* NSDictionary+BUYAdditions.h in Headers */
,
841ADE1F1CB6C942000004B0
/* NSURL+BUYAdditions.h in Headers */
,
841ADE231CB6C942000004B0
/* NSURLComponents+BUYAdditions.h in Headers */
,
...
...
@@ -1299,7 +1277,6 @@
84D915431CC0359700D334FB
/* BUYObserver.h in Headers */
,
84980F5E1CB7617E00CFAB58
/* BUYDateTransformer.h in Headers */
,
84980F581CB7617500CFAB58
/* BUYURLTransformer.h in Headers */
,
900E7C841B5DA553006F3C81
/* BUYImageKit.h in Headers */
,
84D9154F1CC03F1600D334FB
/* BUYModelManager.h in Headers */
,
9032F2DA1BE9457A00BB9EEF
/* BUYCheckoutAttribute.h in Headers */
,
BE47340F1B66C4EF00AA721A
/* BUYError.h in Headers */
,
...
...
@@ -1578,12 +1555,10 @@
901931161BC5B9BC00D1134E
/* BUYShippingRate.m in Sources */
,
841ADE061CB6C942000004B0
/* NSDate+BUYAdditions.m in Sources */
,
84B0A7431CE10F8100253EB0
/* BUYClient+Checkout.m in Sources */
,
9019311A1BC5B9BC00D1134E
/* BUYImageKit.m in Sources */
,
84B0A7371CE10ED900253EB0
/* BUYPaymentController.m in Sources */
,
9019311C1BC5B9BC00D1134E
/* BUYOption.m in Sources */
,
84D73C081CDD194D000F978A
/* _BUYAddress.m in Sources */
,
9019311D1BC5B9BC00D1134E
/* BUYClient.m in Sources */
,
9019311E1BC5B9BC00D1134E
/* UIFont+BUYAdditions.m in Sources */
,
8498DCB81CDD1B5400BD12A8
/* BUYClient+Customers.m in Sources */
,
901931201BC5B9BC00D1134E
/* BUYCreditCard.m in Sources */
,
84980F4F1CB7613700CFAB58
/* BUYIdentityTransformer.m in Sources */
,
...
...
@@ -1602,7 +1577,6 @@
buildActionMask
=
2147483647
;
files
=
(
BEB9AE7D1BA885E300575F8A
/* BUYClientTestBase.m in Sources */
,
8491103E1CCE988600E53B93
/* BUYFontAdditionsTests.m in Sources */
,
8491103A1CCE718100E53B93
/* BUYExceptionAdditionsTests.m in Sources */
,
849110441CCE9F3F00E53B93
/* BUYTransformerTests.m in Sources */
,
8498DCCC1CDD208200BD12A8
/* BUYCustomerTests.m in Sources */
,
...
...
@@ -1710,12 +1684,10 @@
BE9A644E1B503CA60033E558
/* BUYShippingRate.m in Sources */
,
841ADE051CB6C942000004B0
/* NSDate+BUYAdditions.m in Sources */
,
84B0A7421CE10F8100253EB0
/* BUYClient+Checkout.m in Sources */
,
900E7C851B5DA559006F3C81
/* BUYImageKit.m in Sources */
,
84B0A7361CE10ED900253EB0
/* BUYPaymentController.m in Sources */
,
BE9A64601B503CEC0033E558
/* BUYOption.m in Sources */
,
84D73C061CDD194D000F978A
/* _BUYAddress.m in Sources */
,
BE9A64481B503C900033E558
/* BUYClient.m in Sources */
,
9099444A1B71B76800C40A33
/* UIFont+BUYAdditions.m in Sources */
,
8498DCB51CDD1B5400BD12A8
/* BUYClient+Customers.m in Sources */
,
BE9A64561B503CC90033E558
/* BUYCreditCard.m in Sources */
,
84980F4E1CB7613700CFAB58
/* BUYIdentityTransformer.m in Sources */
,
...
...
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