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

Bump min iOS version to 13 #257

Merged
merged 4 commits into from
Jan 2, 2023
Merged

Bump min iOS version to 13 #257

merged 4 commits into from
Jan 2, 2023

Conversation

p4checo
Copy link
Member

@p4checo p4checo commented Dec 8, 2022

Checklist

Motivation and Context

  • Bump iOS Deployment target to iOS 13 so that we can start using new
    features like Swift Concurrency without sprinkling #if blocks
    everywhere.

Description

  • Bump iOS Deployment target to iOS 13.
  • Fix iOS 13 deprecations.
  • Remove SecTrust validation from SecCertificate.publicKey()
    extraction method, as the new SecTrustEvaluateWithError API checks
    against the keychain and validates expiration, which isn't relevant for
    public key extraction. It would also require regenerating new
    certificates every now and then for UTs, which we avoid via
    SecTrustSetVerifyDate on the SecTrust.make test helper.
  • Improve certificate generation documentation, configs and scripts as
    I went thru the process of generating new certificates before realizing
    that I didn't have to.
  • Migrate CommonCrypto to CryptoKit.
  • Remove all deprecated iOS version checks and APIs, mostly iOS 11 in
    AlicerceAutoLayout.
  • Replace deprecated PthreadLock with iOS 16+ AllocatedUnfairLock in
    Lock.

@p4checo p4checo requested a review from a team December 8, 2022 19:26
@p4checo p4checo self-assigned this Dec 8, 2022
@p4checo p4checo changed the title Bump min ios version to 13 Bump min iOS version to 13 Dec 8, 2022
@codecov
Copy link

codecov bot commented Jan 2, 2023

Codecov Report

Base: 95.92% // Head: 96.04% // Increases project coverage by +0.11% 🎉

Coverage data is based on head (9620eed) compared to base (33b4a95).
Patch coverage: 95.65% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #257      +/-   ##
==========================================
+ Coverage   95.92%   96.04%   +0.11%     
==========================================
  Files         100      100              
  Lines        5056     4976      -80     
==========================================
- Hits         4850     4779      -71     
+ Misses        206      197       -9     
Impacted Files Coverage Δ
Sources/AutoLayout/ConstrainableProxy.swift 98.67% <ø> (ø)
Sources/AutoLayout/ViewProxy.swift 95.83% <ø> (+8.33%) ⬆️
...ces/Extensions/UIKit/NSDirectionalEdgeInsets.swift 100.00% <ø> (ø)
Sources/Extensions/UIKit/UIEdgeInsets.swift 100.00% <ø> (ø)
Sources/Extensions/UIKit/UIColor.swift 98.36% <80.00%> (ø)
Sources/Extensions/Foundation/String.swift 100.00% <100.00%> (ø)
Sources/Network/Pinning/Data+SPKIHash.swift 100.00% <100.00%> (ø)
...ces/Network/Pinning/SecCertificate+PublicKey.swift 92.10% <100.00%> (+0.61%) ⬆️
...k/Pinning/ServerTrustEvaluator+Configuration.swift 100.00% <100.00%> (ø)
Sources/Network/Pinning/ServerTrustEvaluator.swift 95.37% <100.00%> (+0.05%) ⬆️
... and 2 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

## Changes

- Bump iOS Deployment target to iOS 13 so that we can start using new
features like Swift Concurrency without sprinkling `#if` blocks
everywhere.
## Changes

- Fix iOS 13 deprecations.

- Remove `SecTrust` validation from `SecCertificate.publicKey()`
extraction method, as the new `SecTrustEvaluateWithError` API checks
against the keychain and validates expiration, which isn't relevant for
public key extraction. It would also require regenerating new
certificates every now and then for UTs, which we avoid via
`SecTrustSetVerifyDate` on the `SecTrust.make` test helper.

- Improve certificate generation documentation, configs and scripts as
I went thru the process of generating new certificates before realizing
that I didn't have to.
## Changes

- Remove all deprecated iOS version checks and APIs, mostly iOS 11 in
AlicerceAutoLayout.

- Replace deprecated `PthreadLock` with iOS 16+ `AllocatedUnfairLock` in
`Lock.`
@p4checo p4checo merged commit 901ce19 into master Jan 2, 2023
@p4checo p4checo deleted the bump-min-ios-version-to-13 branch January 2, 2023 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants