-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Auth tvOS build environment + email/password example. #459
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
Conversation
@@ -73,7 +73,9 @@ - (void)getTokenWithCallback:(FIRAuthAPNSTokenCallback)callback { | |||
} else { | |||
#pragma clang diagnostic push | |||
#pragma clang diagnostic ignored "-Wdeprecated-declarations" | |||
#if !TARGET_OS_TV |
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.
Does the style guide cover #if !?
In some places, #if !defined(TARGET_OS_TV) is preferred.
Also, uglier, but more correct, to also #if the if respondsToSelector ...
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 didn't see it but happy to do !defined
instead. Will update 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.
Re: the respondsToSelector
, tvOS actually does support the above call, just not this one 😄
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.
Understood - so the if will always be true on tvOS, but if it wasn't nothing would happen in the else.
If this was pure tvOS code, there would be no reason for the respondsToSelector check, but I'm fine with keeping the code easier to read.
No description provided.