Skip to content

Commit

Permalink
Add swift version specific
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
adam-fowler committed Aug 19, 2019
1 parent 0952aac commit 42de0ef
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -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
Expand Down
41 changes: 41 additions & 0 deletions Package@swift-4.0.swift
Original file line number Diff line number Diff line change
@@ -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"]),
]
)
41 changes: 41 additions & 0 deletions Package@swift-4.2.swift
Original file line number Diff line number Diff line change
@@ -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"]),
]
)

0 comments on commit 42de0ef

Please sign in to comment.