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

TrackerConfigurationKeys not available in Objective-C #11

Closed
fabb opened this issue Apr 10, 2017 · 2 comments
Closed

TrackerConfigurationKeys not available in Objective-C #11

fabb opened this issue Apr 10, 2017 · 2 comments

Comments

@fabb
Copy link

fabb commented Apr 10, 2017

The documentation says:

Samples to use constants (all constants are available in TrackerConfigurationKeys in Swift, prefixed by AT_CONF_ in Objective-C)

But this is actually not true since 2.5.0. Configuration keys like AT_CONF_SITE are not available in Objective-C.

Since Xcode 8, Objective-C supports class properties. So simply making TrackerConfigurationKeys inherit from NSObject would solve the issue:

public class TrackerConfigurationKeys: NSObject {
...

Objective -C code can now use the configuration keys with the same syntax like Swift:

TrackerConfigurationKeys.Site
@d-theo
Copy link
Contributor

d-theo commented Apr 11, 2017

thanks for the feedback, it will be fixed in the next release ;)

@d-theo
Copy link
Contributor

d-theo commented May 2, 2017

closing with the new release

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

No branches or pull requests

2 participants