apple / swift-crypto

Open-source implementation of a substantial portion of the API of Apple CryptoKit suitable for use on Linux platforms.
https://apple.github.io/swift-crypto
Apache License 2.0
1.47k stars 165 forks source link

Update availability annotations in tests #213

Closed simonjbeaumont closed 11 months ago

simonjbeaumont commented 11 months ago

Checklist

~If you've made changes to gyb files~

Motivation:

When building the tests for iOS and tvOS, the build fails because we are using APIs that aren't available on all platform versions. E.g.:

Tests/CryptoTests/Digests/DigestsTests.swift:117:37: error: 'blockByteCount' is only available in iOS 13.2 or newer
        XCTAssertEqual(Insecure.MD5.blockByteCount, 64)

Modifications:

Result:

Tests can now build for and run on iOS and tvOS.

Lukasa commented 11 months ago

@swift-server-bot add to allowlist