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
a6929c9b
Commit
a6929c9b
authored
Oct 07, 2015
by
Jonathan Baker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix BUYAddress helper nullability.
parent
d4d2ed9a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
BUYApplePayAdditions.h
Mobile Buy SDK/Mobile Buy SDK/Utils/BUYApplePayAdditions.h
+3
-3
BUYApplePayAdditions.m
Mobile Buy SDK/Mobile Buy SDK/Utils/BUYApplePayAdditions.m
+3
-3
No files found.
Mobile Buy SDK/Mobile Buy SDK/Utils/BUYApplePayAdditions.h
View file @
a6929c9b
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
@interface
BUYAddress
(
ApplePay
)
@interface
BUYAddress
(
ApplePay
)
+
(
nullable
NSString
*
)
buy_emailFromRecord
:(
n
onnull
ABRecordRef
)
record
;
+
(
nullable
NSString
*
)
buy_emailFromRecord
:(
n
ullable
ABRecordRef
)
record
;
/**
/**
* Creates a BUYAddress from an ABRecordRef
* Creates a BUYAddress from an ABRecordRef
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
*
*
* @return The BUYAddress created from an ABRecordRef
* @return The BUYAddress created from an ABRecordRef
*/
*/
+
(
nonnull
BUYAddress
*
)
buy_addressFromRecord
:(
n
onnull
ABRecordRef
)
record
NS_DEPRECATED_IOS
(
8
_0
,
9
_0
,
"Use the CNContact backed `buy_addressFromContact:` instead"
);
+
(
nonnull
BUYAddress
*
)
buy_addressFromRecord
:(
n
ullable
ABRecordRef
)
record
NS_DEPRECATED_IOS
(
8
_0
,
9
_0
,
"Use the CNContact backed `buy_addressFromContact:` instead"
);
/**
/**
* Creates a BUYAddress from a PKContact
* Creates a BUYAddress from a PKContact
...
@@ -83,6 +83,6 @@
...
@@ -83,6 +83,6 @@
*
*
* @return The BUYAddress created from a PKContact
* @return The BUYAddress created from a PKContact
*/
*/
+
(
nonnull
BUYAddress
*
)
buy_addressFromContact
:(
n
onnull
PKContact
*
)
contact
NS_AVAILABLE_IOS
(
9
_0
);
+
(
nonnull
BUYAddress
*
)
buy_addressFromContact
:(
n
ullable
PKContact
*
)
contact
NS_AVAILABLE_IOS
(
9
_0
);
@end
@end
Mobile Buy SDK/Mobile Buy SDK/Utils/BUYApplePayAdditions.m
View file @
a6929c9b
...
@@ -122,7 +122,7 @@
...
@@ -122,7 +122,7 @@
@implementation
BUYAddress
(
ApplePay
)
@implementation
BUYAddress
(
ApplePay
)
+
(
nullable
NSString
*
)
buy_emailFromRecord
:(
n
onnull
ABRecordRef
)
record
+
(
nullable
NSString
*
)
buy_emailFromRecord
:(
n
ullable
ABRecordRef
)
record
{
{
ABMultiValueRef
emailMultiValue
=
ABRecordCopyValue
(
record
,
kABPersonEmailProperty
);
ABMultiValueRef
emailMultiValue
=
ABRecordCopyValue
(
record
,
kABPersonEmailProperty
);
CFArrayRef
allEmails
=
ABMultiValueCopyArrayOfAllValues
(
emailMultiValue
);
CFArrayRef
allEmails
=
ABMultiValueCopyArrayOfAllValues
(
emailMultiValue
);
...
@@ -137,7 +137,7 @@
...
@@ -137,7 +137,7 @@
return
email
;
return
email
;
}
}
+
(
nonnull
BUYAddress
*
)
buy_addressFromRecord
:(
n
onnull
ABRecordRef
)
record
+
(
nonnull
BUYAddress
*
)
buy_addressFromRecord
:(
n
ullable
ABRecordRef
)
record
{
{
BUYAddress
*
address
=
[[
BUYAddress
alloc
]
init
];
BUYAddress
*
address
=
[[
BUYAddress
alloc
]
init
];
...
@@ -194,7 +194,7 @@
...
@@ -194,7 +194,7 @@
return
address
;
return
address
;
}
}
+
(
nonnull
BUYAddress
*
)
buy_addressFromContact
:(
n
onnull
PKContact
*
)
contact
+
(
nonnull
BUYAddress
*
)
buy_addressFromContact
:(
n
ullable
PKContact
*
)
contact
{
{
BUYAddress
*
address
=
[[
BUYAddress
alloc
]
init
];
BUYAddress
*
address
=
[[
BUYAddress
alloc
]
init
];
...
...
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