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

Remove Carthage and Cocoapods support #138

Merged
merged 6 commits into from
Sep 12, 2023

Conversation

joemasilotti
Copy link
Member

@joemasilotti joemasilotti commented Sep 10, 2023

This PR removes Carthage and Cocoapods support and focuses entirely on the Swift Package Manager (SPM). It also means that .xcworkspace and .xcodeproj files are no longer needed!

The test dependency, GCDWebServer, set up a local server to ensure HTTP requests are handled correctly via Session. Unfortunately, it doesn't support SPM and was archived in January. I converted the dependency to [Swifter].


I consider this PR ready for review/merge. But the test suite has a few things that could be improved in future PRs:

  • Remove Turbolinks 2x in test suite and consider support deprecated
  • Convert from Quick/Nimble to XCTest to be more in line with standard Apple (also, XCTest feels more at home for Rails developers using TestUnit vs. RSpec)
  • Remove try! from test suite and add throws to test cases
  • Use XCTUnwrap in place of multiline guard statements in test suite

@joemasilotti joemasilotti marked this pull request as ready for review September 11, 2023 04:30
@jayohms jayohms requested a review from svara September 11, 2023 14:43
@jayohms
Copy link
Collaborator

jayohms commented Sep 11, 2023

@svara Can you give this a spot check and see if you have any feedback? I'm in favor of dropping Carthage and Cocoapods now that things have moved on to SPM.

Copy link
Contributor

@svara svara left a comment

Choose a reason for hiding this comment

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

Looks good 👍🏻
Great job on moving everything to SPM, and replacing GCDWebServer with Swifter @joemasilotti!

@joemasilotti
Copy link
Member Author

Thanks @svara! Merging in now.

@joemasilotti joemasilotti merged commit 7ce71d4 into hotwired:main Sep 12, 2023
@joemasilotti joemasilotti deleted the spm-only branch September 12, 2023 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants