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

Swift 5.1 Support #204

Merged
merged 3 commits into from
Mar 3, 2020
Merged

Swift 5.1 Support #204

merged 3 commits into from
Mar 3, 2020

Conversation

ghost
Copy link

@ghost ghost commented Mar 3, 2020

Summary

This pull request proposes a solution for #178, which requested that Down support Swift 5.1.

Details

This PR consists of two commits:

  1. Updates the project & associated artifacts to reflect support for Swift 5.1.
  2. Over the course of working on both this and Resolves Swift Package Manager issue related to swift-snapshot-testing #203, I observed that some settings in the existing .xcconfig files were being overridden in the Xcode project configuration (i.e., Build Settings). I took the liberty to address this with SWIFT_VERSION, then made similar changes for DEPLOYMENT_TARGET. I also removed the watchOS references, as it doesn't appear that the framework supports that.

Testing

The branch should build & tests should pass.

@@ -1 +0,0 @@
5.0
Copy link
Author

Choose a reason for hiding this comment

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

This file has been deprecated by CocoaPods.

@@ -19,5 +19,5 @@ Pod::Spec.new do |spec|
spec.pod_target_xcconfig = { 'SWIFT_INCLUDE_PATHS' => '$(SRCROOT)/Down/Source/cmark/**' }
spec.ios.resource = 'Resources/DownView.bundle'
spec.osx.resource = 'Resources/DownView.bundle'
spec.swift_version = "5.0"
Copy link
Author

Choose a reason for hiding this comment

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

This reflects additional CocoaPods evolution.

@codecov
Copy link

codecov bot commented Mar 3, 2020

Codecov Report

Merging #204 into master will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #204   +/-   ##
=======================================
  Coverage   32.59%   32.59%           
=======================================
  Files          74       74           
  Lines        2362     2362           
=======================================
  Hits          770      770           
  Misses       1592     1592           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 79c3d29...0a63e09. Read the comment docs.

Copy link
Collaborator

@iwasrobbed iwasrobbed left a comment

Choose a reason for hiding this comment

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

I updated the example app project settings as well, thanks again @stevebaranski 💯

@iwasrobbed iwasrobbed merged commit 69a006c into master Mar 3, 2020
@iwasrobbed iwasrobbed deleted the issue/178-swift-5-1 branch March 3, 2020 20:05
@iwasrobbed iwasrobbed mentioned this pull request Mar 3, 2020
1 task
@ghost
Copy link
Author

ghost commented Mar 3, 2020

@iwasrobbed good catch - thank you!

regennz pushed a commit to regennz/Down that referenced this pull request Apr 14, 2020
* Updated project for Swift 5.1 support

* Updated xcconfig files & removed superfluous project overrides

* [Example] Update example app settings

Co-authored-by: rob phillips <rob@robphillips.me>
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