-
Notifications
You must be signed in to change notification settings - Fork 730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add apollo custom extension to replace apollo_
prefix
#1183
Conversation
@yuzushioh: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/ |
apollo_
prefixapollo_
prefix
@designatednerd |
@yuzushioh Prooooobably not, that test is super flaky, I'll kick it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor thing but otherwise this is looking nice!
Note that since this is technically going to be a break I'll need to put it in a minor version, so I may hold off on merging it for a few days until I have something else breaking.
@@ -1,8 +1,7 @@ | |||
import Foundation | |||
|
|||
extension Optional where Wrapped == Bool { | |||
|
|||
var apollo_boolValue: Bool { | |||
var valueOrFalseIfNone: Bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd still like to keep this as boolValue
- ultimately it behaves similarly to [NSNumber boolValue]
in that if you call it on nil
it returns false.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. I changed it to boolValue
with a comment on it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I'm going to hold off on merging this for a few days to make sure I don't need to do more patches for 0.27.x
, but I'll put it out with our next minor!
Added
ApolloExtension
and replaceapollo_
prefix byapollo.
ref: #1170