Skip to content
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

Fixed PFAnalytics for watchOS. #323

Merged
merged 1 commit into from
Sep 25, 2015
Merged

Conversation

nlutsenko
Copy link
Contributor

Contributes to #179

NSDictionary *userInfo = launchOptions[UIApplicationLaunchOptionsRemoteNotificationKey];
#else
#elif TARGET_OS_MAC
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seeing as how this is set to true for all iOS derivative platforms (e.g. tvOS as well). I wonder if we can come up with a better macro here...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can define PF_TARGET_OS_OSX and combine !TARGET_OS_WATCH, !TARGET_OS_IOS and eventually !TARGET_OS_TV.
What do you think?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can do it that way, sure. I mean, we're still screwed when apple releases a new platform, but I think it's a bit less misleading that way.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, did you have something specific in mind?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wish I did, but I can't think of anything off of the top of my head. Just stick with PF_TARGET_OS_OSX, and we can update that macro if we have any brilliant ideas on how to make it better later.

@nlutsenko nlutsenko force-pushed the nlutsenko.watchOS.analytics branch 2 times, most recently from 010f48f to 68884a4 Compare September 24, 2015 23:21
nlutsenko added a commit that referenced this pull request Sep 25, 2015
@nlutsenko nlutsenko merged commit 42299fa into master Sep 25, 2015
@nlutsenko nlutsenko deleted the nlutsenko.watchOS.analytics branch September 25, 2015 00:36
@nlutsenko nlutsenko added this to the 1.9.0 milestone Sep 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants