Skip to content

Commit 42de0ef

Browse files
committed
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.
1 parent 0952aac commit 42de0ef

File tree

3 files changed

+83
-1
lines changed

3 files changed

+83
-1
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:4.0
1+
// swift-tools-version:5.0
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33
//
44
// Package.swift

[email protected]

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// swift-tools-version:4.0
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
//
4+
// Package.swift
5+
// Perfect-INIParser
6+
//
7+
// Created by Rockford Wei on 2017-04-25.
8+
// Copyright © 2017 PerfectlySoft. All rights reserved.
9+
//
10+
//===----------------------------------------------------------------------===//
11+
//
12+
// This source file is part of the Perfect.org open source project
13+
//
14+
// Copyright (c) 2017 - 2018 PerfectlySoft Inc. and the Perfect project authors
15+
// Licensed under Apache License v2.0
16+
//
17+
// See http://perfect.org/licensing.html for license information
18+
//
19+
//===----------------------------------------------------------------------===//
20+
//
21+
22+
import PackageDescription
23+
d
24+
let package = Package(
25+
name: "INIParser",
26+
products: [
27+
.library(
28+
name: "INIParser",
29+
targets: ["INIParser"]),
30+
],
31+
dependencies: [
32+
],
33+
targets: [
34+
.target(
35+
name: "INIParser",
36+
dependencies: []),
37+
.testTarget(
38+
name: "INIParserTests",
39+
dependencies: ["INIParser"]),
40+
]
41+
)

[email protected]

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// swift-tools-version:4.2
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
//
4+
// Package.swift
5+
// Perfect-INIParser
6+
//
7+
// Created by Rockford Wei on 2017-04-25.
8+
// Copyright © 2017 PerfectlySoft. All rights reserved.
9+
//
10+
//===----------------------------------------------------------------------===//
11+
//
12+
// This source file is part of the Perfect.org open source project
13+
//
14+
// Copyright (c) 2017 - 2018 PerfectlySoft Inc. and the Perfect project authors
15+
// Licensed under Apache License v2.0
16+
//
17+
// See http://perfect.org/licensing.html for license information
18+
//
19+
//===----------------------------------------------------------------------===//
20+
//
21+
22+
import PackageDescription
23+
24+
let package = Package(
25+
name: "INIParser",
26+
products: [
27+
.library(
28+
name: "INIParser",
29+
targets: ["INIParser"]),
30+
],
31+
dependencies: [
32+
],
33+
targets: [
34+
.target(
35+
name: "INIParser",
36+
dependencies: []),
37+
.testTarget(
38+
name: "INIParserTests",
39+
dependencies: ["INIParser"]),
40+
]
41+
)

0 commit comments

Comments
 (0)