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

Swiftify interface #103

Merged
merged 4 commits into from
Jun 3, 2018
Merged

Swiftify interface #103

merged 4 commits into from
Jun 3, 2018

Conversation

mstarke
Copy link
Contributor

@mstarke mstarke commented May 24, 2018

This is an attempt to remove the need of a dedicated Swift source file to make KissXML pure Obj-C again. Please consider this PR with caution as I am no Swift expert. The tests for iOS run fine, macOS test did crash in NSXml under Xcode 9.2 and macOS 10.12 for unknown reasons.

@chrisballinger
Copy link
Collaborator

Oh awesome! I tried to do this myself in the past and got stuck due to not know about about @compatibility_alias.

Can you verify that these changes don't break the XMPPFramework/Swift podspec here https://github.com/robbiehanson/XMPPFramework on macOS and iOS?

# XMPPFramework with Swift extensions
pod 'XMPPFramework/Swift', :git => 'https://github.com/robbiehanson/XMPPFramework.git', :branch => 'master'
pod 'KissXML', :git => 'https://github.com/MacPass/KissXML.git', :branch => 'swiftless'

@mstarke
Copy link
Contributor Author

mstarke commented May 31, 2018

I just build XMPPFramework with the proposed KissXML version and the build succeeds. I have no idea if any runtime stuff is broken though.

@chrisballinger
Copy link
Collaborator

Both macOS and iOS?

@mstarke
Copy link
Contributor Author

mstarke commented May 31, 2018

Yup. Both builds succeeded. I didn't see any unit test, are there any to ensure the functionality is actually correct?

@chrisballinger
Copy link
Collaborator

There are unit tests in the XMPPFramework/Xcode directory, check the .travis.yml file to see how to run them all from the command line

@chrisballinger chrisballinger merged commit 3522ea3 into robbiehanson:master Jun 3, 2018
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.

2 participants