Skip to content

Commit

Permalink
Merge pull request #24 from ibm-bluemix-mobile-services/development
Browse files Browse the repository at this point in the history
Update to Swift 4 and Kitura-net 2.0
  • Loading branch information
Anthony Oliveri authored Jan 3, 2018
2 parents 5b1dcae + 612476d commit 30f5473
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 5 deletions.
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
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ language: generic
env:
global:
- SWIFT_VERSION=3.1.1
- SWIFT_VERSION=4.0.3

notifications:
email:
Expand All @@ -17,7 +18,7 @@ sudo: required

dist: trusty

osx_image: xcode8.3
osx_image: xcode9.2

before_install:
- rvm install 2.4.0
Expand All @@ -34,8 +35,6 @@ install:
- git --version

script:
- swift build --clean # clean built artifacts if present
- swift package fetch # clones all dependencies
- swift build # build project
- swift test # run tests

Expand Down
22 changes: 22 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// swift-tools-version:4.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "SimpleHttpClient",
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(name: "SimpleHttpClient", targets: ["SimpleHttpClient"]),
],
dependencies:[
.package(url: "https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git", .upToNextMinor(from: "0.5.0")),
.package(url: "https://github.com/IBM-Swift/Kitura-net.git", .upToNextMinor(from: "2.0.0")),
],
targets: [
// Targets are the basic building blocks of a package. A target defines a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(name: "SimpleHttpClient", dependencies: ["KituraNet", "SimpleLogger"]),
.testTarget(name: "SimpleHttpClientTests", dependencies: ["SimpleHttpClient"]),
]
)
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import KituraNet
/// An alias for a network request completion handler, receives back error, status, headers and data
public typealias NetworkRequestCompletionHandler = (_ error:HttpError?, _ status:Int?, _ headers: [String:String]?, _ data:Data?) -> Void

internal let NOOPNetworkRequestCompletionHandler:NetworkRequestCompletionHandler = {(a,b,c,d)->Void in}
public let NOOPNetworkRequestCompletionHandler:NetworkRequestCompletionHandler = {(a,b,c,d)->Void in}

/// Use HttpClient to make Http requests
public class HttpClient{
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 30f5473

Please sign in to comment.