From 42de0efc7a01105e19b80d533d3d282a98277f6c Mon Sep 17 00:00:00 2001 From: Adam Fowler Date: Mon, 19 Aug 2019 07:40:53 +0100 Subject: [PATCH] Add swift version specific These are needed to get around a bug in the Swift Package Manager when compiling with iOS. If a Package is compiled with a version of the language less than 5.0 it gets the minimum deployment values wrong. --- Package.swift | 2 +- Package@swift-4.0.swift | 41 +++++++++++++++++++++++++++++++++++++++++ Package@swift-4.2.swift | 41 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+), 1 deletion(-) create mode 100644 Package@swift-4.0.swift create mode 100644 Package@swift-4.2.swift diff --git a/Package.swift b/Package.swift index 5e5e1bf..02a2911 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:4.0 +// swift-tools-version:5.0 // The swift-tools-version declares the minimum version of Swift required to build this package. // // Package.swift diff --git a/Package@swift-4.0.swift b/Package@swift-4.0.swift new file mode 100644 index 0000000..b0a5658 --- /dev/null +++ b/Package@swift-4.0.swift @@ -0,0 +1,41 @@ +// swift-tools-version:4.0 +// The swift-tools-version declares the minimum version of Swift required to build this package. +// +// Package.swift +// Perfect-INIParser +// +// Created by Rockford Wei on 2017-04-25. +// Copyright © 2017 PerfectlySoft. All rights reserved. +// +//===----------------------------------------------------------------------===// +// +// This source file is part of the Perfect.org open source project +// +// Copyright (c) 2017 - 2018 PerfectlySoft Inc. and the Perfect project authors +// Licensed under Apache License v2.0 +// +// See http://perfect.org/licensing.html for license information +// +//===----------------------------------------------------------------------===// +// + +import PackageDescription +d +let package = Package( + name: "INIParser", + products: [ + .library( + name: "INIParser", + targets: ["INIParser"]), + ], + dependencies: [ + ], + targets: [ + .target( + name: "INIParser", + dependencies: []), + .testTarget( + name: "INIParserTests", + dependencies: ["INIParser"]), + ] +) diff --git a/Package@swift-4.2.swift b/Package@swift-4.2.swift new file mode 100644 index 0000000..921b7f6 --- /dev/null +++ b/Package@swift-4.2.swift @@ -0,0 +1,41 @@ +// swift-tools-version:4.2 +// The swift-tools-version declares the minimum version of Swift required to build this package. +// +// Package.swift +// Perfect-INIParser +// +// Created by Rockford Wei on 2017-04-25. +// Copyright © 2017 PerfectlySoft. All rights reserved. +// +//===----------------------------------------------------------------------===// +// +// This source file is part of the Perfect.org open source project +// +// Copyright (c) 2017 - 2018 PerfectlySoft Inc. and the Perfect project authors +// Licensed under Apache License v2.0 +// +// See http://perfect.org/licensing.html for license information +// +//===----------------------------------------------------------------------===// +// + +import PackageDescription + +let package = Package( + name: "INIParser", + products: [ + .library( + name: "INIParser", + targets: ["INIParser"]), + ], + dependencies: [ + ], + targets: [ + .target( + name: "INIParser", + dependencies: []), + .testTarget( + name: "INIParserTests", + dependencies: ["INIParser"]), + ] +)