Skip to content

Commit 75cfc0f

Browse files
committed
Move to Swift 4 and new SPM
1 parent 938f8b5 commit 75cfc0f

File tree

5 files changed

+11
-30
lines changed

5 files changed

+11
-30
lines changed

β€ŽPackage.swift

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,18 @@
1-
//
2-
// CodeRunnerCLI
3-
//
4-
// Copyright (c) Mateusz ZajΔ…c 2017
5-
// Licensed under the MIT license. See LICENSE file.
6-
//
1+
// swift-tools-version:4.0
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
73

84
import PackageDescription
95

106
let package = Package(
11-
name: "CodeRunnerCLI",
7+
name: "CodeRunner",
8+
dependencies: [
9+
.package(url: "https://github.com/JohnSundell/Files", from: "1.9.0"),
10+
.package(url: "https://github.com/JohnSundell/ShellOut", from: "1.0.0"),
11+
.package(url: "https://github.com/JohnSundell/Require", from: "1.0.0")
12+
],
1213
targets: [
13-
Target(
14-
name: "CodeRunnerCLI",
15-
dependencies: ["CodeRunnerCore"]
16-
),
17-
Target(name: "CodeRunnerCore")
14+
.target(name: "CodeRunnerCore", dependencies: ["Files", "ShellOut", "Require"]),
15+
.testTarget(name: "CodeRunnerTests", dependencies: ["CodeRunnerCore"])
1816
],
19-
dependencies: [
20-
// Be sure to change this one to original repository once new version is released
21-
.Package(url: "https://github.com/cojoj/Files.git", majorVersion: 1),
22-
.Package(url: "https://github.com/JohnSundell/ShellOut.git", majorVersion: 1),
23-
.Package(url: "https://github.com/JohnSundell/Require.git", majorVersion: 1)
24-
]
17+
swiftLanguageVersions: [3, 4]
2518
)

β€ŽSources/CodeRunnerCore/CodeRunner.swift

Lines changed: 0 additions & 12 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
Β (0)