瀏覽代碼

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

Dave Verwer 3 年之前
父節點
當前提交
6de3f6579b
共有 1 個文件被更改,包括 4 次插入0 次删除
  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