mirror of
https://github.com/apple/swift-crypto
synced 2026-11-28 05:04:21 +00:00
Fix availability mismatches (#339)
https://github.com/apple/swift-crypto/issues/338 pointed to some availability guard platform mismatches on `ARC` and its extensions. This PR aims to fix these and make sure all platforms build correctly.
This commit is contained in:
1 parent
67e54ae1db
commit
a6ce32a18b
2 files changed
+2
-2
No files matched your search
@@ -238,7 +238,7 @@ extension ARC.Credential where H2G == ARCH2G {
|
||||
|
||||
// Serialize a ARC PresentationState, to help save and restore a credential.
|
||||
// This will only be called client-side, and never be sent over the wire.
|
||||
@available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
|
||||
@available(macOS 10.15, iOS 13.2, tvOS 13.2, watchOS 6.1, *)
|
||||
extension ARC.PresentationState {
|
||||
func serialize() throws -> Data {
|
||||
let encoder = PropertyListEncoder()
|
||||
|
||||
@@ -149,7 +149,7 @@ func main() {
|
||||
}
|
||||
|
||||
|
||||
if #available(macOS 10.15, *) {
|
||||
if #available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *) {
|
||||
main()
|
||||
} else {
|
||||
fatalError("crypto-shasum can only be run on macOS 10.15 and later")
|
||||
|
||||
Reference in new issue
Block a user