Skip to content

Commit b4ac68c

Browse files
authored
Merge pull request #2 from cojoj/swift-4
Swift 4
2 parents 938f8b5 + 2ee133f commit b4ac68c

File tree

3 files changed

+15
-32
lines changed

3 files changed

+15
-32
lines changed

Package.swift

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,19 @@
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(
117
name: "CodeRunnerCLI",
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: "CodeRunnerCLI", dependencies: ["CodeRunnerCore"]),
15+
.testTarget(name: "CodeRunnerCLITests", dependencies: ["CodeRunnerCore"]),
16+
.target(name: "CodeRunnerCore", dependencies: ["Files", "ShellOut", "Require"])
1817
],
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-
]
18+
swiftLanguageVersions: [4]
2519
)

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# CodeRunnerCLI
22

3-
[![Swift](https://img.shields.io/badge/Swift-3.2-lightgrey.svg)](https://swift.org)
4-
[![SPM](https://img.shields.io/badge/SPM-compatible-brightgreen.svg)](https://swift.org/package-manager)
3+
[![Swift](https://img.shields.io/badge/Swift-4.0-brightgreen.svg)](https://swift.org)
4+
[![SPM](https://img.shields.io/badge/SPM-v4-brightgreen.svg)](https://swift.org/package-manager)
5+
![OS](https://img.shields.io/badge/compatible-macOS%2010.11-lightgrey.svg)
56
[![GitHub release](https://img.shields.io/github/release/cojoj/CodeRunnerCLI.svg)](https://github.com/cojoj/CodeRunnerCLI/releases/latest)
67

78
I won't be advertising here for [CodeRunner 2](https://coderunnerapp.com), but it's a great app! 😅
@@ -14,7 +15,7 @@ Wait no more! It's here and written in nothing else, but **Swift**! 🙌
1415
# Requirements
1516

1617
This tool is for **macOS only**. To run it, make sure you have:
17-
+ **Swift 3.2** (SPM)
18+
+ **Swift 4.0** (SPM v4)
1819
+ **macOS 10.11** or higher
1920
+ **Git**
2021

Sources/CodeRunnerCore/CodeRunner.swift

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)