From 9362e61e86bce0a2583f98b260239c1d5c9289c5 Mon Sep 17 00:00:00 2001 From: mpkevin Date: Thu, 22 Dec 2016 09:13:40 -0600 Subject: [PATCH 1/4] Added Swift Package Manager compatibility. --- Package.swift | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Package.swift diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..6658fec --- /dev/null +++ b/Package.swift @@ -0,0 +1,17 @@ +import PackageDescription + +let package = Package( + name: "Swamp", + targets: [ + Target( + name: "Swamp", + dependencies: [] + ) + ], + dependencies: [ + .Package(url: "https://github.com/SwiftyJSON/SwiftyJSON.git", versions: Version(1,0,0).. Date: Thu, 22 Dec 2016 09:31:27 -0600 Subject: [PATCH 2/4] Updated readme --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 28d8c7e..04e2cc9 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,8 @@ Contributions to support MessagePack & Raw Sockets will be merged gladly! | 3 | 0.2.0 and above | OSX 10.10 or iOS 8.0 | ## Installation -Swamp is available through cocoapods. Add +### cocoapods +To use Swamp through cocoapods, add ```ruby pod 'Swamp', '~> 0.2.0' @@ -27,6 +28,23 @@ pod 'Swamp', '~> 0.2.0' to your Podfile. (use `'~> 0.1.0'` for Swift 2) +### Swift Package Manager +To use Swamp through Swift Package Manager, create a Package.swift file: + +```swift +import PackageDescription + +let package = Package( + name: "SwampTestProject", + targets: [], + dependencies: [ + .Package(url: "https://github.com/RadarBee/swamp.git", majorVersion: 0, minor: 2) + ] +) +``` + +`$ swift build` + ## Usage #### Connect to router From ef93cb121cfa869a8767fa4b6a8bf30a7adb9699 Mon Sep 17 00:00:00 2001 From: mpkevin Date: Thu, 22 Dec 2016 09:33:50 -0600 Subject: [PATCH 3/4] Added SPM badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 04e2cc9..22b2fcc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ [![Version](https://img.shields.io/cocoapods/v/Swamp.svg?style=flat)](http://cocoapods.org/pods/Swamp) [![License](https://img.shields.io/cocoapods/l/Swamp.svg?style=flat)](http://cocoapods.org/pods/Swamp) [![Platform](https://img.shields.io/cocoapods/p/Swamp.svg?style=flat)](http://cocoapods.org/pods/Swamp) +[![Swift Package Manager compatible](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-brightgreen.svg)](https://github.com/apple/swift-package-manager) ## Swamp - Swift WAMP implementation Swamp is a WAMP implementation in Swift. From 2cd2aa30eb4e5435b25b8386798fcfbc7ea3c63a Mon Sep 17 00:00:00 2001 From: Yossi Abraham Date: Sat, 7 Jan 2017 17:41:20 +0200 Subject: [PATCH 4/4] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 22b2fcc..c197d5f 100644 --- a/README.md +++ b/README.md @@ -209,7 +209,8 @@ You can also inspect `Example/swamp-crossbar-instance.log` to find out what happ ## Contributions - Yossi Abraham, yo.ab@outlook.com (Author) -- Dany Sousa, @danysousa (Swift 3 support) +- Dany Sousa, @danysousa (Swift 3 support +- Kevin Lanik, @MPKevin (Swift Package Manager support) ## License