Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
Merge pull request #35 from anthonycastelli/master
Browse files Browse the repository at this point in the history
Swift 3.1 updates
  • Loading branch information
Matthijs Logemann authored Apr 6, 2017
2 parents f4e80fa + b41f0ce commit dde8624
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ os:
language: generic
sudo: required
dist: trusty
osx_image: xcode8
osx_image: xcode8.3
script:
- eval "$(curl -sL https://swift.vapor.sh/ci)"
- eval "$(curl -sL https://swift.vapor.sh/codecov)"
8 changes: 2 additions & 6 deletions Sources/VaporAPNS/CurlUpdater.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ internal class CurlUpdater {
}

private func buildnghttp2() {
let cwd = FileManager.default.currentDirectoryPath
_ = FileManager.default.currentDirectoryPath
// print("script run from:\n" + cwd)
// let (currentWorkDirr, _) = shell("pwd", workPath: "\(cwd)/nghttp2")
// fatalError("\(currentWorkDirr)/nghttp2")
Expand Down Expand Up @@ -365,11 +365,7 @@ internal class CurlUpdater {
// args = ["bash", "-c", "\"cd \(workPath) && \(args.joined(separator: " "))\""]
// }
// print (args.joined(separator: " "))
#if os(macOS)
let task = Process()
#elseif os(Linux)
let task = Task()
#endif
let task = Process()
task.launchPath = "/usr/bin/env"
task.arguments = args

Expand Down
10 changes: 5 additions & 5 deletions Sources/VaporAPNS/Options.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ public struct Options: CustomStringConvertible, NodeInitializable {
"Topic \(topic)" +
"\nPort \(port.rawValue)" +
"\nPort \(port.rawValue)" +
"\nCER - Certificate path: \(certPath)" +
"\nCER - Key path: \(keyPath)" +
"\nTOK - Key ID: \(keyId)" +
"\nTOK - Private key: \(privateKey)" +
"\nTOK - Public key: \(publicKey)"
"\nCER - Certificate path: \(String(describing: certPath))" +
"\nCER - Key path: \(String(describing: keyPath))" +
"\nTOK - Key ID: \(String(describing: keyId))" +
"\nTOK - Private key: \(String(describing: privateKey))" +
"\nTOK - Public key: \(String(describing: publicKey))"
}
}
4 changes: 0 additions & 4 deletions Sources/VaporAPNS/String+APNS.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ import Foundation
import CLibreSSL
import Core

#if os(Linux)
typealias NSRegularExpression = RegularExpression
#endif

extension String {
private func newECKey() throws -> OpaquePointer {
guard let ecKey = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1) else {
Expand Down

0 comments on commit dde8624

Please sign in to comment.