Explorar el Código

Add a Swift version check across all platforms. (#3549)

Dave Verwer hace 3 años
padre
commit
6de3f6579b
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      Source/Alamofire.swift

+ 4 - 0
Source/Alamofire.swift

@@ -28,6 +28,10 @@ import Foundation
 @_exported import FoundationNetworking
 #endif
 
+#if swift(<5.3)
+#error("Alamofire doesn't support Swift versions below 5.3")
+#endif
+
 /// Reference to `Session.default` for quick bootstrapping and examples.
 public let AF = Session.default