-
Notifications
You must be signed in to change notification settings - Fork 32
Add macOS Compatibility #332
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
@ismailmustafa thanks for submitting this. Someone will help take a look at this. Can you sign our CLA in https://github.com/optimizely/swift-sdk/blob/master/CONTRIBUTING.md in the interim? |
Thanks @aliabbasrizvi, just signed it. |
Hey @aliabbasrizvi, any update on the status of this? |
@ismailmustafa Your fix looks good. We'll get you updated soon. Thanks for your patience. |
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.
Suggest to fix a wording
Co-authored-by: Jae Kim <[email protected]>
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.
LGTM
I noticed that the changes required to get this working on macOS were minimal. As I'd like to use this SDK on a macOS client I'm working on, I went ahead and made those changes. Let me know if there's anything you'd like me to add/fix/change; happy to do the work.
What I tested:
I tested this on both carthage and SPM. I did not test it on cocoapods, however I made modifications to the podspec based solely on documentation. Would love feedback here if there's anything else I need to do to get cocoapods support.
I did some minimal real world testing on macOS (fetching feature booleans/variables), but not much aside from that. If there's anything you'd like me to test more, please let me know.
Unit Tests:
Since compatibility changes here are minimal, the macOS version of the framework is essentially identical to the iOS version. Not sure what to add in the way of tests, but also happy to add whatever you see fit here.