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

Synthesize Equatable conformance when compiling with Swift 4.1 #173

Merged
merged 9 commits into from
Apr 21, 2018

Conversation

mattrubin
Copy link
Owner

Use conditional compilation blocks to manually implement equality operators for Swift 4.0 and below, but use compiler-synthesized implementations for Swift 4.1 and above. Configure the CI to build with Xcode 9.3 (Swift 4.1) by default, but also add an extra CI build to explicitly test building with Xcode 9.0 (Swift 4.0).

@codecov
Copy link

codecov bot commented Apr 21, 2018

Codecov Report

Merging #173 into develop will increase coverage by 2.8%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           develop     #173     +/-   ##
==========================================
+ Coverage    94.38%   97.19%   +2.8%     
==========================================
  Files            6        6             
  Lines          392      392             
==========================================
+ Hits           370      381     +11     
+ Misses          22       11     -11
Impacted Files Coverage Δ
Sources/Generator.swift 100% <ø> (ø) ⬆️
Sources/PersistentToken.swift 100% <ø> (ø) ⬆️
Sources/Token.swift 100% <ø> (ø) ⬆️
Sources/Token+URL.swift 98.41% <0%> (+1.58%) ⬆️
Sources/Keychain.swift 92.24% <0%> (+7.75%) ⬆️

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 127a07a...3111dcc. Read the comment docs.

@mattrubin mattrubin merged commit 859880f into develop Apr 21, 2018
@mattrubin mattrubin deleted the synthesized-equatable-operator branch April 21, 2018 17:42
@mattrubin mattrubin added this to the 3.1.2 milestone Apr 23, 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.

1 participant