Skip to content

Commit

Permalink
Merge pull request #3 from Ponyboy47/Swift4
Browse files Browse the repository at this point in the history
Swift4
  • Loading branch information
Ponyboy47 authored Mar 18, 2018
2 parents 8bc6163 + 2905ecd commit f6367a5
Show file tree
Hide file tree
Showing 47 changed files with 3,066 additions and 3,047 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
/*.xcodeproj
.*.sw[po]
Package.pins
Package.resolved
.AppleDouble
/renzoku.conf
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.1
4.0.3
5 changes: 5 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
line_length: 200
disabled_rules:
- force_cast
- todo
included:
- Sources
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
os:
- linux
- osx
osx_image: xcode8.3
osx_image: xcode9.2
dist: trusty
sudo: required
language: generic
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install kylef/formulae/swiftenv; fi
install:
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
- swiftenv install $(cat .swift-version) | grep -qe "\(been\|already\) installed"
script:
- travis_wait swift build
- travis_wait swift build -c release
39 changes: 23 additions & 16 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,28 +1,35 @@
// swift-tools-version:4.0

import PackageDescription

var dependencies: [Package.Dependency] = [
.Package(url: "https://github.com/Ponyboy47/PathKit.git", majorVersion: 0, minor: 8),
.Package(url: "https://github.com/Ponyboy47/Strings.git", majorVersion: 1),
.Package(url: "https://github.com/Ponyboy47/CLI.git", majorVersion: 1),
// My Downpour fork requires vdka/JSON so I don't need it's dependency here
.Package(url: "https://github.com/Ponyboy47/Downpour.git", majorVersion: 0, minor: 4),
.Package(url: "https://github.com/IBM-Swift/BlueSignals.git", majorVersion: 0, minor: 9),
.Package(url: "https://github.com/Ponyboy47/Async.git", majorVersion: 2),
.Package(url: "https://github.com/SwiftyBeaver/SwiftyBeaver.git", majorVersion: 1, minor: 3),
.Package(url: "https://github.com/Ponyboy47/Duration.git", majorVersion: 2),
.Package(url: "https://github.com/Ponyboy47/UUID.git", majorVersion: 0, minor: 8),
.Package(url: "https://github.com/Ponyboy47/Cron-Swift.git", majorVersion: 1)
.package(url: "https://github.com/IBM-Swift/BlueSignals.git", .upToNextMajor(from: "0.9.50")),
.package(url: "https://github.com/Ponyboy47/CLI.git", .upToNextMinor(from: "2.1.0")),
.package(url: "https://github.com/Ponyboy47/Cron-Swift.git", .upToNextMajor(from: "2.1.0")),
.package(url: "https://github.com/Ponyboy47/Downpour.git", .upToNextMinor(from: "0.5.0")),
.package(url: "https://github.com/Ponyboy47/PathKit.git", .upToNextMajor(from: "0.9.0")),
.package(url: "https://github.com/kareman/SwiftShell.git", .upToNextMinor(from: "4.0.0")),
.package(url: "https://github.com/SwiftyBeaver/SwiftyBeaver.git", .upToNextMinor(from: "1.4.0")),
.package(url: "https://github.com/Ponyboy47/LockSmith.git", .upToNextMinor(from: "0.2.0"))
]
var namedDependencies: [Target.Dependency] = ["Signals", "CLI", "Cron", "Downpour", "PathKit", "SwiftShell", "SwiftyBeaver", "LockSmith"]

#if os(Linux)
dependencies.append(.Package(url: "https://github.com/Ponyboy47/inotify.git", majorVersion: 0))
#else
// Importing this package through both Downpour and here causes issues with multiple libraries found on linux
dependencies.append(.Package(url: "https://github.com/vdka/JSON", majorVersion: 0))
dependencies.append(.package(url: "https://github.com/Ponyboy47/inotify.git", .upToNextMinor(from: "0.4.3")))
namedDependencies.append("Inotify")
#endif

let package = Package(
name: "Plex-Monitr",
products: [
.executable(
name: "monitr",
targets: ["monitr"])
],
dependencies: dependencies,
exclude: ["Tests"]
targets: [
.target(
name: "monitr",
dependencies: namedDependencies)
]
)
Loading

0 comments on commit f6367a5

Please sign in to comment.