Skip to content
This repository was archived by the owner on Sep 4, 2018. It is now read-only.

Conversation

@astralbodies
Copy link
Contributor

No description provided.

koke and others added 8 commits November 10, 2015 16:10
Since `WPAnalyticsStat` is the name of the enum, Swift will remove that
as a prefix so you can do things like `.LoginFailed`.

In #36, a number of 3D Touch related constants were introduced, which
would be mapped as `.3DTouchShortcut*` enum values. As I understand it,
Swift names can't start with a digit, which is probably why the compiler
was only stripping the `WPAnalytics` prefix but leaving the `Stats`, and
all the enum references in Swift were broken.

I know it's not really called Force Touch on the iPhone, so feel free to
use an alternative, as long as it doesn't start with a digit.
Sets header_dir to WordPressComAnalytics to avoid problems with
underscores/dashes in names.

I'd bump the minor version since this breaks backwards compatibility,
but I'm not sure what to do since it's 0.0
Avoid numbers in enums for Swift compatibility
astralbodies added a commit that referenced this pull request Nov 13, 2015
Bringing master current for 0.0.41 release
@astralbodies astralbodies merged commit 3a2fc2e into master Nov 13, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants