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.7 support: Replace the AssociatedTypeRequirementsKit package with native casts #8

Merged
merged 3 commits into from
Sep 27, 2022

Conversation

lukaskollmer
Copy link
Member

@lukaskollmer lukaskollmer commented Sep 25, 2022

Swift 5.7 support

♻️ Current situation & Problem

The AssociatedTypeRequirementsKit package doesn't seem to work in release builds in Swift 5.7.

💡 Proposed solution

We remove the dependency on the AssociatedTypeRequirementsKit package, and instead uses native Swift casts.

⚙️ Release Notes

  • Internal bug fixes

➕ Additional Information

n/a

Related PRs

Testing

n/a, no functionality was changed

Reviewer Nudging

the code diff

Code of Conduct & Contributing Guidelines

By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines:

@codecov
Copy link

codecov bot commented Sep 25, 2022

Codecov Report

Merging #8 (404d669) into develop (f655813) will increase coverage by 4.73%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop       #8      +/-   ##
===========================================
+ Coverage    90.46%   95.19%   +4.73%     
===========================================
  Files           23       23              
  Lines          503      498       -5     
===========================================
+ Hits           455      474      +19     
+ Misses          48       24      -24     
Impacted Files Coverage Δ
Sources/MetadataSystem/MetadataParser.swift 100.00% <100.00%> (+17.65%) ⬆️
Sources/ApodiniContext/ContextNode.swift 100.00% <0.00%> (+0.85%) ⬆️
Sources/ApodiniContext/Context.swift 91.75% <0.00%> (+3.67%) ⬆️
...ources/ApodiniContext/ContextEntryCollection.swift 94.45% <0.00%> (+5.56%) ⬆️
Sources/ApodiniContext/ContextEntry.swift 90.77% <0.00%> (+7.70%) ⬆️
Sources/ApodiniContext/CodableContextKey.swift 89.48% <0.00%> (+10.53%) ⬆️
...es/XCTMetadataSystem/XCTAssertRuntimeFailure.swift 88.89% <0.00%> (+11.12%) ⬆️

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 f655813...404d669. Read the comment docs.

Copy link
Member

@Supereg Supereg left a comment

Choose a reason for hiding this comment

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

Thanks for updating the package.

Sources/MetadataSystem/MetadataParser.swift Show resolved Hide resolved
Copy link
Contributor

@PSchmiedmayer PSchmiedmayer left a comment

Choose a reason for hiding this comment

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

Nice, very cool to see the usage of existentials here! Thank you @lukaskollmer! 🚀

@lukaskollmer lukaskollmer merged commit 761c5db into develop Sep 27, 2022
@lukaskollmer lukaskollmer deleted the remove-AssociatedTypeRequirementsVisitor branch September 27, 2022 15:19
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.

3 participants